Added wxRichToolTip class.
[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.3.
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.3'
579 PACKAGE_STRING='wxWidgets 2.9.3'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 wx_top_builddir
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 CXX
676 CXXFLAGS
677 ac_ct_CXX
678 AR
679 OSX_SW_VERS
680 CXXCPP
681 subdirs
682 PKG_CONFIG
683 GTK_CFLAGS
684 GTK_LIBS
685 GTK_CONFIG
686 DIRECTFB_CFLAGS
687 DIRECTFB_LIBS
688 XMKMF
689 X_CFLAGS
690 X_PRE_LIBS
691 X_LIBS
692 X_EXTRA_LIBS
693 PANGOX_CFLAGS
694 PANGOX_LIBS
695 PANGOFT2_CFLAGS
696 PANGOFT2_LIBS
697 PANGOXFT_CFLAGS
698 PANGOXFT_LIBS
699 CFLAGS_VISIBILITY
700 CXXFLAGS_VISIBILITY
701 LIBICONV
702 GXX_VERSION
703 SDL_CONFIG
704 SDL_CFLAGS
705 SDL_LIBS
706 GTKPRINT_CFLAGS
707 GTKPRINT_LIBS
708 LIBGNOMEPRINTUI_CFLAGS
709 LIBGNOMEPRINTUI_LIBS
710 GNOMEVFS_CFLAGS
711 GNOMEVFS_LIBS
712 HILDON_CFLAGS
713 HILDON_LIBS
714 HILDON2_CFLAGS
715 HILDON2_LIBS
716 PYTHON
717 COND_PYTHON
718 CAIRO_CFLAGS
719 CAIRO_LIBS
720 GST_CFLAGS
721 GST_LIBS
722 ALL_WX_LIBS
723 BUILT_WX_LIBS
724 STD_BASE_LIBS
725 STD_GUI_LIBS
726 wxUSE_ZLIB
727 wxUSE_REGEX
728 wxUSE_EXPAT
729 wxUSE_LIBJPEG
730 wxUSE_LIBPNG
731 wxUSE_LIBTIFF
732 VENDOR
733 OFFICIAL_BUILD
734 WX_FLAVOUR
735 WX_LIB_FLAVOUR
736 WXUNIV
737 MONOLITHIC
738 USE_PLUGINS
739 CXXWARNINGS
740 EXTRALIBS
741 EXTRALIBS_XML
742 EXTRALIBS_HTML
743 EXTRALIBS_MEDIA
744 EXTRALIBS_GUI
745 EXTRALIBS_OPENGL
746 EXTRALIBS_SDL
747 EXTRALIBS_STC
748 WITH_PLUGIN_SDL
749 EXTRALIBS_GTKPRINT
750 EXTRALIBS_GNOMEPRINT
751 EXTRALIBS_GNOMEVFS
752 EXTRALIBS_HILDON
753 UNICODE
754 DEBUG_INFO
755 DEBUG_FLAG
756 TOOLKIT_LOWERCASE
757 TOOLKIT_VERSION
758 DYLIB_RPATH_INSTALL
759 DYLIB_RPATH_POSTLINK
760 SAMPLES_RPATH_FLAG
761 HEADER_PAD_OPTION
762 HOST_SUFFIX
763 CPPUNIT_CFLAGS
764 CPPUNIT_LIBS
765 RANLIB
766 INSTALL_PROGRAM
767 INSTALL_SCRIPT
768 INSTALL_DATA
769 LN_S
770 SET_MAKE
771 MAKE_SET
772 AROPTIONS
773 STRIP
774 NM
775 INSTALL_DIR
776 LDFLAGS_GUI
777 IF_GNU_MAKE
778 PLATFORM_UNIX
779 PLATFORM_WIN32
780 PLATFORM_MSDOS
781 PLATFORM_MAC
782 PLATFORM_MACOS
783 PLATFORM_MACOSX
784 PLATFORM_OS2
785 PLATFORM_BEOS
786 SO_SUFFIX
787 SO_SUFFIX_MODULE
788 DLLIMP_SUFFIX
789 LIBPREFIX
790 LIBEXT
791 DLLPREFIX
792 DLLPREFIX_MODULE
793 dlldir
794 AIX_CXX_LD
795 SHARED_LD_CC
796 SHARED_LD_CXX
797 SHARED_LD_MODULE_CC
798 SHARED_LD_MODULE_CXX
799 PIC_FLAG
800 WINDOWS_IMPLIB
801 USE_SOVERSION
802 USE_SOVERLINUX
803 USE_SOVERSOLARIS
804 USE_SOVERCYGWIN
805 USE_MACVERSION
806 USE_SOTWOSYMLINKS
807 SONAME_FLAG
808 DEPS_TRACKING
809 BK_DEPS
810 WINDRES
811 REZ
812 SETFILE
813 OBJCXXFLAGS
814 GCC_PCH
815 ICC_PCH
816 ICC_PCH_CREATE_SWITCH
817 ICC_PCH_USE_SWITCH
818 BK_MAKE_PCH
819 COND_BUILD_DEBUG
820 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
821 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
822 COND_BUILD_DEBUG_UNICODE_0
823 COND_BUILD_DEBUG_UNICODE_1
824 COND_BUILD_RELEASE
825 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
826 COND_BUILD_RELEASE_UNICODE_0
827 COND_BUILD_RELEASE_UNICODE_1
828 COND_BUILD_debug
829 COND_BUILD_debug_DEBUG_FLAG_default
830 COND_BUILD_debug_DEBUG_INFO_default
831 COND_BUILD_debug_UNICODE_0
832 COND_BUILD_debug_UNICODE_1
833 COND_BUILD_release
834 COND_BUILD_release_DEBUG_INFO_default
835 COND_BUILD_release_UNICODE_0
836 COND_BUILD_release_UNICODE_1
837 COND_DEBUG_FLAG_0
838 COND_DEBUG_FLAG_1
839 COND_DEBUG_INFO_0
840 COND_DEBUG_INFO_1
841 COND_DEPS_TRACKING_0
842 COND_DEPS_TRACKING_1
843 COND_GCC_PCH_1
844 COND_ICC_PCH_1
845 COND_MONOLITHIC_0
846 COND_MONOLITHIC_0_SHARED_0
847 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
848 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
849 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
850 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
851 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
852 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1
853 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
854 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
855 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
856 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
857 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
858 COND_MONOLITHIC_0_SHARED_1
859 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
860 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
861 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
862 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
863 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
864 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1
865 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
866 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
867 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
868 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
869 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
870 COND_MONOLITHIC_0_USE_AUI_1
871 COND_MONOLITHIC_0_USE_GUI_1
872 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
873 COND_MONOLITHIC_0_USE_HTML_1
874 COND_MONOLITHIC_0_USE_MEDIA_1
875 COND_MONOLITHIC_0_USE_PROPGRID_1
876 COND_MONOLITHIC_0_USE_QA_1
877 COND_MONOLITHIC_0_USE_RIBBON_1
878 COND_MONOLITHIC_0_USE_RICHTEXT_1
879 COND_MONOLITHIC_0_USE_STC_1
880 COND_MONOLITHIC_0_USE_WEBVIEW_1
881 COND_MONOLITHIC_0_USE_XRC_1
882 COND_MONOLITHIC_1
883 COND_MONOLITHIC_1_SHARED_0
884 COND_MONOLITHIC_1_SHARED_1
885 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
886 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
887 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
888 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
889 COND_PLATFORM_MACOSX_1
890 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
891 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0
892 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
893 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
894 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
895 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
896 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1
897 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
898 COND_PLATFORM_MACOSX_1_USE_GUI_1
899 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
900 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
901 COND_PLATFORM_MACOS_1
902 COND_PLATFORM_MAC_0
903 COND_PLATFORM_MAC_1
904 COND_PLATFORM_MSDOS_0
905 COND_PLATFORM_MSDOS_1
906 COND_PLATFORM_OS2_1
907 COND_PLATFORM_UNIX_0
908 COND_PLATFORM_UNIX_1
909 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
910 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
911 COND_PLATFORM_UNIX_1_USE_GUI_1
912 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
913 COND_PLATFORM_WIN32_0
914 COND_PLATFORM_WIN32_1
915 COND_PLATFORM_WIN32_1_SHARED_0
916 COND_SHARED_0
917 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
918 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
919 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
920 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
921 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
922 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
923 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
924 COND_SHARED_0_USE_STC_1
925 COND_SHARED_0_wxUSE_EXPAT_builtin
926 COND_SHARED_0_wxUSE_REGEX_builtin
927 COND_SHARED_0_wxUSE_ZLIB_builtin
928 COND_SHARED_1
929 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
930 COND_TOOLKIT_
931 COND_TOOLKIT_COCOA
932 COND_TOOLKIT_COCOA_USE_GUI_1
933 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
934 COND_TOOLKIT_DFB
935 COND_TOOLKIT_DFB_USE_GUI_1
936 COND_TOOLKIT_GTK
937 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
938 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
939 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
940 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
941 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
942 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
943 COND_TOOLKIT_GTK_USE_GUI_1
944 COND_TOOLKIT_MAC
945 COND_TOOLKIT_MGL
946 COND_TOOLKIT_MGL_USE_GUI_1
947 COND_TOOLKIT_MOTIF
948 COND_TOOLKIT_MOTIF_USE_GUI_1
949 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
950 COND_TOOLKIT_MSW
951 COND_TOOLKIT_MSW_USE_GUI_1
952 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
953 COND_TOOLKIT_MSW_WXUNIV_0
954 COND_TOOLKIT_OSX_CARBON
955 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
956 COND_TOOLKIT_OSX_COCOA
957 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
958 COND_TOOLKIT_OSX_IPHONE
959 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1
960 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
961 COND_TOOLKIT_PM
962 COND_TOOLKIT_PM_USE_GUI_1
963 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
964 COND_TOOLKIT_WINCE
965 COND_TOOLKIT_WINCE_USE_GUI_1
966 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
967 COND_TOOLKIT_WINCE_WXUNIV_0
968 COND_TOOLKIT_X11
969 COND_TOOLKIT_X11_USE_GUI_1
970 COND_UNICODE_1
971 COND_USE_CAIRO_1
972 COND_USE_EXCEPTIONS_0
973 COND_USE_EXCEPTIONS_1
974 COND_USE_GUI_0
975 COND_USE_GUI_1
976 COND_USE_GUI_1_USE_OPENGL_1
977 COND_USE_GUI_1_WXUNIV_0
978 COND_USE_GUI_1_WXUNIV_1
979 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
980 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
981 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
982 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
983 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
984 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
985 COND_USE_OPENGL_1
986 COND_USE_PCH_1
987 COND_USE_PLUGINS_0
988 COND_USE_RTTI_0
989 COND_USE_RTTI_1
990 COND_USE_SOTWOSYMLINKS_1
991 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
992 COND_USE_SOVERLINUX_1
993 COND_USE_SOVERSION_0
994 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
995 COND_USE_SOVERSOLARIS_1
996 COND_USE_STC_1
997 COND_USE_THREADS_0
998 COND_USE_THREADS_1
999 COND_USE_XRC_1
1000 COND_WINDOWS_IMPLIB_1
1001 COND_WITH_PLUGIN_SDL_1
1002 COND_WXUNIV_0
1003 COND_WXUNIV_1
1004 COND_WXUSE_EXPAT_BUILTIN
1005 COND_WXUSE_LIBJPEG_BUILTIN
1006 COND_WXUSE_LIBPNG_BUILTIN
1007 COND_WXUSE_LIBTIFF_BUILTIN
1008 COND_WXUSE_REGEX_BUILTIN
1009 COND_WXUSE_ZLIB_BUILTIN
1010 COND_wxUSE_EXPAT_builtin
1011 COND_wxUSE_LIBJPEG_builtin
1012 COND_wxUSE_LIBPNG_builtin
1013 COND_wxUSE_LIBTIFF_builtin
1014 COND_wxUSE_REGEX_builtin
1015 COND_wxUSE_ZLIB_builtin
1016 DEREZ
1017 SHARED
1018 WX_LIBRARY_BASENAME_NOGUI
1019 WX_LIBRARY_BASENAME_GUI
1020 USE_GUI
1021 AFMINSTALL
1022 WIN32INSTALL
1023 TOOLKIT
1024 TOOLKIT_DIR
1025 TOOLCHAIN_NAME
1026 TOOLCHAIN_FULLNAME
1027 cross_compiling
1028 WIDGET_SET
1029 WX_RELEASE
1030 WX_VERSION
1031 WX_SUBVERSION
1032 WX_CHARTYPE
1033 WXCONFIG_CPPFLAGS
1034 WXCONFIG_CFLAGS
1035 WXCONFIG_CXXFLAGS
1036 WXCONFIG_LIBS
1037 WXCONFIG_RPATH
1038 WXCONFIG_LDFLAGS
1039 WXCONFIG_LDFLAGS_GUI
1040 WXCONFIG_RESFLAGS
1041 GUIDIST
1042 DISTDIR
1043 SAMPLES_SUBDIRS
1044 LDFLAGS_GL
1045 OPENGL_LIBS
1046 DMALLOC_LIBS
1047 WX_VERSION_TAG
1048 RESCOMP
1049 RESFLAGS
1050 RESPROGRAMOBJ
1051 WX_RESOURCES_MACOSX_ASCII
1052 WX_RESOURCES_MACOSX_DATA
1053 LIBWXMACRES
1054 POSTLINK_COMMAND
1055 MACSETFILE
1056 GCC
1057 DLLTOOL
1058 CPPUNIT_CONFIG
1059 LIBOBJS
1060 LTLIBOBJS'
1061 ac_subst_files=''
1062       ac_precious_vars='build_alias
1063 host_alias
1064 target_alias
1065 CC
1066 CFLAGS
1067 LDFLAGS
1068 LIBS
1069 CPPFLAGS
1070 CPP
1071 CXX
1072 CXXFLAGS
1073 CCC
1074 CXXCPP
1075 PKG_CONFIG
1076 DIRECTFB_CFLAGS
1077 DIRECTFB_LIBS
1078 XMKMF
1079 PANGOX_CFLAGS
1080 PANGOX_LIBS
1081 PANGOFT2_CFLAGS
1082 PANGOFT2_LIBS
1083 PANGOXFT_CFLAGS
1084 PANGOXFT_LIBS
1085 GTKPRINT_CFLAGS
1086 GTKPRINT_LIBS
1087 LIBGNOMEPRINTUI_CFLAGS
1088 LIBGNOMEPRINTUI_LIBS
1089 GNOMEVFS_CFLAGS
1090 GNOMEVFS_LIBS
1091 HILDON_CFLAGS
1092 HILDON_LIBS
1093 HILDON2_CFLAGS
1094 HILDON2_LIBS
1095 CAIRO_CFLAGS
1096 CAIRO_LIBS
1097 GST_CFLAGS
1098 GST_LIBS'
1099 ac_subdirs_all='src/tiff
1100 src/expat'
1101
1102 # Initialize some variables set by options.
1103 ac_init_help=
1104 ac_init_version=false
1105 # The variables have the same names as the options, with
1106 # dashes changed to underlines.
1107 cache_file=/dev/null
1108 exec_prefix=NONE
1109 no_create=
1110 no_recursion=
1111 prefix=NONE
1112 program_prefix=NONE
1113 program_suffix=NONE
1114 program_transform_name=s,x,x,
1115 silent=
1116 site=
1117 srcdir=
1118 verbose=
1119 x_includes=NONE
1120 x_libraries=NONE
1121
1122 # Installation directory options.
1123 # These are left unexpanded so users can "make install exec_prefix=/foo"
1124 # and all the variables that are supposed to be based on exec_prefix
1125 # by default will actually change.
1126 # Use braces instead of parens because sh, perl, etc. also accept them.
1127 # (The list follows the same order as the GNU Coding Standards.)
1128 bindir='${exec_prefix}/bin'
1129 sbindir='${exec_prefix}/sbin'
1130 libexecdir='${exec_prefix}/libexec'
1131 datarootdir='${prefix}/share'
1132 datadir='${datarootdir}'
1133 sysconfdir='${prefix}/etc'
1134 sharedstatedir='${prefix}/com'
1135 localstatedir='${prefix}/var'
1136 includedir='${prefix}/include'
1137 oldincludedir='/usr/include'
1138 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1139 infodir='${datarootdir}/info'
1140 htmldir='${docdir}'
1141 dvidir='${docdir}'
1142 pdfdir='${docdir}'
1143 psdir='${docdir}'
1144 libdir='${exec_prefix}/lib'
1145 localedir='${datarootdir}/locale'
1146 mandir='${datarootdir}/man'
1147
1148 ac_prev=
1149 ac_dashdash=
1150 for ac_option
1151 do
1152   # If the previous option needs an argument, assign it.
1153   if test -n "$ac_prev"; then
1154     eval $ac_prev=\$ac_option
1155     ac_prev=
1156     continue
1157   fi
1158
1159   case $ac_option in
1160   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1161   *)    ac_optarg=yes ;;
1162   esac
1163
1164   # Accept the important Cygnus configure options, so we can diagnose typos.
1165
1166   case $ac_dashdash$ac_option in
1167   --)
1168     ac_dashdash=yes ;;
1169
1170   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1171     ac_prev=bindir ;;
1172   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1173     bindir=$ac_optarg ;;
1174
1175   -build | --build | --buil | --bui | --bu)
1176     ac_prev=build_alias ;;
1177   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1178     build_alias=$ac_optarg ;;
1179
1180   -cache-file | --cache-file | --cache-fil | --cache-fi \
1181   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1182     ac_prev=cache_file ;;
1183   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1184   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1185     cache_file=$ac_optarg ;;
1186
1187   --config-cache | -C)
1188     cache_file=config.cache ;;
1189
1190   -datadir | --datadir | --datadi | --datad)
1191     ac_prev=datadir ;;
1192   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1193     datadir=$ac_optarg ;;
1194
1195   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1196   | --dataroo | --dataro | --datar)
1197     ac_prev=datarootdir ;;
1198   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1199   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1200     datarootdir=$ac_optarg ;;
1201
1202   -disable-* | --disable-*)
1203     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1207    { (exit 1); exit 1; }; }
1208     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1209     eval enable_$ac_feature=no ;;
1210
1211   -docdir | --docdir | --docdi | --doc | --do)
1212     ac_prev=docdir ;;
1213   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1214     docdir=$ac_optarg ;;
1215
1216   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1217     ac_prev=dvidir ;;
1218   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1219     dvidir=$ac_optarg ;;
1220
1221   -enable-* | --enable-*)
1222     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1223     # Reject names that are not valid shell variable names.
1224     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1226    { (exit 1); exit 1; }; }
1227     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1228     eval enable_$ac_feature=\$ac_optarg ;;
1229
1230   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1231   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1232   | --exec | --exe | --ex)
1233     ac_prev=exec_prefix ;;
1234   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1235   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1236   | --exec=* | --exe=* | --ex=*)
1237     exec_prefix=$ac_optarg ;;
1238
1239   -gas | --gas | --ga | --g)
1240     # Obsolete; use --with-gas.
1241     with_gas=yes ;;
1242
1243   -help | --help | --hel | --he | -h)
1244     ac_init_help=long ;;
1245   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1246     ac_init_help=recursive ;;
1247   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1248     ac_init_help=short ;;
1249
1250   -host | --host | --hos | --ho)
1251     ac_prev=host_alias ;;
1252   -host=* | --host=* | --hos=* | --ho=*)
1253     host_alias=$ac_optarg ;;
1254
1255   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1256     ac_prev=htmldir ;;
1257   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1258   | --ht=*)
1259     htmldir=$ac_optarg ;;
1260
1261   -includedir | --includedir | --includedi | --included | --include \
1262   | --includ | --inclu | --incl | --inc)
1263     ac_prev=includedir ;;
1264   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1265   | --includ=* | --inclu=* | --incl=* | --inc=*)
1266     includedir=$ac_optarg ;;
1267
1268   -infodir | --infodir | --infodi | --infod | --info | --inf)
1269     ac_prev=infodir ;;
1270   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1271     infodir=$ac_optarg ;;
1272
1273   -libdir | --libdir | --libdi | --libd)
1274     ac_prev=libdir ;;
1275   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1276     libdir=$ac_optarg ;;
1277
1278   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1279   | --libexe | --libex | --libe)
1280     ac_prev=libexecdir ;;
1281   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1282   | --libexe=* | --libex=* | --libe=*)
1283     libexecdir=$ac_optarg ;;
1284
1285   -localedir | --localedir | --localedi | --localed | --locale)
1286     ac_prev=localedir ;;
1287   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1288     localedir=$ac_optarg ;;
1289
1290   -localstatedir | --localstatedir | --localstatedi | --localstated \
1291   | --localstate | --localstat | --localsta | --localst | --locals)
1292     ac_prev=localstatedir ;;
1293   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1294   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1295     localstatedir=$ac_optarg ;;
1296
1297   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1298     ac_prev=mandir ;;
1299   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1300     mandir=$ac_optarg ;;
1301
1302   -nfp | --nfp | --nf)
1303     # Obsolete; use --without-fp.
1304     with_fp=no ;;
1305
1306   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1307   | --no-cr | --no-c | -n)
1308     no_create=yes ;;
1309
1310   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1311   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1312     no_recursion=yes ;;
1313
1314   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1315   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1316   | --oldin | --oldi | --old | --ol | --o)
1317     ac_prev=oldincludedir ;;
1318   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1319   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1320   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1321     oldincludedir=$ac_optarg ;;
1322
1323   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1324     ac_prev=prefix ;;
1325   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1326     prefix=$ac_optarg ;;
1327
1328   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1329   | --program-pre | --program-pr | --program-p)
1330     ac_prev=program_prefix ;;
1331   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1332   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1333     program_prefix=$ac_optarg ;;
1334
1335   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1336   | --program-suf | --program-su | --program-s)
1337     ac_prev=program_suffix ;;
1338   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1339   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1340     program_suffix=$ac_optarg ;;
1341
1342   -program-transform-name | --program-transform-name \
1343   | --program-transform-nam | --program-transform-na \
1344   | --program-transform-n | --program-transform- \
1345   | --program-transform | --program-transfor \
1346   | --program-transfo | --program-transf \
1347   | --program-trans | --program-tran \
1348   | --progr-tra | --program-tr | --program-t)
1349     ac_prev=program_transform_name ;;
1350   -program-transform-name=* | --program-transform-name=* \
1351   | --program-transform-nam=* | --program-transform-na=* \
1352   | --program-transform-n=* | --program-transform-=* \
1353   | --program-transform=* | --program-transfor=* \
1354   | --program-transfo=* | --program-transf=* \
1355   | --program-trans=* | --program-tran=* \
1356   | --progr-tra=* | --program-tr=* | --program-t=*)
1357     program_transform_name=$ac_optarg ;;
1358
1359   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1360     ac_prev=pdfdir ;;
1361   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1362     pdfdir=$ac_optarg ;;
1363
1364   -psdir | --psdir | --psdi | --psd | --ps)
1365     ac_prev=psdir ;;
1366   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1367     psdir=$ac_optarg ;;
1368
1369   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1370   | -silent | --silent | --silen | --sile | --sil)
1371     silent=yes ;;
1372
1373   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1374     ac_prev=sbindir ;;
1375   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1376   | --sbi=* | --sb=*)
1377     sbindir=$ac_optarg ;;
1378
1379   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1380   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1381   | --sharedst | --shareds | --shared | --share | --shar \
1382   | --sha | --sh)
1383     ac_prev=sharedstatedir ;;
1384   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1385   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1386   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1387   | --sha=* | --sh=*)
1388     sharedstatedir=$ac_optarg ;;
1389
1390   -site | --site | --sit)
1391     ac_prev=site ;;
1392   -site=* | --site=* | --sit=*)
1393     site=$ac_optarg ;;
1394
1395   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1396     ac_prev=srcdir ;;
1397   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1398     srcdir=$ac_optarg ;;
1399
1400   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1401   | --syscon | --sysco | --sysc | --sys | --sy)
1402     ac_prev=sysconfdir ;;
1403   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1404   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1405     sysconfdir=$ac_optarg ;;
1406
1407   -target | --target | --targe | --targ | --tar | --ta | --t)
1408     ac_prev=target_alias ;;
1409   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1410     target_alias=$ac_optarg ;;
1411
1412   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1413     verbose=yes ;;
1414
1415   -version | --version | --versio | --versi | --vers | -V)
1416     ac_init_version=: ;;
1417
1418   -with-* | --with-*)
1419     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1426
1427   -without-* | --without-*)
1428     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1429     # Reject names that are not valid shell variable names.
1430     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1431       { echo "$as_me: error: invalid package name: $ac_package" >&2
1432    { (exit 1); exit 1; }; }
1433     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1434     eval with_$ac_package=no ;;
1435
1436   --x)
1437     # Obsolete; use --with-x.
1438     with_x=yes ;;
1439
1440   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1441   | --x-incl | --x-inc | --x-in | --x-i)
1442     ac_prev=x_includes ;;
1443   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1444   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1445     x_includes=$ac_optarg ;;
1446
1447   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1448   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1449     ac_prev=x_libraries ;;
1450   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1451   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1452     x_libraries=$ac_optarg ;;
1453
1454   -*) { echo "$as_me: error: unrecognized option: $ac_option
1455 Try \`$0 --help' for more information." >&2
1456    { (exit 1); exit 1; }; }
1457     ;;
1458
1459   *=*)
1460     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1461     # Reject names that are not valid shell variable names.
1462     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1463       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1464    { (exit 1); exit 1; }; }
1465     eval $ac_envvar=\$ac_optarg
1466     export $ac_envvar ;;
1467
1468   *)
1469     # FIXME: should be removed in autoconf 3.0.
1470     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1471     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1472       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1473     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1474     ;;
1475
1476   esac
1477 done
1478
1479 if test -n "$ac_prev"; then
1480   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1481   { echo "$as_me: error: missing argument to $ac_option" >&2
1482    { (exit 1); exit 1; }; }
1483 fi
1484
1485 # Be sure to have absolute directory names.
1486 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1487                 datadir sysconfdir sharedstatedir localstatedir includedir \
1488                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1489                 libdir localedir mandir
1490 do
1491   eval ac_val=\$$ac_var
1492   case $ac_val in
1493     [\\/$]* | ?:[\\/]* )  continue;;
1494     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1495   esac
1496   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1497    { (exit 1); exit 1; }; }
1498 done
1499
1500 # There might be people who depend on the old broken behavior: `$host'
1501 # used to hold the argument of --host etc.
1502 # FIXME: To remove some day.
1503 build=$build_alias
1504 host=$host_alias
1505 target=$target_alias
1506
1507 # FIXME: To remove some day.
1508 if test "x$host_alias" != x; then
1509   if test "x$build_alias" = x; then
1510     cross_compiling=maybe
1511     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1512     If a cross compiler is detected then cross compile mode will be used." >&2
1513   elif test "x$build_alias" != "x$host_alias"; then
1514     cross_compiling=yes
1515   fi
1516 fi
1517
1518 ac_tool_prefix=
1519 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1520
1521 test "$silent" = yes && exec 6>/dev/null
1522
1523
1524 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1525 ac_ls_di=`ls -di .` &&
1526 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1527   { echo "$as_me: error: Working directory cannot be determined" >&2
1528    { (exit 1); exit 1; }; }
1529 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1530   { echo "$as_me: error: pwd does not report name of working directory" >&2
1531    { (exit 1); exit 1; }; }
1532
1533
1534 # Find the source files, if location was not specified.
1535 if test -z "$srcdir"; then
1536   ac_srcdir_defaulted=yes
1537   # Try the directory containing this script, then the parent directory.
1538   ac_confdir=`$as_dirname -- "$0" ||
1539 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1540          X"$0" : 'X\(//\)[^/]' \| \
1541          X"$0" : 'X\(//\)$' \| \
1542          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1543 echo X"$0" |
1544     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1545             s//\1/
1546             q
1547           }
1548           /^X\(\/\/\)[^/].*/{
1549             s//\1/
1550             q
1551           }
1552           /^X\(\/\/\)$/{
1553             s//\1/
1554             q
1555           }
1556           /^X\(\/\).*/{
1557             s//\1/
1558             q
1559           }
1560           s/.*/./; q'`
1561   srcdir=$ac_confdir
1562   if test ! -r "$srcdir/$ac_unique_file"; then
1563     srcdir=..
1564   fi
1565 else
1566   ac_srcdir_defaulted=no
1567 fi
1568 if test ! -r "$srcdir/$ac_unique_file"; then
1569   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1570   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1571    { (exit 1); exit 1; }; }
1572 fi
1573 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1574 ac_abs_confdir=`(
1575         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1576    { (exit 1); exit 1; }; }
1577         pwd)`
1578 # When building in place, set srcdir=.
1579 if test "$ac_abs_confdir" = "$ac_pwd"; then
1580   srcdir=.
1581 fi
1582 # Remove unnecessary trailing slashes from srcdir.
1583 # Double slashes in file names in object file debugging info
1584 # mess up M-x gdb in Emacs.
1585 case $srcdir in
1586 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1587 esac
1588 for ac_var in $ac_precious_vars; do
1589   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1590   eval ac_env_${ac_var}_value=\$${ac_var}
1591   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1592   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1593 done
1594
1595 #
1596 # Report the --help message.
1597 #
1598 if test "$ac_init_help" = "long"; then
1599   # Omit some internal or obsolete options to make the list less imposing.
1600   # This message is too long to be a string in the A/UX 3.1 sh.
1601   cat <<_ACEOF
1602 \`configure' configures wxWidgets 2.9.3 to adapt to many kinds of systems.
1603
1604 Usage: $0 [OPTION]... [VAR=VALUE]...
1605
1606 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1607 VAR=VALUE.  See below for descriptions of some of the useful variables.
1608
1609 Defaults for the options are specified in brackets.
1610
1611 Configuration:
1612   -h, --help              display this help and exit
1613       --help=short        display options specific to this package
1614       --help=recursive    display the short help of all the included packages
1615   -V, --version           display version information and exit
1616   -q, --quiet, --silent   do not print \`checking...' messages
1617       --cache-file=FILE   cache test results in FILE [disabled]
1618   -C, --config-cache      alias for \`--cache-file=config.cache'
1619   -n, --no-create         do not create output files
1620       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1621
1622 Installation directories:
1623   --prefix=PREFIX         install architecture-independent files in PREFIX
1624                           [$ac_default_prefix]
1625   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1626                           [PREFIX]
1627
1628 By default, \`make install' will install all the files in
1629 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1630 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1631 for instance \`--prefix=\$HOME'.
1632
1633 For better control, use the options below.
1634
1635 Fine tuning of the installation directories:
1636   --bindir=DIR           user executables [EPREFIX/bin]
1637   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1638   --libexecdir=DIR       program executables [EPREFIX/libexec]
1639   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1640   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1641   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1642   --libdir=DIR           object code libraries [EPREFIX/lib]
1643   --includedir=DIR       C header files [PREFIX/include]
1644   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1645   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1646   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1647   --infodir=DIR          info documentation [DATAROOTDIR/info]
1648   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1649   --mandir=DIR           man documentation [DATAROOTDIR/man]
1650   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1651   --htmldir=DIR          html documentation [DOCDIR]
1652   --dvidir=DIR           dvi documentation [DOCDIR]
1653   --pdfdir=DIR           pdf documentation [DOCDIR]
1654   --psdir=DIR            ps documentation [DOCDIR]
1655 _ACEOF
1656
1657   cat <<\_ACEOF
1658
1659 X features:
1660   --x-includes=DIR    X include files are in DIR
1661   --x-libraries=DIR   X library files are in DIR
1662
1663 System types:
1664   --build=BUILD     configure for building on BUILD [guessed]
1665   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1666 _ACEOF
1667 fi
1668
1669 if test -n "$ac_init_help"; then
1670   case $ac_init_help in
1671      short | recursive ) echo "Configuration of wxWidgets 2.9.3:";;
1672    esac
1673   cat <<\_ACEOF
1674
1675 Optional Features:
1676   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1677   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1678   --disable-gui           don't build GUI parts of the library
1679   --enable-monolithic     build wxWidgets as single library
1680   --enable-plugins        build parts of wxWidgets as loadable components
1681   --enable-official_build official build of wxWidgets (win32 DLL only)
1682   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1683   --disable-all-features  disable all optional features to build minimal library
1684   --enable-universal      use wxWidgets GUI controls instead of native ones
1685   --enable-nanox          use NanoX
1686   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1687   --enable-gpe            use GNOME PDA Environment features if possible
1688   --enable-debug          build library for debugging
1689   --disable-debug_flag    disable all debugging support
1690   --enable-debug_info     generate debug information
1691   --enable-debug_gdb      create code with extra GDB debugging information
1692   --enable-debug_cntxt    obsolete, don't use: use wxDebugContext
1693   --enable-mem_tracing    obsolete, don't use: create code with memory tracing
1694   --disable-shared        create static library instead of shared
1695   --enable-stl            use standard C++ classes for everything
1696   --enable-std_containers use standard C++ container classes
1697   --enable-std_iostreams  use standard C++ stream classes
1698   --enable-std_string     use standard C++ string classes
1699  --enable-std_string_conv_in_wxstring     provide implicit conversion to std::string in wxString
1700   --disable-unicode       compile without Unicode support
1701   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1702   --enable-utf8           use UTF-8 representation for strings (Unix only)
1703   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1704   --enable-extended_rtti  use extended RTTI (XTI)
1705   --enable-omf            use OMF object format
1706   --disable-optimise      compile without optimisations
1707   --enable-profile        create code with profiling information
1708   --enable-no_rtti        create code without RTTI information
1709   --enable-no_exceptions  create code without C++ exceptions handling
1710   --enable-permissive     compile code disregarding strict ANSI
1711   --enable-no_deps        create code without dependency information
1712   --disable-vararg_macros don't use vararg macros, even if they are supported
1713   --enable-universal_binary  create universal binary with Mac PPC and i386 (and x86_64 if using Cocoa) architectures
1714   --enable-macosx_arch=ARCH  build for just the specified architecture
1715   --enable-compat26       enable wxWidgets 2.6 compatibility
1716   --disable-compat28      disable wxWidgets 2.8 compatibility
1717   --disable-rpath         disable use of rpath for uninstalled builds
1718   --enable-objc_uniquifying enable Objective-C class name uniquifying
1719   --disable-visibility    disable use of ELF symbols visibility even if supported
1720   --disable-tls           disable use of compiler TLS support
1721   --enable-intl           use internationalization system
1722   --enable-xlocale        use x-locale support (requires wxLocale)
1723   --enable-config         use wxConfig (and derived) classes
1724   --enable-protocols      use wxProtocol and derived classes
1725   --enable-ftp            use wxFTP (requires wxProtocol
1726   --enable-http           use wxHTTP (requires wxProtocol
1727   --enable-fileproto      use wxFileProto class (requires wxProtocol
1728   --enable-sockets        use socket/network classes
1729   --enable-ipv6           enable IPv6 support in wxSocket
1730   --enable-ole            use OLE classes (Win32 only)
1731   --enable-dataobj        use data object classes
1732   --enable-ipc            use interprocess communication (wxSocket etc.)
1733   --enable-baseevtloop    use event loop in console programs too
1734   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1735   --enable-selectloop     use wxSelectDispatcher class
1736   --enable-any            use wxAny class
1737   --enable-apple_ieee     use the Apple IEEE codec
1738   --enable-arcstream      use wxArchive streams
1739   --enable-base64         use base64 encoding/decoding functions
1740   --enable-backtrace      use wxStackWalker class for getting backtraces
1741   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1742   --enable-cmdline        use wxCmdLineParser class
1743   --enable-datetime       use wxDateTime class
1744   --enable-debugreport    use wxDebugReport class
1745   --enable-dialupman      use dialup network classes
1746   --enable-dynlib         use wxLibrary class for DLL loading
1747   --enable-dynamicloader  use (new) wxDynamicLibrary class
1748   --enable-exceptions     build exception-safe library
1749   --enable-ffile          use wxFFile class
1750   --enable-file           use wxFile class
1751   --enable-filehistory    use wxFileHistory class
1752   --enable-filesystem     use virtual file systems classes
1753   --enable-fontenum       use wxFontEnumerator class
1754   --enable-fontmap        use font encodings conversion classes
1755   --enable-fs_archive     use virtual archive filesystems
1756   --enable-fs_inet        use virtual HTTP/FTP filesystems
1757   --enable-fs_zip         now replaced by fs_archive
1758   --enable-fswatcher      use wxFileSystemWatcher class
1759   --enable-geometry       use geometry class
1760   --enable-log            use logging system
1761   --enable-longlong       use wxLongLong class
1762   --enable-mimetype       use wxMimeTypesManager
1763   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1764   --enable-snglinst       use wxSingleInstanceChecker class
1765   --enable-sound          use wxSound class
1766   --enable-stdpaths       use wxStandardPaths class
1767   --enable-stopwatch      use wxStopWatch class
1768   --enable-streams        use wxStream etc classes
1769   --enable-sysoptions     use wxSystemOptions
1770   --enable-tarstream      use wxTar streams
1771   --enable-textbuf        use wxTextBuffer class
1772   --enable-textfile       use wxTextFile class
1773   --enable-timer          use wxTimer class
1774   --enable-variant        use wxVariant class
1775   --enable-zipstream      use wxZip streams
1776   --enable-url            use wxURL class
1777   --enable-protocol       use wxProtocol class
1778   --enable-protocol-http  HTTP support in wxProtocol
1779   --enable-protocol-ftp   FTP support in wxProtocol
1780   --enable-protocol-file  FILE support in wxProtocol
1781   --enable-threads        use threads
1782   --enable-iniconf        use wxIniConfig (Win32 only)
1783   --enable-regkey         use wxRegKey class (Win32 only)
1784   --enable-docview        use document view architecture
1785   --enable-help           use help subsystem
1786   --enable-mshtmlhelp     use MS HTML Help (win32)
1787   --enable-html           use wxHTML sub-library
1788   --enable-htmlhelp       use wxHTML-based help
1789   --enable-xrc            use XRC resources sub-library
1790   --enable-aui            use AUI docking library
1791   --enable-propgrid       use wxPropertyGrid library
1792   --enable-ribbon         use wxRibbon library
1793   --enable-stc            use wxStyledTextCtrl library
1794   --enable-constraints    use layout-constraints system
1795   --enable-loggui         use standard GUI logger
1796   --enable-logwin         use wxLogWindow
1797   --enable-logdialog      use wxLogDialog
1798   --enable-mdi            use multiple document interface architecture
1799   --enable-mdidoc         use docview architecture with MDI
1800   --enable-mediactrl      use wxMediaCtrl class
1801   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1802   --enable-richtext       use wxRichTextCtrl
1803   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1804   --enable-printarch      use printing architecture
1805   --enable-svg            use wxSVGFileDC device context
1806   --enable-webkit         use wxWebKitCtrl (Mac-only, use wxWebView instead)
1807   --enable-webview        use wxWebView library
1808   --enable-graphics_ctx   use graphics context 2D drawing API
1809   --enable-clipboard      use wxClipboard class
1810   --enable-dnd            use Drag'n'Drop classes
1811   --disable-controls      disable compilation of all standard controls
1812   --enable-markup         support wxControl::SetLabelMarkup
1813   --enable-accel          use accelerators
1814   --enable-animatectrl    use wxAnimationCtrl class
1815   --enable-bannerwindow   use wxBannerWindow class
1816   --enable-artstd         use standard XPM icons in wxArtProvider
1817   --enable-arttango       use Tango icons in wxArtProvider
1818   --enable-bmpbutton      use wxBitmapButton class
1819   --enable-bmpcombobox    use wxBitmapComboBox class
1820   --enable-button         use wxButton class
1821   --enable-calendar       use wxCalendarCtrl class
1822   --enable-caret          use wxCaret class
1823   --enable-checkbox       use wxCheckBox class
1824   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1825   --enable-choice         use wxChoice class
1826   --enable-choicebook     use wxChoicebook class
1827   --enable-collpane       use wxCollapsiblePane class
1828   --enable-colourpicker   use wxColourPickerCtrl class
1829   --enable-combobox       use wxComboBox class
1830   --enable-comboctrl      use wxComboCtrl class
1831   --enable-commandlinkbutton      use wxCommmandLinkButton class
1832   --enable-dataviewctrl   use wxDataViewCtrl class
1833   --enable-datepick       use wxDatePickerCtrl class
1834   --enable-detect_sm      use code to detect X11 session manager
1835   --enable-dirpicker      use wxDirPickerCtrl class
1836   --enable-display        use wxDisplay class
1837   --enable-editablebox    use wxEditableListBox class
1838   --enable-filectrl       use wxFileCtrl class
1839   --enable-filepicker     use wxFilePickerCtrl class
1840   --enable-fontpicker     use wxFontPickerCtrl class
1841   --enable-gauge          use wxGauge class
1842   --enable-grid           use wxGrid class
1843   --enable-headerctrl     use wxHeaderCtrl class
1844   --enable-hyperlink      use wxHyperlinkCtrl class
1845   --enable-imaglist       use wxImageList class
1846   --enable-infobar        use wxInfoBar class
1847   --enable-listbook       use wxListbook class
1848   --enable-listbox        use wxListBox class
1849   --enable-listctrl       use wxListCtrl class
1850   --enable-notebook       use wxNotebook class
1851   --enable-notifmsg       use wxNotificationMessage class
1852   --enable-odcombobox     use wxOwnerDrawnComboBox class
1853   --enable-popupwin       use wxPopUpWindow class
1854   --enable-radiobox       use wxRadioBox class
1855   --enable-radiobtn       use wxRadioButton class
1856   --enable-richmsgdlg     use wxRichMessageDialog class
1857   --enable-richtooltip    use wxRichToolTip class
1858   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1859   --enable-sash           use wxSashWindow class
1860   --enable-scrollbar      use wxScrollBar class and scrollable windows
1861   --enable-searchctrl     use wxSearchCtrl class
1862   --enable-slider         use wxSlider class
1863   --enable-spinbtn        use wxSpinButton class
1864   --enable-spinctrl       use wxSpinCtrl class
1865   --enable-splitter       use wxSplitterWindow class
1866   --enable-statbmp        use wxStaticBitmap class
1867   --enable-statbox        use wxStaticBox class
1868   --enable-statline       use wxStaticLine class
1869   --enable-stattext       use wxStaticText class
1870   --enable-statusbar      use wxStatusBar class
1871   --enable-taskbaricon    use wxTaskBarIcon class
1872   --enable-tbarnative     use native wxToolBar class
1873   --enable-textctrl       use wxTextCtrl class
1874   --enable-timepick       use wxTimePickerCtrl class
1875   --enable-tipwindow      use wxTipWindow class
1876   --enable-togglebtn      use wxToggleButton class
1877   --enable-toolbar        use wxToolBar class
1878   --enable-toolbook       use wxToolbook class
1879   --enable-treebook       use wxTreebook class
1880   --enable-treectrl       use wxTreeCtrl class
1881   --enable-treelist       use wxTreeListCtrl class
1882   --enable-commondlg      use all common dialogs
1883   --enable-aboutdlg       use wxAboutBox
1884   --enable-choicedlg      use wxChoiceDialog
1885   --enable-coldlg         use wxColourDialog
1886   --enable-filedlg        use wxFileDialog
1887   --enable-finddlg        use wxFindReplaceDialog
1888   --enable-fontdlg        use wxFontDialog
1889   --enable-dirdlg         use wxDirDialog
1890   --enable-msgdlg         use wxMessageDialog
1891   --enable-numberdlg      use wxNumberEntryDialog
1892   --enable-splash         use wxSplashScreen
1893   --enable-textdlg        use wxTextDialog
1894   --enable-tipdlg         use startup tips
1895   --enable-progressdlg    use wxProgressDialog
1896   --enable-wizarddlg      use wxWizard
1897   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1898   --enable-miniframe      use wxMiniFrame class
1899   --enable-tooltips       use wxToolTip class
1900   --enable-splines        use spline drawing code
1901   --enable-mousewheel     use mousewheel
1902   --enable-validators     use wxValidator and derived classes
1903   --enable-busyinfo       use wxBusyInfo
1904   --enable-hotkey         use wxWindow::RegisterHotKey()
1905   --enable-joystick       use wxJoystick
1906   --enable-metafiles      use wxMetaFile
1907   --enable-dragimage      use wxDragImage
1908   --enable-accessibility  enable accessibility support
1909   --enable-uiactionsim    use wxUIActionSimulator (experimental)
1910   --enable-dctransform    use wxDC::SetTransformMatrix and related
1911   --enable-webview-webkit use wxWebView WebKit backend
1912   --enable-palette        use wxPalette class
1913   --enable-image          use wxImage class
1914   --enable-gif            use gif images (GIF file format)
1915   --enable-pcx            use pcx images (PCX file format)
1916   --enable-tga            use tga images (TGA file format)
1917   --enable-iff            use iff images (IFF file format)
1918   --enable-pnm            use pnm images (PNM file format)
1919   --enable-xpm            use xpm images (XPM file format)
1920   --enable-ico_cur        use Windows ICO and CUR formats
1921   --enable-dccache        cache temporary wxDC objects (Win32 only)
1922   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1923   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1924   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1925   --enable-wxdib          use wxDIB class (Win32 only)
1926   --enable-webview-ie     use wxWebView IE backend (Win32 only)
1927   --enable-autoidman      use automatic ids management
1928   --disable-largefile     omit support for large files
1929   --disable-gtktest       do not try to compile and run a test GTK+ program
1930   --disable-gtktest       Do not try to compile and run a test GTK program
1931   --disable-sdltest       Do not try to compile and run a test SDL program
1932   --enable-omf            use OMF object format (OS/2)
1933   --disable-dependency-tracking
1934                           don't use dependency tracking even if the compiler
1935                           can
1936   --disable-precomp-headers
1937                           don't use precompiled headers even if compiler can
1938
1939 Optional Packages:
1940   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1941   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1942   --without-subdirs       don't generate makefiles for samples/demos/...
1943   --with-flavour=NAME     specify a name to identify this build
1944   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1945   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1946   --with-motif            use Motif/Lesstif
1947   --with-osx_carbon       use Mac OS X (Carbon)
1948   --with-osx_cocoa        use Mac OS X (Cocoa)
1949   --with-osx_iphone       use iPhone OS X port
1950   --with-osx              use Mac OS X (default port, currently Carbon)
1951   --with-carbon           same as --with-osx_carbon
1952   --with-cocoa            same as --with-osx_cocoa
1953   --with-iphone           same as --with-osx_iphone
1954   --with-mac              same as --with-osx
1955   --with-old_cocoa        use old, deprecated, Cocoa port
1956   --with-wine             use Wine
1957   --with-msw              use MS-Windows
1958   --with-pm               use OS/2 Presentation Manager
1959   --with-mgl              use SciTech MGL
1960   --with-directfb         use DirectFB
1961   --with-microwin         use MicroWindows
1962   --with-x11              use X11
1963   --with-libpng           use libpng (PNG image format)
1964   --with-libjpeg          use libjpeg (JPEG file format)
1965   --with-libtiff          use libtiff (TIFF file format)
1966   --with-libxpm           use libxpm (XPM file format)
1967   --with-libiconv         use libiconv (character conversion)
1968   --with-libmspack        use libmspack (CHM help files loading)
1969   --without-gtkprint      don't use GTK printing support
1970   --without-gnomeprint    don't use GNOME printing libraries
1971   --with-gnomevfs         use GNOME VFS for associating MIME types
1972   --with-hildon           use Hildon framework for Nokia 770/800/810
1973   --with-opengl           use OpenGL (or Mesa)
1974   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1975   --with-sdl              use SDL for audio on Unix
1976   --with-regex            enable support for wxRegEx class
1977   --with-zlib             use zlib for LZW compression
1978   --with-expat            enable XML support using expat parser
1979   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1980   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1981   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1982   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1983   --with-x                use the X Window System
1984   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1985   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1986   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1987   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1988   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1989
1990 Some influential environment variables:
1991   CC          C compiler command
1992   CFLAGS      C compiler flags
1993   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1994               nonstandard directory <lib dir>
1995   LIBS        libraries to pass to the linker, e.g. -l<library>
1996   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1997               you have headers in a nonstandard directory <include dir>
1998   CPP         C preprocessor
1999   CXX         C++ compiler command
2000   CXXFLAGS    C++ compiler flags
2001   CXXCPP      C++ preprocessor
2002   PKG_CONFIG  path to pkg-config utility
2003   DIRECTFB_CFLAGS
2004               C compiler flags for DIRECTFB, overriding pkg-config
2005   DIRECTFB_LIBS
2006               linker flags for DIRECTFB, overriding pkg-config
2007   XMKMF       Path to xmkmf, Makefile generator for X Window System
2008   PANGOX_CFLAGS
2009               C compiler flags for PANGOX, overriding pkg-config
2010   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
2011   PANGOFT2_CFLAGS
2012               C compiler flags for PANGOFT2, overriding pkg-config
2013   PANGOFT2_LIBS
2014               linker flags for PANGOFT2, overriding pkg-config
2015   PANGOXFT_CFLAGS
2016               C compiler flags for PANGOXFT, overriding pkg-config
2017   PANGOXFT_LIBS
2018               linker flags for PANGOXFT, overriding pkg-config
2019   GTKPRINT_CFLAGS
2020               C compiler flags for GTKPRINT, overriding pkg-config
2021   GTKPRINT_LIBS
2022               linker flags for GTKPRINT, overriding pkg-config
2023   LIBGNOMEPRINTUI_CFLAGS
2024               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2025   LIBGNOMEPRINTUI_LIBS
2026               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2027   GNOMEVFS_CFLAGS
2028               C compiler flags for GNOMEVFS, overriding pkg-config
2029   GNOMEVFS_LIBS
2030               linker flags for GNOMEVFS, overriding pkg-config
2031   HILDON_CFLAGS
2032               C compiler flags for HILDON, overriding pkg-config
2033   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2034   HILDON2_CFLAGS
2035               C compiler flags for HILDON2, overriding pkg-config
2036   HILDON2_LIBS
2037               linker flags for HILDON2, overriding pkg-config
2038   CAIRO_CFLAGS
2039               C compiler flags for CAIRO, overriding pkg-config
2040   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2041   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2042   GST_LIBS    linker flags for GST, overriding pkg-config
2043
2044 Use these variables to override the choices made by `configure' or to help
2045 it to find libraries and programs with nonstandard names/locations.
2046
2047 Report bugs to <wx-dev@lists.wxwidgets.org>.
2048 _ACEOF
2049 ac_status=$?
2050 fi
2051
2052 if test "$ac_init_help" = "recursive"; then
2053   # If there are subdirs, report their specific --help.
2054   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2055     test -d "$ac_dir" || continue
2056     ac_builddir=.
2057
2058 case "$ac_dir" in
2059 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2060 *)
2061   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2062   # A ".." for each directory in $ac_dir_suffix.
2063   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2064   case $ac_top_builddir_sub in
2065   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2066   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2067   esac ;;
2068 esac
2069 ac_abs_top_builddir=$ac_pwd
2070 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2071 # for backward compatibility:
2072 ac_top_builddir=$ac_top_build_prefix
2073
2074 case $srcdir in
2075   .)  # We are building in place.
2076     ac_srcdir=.
2077     ac_top_srcdir=$ac_top_builddir_sub
2078     ac_abs_top_srcdir=$ac_pwd ;;
2079   [\\/]* | ?:[\\/]* )  # Absolute name.
2080     ac_srcdir=$srcdir$ac_dir_suffix;
2081     ac_top_srcdir=$srcdir
2082     ac_abs_top_srcdir=$srcdir ;;
2083   *) # Relative name.
2084     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2085     ac_top_srcdir=$ac_top_build_prefix$srcdir
2086     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2087 esac
2088 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2089
2090     cd "$ac_dir" || { ac_status=$?; continue; }
2091     # Check for guested configure.
2092     if test -f "$ac_srcdir/configure.gnu"; then
2093       echo &&
2094       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2095     elif test -f "$ac_srcdir/configure"; then
2096       echo &&
2097       $SHELL "$ac_srcdir/configure" --help=recursive
2098     else
2099       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2100     fi || ac_status=$?
2101     cd "$ac_pwd" || { ac_status=$?; break; }
2102   done
2103 fi
2104
2105 test -n "$ac_init_help" && exit $ac_status
2106 if $ac_init_version; then
2107   cat <<\_ACEOF
2108 wxWidgets configure 2.9.3
2109 generated by GNU Autoconf 2.61
2110
2111 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2112 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2113 This configure script is free software; the Free Software Foundation
2114 gives unlimited permission to copy, distribute and modify it.
2115 _ACEOF
2116   exit
2117 fi
2118 cat >config.log <<_ACEOF
2119 This file contains any messages produced by compilers while
2120 running configure, to aid debugging if configure makes a mistake.
2121
2122 It was created by wxWidgets $as_me 2.9.3, which was
2123 generated by GNU Autoconf 2.61.  Invocation command line was
2124
2125   $ $0 $@
2126
2127 _ACEOF
2128 exec 5>>config.log
2129 {
2130 cat <<_ASUNAME
2131 ## --------- ##
2132 ## Platform. ##
2133 ## --------- ##
2134
2135 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2136 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2137 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2138 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2139 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2140
2141 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2142 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2143
2144 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2145 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2146 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2147 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2148 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2149 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2150 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2151
2152 _ASUNAME
2153
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2156 do
2157   IFS=$as_save_IFS
2158   test -z "$as_dir" && as_dir=.
2159   echo "PATH: $as_dir"
2160 done
2161 IFS=$as_save_IFS
2162
2163 } >&5
2164
2165 cat >&5 <<_ACEOF
2166
2167
2168 ## ----------- ##
2169 ## Core tests. ##
2170 ## ----------- ##
2171
2172 _ACEOF
2173
2174
2175 # Keep a trace of the command line.
2176 # Strip out --no-create and --no-recursion so they do not pile up.
2177 # Strip out --silent because we don't want to record it for future runs.
2178 # Also quote any args containing shell meta-characters.
2179 # Make two passes to allow for proper duplicate-argument suppression.
2180 ac_configure_args=
2181 ac_configure_args0=
2182 ac_configure_args1=
2183 ac_must_keep_next=false
2184 for ac_pass in 1 2
2185 do
2186   for ac_arg
2187   do
2188     case $ac_arg in
2189     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2190     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2191     | -silent | --silent | --silen | --sile | --sil)
2192       continue ;;
2193     *\'*)
2194       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2195     esac
2196     case $ac_pass in
2197     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2198     2)
2199       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2200       if test $ac_must_keep_next = true; then
2201         ac_must_keep_next=false # Got value, back to normal.
2202       else
2203         case $ac_arg in
2204           *=* | --config-cache | -C | -disable-* | --disable-* \
2205           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2206           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2207           | -with-* | --with-* | -without-* | --without-* | --x)
2208             case "$ac_configure_args0 " in
2209               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2210             esac
2211             ;;
2212           -* ) ac_must_keep_next=true ;;
2213         esac
2214       fi
2215       ac_configure_args="$ac_configure_args '$ac_arg'"
2216       ;;
2217     esac
2218   done
2219 done
2220 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2221 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2222
2223 # When interrupted or exit'd, cleanup temporary files, and complete
2224 # config.log.  We remove comments because anyway the quotes in there
2225 # would cause problems or look ugly.
2226 # WARNING: Use '\'' to represent an apostrophe within the trap.
2227 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2228 trap 'exit_status=$?
2229   # Save into config.log some information that might help in debugging.
2230   {
2231     echo
2232
2233     cat <<\_ASBOX
2234 ## ---------------- ##
2235 ## Cache variables. ##
2236 ## ---------------- ##
2237 _ASBOX
2238     echo
2239     # The following way of writing the cache mishandles newlines in values,
2240 (
2241   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2242     eval ac_val=\$$ac_var
2243     case $ac_val in #(
2244     *${as_nl}*)
2245       case $ac_var in #(
2246       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2247 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2248       esac
2249       case $ac_var in #(
2250       _ | IFS | as_nl) ;; #(
2251       *) $as_unset $ac_var ;;
2252       esac ;;
2253     esac
2254   done
2255   (set) 2>&1 |
2256     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2257     *${as_nl}ac_space=\ *)
2258       sed -n \
2259         "s/'\''/'\''\\\\'\'''\''/g;
2260           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2261       ;; #(
2262     *)
2263       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2264       ;;
2265     esac |
2266     sort
2267 )
2268     echo
2269
2270     cat <<\_ASBOX
2271 ## ----------------- ##
2272 ## Output variables. ##
2273 ## ----------------- ##
2274 _ASBOX
2275     echo
2276     for ac_var in $ac_subst_vars
2277     do
2278       eval ac_val=\$$ac_var
2279       case $ac_val in
2280       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281       esac
2282       echo "$ac_var='\''$ac_val'\''"
2283     done | sort
2284     echo
2285
2286     if test -n "$ac_subst_files"; then
2287       cat <<\_ASBOX
2288 ## ------------------- ##
2289 ## File substitutions. ##
2290 ## ------------------- ##
2291 _ASBOX
2292       echo
2293       for ac_var in $ac_subst_files
2294       do
2295         eval ac_val=\$$ac_var
2296         case $ac_val in
2297         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2298         esac
2299         echo "$ac_var='\''$ac_val'\''"
2300       done | sort
2301       echo
2302     fi
2303
2304     if test -s confdefs.h; then
2305       cat <<\_ASBOX
2306 ## ----------- ##
2307 ## confdefs.h. ##
2308 ## ----------- ##
2309 _ASBOX
2310       echo
2311       cat confdefs.h
2312       echo
2313     fi
2314     test "$ac_signal" != 0 &&
2315       echo "$as_me: caught signal $ac_signal"
2316     echo "$as_me: exit $exit_status"
2317   } >&5
2318   rm -f core *.core core.conftest.* &&
2319     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2320     exit $exit_status
2321 ' 0
2322 for ac_signal in 1 2 13 15; do
2323   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2324 done
2325 ac_signal=0
2326
2327 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2328 rm -f -r conftest* confdefs.h
2329
2330 # Predefined preprocessor variables.
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_NAME "$PACKAGE_NAME"
2334 _ACEOF
2335
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2339 _ACEOF
2340
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2344 _ACEOF
2345
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_STRING "$PACKAGE_STRING"
2349 _ACEOF
2350
2351
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2354 _ACEOF
2355
2356
2357 # Let the site file select an alternate cache file if it wants to.
2358 # Prefer explicitly selected file to automatically selected ones.
2359 if test -n "$CONFIG_SITE"; then
2360   set x "$CONFIG_SITE"
2361 elif test "x$prefix" != xNONE; then
2362   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2363 else
2364   set x "$ac_default_prefix/share/config.site" \
2365         "$ac_default_prefix/etc/config.site"
2366 fi
2367 shift
2368 for ac_site_file
2369 do
2370   if test -r "$ac_site_file"; then
2371     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2372 echo "$as_me: loading site script $ac_site_file" >&6;}
2373     sed 's/^/| /' "$ac_site_file" >&5
2374     . "$ac_site_file"
2375   fi
2376 done
2377
2378 if test -r "$cache_file"; then
2379   # Some versions of bash will fail to source /dev/null (special
2380   # files actually), so we avoid doing that.
2381   if test -f "$cache_file"; then
2382     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2383 echo "$as_me: loading cache $cache_file" >&6;}
2384     case $cache_file in
2385       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2386       *)                      . "./$cache_file";;
2387     esac
2388   fi
2389 else
2390   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2391 echo "$as_me: creating cache $cache_file" >&6;}
2392   >$cache_file
2393 fi
2394
2395 # Check that the precious variables saved in the cache have kept the same
2396 # value.
2397 ac_cache_corrupted=false
2398 for ac_var in $ac_precious_vars; do
2399   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400   eval ac_new_set=\$ac_env_${ac_var}_set
2401   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402   eval ac_new_val=\$ac_env_${ac_var}_value
2403   case $ac_old_set,$ac_new_set in
2404     set,)
2405       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2406 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2407       ac_cache_corrupted=: ;;
2408     ,set)
2409       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2410 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2411       ac_cache_corrupted=: ;;
2412     ,);;
2413     *)
2414       if test "x$ac_old_val" != "x$ac_new_val"; then
2415         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2416 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2417         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2418 echo "$as_me:   former value:  $ac_old_val" >&2;}
2419         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2420 echo "$as_me:   current value: $ac_new_val" >&2;}
2421         ac_cache_corrupted=:
2422       fi;;
2423   esac
2424   # Pass precious variables to config.status.
2425   if test "$ac_new_set" = set; then
2426     case $ac_new_val in
2427     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2428     *) ac_arg=$ac_var=$ac_new_val ;;
2429     esac
2430     case " $ac_configure_args " in
2431       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2432       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2433     esac
2434   fi
2435 done
2436 if $ac_cache_corrupted; then
2437   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2438 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2439   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2440 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2441    { (exit 1); exit 1; }; }
2442 fi
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468 ac_ext=c
2469 ac_cpp='$CPP $CPPFLAGS'
2470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2473
2474
2475
2476
2477
2478 ac_aux_dir=
2479 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2480   if test -f "$ac_dir/install-sh"; then
2481     ac_aux_dir=$ac_dir
2482     ac_install_sh="$ac_aux_dir/install-sh -c"
2483     break
2484   elif test -f "$ac_dir/install.sh"; then
2485     ac_aux_dir=$ac_dir
2486     ac_install_sh="$ac_aux_dir/install.sh -c"
2487     break
2488   elif test -f "$ac_dir/shtool"; then
2489     ac_aux_dir=$ac_dir
2490     ac_install_sh="$ac_aux_dir/shtool install -c"
2491     break
2492   fi
2493 done
2494 if test -z "$ac_aux_dir"; then
2495   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2496 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2497    { (exit 1); exit 1; }; }
2498 fi
2499
2500 # These three variables are undocumented and unsupported,
2501 # and are intended to be withdrawn in a future Autoconf release.
2502 # They can cause serious problems if a builder's source tree is in a directory
2503 # whose full name contains unusual characters.
2504 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2505 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2506 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2507
2508
2509 # Make sure we can run config.sub.
2510 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2511   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2512 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2513    { (exit 1); exit 1; }; }
2514
2515 { echo "$as_me:$LINENO: checking build system type" >&5
2516 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2517 if test "${ac_cv_build+set}" = set; then
2518   echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520   ac_build_alias=$build_alias
2521 test "x$ac_build_alias" = x &&
2522   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2523 test "x$ac_build_alias" = x &&
2524   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2525 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2526    { (exit 1); exit 1; }; }
2527 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2528   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2529 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2530    { (exit 1); exit 1; }; }
2531
2532 fi
2533 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2534 echo "${ECHO_T}$ac_cv_build" >&6; }
2535 case $ac_cv_build in
2536 *-*-*) ;;
2537 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2538 echo "$as_me: error: invalid value of canonical build" >&2;}
2539    { (exit 1); exit 1; }; };;
2540 esac
2541 build=$ac_cv_build
2542 ac_save_IFS=$IFS; IFS='-'
2543 set x $ac_cv_build
2544 shift
2545 build_cpu=$1
2546 build_vendor=$2
2547 shift; shift
2548 # Remember, the first character of IFS is used to create $*,
2549 # except with old shells:
2550 build_os=$*
2551 IFS=$ac_save_IFS
2552 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2553
2554
2555 { echo "$as_me:$LINENO: checking host system type" >&5
2556 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2557 if test "${ac_cv_host+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   if test "x$host_alias" = x; then
2561   ac_cv_host=$ac_cv_build
2562 else
2563   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2564     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2565 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2566    { (exit 1); exit 1; }; }
2567 fi
2568
2569 fi
2570 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2571 echo "${ECHO_T}$ac_cv_host" >&6; }
2572 case $ac_cv_host in
2573 *-*-*) ;;
2574 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2575 echo "$as_me: error: invalid value of canonical host" >&2;}
2576    { (exit 1); exit 1; }; };;
2577 esac
2578 host=$ac_cv_host
2579 ac_save_IFS=$IFS; IFS='-'
2580 set x $ac_cv_host
2581 shift
2582 host_cpu=$1
2583 host_vendor=$2
2584 shift; shift
2585 # Remember, the first character of IFS is used to create $*,
2586 # except with old shells:
2587 host_os=$*
2588 IFS=$ac_save_IFS
2589 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2590
2591
2592
2593 if test "$cross_compiling" != "no"; then
2594     HOST_PREFIX="${host_alias}-"
2595     HOST_SUFFIX="-$host_alias"
2596 else
2597     HOST_PREFIX=
2598     HOST_SUFFIX=
2599 fi
2600
2601
2602 wx_major_version_number=2
2603 wx_minor_version_number=9
2604 wx_release_number=3
2605 wx_subrelease_number=0
2606
2607 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2608 WX_VERSION=$WX_RELEASE.$wx_release_number
2609 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2610
2611 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2612
2613
2614 wx_top_builddir="`pwd`"
2615
2616
2617
2618
2619 USE_UNIX=1
2620 USE_OS2=0
2621 USE_WIN32=0
2622 USE_DOS=0
2623 USE_BEOS=0
2624 USE_MAC=0
2625
2626 USE_AIX=
2627 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2628 USE_GNU=                            USE_HPUX=
2629 USE_LINUX=
2630 USE_NETBSD=
2631 USE_OPENBSD=
2632 USE_OSF=                            USE_SGI=
2633 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2634 USE_ULTRIX=
2635 USE_UNIXWARE=
2636
2637 USE_ALPHA=
2638
2639 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2640
2641 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
2642
2643 DEFAULT_wxUSE_OLD_COCOA=0
2644 DEFAULT_wxUSE_GTK=0
2645 DEFAULT_wxUSE_OSX_CARBON=0
2646 DEFAULT_wxUSE_OSX_COCOA=0
2647 DEFAULT_wxUSE_OSX_IPHONE=0
2648 DEFAULT_wxUSE_MGL=0
2649 DEFAULT_wxUSE_MICROWIN=0
2650 DEFAULT_wxUSE_MOTIF=0
2651 DEFAULT_wxUSE_MSW=0
2652 DEFAULT_wxUSE_PM=0
2653 DEFAULT_wxUSE_X11=0
2654 DEFAULT_wxUSE_DFB=0
2655
2656 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2657 DEFAULT_DEFAULT_wxUSE_GTK=0
2658 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2659 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2660 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2661 DEFAULT_DEFAULT_wxUSE_MGL=0
2662 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2663 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2664 DEFAULT_DEFAULT_wxUSE_MSW=0
2665 DEFAULT_DEFAULT_wxUSE_PM=0
2666 DEFAULT_DEFAULT_wxUSE_X11=0
2667 DEFAULT_DEFAULT_wxUSE_DFB=0
2668
2669 PROGRAM_EXT=
2670 SAMPLES_RPATH_FLAG=
2671 DYLIB_RPATH_INSTALL=
2672 DYLIB_RPATH_POSTLINK=
2673
2674 DEFAULT_STD_FLAG=yes
2675
2676 case "${host}" in
2677   *-hp-hpux* )
2678     USE_HPUX=1
2679     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2680     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2681     cat >>confdefs.h <<\_ACEOF
2682 #define __HPUX__ 1
2683 _ACEOF
2684
2685
2686             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2687   ;;
2688   *-*-linux* )
2689     USE_LINUX=1
2690     cat >>confdefs.h <<\_ACEOF
2691 #define __LINUX__ 1
2692 _ACEOF
2693
2694     TMP=`uname -m`
2695     if test "x$TMP" = "xalpha"; then
2696       USE_ALPHA=1
2697       cat >>confdefs.h <<\_ACEOF
2698 #define __ALPHA__ 1
2699 _ACEOF
2700
2701     fi
2702     DEFAULT_DEFAULT_wxUSE_GTK=1
2703   ;;
2704   *-*-gnu* | *-*-k*bsd*-gnu )
2705     USE_GNU=1
2706     TMP=`uname -m`
2707     if test "x$TMP" = "xalpha"; then
2708       USE_ALPHA=1
2709       cat >>confdefs.h <<\_ACEOF
2710 #define __ALPHA__ 1
2711 _ACEOF
2712
2713     fi
2714     DEFAULT_DEFAULT_wxUSE_GTK=1
2715   ;;
2716   *-*-irix5* | *-*-irix6* )
2717     USE_SGI=1
2718     USE_SVR4=1
2719     cat >>confdefs.h <<\_ACEOF
2720 #define __SGI__ 1
2721 _ACEOF
2722
2723     cat >>confdefs.h <<\_ACEOF
2724 #define __SVR4__ 1
2725 _ACEOF
2726
2727     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2728   ;;
2729   *-*-qnx*)
2730     USE_QNX=1
2731     cat >>confdefs.h <<\_ACEOF
2732 #define __QNX__ 1
2733 _ACEOF
2734
2735     DEFAULT_DEFAULT_wxUSE_X11=1
2736   ;;
2737   *-*-solaris2* )
2738     USE_SUN=1
2739     USE_SOLARIS=1
2740     USE_SVR4=1
2741     cat >>confdefs.h <<\_ACEOF
2742 #define __SUN__ 1
2743 _ACEOF
2744
2745     cat >>confdefs.h <<\_ACEOF
2746 #define __SOLARIS__ 1
2747 _ACEOF
2748
2749     cat >>confdefs.h <<\_ACEOF
2750 #define __SVR4__ 1
2751 _ACEOF
2752
2753     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2754     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2755   ;;
2756   *-*-sunos4* )
2757     USE_SUN=1
2758     USE_SUNOS=1
2759     USE_BSD=1
2760     cat >>confdefs.h <<\_ACEOF
2761 #define __SUN__ 1
2762 _ACEOF
2763
2764     cat >>confdefs.h <<\_ACEOF
2765 #define __SUNOS__ 1
2766 _ACEOF
2767
2768     cat >>confdefs.h <<\_ACEOF
2769 #define __BSD__ 1
2770 _ACEOF
2771
2772     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2773   ;;
2774   *-*-freebsd*)
2775     USE_BSD=1
2776     USE_FREEBSD=1
2777     cat >>confdefs.h <<\_ACEOF
2778 #define __FREEBSD__ 1
2779 _ACEOF
2780
2781     cat >>confdefs.h <<\_ACEOF
2782 #define __BSD__ 1
2783 _ACEOF
2784
2785     DEFAULT_DEFAULT_wxUSE_GTK=1
2786   ;;
2787   *-*-openbsd*|*-*-mirbsd*)
2788     USE_BSD=1
2789     USE_OPENBSD=1
2790     cat >>confdefs.h <<\_ACEOF
2791 #define __OPENBSD__ 1
2792 _ACEOF
2793
2794     cat >>confdefs.h <<\_ACEOF
2795 #define __BSD__ 1
2796 _ACEOF
2797
2798     DEFAULT_DEFAULT_wxUSE_GTK=1
2799   ;;
2800   *-*-netbsd*)
2801     USE_BSD=1
2802     USE_NETBSD=1
2803     cat >>confdefs.h <<\_ACEOF
2804 #define __NETBSD__ 1
2805 _ACEOF
2806
2807     cat >>confdefs.h <<\_ACEOF
2808 #define __BSD__ 1
2809 _ACEOF
2810
2811     DEFAULT_DEFAULT_wxUSE_GTK=1
2812     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2813
2814             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2815   ;;
2816   *-*-osf* )
2817     USE_ALPHA=1
2818     USE_OSF=1
2819     cat >>confdefs.h <<\_ACEOF
2820 #define __ALPHA__ 1
2821 _ACEOF
2822
2823     cat >>confdefs.h <<\_ACEOF
2824 #define __OSF__ 1
2825 _ACEOF
2826
2827     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2828     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2829   ;;
2830   *-*-dgux5* )
2831     USE_ALPHA=1
2832     USE_SVR4=1
2833     cat >>confdefs.h <<\_ACEOF
2834 #define __ALPHA__ 1
2835 _ACEOF
2836
2837     cat >>confdefs.h <<\_ACEOF
2838 #define __SVR4__ 1
2839 _ACEOF
2840
2841     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2842   ;;
2843   *-*-sysv5* )
2844     USE_SYSV=1
2845     USE_SVR4=1
2846     cat >>confdefs.h <<\_ACEOF
2847 #define __SYSV__ 1
2848 _ACEOF
2849
2850     cat >>confdefs.h <<\_ACEOF
2851 #define __SVR4__ 1
2852 _ACEOF
2853
2854     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2855   ;;
2856   *-*-aix* )
2857     USE_AIX=1
2858     USE_SYSV=1
2859     USE_SVR4=1
2860     cat >>confdefs.h <<\_ACEOF
2861 #define __AIX__ 1
2862 _ACEOF
2863
2864     cat >>confdefs.h <<\_ACEOF
2865 #define __SYSV__ 1
2866 _ACEOF
2867
2868     cat >>confdefs.h <<\_ACEOF
2869 #define __SVR4__ 1
2870 _ACEOF
2871
2872     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2873   ;;
2874
2875   *-*-*UnixWare*)
2876     USE_SYSV=1
2877     USE_SVR4=1
2878     USE_UNIXWARE=1
2879     cat >>confdefs.h <<\_ACEOF
2880 #define __UNIXWARE__ 1
2881 _ACEOF
2882
2883   ;;
2884
2885   *-*-cygwin* | *-*-mingw32* )
2886                 PROGRAM_EXT=".exe"
2887     DEFAULT_DEFAULT_wxUSE_MSW=1
2888   ;;
2889
2890   *-pc-msdosdjgpp )
2891     USE_UNIX=0
2892     USE_DOS=1
2893     cat >>confdefs.h <<\_ACEOF
2894 #define __DOS__ 1
2895 _ACEOF
2896
2897     PROGRAM_EXT=".exe"
2898     DEFAULT_DEFAULT_wxUSE_MGL=1
2899   ;;
2900
2901   *-pc-os2_emx | *-pc-os2-emx )
2902     cat >>confdefs.h <<\_ACEOF
2903 #define __EMX__ 1
2904 _ACEOF
2905
2906     USE_OS2=1
2907     cat >>confdefs.h <<\_ACEOF
2908 #define __OS2__ 1
2909 _ACEOF
2910
2911     PROGRAM_EXT=".exe"
2912     DEFAULT_DEFAULT_wxUSE_PM=1
2913         CXX=gcc
2914     LDFLAGS="$LDFLAGS -Zcrtdll"
2915                         ac_executable_extensions=".exe"
2916     export ac_executable_extensions
2917             ac_save_IFS="$IFS"
2918     IFS='\\'
2919     ac_TEMP_PATH=
2920     for ac_dir in $PATH; do
2921       IFS=$ac_save_IFS
2922       if test -z "$ac_TEMP_PATH"; then
2923         ac_TEMP_PATH="$ac_dir"
2924       else
2925         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2926       fi
2927     done
2928     export PATH="$ac_TEMP_PATH"
2929     unset ac_TEMP_PATH
2930     DEFAULT_STD_FLAG=no
2931   ;;
2932
2933   arm-apple-darwin*)
2934         USE_BSD=1
2935     USE_DARWIN=1
2936     cat >>confdefs.h <<\_ACEOF
2937 #define __BSD__ 1
2938 _ACEOF
2939
2940     cat >>confdefs.h <<\_ACEOF
2941 #define __DARWIN__ 1
2942 _ACEOF
2943
2944     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2945   ;;
2946
2947   *-*-darwin* )
2948         USE_BSD=1
2949     USE_DARWIN=1
2950     cat >>confdefs.h <<\_ACEOF
2951 #define __BSD__ 1
2952 _ACEOF
2953
2954     cat >>confdefs.h <<\_ACEOF
2955 #define __DARWIN__ 1
2956 _ACEOF
2957
2958     cat >>confdefs.h <<\_ACEOF
2959 #define TARGET_CARBON 1
2960 _ACEOF
2961
2962     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2963   ;;
2964
2965   *-*-beos* )
2966         USE_BEOS=1
2967     cat >>confdefs.h <<\_ACEOF
2968 #define __BEOS__ 1
2969 _ACEOF
2970
2971   ;;
2972
2973   *)
2974     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2975 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2976     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2977 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2978
2979     DEFAULT_DEFAULT_wxUSE_X11=1
2980     DEFAULT_wxUSE_SHARED=no
2981 esac
2982
2983
2984
2985 DEFAULT_wxUSE_ALL_FEATURES=yes
2986
2987 DEFAULT_wxUSE_STD_CONTAINERS=no
2988 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2989 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2990
2991 DEFAULT_wxUSE_DMALLOC=no
2992 DEFAULT_wxUSE_LIBGNOMEVFS=no
2993 DEFAULT_wxUSE_LIBHILDON=no
2994 DEFAULT_wxUSE_LIBHILDON2=no
2995 DEFAULT_wxUSE_LIBMSPACK=no
2996 DEFAULT_wxUSE_LIBSDL=no
2997
2998 DEFAULT_wxUSE_ACCESSIBILITY=no
2999 DEFAULT_wxUSE_IPV6=no
3000 DEFAULT_wxUSE_GSTREAMER8=no
3001
3002 DEFAULT_wxUSE_ARTPROVIDER_TANGO=auto
3003 DEFAULT_wxUSE_UNICODE_UTF8=auto
3004 DEFAULT_wxUSE_OPENGL=auto
3005 DEFAULT_wxUSE_MEDIACTRL=auto
3006 DEFAULT_wxUSE_COMPILER_TLS=auto
3007 DEFAULT_wxUSE_HOTKEY=auto
3008 DEFAULT_wxUSE_METAFILE=auto
3009
3010 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
3011
3012 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3013 DEFAULT_wxUSE_MAC_ARCH=no
3014
3015 DEFAULT_wxUSE_OFFICIAL_BUILD=no
3016
3017 DEFAULT_wxUSE_GTK2=yes
3018
3019 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3020
3021
3022
3023
3024
3025           enablestring=disable
3026           defaultval=
3027           if test -z "$defaultval"; then
3028               if test x"$enablestring" = xdisable; then
3029                   defaultval=yes
3030               else
3031                   defaultval=no
3032               fi
3033           fi
3034
3035           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3036 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3037           # Check whether --enable-gui was given.
3038 if test "${enable_gui+set}" = set; then
3039   enableval=$enable_gui;
3040                           if test "$enableval" = yes; then
3041                             wx_cv_use_gui='wxUSE_GUI=yes'
3042                           else
3043                             wx_cv_use_gui='wxUSE_GUI=no'
3044                           fi
3045
3046 else
3047
3048                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3049
3050 fi
3051
3052
3053           eval "$wx_cv_use_gui"
3054
3055           if test x"$enablestring" = xdisable; then
3056             if test $wxUSE_GUI = no; then
3057               result=yes
3058             else
3059               result=no
3060             fi
3061           else
3062             result=$wxUSE_GUI
3063           fi
3064
3065           { echo "$as_me:$LINENO: result: $result" >&5
3066 echo "${ECHO_T}$result" >&6; }
3067
3068
3069           enablestring=
3070           defaultval=
3071           if test -z "$defaultval"; then
3072               if test x"$enablestring" = xdisable; then
3073                   defaultval=yes
3074               else
3075                   defaultval=no
3076               fi
3077           fi
3078
3079           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3080 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3081           # Check whether --enable-monolithic was given.
3082 if test "${enable_monolithic+set}" = set; then
3083   enableval=$enable_monolithic;
3084                           if test "$enableval" = yes; then
3085                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3086                           else
3087                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3088                           fi
3089
3090 else
3091
3092                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3093
3094 fi
3095
3096
3097           eval "$wx_cv_use_monolithic"
3098
3099           if test x"$enablestring" = xdisable; then
3100             if test $wxUSE_MONOLITHIC = no; then
3101               result=yes
3102             else
3103               result=no
3104             fi
3105           else
3106             result=$wxUSE_MONOLITHIC
3107           fi
3108
3109           { echo "$as_me:$LINENO: result: $result" >&5
3110 echo "${ECHO_T}$result" >&6; }
3111
3112
3113           enablestring=
3114           defaultval=
3115           if test -z "$defaultval"; then
3116               if test x"$enablestring" = xdisable; then
3117                   defaultval=yes
3118               else
3119                   defaultval=no
3120               fi
3121           fi
3122
3123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3124 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3125           # Check whether --enable-plugins was given.
3126 if test "${enable_plugins+set}" = set; then
3127   enableval=$enable_plugins;
3128                           if test "$enableval" = yes; then
3129                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3130                           else
3131                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3132                           fi
3133
3134 else
3135
3136                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3137
3138 fi
3139
3140
3141           eval "$wx_cv_use_plugins"
3142
3143           if test x"$enablestring" = xdisable; then
3144             if test $wxUSE_PLUGINS = no; then
3145               result=yes
3146             else
3147               result=no
3148             fi
3149           else
3150             result=$wxUSE_PLUGINS
3151           fi
3152
3153           { echo "$as_me:$LINENO: result: $result" >&5
3154 echo "${ECHO_T}$result" >&6; }
3155
3156
3157           withstring=without
3158           defaultval=$wxUSE_ALL_FEATURES
3159           if test -z "$defaultval"; then
3160               if test x"$withstring" = xwithout; then
3161                   defaultval=yes
3162               else
3163                   defaultval=no
3164               fi
3165           fi
3166           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3167 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3168
3169 # Check whether --with-subdirs was given.
3170 if test "${with_subdirs+set}" = set; then
3171   withval=$with_subdirs;
3172                         if test "$withval" = yes; then
3173                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3174                         else
3175                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3176                         fi
3177
3178 else
3179
3180                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3181
3182 fi
3183
3184
3185           eval "$wx_cv_use_subdirs"
3186
3187           if test x"$withstring" = xwithout; then
3188             if test $wxWITH_SUBDIRS = yes; then
3189               result=no
3190             else
3191               result=yes
3192             fi
3193           else
3194             result=$wxWITH_SUBDIRS
3195           fi
3196
3197           { echo "$as_me:$LINENO: result: $result" >&5
3198 echo "${ECHO_T}$result" >&6; }
3199
3200
3201 # Check whether --with-flavour was given.
3202 if test "${with_flavour+set}" = set; then
3203   withval=$with_flavour; WX_FLAVOUR="$withval"
3204 fi
3205
3206
3207           enablestring=
3208           defaultval=
3209           if test -z "$defaultval"; then
3210               if test x"$enablestring" = xdisable; then
3211                   defaultval=yes
3212               else
3213                   defaultval=no
3214               fi
3215           fi
3216
3217           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3218 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3219           # Check whether --enable-official_build was given.
3220 if test "${enable_official_build+set}" = set; then
3221   enableval=$enable_official_build;
3222                           if test "$enableval" = yes; then
3223                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3224                           else
3225                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3226                           fi
3227
3228 else
3229
3230                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3231
3232 fi
3233
3234
3235           eval "$wx_cv_use_official_build"
3236
3237           if test x"$enablestring" = xdisable; then
3238             if test $wxUSE_OFFICIAL_BUILD = no; then
3239               result=yes
3240             else
3241               result=no
3242             fi
3243           else
3244             result=$wxUSE_OFFICIAL_BUILD
3245           fi
3246
3247           { echo "$as_me:$LINENO: result: $result" >&5
3248 echo "${ECHO_T}$result" >&6; }
3249
3250 # Check whether --enable-vendor was given.
3251 if test "${enable_vendor+set}" = set; then
3252   enableval=$enable_vendor; VENDOR="$enableval"
3253 fi
3254
3255 if test "x$VENDOR" = "x"; then
3256     VENDOR="custom"
3257 fi
3258
3259
3260           enablestring=disable
3261           defaultval=
3262           if test -z "$defaultval"; then
3263               if test x"$enablestring" = xdisable; then
3264                   defaultval=yes
3265               else
3266                   defaultval=no
3267               fi
3268           fi
3269
3270           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3271 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3272           # Check whether --enable-all-features was given.
3273 if test "${enable_all_features+set}" = set; then
3274   enableval=$enable_all_features;
3275                           if test "$enableval" = yes; then
3276                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3277                           else
3278                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3279                           fi
3280
3281 else
3282
3283                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3284
3285 fi
3286
3287
3288           eval "$wx_cv_use_all_features"
3289
3290           if test x"$enablestring" = xdisable; then
3291             if test $wxUSE_ALL_FEATURES = no; then
3292               result=yes
3293             else
3294               result=no
3295             fi
3296           else
3297             result=$wxUSE_ALL_FEATURES
3298           fi
3299
3300           { echo "$as_me:$LINENO: result: $result" >&5
3301 echo "${ECHO_T}$result" >&6; }
3302
3303
3304 if test "$wxUSE_ALL_FEATURES" = "no"; then
3305                     DEFAULT_wxUSE_ARTPROVIDER_TANGO=no
3306     DEFAULT_wxUSE_MEDIACTRL=no
3307 fi
3308
3309
3310 if test "$wxUSE_GUI" = "yes"; then
3311
3312
3313           enablestring=
3314           defaultval=
3315           if test -z "$defaultval"; then
3316               if test x"$enablestring" = xdisable; then
3317                   defaultval=yes
3318               else
3319                   defaultval=no
3320               fi
3321           fi
3322
3323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3324 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3325           # Check whether --enable-universal was given.
3326 if test "${enable_universal+set}" = set; then
3327   enableval=$enable_universal;
3328                           if test "$enableval" = yes; then
3329                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3330                           else
3331                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3332                           fi
3333
3334 else
3335
3336                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3337
3338 fi
3339
3340
3341           eval "$wx_cv_use_universal"
3342
3343           if test x"$enablestring" = xdisable; then
3344             if test $wxUSE_UNIVERSAL = no; then
3345               result=yes
3346             else
3347               result=no
3348             fi
3349           else
3350             result=$wxUSE_UNIVERSAL
3351           fi
3352
3353           { echo "$as_me:$LINENO: result: $result" >&5
3354 echo "${ECHO_T}$result" >&6; }
3355
3356 if test "$wxUSE_UNIVERSAL" = "yes"; then
3357
3358 # Check whether --with-themes was given.
3359 if test "${with_themes+set}" = set; then
3360   withval=$with_themes; wxUNIV_THEMES="$withval"
3361 fi
3362
3363 fi
3364
3365
3366 # Check whether --with-gtk was given.
3367 if test "${with_gtk+set}" = set; then
3368   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3369 fi
3370
3371
3372 # Check whether --with-motif was given.
3373 if test "${with_motif+set}" = set; then
3374   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3375 fi
3376
3377
3378 # Check whether --with-osx_carbon was given.
3379 if test "${with_osx_carbon+set}" = set; then
3380   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3381 fi
3382
3383
3384 # Check whether --with-osx_cocoa was given.
3385 if test "${with_osx_cocoa+set}" = set; then
3386   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3387 fi
3388
3389
3390 # Check whether --with-osx_iphone was given.
3391 if test "${with_osx_iphone+set}" = set; then
3392   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3393 fi
3394
3395
3396 # Check whether --with-osx was given.
3397 if test "${with_osx+set}" = set; then
3398   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3399 fi
3400
3401
3402 # Check whether --with-carbon was given.
3403 if test "${with_carbon+set}" = set; then
3404   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3405 fi
3406
3407
3408 # Check whether --with-cocoa was given.
3409 if test "${with_cocoa+set}" = set; then
3410   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3411 fi
3412
3413
3414 # Check whether --with-iphone was given.
3415 if test "${with_iphone+set}" = set; then
3416   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3417 fi
3418
3419
3420 # Check whether --with-mac was given.
3421 if test "${with_mac+set}" = set; then
3422   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3423 fi
3424
3425
3426 # Check whether --with-old_cocoa was given.
3427 if test "${with_old_cocoa+set}" = set; then
3428   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3429 fi
3430
3431
3432 # Check whether --with-wine was given.
3433 if test "${with_wine+set}" = set; then
3434   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3435 fi
3436
3437
3438 # Check whether --with-msw was given.
3439 if test "${with_msw+set}" = set; then
3440   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3441 fi
3442
3443
3444 # Check whether --with-pm was given.
3445 if test "${with_pm+set}" = set; then
3446   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3447 fi
3448
3449
3450 # Check whether --with-mgl was given.
3451 if test "${with_mgl+set}" = set; then
3452   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3453 fi
3454
3455
3456 # Check whether --with-directfb was given.
3457 if test "${with_directfb+set}" = set; then
3458   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3459 fi
3460
3461
3462 # Check whether --with-microwin was given.
3463 if test "${with_microwin+set}" = set; then
3464   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3465 fi
3466
3467
3468 # Check whether --with-x11 was given.
3469 if test "${with_x11+set}" = set; then
3470   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3471 fi
3472
3473
3474           enablestring=
3475           defaultval=
3476           if test -z "$defaultval"; then
3477               if test x"$enablestring" = xdisable; then
3478                   defaultval=yes
3479               else
3480                   defaultval=no
3481               fi
3482           fi
3483
3484           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3485 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3486           # Check whether --enable-nanox was given.
3487 if test "${enable_nanox+set}" = set; then
3488   enableval=$enable_nanox;
3489                           if test "$enableval" = yes; then
3490                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3491                           else
3492                             wx_cv_use_nanox='wxUSE_NANOX=no'
3493                           fi
3494
3495 else
3496
3497                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3498
3499 fi
3500
3501
3502           eval "$wx_cv_use_nanox"
3503
3504           if test x"$enablestring" = xdisable; then
3505             if test $wxUSE_NANOX = no; then
3506               result=yes
3507             else
3508               result=no
3509             fi
3510           else
3511             result=$wxUSE_NANOX
3512           fi
3513
3514           { echo "$as_me:$LINENO: result: $result" >&5
3515 echo "${ECHO_T}$result" >&6; }
3516
3517
3518 # Check whether --enable-gtk2 was given.
3519 if test "${enable_gtk2+set}" = set; then
3520   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3521 fi
3522
3523
3524           enablestring=
3525           defaultval=
3526           if test -z "$defaultval"; then
3527               if test x"$enablestring" = xdisable; then
3528                   defaultval=yes
3529               else
3530                   defaultval=no
3531               fi
3532           fi
3533
3534           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3535 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3536           # Check whether --enable-gpe was given.
3537 if test "${enable_gpe+set}" = set; then
3538   enableval=$enable_gpe;
3539                           if test "$enableval" = yes; then
3540                             wx_cv_use_gpe='wxUSE_GPE=yes'
3541                           else
3542                             wx_cv_use_gpe='wxUSE_GPE=no'
3543                           fi
3544
3545 else
3546
3547                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3548
3549 fi
3550
3551
3552           eval "$wx_cv_use_gpe"
3553
3554           if test x"$enablestring" = xdisable; then
3555             if test $wxUSE_GPE = no; then
3556               result=yes
3557             else
3558               result=no
3559             fi
3560           else
3561             result=$wxUSE_GPE
3562           fi
3563
3564           { echo "$as_me:$LINENO: result: $result" >&5
3565 echo "${ECHO_T}$result" >&6; }
3566
3567
3568
3569 { echo "$as_me:$LINENO: checking for toolkit" >&5
3570 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3571
3572
3573
3574 # In Wine, we need to default to MSW, not GTK or MOTIF
3575 if test "$wxUSE_WINE" = "yes"; then
3576     DEFAULT_DEFAULT_wxUSE_GTK=0
3577     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3578     DEFAULT_DEFAULT_wxUSE_MSW=1
3579     wxUSE_SHARED=no
3580     CC=${CC:-winegcc}
3581     CXX=${CXX:-wineg++}
3582 fi
3583
3584
3585 if test "$wxUSE_GUI" = "yes"; then
3586
3587     if test "$USE_BEOS" = 1; then
3588         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3589 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3590    { (exit 1); exit 1; }; }
3591     fi
3592
3593     if test "$TOOLKIT_GIVEN" = 1; then
3594             for toolkit in $ALL_TOOLKITS; do
3595         var=wxUSE_$toolkit
3596         eval "value=\$${var}"
3597         if test "x$value" = "xno"; then
3598           eval "$var=0"
3599         elif test "x$value" != "x"; then
3600           eval "$var=1"
3601         fi
3602
3603         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3604           eval "wx${toolkit}_VERSION=$value"
3605         fi
3606       done
3607     else
3608             for toolkit in $ALL_TOOLKITS; do
3609         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3610         eval "wxUSE_$toolkit=\$${var}"
3611       done
3612     fi
3613
3614             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3615                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3616                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3617
3618         case "${host}" in
3619       *-pc-os2_emx | *-pc-os2-emx )
3620         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3621     esac
3622
3623     case "$NUM_TOOLKITS" in
3624       1)
3625       ;;
3626       0)
3627         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3628 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3629    { (exit 1); exit 1; }; }
3630       ;;
3631       *)
3632         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3633 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3634    { (exit 1); exit 1; }; }
3635     esac
3636
3637     # to be removed when --disable-gtk2 isn't needed
3638     if test "x$wxUSE_GTK2" = "xyes"; then
3639         wxGTK_VERSION=2
3640         wxUSE_GTK1=0
3641     elif test "x$wxUSE_GTK2" = "xno"; then
3642         wxGTK_VERSION=1
3643         wxUSE_GTK1=1
3644     fi
3645
3646     for toolkit in $ALL_TOOLKITS; do
3647         var=wxUSE_$toolkit
3648         eval "value=\$${var}"
3649         if test "$value" = 1; then
3650           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3651           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3652 echo "${ECHO_T}$toolkit_echo" >&6; }
3653         fi
3654     done
3655 else
3656     if test "x$host_alias" != "x"; then
3657         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3658 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3659     else
3660         { echo "$as_me:$LINENO: result: base only" >&5
3661 echo "${ECHO_T}base only" >&6; }
3662     fi
3663 fi
3664
3665 wxUSE_MAC=0
3666 if test "$wxUSE_OSX_CARBON" = 1 \
3667        -o "$wxUSE_OSX_COCOA" = 1 \
3668        -o "$wxUSE_OSX_IPHONE" = 1; then
3669     wxUSE_MAC=1
3670 fi
3671
3672
3673
3674           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3675 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3676
3677 # Check whether --with-libpng was given.
3678 if test "${with_libpng+set}" = set; then
3679   withval=$with_libpng;
3680                         if test "$withval" = yes; then
3681                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3682                         elif test "$withval" = no; then
3683                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3684                         elif test "$withval" = sys; then
3685                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3686                         elif test "$withval" = builtin; then
3687                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3688                         else
3689                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3690 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3691    { (exit 1); exit 1; }; }
3692                         fi
3693
3694 else
3695
3696                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3697
3698 fi
3699
3700
3701           eval "$wx_cv_use_libpng"
3702
3703           if test "$wxUSE_LIBPNG" = yes; then
3704             { echo "$as_me:$LINENO: result: yes" >&5
3705 echo "${ECHO_T}yes" >&6; }
3706           elif test "$wxUSE_LIBPNG" = no; then
3707             { echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6; }
3709           elif test "$wxUSE_LIBPNG" = sys; then
3710             { echo "$as_me:$LINENO: result: system version" >&5
3711 echo "${ECHO_T}system version" >&6; }
3712           elif test "$wxUSE_LIBPNG" = builtin; then
3713             { echo "$as_me:$LINENO: result: builtin version" >&5
3714 echo "${ECHO_T}builtin version" >&6; }
3715           else
3716             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3717 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3718    { (exit 1); exit 1; }; }
3719           fi
3720
3721
3722           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3723 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3724
3725 # Check whether --with-libjpeg was given.
3726 if test "${with_libjpeg+set}" = set; then
3727   withval=$with_libjpeg;
3728                         if test "$withval" = yes; then
3729                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3730                         elif test "$withval" = no; then
3731                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3732                         elif test "$withval" = sys; then
3733                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3734                         elif test "$withval" = builtin; then
3735                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3736                         else
3737                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3738 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3739    { (exit 1); exit 1; }; }
3740                         fi
3741
3742 else
3743
3744                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3745
3746 fi
3747
3748
3749           eval "$wx_cv_use_libjpeg"
3750
3751           if test "$wxUSE_LIBJPEG" = yes; then
3752             { echo "$as_me:$LINENO: result: yes" >&5
3753 echo "${ECHO_T}yes" >&6; }
3754           elif test "$wxUSE_LIBJPEG" = no; then
3755             { echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6; }
3757           elif test "$wxUSE_LIBJPEG" = sys; then
3758             { echo "$as_me:$LINENO: result: system version" >&5
3759 echo "${ECHO_T}system version" >&6; }
3760           elif test "$wxUSE_LIBJPEG" = builtin; then
3761             { echo "$as_me:$LINENO: result: builtin version" >&5
3762 echo "${ECHO_T}builtin version" >&6; }
3763           else
3764             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3765 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3766    { (exit 1); exit 1; }; }
3767           fi
3768
3769
3770           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3771 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3772
3773 # Check whether --with-libtiff was given.
3774 if test "${with_libtiff+set}" = set; then
3775   withval=$with_libtiff;
3776                         if test "$withval" = yes; then
3777                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3778                         elif test "$withval" = no; then
3779                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3780                         elif test "$withval" = sys; then
3781                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3782                         elif test "$withval" = builtin; then
3783                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3784                         else
3785                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3786 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3787    { (exit 1); exit 1; }; }
3788                         fi
3789
3790 else
3791
3792                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3793
3794 fi
3795
3796
3797           eval "$wx_cv_use_libtiff"
3798
3799           if test "$wxUSE_LIBTIFF" = yes; then
3800             { echo "$as_me:$LINENO: result: yes" >&5
3801 echo "${ECHO_T}yes" >&6; }
3802           elif test "$wxUSE_LIBTIFF" = no; then
3803             { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3805           elif test "$wxUSE_LIBTIFF" = sys; then
3806             { echo "$as_me:$LINENO: result: system version" >&5
3807 echo "${ECHO_T}system version" >&6; }
3808           elif test "$wxUSE_LIBTIFF" = builtin; then
3809             { echo "$as_me:$LINENO: result: builtin version" >&5
3810 echo "${ECHO_T}builtin version" >&6; }
3811           else
3812             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3813 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3814    { (exit 1); exit 1; }; }
3815           fi
3816
3817
3818           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3819 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3820
3821 # Check whether --with-libxpm was given.
3822 if test "${with_libxpm+set}" = set; then
3823   withval=$with_libxpm;
3824                         if test "$withval" = yes; then
3825                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3826                         elif test "$withval" = no; then
3827                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3828                         elif test "$withval" = sys; then
3829                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3830                         elif test "$withval" = builtin; then
3831                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3832                         else
3833                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3834 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3835    { (exit 1); exit 1; }; }
3836                         fi
3837
3838 else
3839
3840                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3841
3842 fi
3843
3844
3845           eval "$wx_cv_use_libxpm"
3846
3847           if test "$wxUSE_LIBXPM" = yes; then
3848             { echo "$as_me:$LINENO: result: yes" >&5
3849 echo "${ECHO_T}yes" >&6; }
3850           elif test "$wxUSE_LIBXPM" = no; then
3851             { echo "$as_me:$LINENO: result: no" >&5
3852 echo "${ECHO_T}no" >&6; }
3853           elif test "$wxUSE_LIBXPM" = sys; then
3854             { echo "$as_me:$LINENO: result: system version" >&5
3855 echo "${ECHO_T}system version" >&6; }
3856           elif test "$wxUSE_LIBXPM" = builtin; then
3857             { echo "$as_me:$LINENO: result: builtin version" >&5
3858 echo "${ECHO_T}builtin version" >&6; }
3859           else
3860             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3861 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3862    { (exit 1); exit 1; }; }
3863           fi
3864
3865
3866           withstring=
3867           defaultval=$wxUSE_ALL_FEATURES
3868           if test -z "$defaultval"; then
3869               if test x"$withstring" = xwithout; then
3870                   defaultval=yes
3871               else
3872                   defaultval=no
3873               fi
3874           fi
3875           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3876 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3877
3878 # Check whether --with-libiconv was given.
3879 if test "${with_libiconv+set}" = set; then
3880   withval=$with_libiconv;
3881                         if test "$withval" = yes; then
3882                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3883                         else
3884                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3885                         fi
3886
3887 else
3888
3889                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3890
3891 fi
3892
3893
3894           eval "$wx_cv_use_libiconv"
3895
3896           if test x"$withstring" = xwithout; then
3897             if test $wxUSE_LIBICONV = yes; then
3898               result=no
3899             else
3900               result=yes
3901             fi
3902           else
3903             result=$wxUSE_LIBICONV
3904           fi
3905
3906           { echo "$as_me:$LINENO: result: $result" >&5
3907 echo "${ECHO_T}$result" >&6; }
3908
3909
3910           withstring=
3911           defaultval=$wxUSE_ALL_FEATURES
3912           if test -z "$defaultval"; then
3913               if test x"$withstring" = xwithout; then
3914                   defaultval=yes
3915               else
3916                   defaultval=no
3917               fi
3918           fi
3919           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3920 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3921
3922 # Check whether --with-libmspack was given.
3923 if test "${with_libmspack+set}" = set; then
3924   withval=$with_libmspack;
3925                         if test "$withval" = yes; then
3926                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3927                         else
3928                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3929                         fi
3930
3931 else
3932
3933                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3934
3935 fi
3936
3937
3938           eval "$wx_cv_use_libmspack"
3939
3940           if test x"$withstring" = xwithout; then
3941             if test $wxUSE_LIBMSPACK = yes; then
3942               result=no
3943             else
3944               result=yes
3945             fi
3946           else
3947             result=$wxUSE_LIBMSPACK
3948           fi
3949
3950           { echo "$as_me:$LINENO: result: $result" >&5
3951 echo "${ECHO_T}$result" >&6; }
3952
3953
3954           withstring=without
3955           defaultval=$wxUSE_ALL_FEATURES
3956           if test -z "$defaultval"; then
3957               if test x"$withstring" = xwithout; then
3958                   defaultval=yes
3959               else
3960                   defaultval=no
3961               fi
3962           fi
3963           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3964 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3965
3966 # Check whether --with-gtkprint was given.
3967 if test "${with_gtkprint+set}" = set; then
3968   withval=$with_gtkprint;
3969                         if test "$withval" = yes; then
3970                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3971                         else
3972                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3973                         fi
3974
3975 else
3976
3977                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3978
3979 fi
3980
3981
3982           eval "$wx_cv_use_gtkprint"
3983
3984           if test x"$withstring" = xwithout; then
3985             if test $wxUSE_GTKPRINT = yes; then
3986               result=no
3987             else
3988               result=yes
3989             fi
3990           else
3991             result=$wxUSE_GTKPRINT
3992           fi
3993
3994           { echo "$as_me:$LINENO: result: $result" >&5
3995 echo "${ECHO_T}$result" >&6; }
3996
3997
3998           withstring=without
3999           defaultval=$wxUSE_ALL_FEATURES
4000           if test -z "$defaultval"; then
4001               if test x"$withstring" = xwithout; then
4002                   defaultval=yes
4003               else
4004                   defaultval=no
4005               fi
4006           fi
4007           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
4008 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
4009
4010 # Check whether --with-gnomeprint was given.
4011 if test "${with_gnomeprint+set}" = set; then
4012   withval=$with_gnomeprint;
4013                         if test "$withval" = yes; then
4014                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4015                         else
4016                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4017                         fi
4018
4019 else
4020
4021                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
4022
4023 fi
4024
4025
4026           eval "$wx_cv_use_gnomeprint"
4027
4028           if test x"$withstring" = xwithout; then
4029             if test $wxUSE_LIBGNOMEPRINT = yes; then
4030               result=no
4031             else
4032               result=yes
4033             fi
4034           else
4035             result=$wxUSE_LIBGNOMEPRINT
4036           fi
4037
4038           { echo "$as_me:$LINENO: result: $result" >&5
4039 echo "${ECHO_T}$result" >&6; }
4040
4041
4042           withstring=
4043           defaultval=$wxUSE_ALL_FEATURES
4044           if test -z "$defaultval"; then
4045               if test x"$withstring" = xwithout; then
4046                   defaultval=yes
4047               else
4048                   defaultval=no
4049               fi
4050           fi
4051           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4052 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4053
4054 # Check whether --with-gnomevfs was given.
4055 if test "${with_gnomevfs+set}" = set; then
4056   withval=$with_gnomevfs;
4057                         if test "$withval" = yes; then
4058                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4059                         else
4060                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4061                         fi
4062
4063 else
4064
4065                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4066
4067 fi
4068
4069
4070           eval "$wx_cv_use_gnomevfs"
4071
4072           if test x"$withstring" = xwithout; then
4073             if test $wxUSE_LIBGNOMEVFS = yes; then
4074               result=no
4075             else
4076               result=yes
4077             fi
4078           else
4079             result=$wxUSE_LIBGNOMEVFS
4080           fi
4081
4082           { echo "$as_me:$LINENO: result: $result" >&5
4083 echo "${ECHO_T}$result" >&6; }
4084
4085
4086           withstring=
4087           defaultval=$wxUSE_ALL_FEATURES
4088           if test -z "$defaultval"; then
4089               if test x"$withstring" = xwithout; then
4090                   defaultval=yes
4091               else
4092                   defaultval=no
4093               fi
4094           fi
4095           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4096 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4097
4098 # Check whether --with-hildon was given.
4099 if test "${with_hildon+set}" = set; then
4100   withval=$with_hildon;
4101                         if test "$withval" = yes; then
4102                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4103                         else
4104                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4105                         fi
4106
4107 else
4108
4109                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4110
4111 fi
4112
4113
4114           eval "$wx_cv_use_hildon"
4115
4116           if test x"$withstring" = xwithout; then
4117             if test $wxUSE_LIBHILDON = yes; then
4118               result=no
4119             else
4120               result=yes
4121             fi
4122           else
4123             result=$wxUSE_LIBHILDON
4124           fi
4125
4126           { echo "$as_me:$LINENO: result: $result" >&5
4127 echo "${ECHO_T}$result" >&6; }
4128
4129
4130           withstring=
4131           defaultval=$wxUSE_ALL_FEATURES
4132           if test -z "$defaultval"; then
4133               if test x"$withstring" = xwithout; then
4134                   defaultval=yes
4135               else
4136                   defaultval=no
4137               fi
4138           fi
4139           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4140 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4141
4142 # Check whether --with-opengl was given.
4143 if test "${with_opengl+set}" = set; then
4144   withval=$with_opengl;
4145                         if test "$withval" = yes; then
4146                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4147                         else
4148                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4149                         fi
4150
4151 else
4152
4153                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4154
4155 fi
4156
4157
4158           eval "$wx_cv_use_opengl"
4159
4160           if test x"$withstring" = xwithout; then
4161             if test $wxUSE_OPENGL = yes; then
4162               result=no
4163             else
4164               result=yes
4165             fi
4166           else
4167             result=$wxUSE_OPENGL
4168           fi
4169
4170           { echo "$as_me:$LINENO: result: $result" >&5
4171 echo "${ECHO_T}$result" >&6; }
4172
4173
4174 fi
4175
4176
4177           withstring=
4178           defaultval=$wxUSE_ALL_FEATURES
4179           if test -z "$defaultval"; then
4180               if test x"$withstring" = xwithout; then
4181                   defaultval=yes
4182               else
4183                   defaultval=no
4184               fi
4185           fi
4186           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4187 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4188
4189 # Check whether --with-dmalloc was given.
4190 if test "${with_dmalloc+set}" = set; then
4191   withval=$with_dmalloc;
4192                         if test "$withval" = yes; then
4193                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4194                         else
4195                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4196                         fi
4197
4198 else
4199
4200                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4201
4202 fi
4203
4204
4205           eval "$wx_cv_use_dmalloc"
4206
4207           if test x"$withstring" = xwithout; then
4208             if test $wxUSE_DMALLOC = yes; then
4209               result=no
4210             else
4211               result=yes
4212             fi
4213           else
4214             result=$wxUSE_DMALLOC
4215           fi
4216
4217           { echo "$as_me:$LINENO: result: $result" >&5
4218 echo "${ECHO_T}$result" >&6; }
4219
4220
4221           withstring=
4222           defaultval=$wxUSE_ALL_FEATURES
4223           if test -z "$defaultval"; then
4224               if test x"$withstring" = xwithout; then
4225                   defaultval=yes
4226               else
4227                   defaultval=no
4228               fi
4229           fi
4230           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4231 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4232
4233 # Check whether --with-sdl was given.
4234 if test "${with_sdl+set}" = set; then
4235   withval=$with_sdl;
4236                         if test "$withval" = yes; then
4237                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4238                         else
4239                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4240                         fi
4241
4242 else
4243
4244                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4245
4246 fi
4247
4248
4249           eval "$wx_cv_use_sdl"
4250
4251           if test x"$withstring" = xwithout; then
4252             if test $wxUSE_LIBSDL = yes; then
4253               result=no
4254             else
4255               result=yes
4256             fi
4257           else
4258             result=$wxUSE_LIBSDL
4259           fi
4260
4261           { echo "$as_me:$LINENO: result: $result" >&5
4262 echo "${ECHO_T}$result" >&6; }
4263
4264
4265           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4266 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4267
4268 # Check whether --with-regex was given.
4269 if test "${with_regex+set}" = set; then
4270   withval=$with_regex;
4271                         if test "$withval" = yes; then
4272                           wx_cv_use_regex='wxUSE_REGEX=yes'
4273                         elif test "$withval" = no; then
4274                           wx_cv_use_regex='wxUSE_REGEX=no'
4275                         elif test "$withval" = sys; then
4276                           wx_cv_use_regex='wxUSE_REGEX=sys'
4277                         elif test "$withval" = builtin; then
4278                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4279                         else
4280                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4281 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4282    { (exit 1); exit 1; }; }
4283                         fi
4284
4285 else
4286
4287                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4288
4289 fi
4290
4291
4292           eval "$wx_cv_use_regex"
4293
4294           if test "$wxUSE_REGEX" = yes; then
4295             { echo "$as_me:$LINENO: result: yes" >&5
4296 echo "${ECHO_T}yes" >&6; }
4297           elif test "$wxUSE_REGEX" = no; then
4298             { echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; }
4300           elif test "$wxUSE_REGEX" = sys; then
4301             { echo "$as_me:$LINENO: result: system version" >&5
4302 echo "${ECHO_T}system version" >&6; }
4303           elif test "$wxUSE_REGEX" = builtin; then
4304             { echo "$as_me:$LINENO: result: builtin version" >&5
4305 echo "${ECHO_T}builtin version" >&6; }
4306           else
4307             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4308 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4309    { (exit 1); exit 1; }; }
4310           fi
4311
4312
4313           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4314 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4315
4316 # Check whether --with-zlib was given.
4317 if test "${with_zlib+set}" = set; then
4318   withval=$with_zlib;
4319                         if test "$withval" = yes; then
4320                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4321                         elif test "$withval" = no; then
4322                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4323                         elif test "$withval" = sys; then
4324                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4325                         elif test "$withval" = builtin; then
4326                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4327                         else
4328                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4329 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4330    { (exit 1); exit 1; }; }
4331                         fi
4332
4333 else
4334
4335                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4336
4337 fi
4338
4339
4340           eval "$wx_cv_use_zlib"
4341
4342           if test "$wxUSE_ZLIB" = yes; then
4343             { echo "$as_me:$LINENO: result: yes" >&5
4344 echo "${ECHO_T}yes" >&6; }
4345           elif test "$wxUSE_ZLIB" = no; then
4346             { echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6; }
4348           elif test "$wxUSE_ZLIB" = sys; then
4349             { echo "$as_me:$LINENO: result: system version" >&5
4350 echo "${ECHO_T}system version" >&6; }
4351           elif test "$wxUSE_ZLIB" = builtin; then
4352             { echo "$as_me:$LINENO: result: builtin version" >&5
4353 echo "${ECHO_T}builtin version" >&6; }
4354           else
4355             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4356 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4357    { (exit 1); exit 1; }; }
4358           fi
4359
4360
4361           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4362 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4363
4364 # Check whether --with-expat was given.
4365 if test "${with_expat+set}" = set; then
4366   withval=$with_expat;
4367                         if test "$withval" = yes; then
4368                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4369                         elif test "$withval" = no; then
4370                           wx_cv_use_expat='wxUSE_EXPAT=no'
4371                         elif test "$withval" = sys; then
4372                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4373                         elif test "$withval" = builtin; then
4374                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4375                         else
4376                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4377 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4378    { (exit 1); exit 1; }; }
4379                         fi
4380
4381 else
4382
4383                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4384
4385 fi
4386
4387
4388           eval "$wx_cv_use_expat"
4389
4390           if test "$wxUSE_EXPAT" = yes; then
4391             { echo "$as_me:$LINENO: result: yes" >&5
4392 echo "${ECHO_T}yes" >&6; }
4393           elif test "$wxUSE_EXPAT" = no; then
4394             { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4396           elif test "$wxUSE_EXPAT" = sys; then
4397             { echo "$as_me:$LINENO: result: system version" >&5
4398 echo "${ECHO_T}system version" >&6; }
4399           elif test "$wxUSE_EXPAT" = builtin; then
4400             { echo "$as_me:$LINENO: result: builtin version" >&5
4401 echo "${ECHO_T}builtin version" >&6; }
4402           else
4403             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4404 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4405    { (exit 1); exit 1; }; }
4406           fi
4407
4408
4409 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4410 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4411
4412 # Check whether --with-macosx-sdk was given.
4413 if test "${with_macosx_sdk+set}" = set; then
4414   withval=$with_macosx_sdk;
4415         wxUSE_MACOSX_SDK=$withval
4416         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4417
4418 fi
4419
4420 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4421 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4422
4423 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4424 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4425
4426 # Check whether --with-macosx-version-min was given.
4427 if test "${with_macosx_version_min+set}" = set; then
4428   withval=$with_macosx_version_min;
4429         wxUSE_MACOSX_VERSION_MIN=$withval
4430         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4431
4432 fi
4433
4434 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4435 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4436
4437
4438 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4439 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4440 # Check whether --enable-debug was given.
4441 if test "${enable_debug+set}" = set; then
4442   enableval=$enable_debug;
4443         if test "$enableval" = yes; then
4444             wxUSE_DEBUG=yes
4445         elif test "$enableval" = no; then
4446             wxUSE_DEBUG=no
4447         elif test "$enableval" = max; then
4448             wxUSE_DEBUG=yes
4449             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4450         else
4451             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4452 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4453    { (exit 1); exit 1; }; }
4454         fi
4455
4456 else
4457   wxUSE_DEBUG=default
4458
4459 fi
4460
4461
4462 case "$wxUSE_DEBUG" in
4463     yes)
4464                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4465         DEFAULT_wxUSE_DEBUG_INFO=yes
4466
4467                         DEFAULT_wxUSE_OPTIMISE=no
4468         ;;
4469
4470     no)
4471                         DEFAULT_wxUSE_DEBUG_FLAG=no
4472         DEFAULT_wxUSE_DEBUG_INFO=no
4473         ;;
4474
4475     default)
4476                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4477         DEFAULT_wxUSE_DEBUG_INFO=no
4478         ;;
4479 esac
4480
4481
4482           enablestring=disable
4483           defaultval=
4484           if test -z "$defaultval"; then
4485               if test x"$enablestring" = xdisable; then
4486                   defaultval=yes
4487               else
4488                   defaultval=no
4489               fi
4490           fi
4491
4492           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4493 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4494           # Check whether --enable-debug_flag was given.
4495 if test "${enable_debug_flag+set}" = set; then
4496   enableval=$enable_debug_flag;
4497                           if test "$enableval" = yes; then
4498                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4499                           else
4500                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4501                           fi
4502
4503 else
4504
4505                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4506
4507 fi
4508
4509
4510           eval "$wx_cv_use_debug_flag"
4511
4512           if test x"$enablestring" = xdisable; then
4513             if test $wxUSE_DEBUG_FLAG = no; then
4514               result=yes
4515             else
4516               result=no
4517             fi
4518           else
4519             result=$wxUSE_DEBUG_FLAG
4520           fi
4521
4522           { echo "$as_me:$LINENO: result: $result" >&5
4523 echo "${ECHO_T}$result" >&6; }
4524
4525
4526           enablestring=
4527           defaultval=
4528           if test -z "$defaultval"; then
4529               if test x"$enablestring" = xdisable; then
4530                   defaultval=yes
4531               else
4532                   defaultval=no
4533               fi
4534           fi
4535
4536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4537 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4538           # Check whether --enable-debug_info was given.
4539 if test "${enable_debug_info+set}" = set; then
4540   enableval=$enable_debug_info;
4541                           if test "$enableval" = yes; then
4542                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4543                           else
4544                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4545                           fi
4546
4547 else
4548
4549                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4550
4551 fi
4552
4553
4554           eval "$wx_cv_use_debug_info"
4555
4556           if test x"$enablestring" = xdisable; then
4557             if test $wxUSE_DEBUG_INFO = no; then
4558               result=yes
4559             else
4560               result=no
4561             fi
4562           else
4563             result=$wxUSE_DEBUG_INFO
4564           fi
4565
4566           { echo "$as_me:$LINENO: result: $result" >&5
4567 echo "${ECHO_T}$result" >&6; }
4568
4569
4570
4571
4572           enablestring=
4573           defaultval=
4574           if test -z "$defaultval"; then
4575               if test x"$enablestring" = xdisable; then
4576                   defaultval=yes
4577               else
4578                   defaultval=no
4579               fi
4580           fi
4581
4582           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4583 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4584           # Check whether --enable-debug_gdb was given.
4585 if test "${enable_debug_gdb+set}" = set; then
4586   enableval=$enable_debug_gdb;
4587                           if test "$enableval" = yes; then
4588                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4589                           else
4590                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4591                           fi
4592
4593 else
4594
4595                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4596
4597 fi
4598
4599
4600           eval "$wx_cv_use_debug_gdb"
4601
4602           if test x"$enablestring" = xdisable; then
4603             if test $wxUSE_DEBUG_GDB = no; then
4604               result=yes
4605             else
4606               result=no
4607             fi
4608           else
4609             result=$wxUSE_DEBUG_GDB
4610           fi
4611
4612           { echo "$as_me:$LINENO: result: $result" >&5
4613 echo "${ECHO_T}$result" >&6; }
4614
4615
4616           enablestring=
4617           defaultval=
4618           if test -z "$defaultval"; then
4619               if test x"$enablestring" = xdisable; then
4620                   defaultval=yes
4621               else
4622                   defaultval=no
4623               fi
4624           fi
4625
4626           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4627 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4628           # Check whether --enable-debug_cntxt was given.
4629 if test "${enable_debug_cntxt+set}" = set; then
4630   enableval=$enable_debug_cntxt;
4631                           if test "$enableval" = yes; then
4632                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4633                           else
4634                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4635                           fi
4636
4637 else
4638
4639                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4640
4641 fi
4642
4643
4644           eval "$wx_cv_use_debug_cntxt"
4645
4646           if test x"$enablestring" = xdisable; then
4647             if test $wxUSE_DEBUG_CONTEXT = no; then
4648               result=yes
4649             else
4650               result=no
4651             fi
4652           else
4653             result=$wxUSE_DEBUG_CONTEXT
4654           fi
4655
4656           { echo "$as_me:$LINENO: result: $result" >&5
4657 echo "${ECHO_T}$result" >&6; }
4658
4659
4660           enablestring=
4661           defaultval=
4662           if test -z "$defaultval"; then
4663               if test x"$enablestring" = xdisable; then
4664                   defaultval=yes
4665               else
4666                   defaultval=no
4667               fi
4668           fi
4669
4670           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4671 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4672           # Check whether --enable-mem_tracing was given.
4673 if test "${enable_mem_tracing+set}" = set; then
4674   enableval=$enable_mem_tracing;
4675                           if test "$enableval" = yes; then
4676                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4677                           else
4678                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4679                           fi
4680
4681 else
4682
4683                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4684
4685 fi
4686
4687
4688           eval "$wx_cv_use_mem_tracing"
4689
4690           if test x"$enablestring" = xdisable; then
4691             if test $wxUSE_MEM_TRACING = no; then
4692               result=yes
4693             else
4694               result=no
4695             fi
4696           else
4697             result=$wxUSE_MEM_TRACING
4698           fi
4699
4700           { echo "$as_me:$LINENO: result: $result" >&5
4701 echo "${ECHO_T}$result" >&6; }
4702
4703
4704
4705
4706           enablestring=disable
4707           defaultval=
4708           if test -z "$defaultval"; then
4709               if test x"$enablestring" = xdisable; then
4710                   defaultval=yes
4711               else
4712                   defaultval=no
4713               fi
4714           fi
4715
4716           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4717 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4718           # Check whether --enable-shared was given.
4719 if test "${enable_shared+set}" = set; then
4720   enableval=$enable_shared;
4721                           if test "$enableval" = yes; then
4722                             wx_cv_use_shared='wxUSE_SHARED=yes'
4723                           else
4724                             wx_cv_use_shared='wxUSE_SHARED=no'
4725                           fi
4726
4727 else
4728
4729                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4730
4731 fi
4732
4733
4734           eval "$wx_cv_use_shared"
4735
4736           if test x"$enablestring" = xdisable; then
4737             if test $wxUSE_SHARED = no; then
4738               result=yes
4739             else
4740               result=no
4741             fi
4742           else
4743             result=$wxUSE_SHARED
4744           fi
4745
4746           { echo "$as_me:$LINENO: result: $result" >&5
4747 echo "${ECHO_T}$result" >&6; }
4748
4749
4750           enablestring=
4751           defaultval=
4752           if test -z "$defaultval"; then
4753               if test x"$enablestring" = xdisable; then
4754                   defaultval=yes
4755               else
4756                   defaultval=no
4757               fi
4758           fi
4759
4760           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4761 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4762           # Check whether --enable-stl was given.
4763 if test "${enable_stl+set}" = set; then
4764   enableval=$enable_stl;
4765                           if test "$enableval" = yes; then
4766                             wx_cv_use_stl='wxUSE_STL=yes'
4767                           else
4768                             wx_cv_use_stl='wxUSE_STL=no'
4769                           fi
4770
4771 else
4772
4773                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4774
4775 fi
4776
4777
4778           eval "$wx_cv_use_stl"
4779
4780           if test x"$enablestring" = xdisable; then
4781             if test $wxUSE_STL = no; then
4782               result=yes
4783             else
4784               result=no
4785             fi
4786           else
4787             result=$wxUSE_STL
4788           fi
4789
4790           { echo "$as_me:$LINENO: result: $result" >&5
4791 echo "${ECHO_T}$result" >&6; }
4792
4793 if test "$wxUSE_STL" = "yes"; then
4794     DEFAULT_wxUSE_STD_CONTAINERS=yes
4795     DEFAULT_wxUSE_STD_IOSTREAM=yes
4796     DEFAULT_wxUSE_STD_STRING=yes
4797 fi
4798
4799           enablestring=
4800           defaultval=
4801           if test -z "$defaultval"; then
4802               if test x"$enablestring" = xdisable; then
4803                   defaultval=yes
4804               else
4805                   defaultval=no
4806               fi
4807           fi
4808
4809           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_containers" >&5
4810 echo $ECHO_N "checking for --${enablestring:-enable}-std_containers... $ECHO_C" >&6; }
4811           # Check whether --enable-std_containers was given.
4812 if test "${enable_std_containers+set}" = set; then
4813   enableval=$enable_std_containers;
4814                           if test "$enableval" = yes; then
4815                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=yes'
4816                           else
4817                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=no'
4818                           fi
4819
4820 else
4821
4822                           wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=${'DEFAULT_wxUSE_STD_CONTAINERS":-$defaultval}"
4823
4824 fi
4825
4826
4827           eval "$wx_cv_use_std_containers"
4828
4829           if test x"$enablestring" = xdisable; then
4830             if test $wxUSE_STD_CONTAINERS = no; then
4831               result=yes
4832             else
4833               result=no
4834             fi
4835           else
4836             result=$wxUSE_STD_CONTAINERS
4837           fi
4838
4839           { echo "$as_me:$LINENO: result: $result" >&5
4840 echo "${ECHO_T}$result" >&6; }
4841
4842
4843           enablestring=
4844           defaultval=
4845           if test -z "$defaultval"; then
4846               if test x"$enablestring" = xdisable; then
4847                   defaultval=yes
4848               else
4849                   defaultval=no
4850               fi
4851           fi
4852
4853           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4854 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4855           # Check whether --enable-std_iostreams was given.
4856 if test "${enable_std_iostreams+set}" = set; then
4857   enableval=$enable_std_iostreams;
4858                           if test "$enableval" = yes; then
4859                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4860                           else
4861                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4862                           fi
4863
4864 else
4865
4866                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4867
4868 fi
4869
4870
4871           eval "$wx_cv_use_std_iostreams"
4872
4873           if test x"$enablestring" = xdisable; then
4874             if test $wxUSE_STD_IOSTREAM = no; then
4875               result=yes
4876             else
4877               result=no
4878             fi
4879           else
4880             result=$wxUSE_STD_IOSTREAM
4881           fi
4882
4883           { echo "$as_me:$LINENO: result: $result" >&5
4884 echo "${ECHO_T}$result" >&6; }
4885
4886
4887           enablestring=
4888           defaultval=
4889           if test -z "$defaultval"; then
4890               if test x"$enablestring" = xdisable; then
4891                   defaultval=yes
4892               else
4893                   defaultval=no
4894               fi
4895           fi
4896
4897           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4898 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4899           # Check whether --enable-std_string was given.
4900 if test "${enable_std_string+set}" = set; then
4901   enableval=$enable_std_string;
4902                           if test "$enableval" = yes; then
4903                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4904                           else
4905                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4906                           fi
4907
4908 else
4909
4910                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4911
4912 fi
4913
4914
4915           eval "$wx_cv_use_std_string"
4916
4917           if test x"$enablestring" = xdisable; then
4918             if test $wxUSE_STD_STRING = no; then
4919               result=yes
4920             else
4921               result=no
4922             fi
4923           else
4924             result=$wxUSE_STD_STRING
4925           fi
4926
4927           { echo "$as_me:$LINENO: result: $result" >&5
4928 echo "${ECHO_T}$result" >&6; }
4929
4930
4931           enablestring=
4932           defaultval=
4933           if test -z "$defaultval"; then
4934               if test x"$enablestring" = xdisable; then
4935                   defaultval=yes
4936               else
4937                   defaultval=no
4938               fi
4939           fi
4940
4941           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string_conv_in_wxstring" >&5
4942 echo $ECHO_N "checking for --${enablestring:-enable}-std_string_conv_in_wxstring... $ECHO_C" >&6; }
4943           # Check whether --enable-std_string_conv_in_wxstring was given.
4944 if test "${enable_std_string_conv_in_wxstring+set}" = set; then
4945   enableval=$enable_std_string_conv_in_wxstring;
4946                           if test "$enableval" = yes; then
4947                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=yes'
4948                           else
4949                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=no'
4950                           fi
4951
4952 else
4953
4954                           wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=${'DEFAULT_wxUSE_STD_STRING_CONV_IN_WXSTRING":-$defaultval}"
4955
4956 fi
4957
4958
4959           eval "$wx_cv_use_std_string_conv_in_wxstring"
4960
4961           if test x"$enablestring" = xdisable; then
4962             if test $wxUSE_STD_STRING_CONV_IN_WXSTRING = no; then
4963               result=yes
4964             else
4965               result=no
4966             fi
4967           else
4968             result=$wxUSE_STD_STRING_CONV_IN_WXSTRING
4969           fi
4970
4971           { echo "$as_me:$LINENO: result: $result" >&5
4972 echo "${ECHO_T}$result" >&6; }
4973
4974
4975           enablestring=disable
4976           defaultval=
4977           if test -z "$defaultval"; then
4978               if test x"$enablestring" = xdisable; then
4979                   defaultval=yes
4980               else
4981                   defaultval=no
4982               fi
4983           fi
4984
4985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4986 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4987           # Check whether --enable-unicode was given.
4988 if test "${enable_unicode+set}" = set; then
4989   enableval=$enable_unicode;
4990                           if test "$enableval" = yes; then
4991                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4992                           else
4993                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4994                           fi
4995
4996 else
4997
4998                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4999
5000 fi
5001
5002
5003           eval "$wx_cv_use_unicode"
5004
5005           if test x"$enablestring" = xdisable; then
5006             if test $wxUSE_UNICODE = no; then
5007               result=yes
5008             else
5009               result=no
5010             fi
5011           else
5012             result=$wxUSE_UNICODE
5013           fi
5014
5015           { echo "$as_me:$LINENO: result: $result" >&5
5016 echo "${ECHO_T}$result" >&6; }
5017
5018
5019           enablestring=
5020           defaultval=
5021           if test -z "$defaultval"; then
5022               if test x"$enablestring" = xdisable; then
5023                   defaultval=yes
5024               else
5025                   defaultval=no
5026               fi
5027           fi
5028
5029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5030 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
5031           # Check whether --enable-mslu was given.
5032 if test "${enable_mslu+set}" = set; then
5033   enableval=$enable_mslu;
5034                           if test "$enableval" = yes; then
5035                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5036                           else
5037                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5038                           fi
5039
5040 else
5041
5042                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
5043
5044 fi
5045
5046
5047           eval "$wx_cv_use_mslu"
5048
5049           if test x"$enablestring" = xdisable; then
5050             if test $wxUSE_UNICODE_MSLU = no; then
5051               result=yes
5052             else
5053               result=no
5054             fi
5055           else
5056             result=$wxUSE_UNICODE_MSLU
5057           fi
5058
5059           { echo "$as_me:$LINENO: result: $result" >&5
5060 echo "${ECHO_T}$result" >&6; }
5061
5062
5063           enablestring=
5064           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5065 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
5066           # Check whether --enable-utf8 was given.
5067 if test "${enable_utf8+set}" = set; then
5068   enableval=$enable_utf8;
5069                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
5070
5071 else
5072
5073                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
5074
5075 fi
5076
5077
5078           eval "$wx_cv_use_utf8"
5079
5080           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5081 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
5082
5083
5084           enablestring=
5085           defaultval=
5086           if test -z "$defaultval"; then
5087               if test x"$enablestring" = xdisable; then
5088                   defaultval=yes
5089               else
5090                   defaultval=no
5091               fi
5092           fi
5093
5094           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5095 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5096           # Check whether --enable-utf8only was given.
5097 if test "${enable_utf8only+set}" = set; then
5098   enableval=$enable_utf8only;
5099                           if test "$enableval" = yes; then
5100                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5101                           else
5102                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5103                           fi
5104
5105 else
5106
5107                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5108
5109 fi
5110
5111
5112           eval "$wx_cv_use_utf8only"
5113
5114           if test x"$enablestring" = xdisable; then
5115             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
5116               result=yes
5117             else
5118               result=no
5119             fi
5120           else
5121             result=$wxUSE_UNICODE_UTF8_LOCALE
5122           fi
5123
5124           { echo "$as_me:$LINENO: result: $result" >&5
5125 echo "${ECHO_T}$result" >&6; }
5126
5127
5128           enablestring=
5129           defaultval=
5130           if test -z "$defaultval"; then
5131               if test x"$enablestring" = xdisable; then
5132                   defaultval=yes
5133               else
5134                   defaultval=no
5135               fi
5136           fi
5137
5138           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5139 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5140           # Check whether --enable-extended_rtti was given.
5141 if test "${enable_extended_rtti+set}" = set; then
5142   enableval=$enable_extended_rtti;
5143                           if test "$enableval" = yes; then
5144                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5145                           else
5146                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5147                           fi
5148
5149 else
5150
5151                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5152
5153 fi
5154
5155
5156           eval "$wx_cv_use_extended_rtti"
5157
5158           if test x"$enablestring" = xdisable; then
5159             if test $wxUSE_EXTENDED_RTTI = no; then
5160               result=yes
5161             else
5162               result=no
5163             fi
5164           else
5165             result=$wxUSE_EXTENDED_RTTI
5166           fi
5167
5168           { echo "$as_me:$LINENO: result: $result" >&5
5169 echo "${ECHO_T}$result" >&6; }
5170
5171 if test "$USE_OS2" = 1; then
5172     DEFAULT_wxUSE_OMF=no
5173
5174           enablestring=
5175           defaultval=
5176           if test -z "$defaultval"; then
5177               if test x"$enablestring" = xdisable; then
5178                   defaultval=yes
5179               else
5180                   defaultval=no
5181               fi
5182           fi
5183
5184           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5185 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5186           # Check whether --enable-omf was given.
5187 if test "${enable_omf+set}" = set; then
5188   enableval=$enable_omf;
5189                           if test "$enableval" = yes; then
5190                             wx_cv_use_omf='wxUSE_OMF=yes'
5191                           else
5192                             wx_cv_use_omf='wxUSE_OMF=no'
5193                           fi
5194
5195 else
5196
5197                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5198
5199 fi
5200
5201
5202           eval "$wx_cv_use_omf"
5203
5204           if test x"$enablestring" = xdisable; then
5205             if test $wxUSE_OMF = no; then
5206               result=yes
5207             else
5208               result=no
5209             fi
5210           else
5211             result=$wxUSE_OMF
5212           fi
5213
5214           { echo "$as_me:$LINENO: result: $result" >&5
5215 echo "${ECHO_T}$result" >&6; }
5216
5217 fi
5218
5219
5220           enablestring=disable
5221           defaultval=
5222           if test -z "$defaultval"; then
5223               if test x"$enablestring" = xdisable; then
5224                   defaultval=yes
5225               else
5226                   defaultval=no
5227               fi
5228           fi
5229
5230           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5231 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5232           # Check whether --enable-optimise was given.
5233 if test "${enable_optimise+set}" = set; then
5234   enableval=$enable_optimise;
5235                           if test "$enableval" = yes; then
5236                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5237                           else
5238                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5239                           fi
5240
5241 else
5242
5243                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5244
5245 fi
5246
5247
5248           eval "$wx_cv_use_optimise"
5249
5250           if test x"$enablestring" = xdisable; then
5251             if test $wxUSE_OPTIMISE = no; then
5252               result=yes
5253             else
5254               result=no
5255             fi
5256           else
5257             result=$wxUSE_OPTIMISE
5258           fi
5259
5260           { echo "$as_me:$LINENO: result: $result" >&5
5261 echo "${ECHO_T}$result" >&6; }
5262
5263
5264
5265           enablestring=
5266           defaultval=
5267           if test -z "$defaultval"; then
5268               if test x"$enablestring" = xdisable; then
5269                   defaultval=yes
5270               else
5271                   defaultval=no
5272               fi
5273           fi
5274
5275           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5276 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5277           # Check whether --enable-profile was given.
5278 if test "${enable_profile+set}" = set; then
5279   enableval=$enable_profile;
5280                           if test "$enableval" = yes; then
5281                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5282                           else
5283                             wx_cv_use_profile='wxUSE_PROFILE=no'
5284                           fi
5285
5286 else
5287
5288                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5289
5290 fi
5291
5292
5293           eval "$wx_cv_use_profile"
5294
5295           if test x"$enablestring" = xdisable; then
5296             if test $wxUSE_PROFILE = no; then
5297               result=yes
5298             else
5299               result=no
5300             fi
5301           else
5302             result=$wxUSE_PROFILE
5303           fi
5304
5305           { echo "$as_me:$LINENO: result: $result" >&5
5306 echo "${ECHO_T}$result" >&6; }
5307
5308
5309           enablestring=
5310           defaultval=
5311           if test -z "$defaultval"; then
5312               if test x"$enablestring" = xdisable; then
5313                   defaultval=yes
5314               else
5315                   defaultval=no
5316               fi
5317           fi
5318
5319           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5320 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5321           # Check whether --enable-no_rtti was given.
5322 if test "${enable_no_rtti+set}" = set; then
5323   enableval=$enable_no_rtti;
5324                           if test "$enableval" = yes; then
5325                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5326                           else
5327                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5328                           fi
5329
5330 else
5331
5332                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5333
5334 fi
5335
5336
5337           eval "$wx_cv_use_no_rtti"
5338
5339           if test x"$enablestring" = xdisable; then
5340             if test $wxUSE_NO_RTTI = no; then
5341               result=yes
5342             else
5343               result=no
5344             fi
5345           else
5346             result=$wxUSE_NO_RTTI
5347           fi
5348
5349           { echo "$as_me:$LINENO: result: $result" >&5
5350 echo "${ECHO_T}$result" >&6; }
5351
5352
5353           enablestring=
5354           defaultval=
5355           if test -z "$defaultval"; then
5356               if test x"$enablestring" = xdisable; then
5357                   defaultval=yes
5358               else
5359                   defaultval=no
5360               fi
5361           fi
5362
5363           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5364 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5365           # Check whether --enable-no_exceptions was given.
5366 if test "${enable_no_exceptions+set}" = set; then
5367   enableval=$enable_no_exceptions;
5368                           if test "$enableval" = yes; then
5369                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5370                           else
5371                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5372                           fi
5373
5374 else
5375
5376                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5377
5378 fi
5379
5380
5381           eval "$wx_cv_use_no_exceptions"
5382
5383           if test x"$enablestring" = xdisable; then
5384             if test $wxUSE_NO_EXCEPTIONS = no; then
5385               result=yes
5386             else
5387               result=no
5388             fi
5389           else
5390             result=$wxUSE_NO_EXCEPTIONS
5391           fi
5392
5393           { echo "$as_me:$LINENO: result: $result" >&5
5394 echo "${ECHO_T}$result" >&6; }
5395
5396
5397           enablestring=
5398           defaultval=
5399           if test -z "$defaultval"; then
5400               if test x"$enablestring" = xdisable; then
5401                   defaultval=yes
5402               else
5403                   defaultval=no
5404               fi
5405           fi
5406
5407           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5408 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5409           # Check whether --enable-permissive was given.
5410 if test "${enable_permissive+set}" = set; then
5411   enableval=$enable_permissive;
5412                           if test "$enableval" = yes; then
5413                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5414                           else
5415                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5416                           fi
5417
5418 else
5419
5420                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5421
5422 fi
5423
5424
5425           eval "$wx_cv_use_permissive"
5426
5427           if test x"$enablestring" = xdisable; then
5428             if test $wxUSE_PERMISSIVE = no; then
5429               result=yes
5430             else
5431               result=no
5432             fi
5433           else
5434             result=$wxUSE_PERMISSIVE
5435           fi
5436
5437           { echo "$as_me:$LINENO: result: $result" >&5
5438 echo "${ECHO_T}$result" >&6; }
5439
5440
5441           enablestring=
5442           defaultval=
5443           if test -z "$defaultval"; then
5444               if test x"$enablestring" = xdisable; then
5445                   defaultval=yes
5446               else
5447                   defaultval=no
5448               fi
5449           fi
5450
5451           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5452 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5453           # Check whether --enable-no_deps was given.
5454 if test "${enable_no_deps+set}" = set; then
5455   enableval=$enable_no_deps;
5456                           if test "$enableval" = yes; then
5457                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5458                           else
5459                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5460                           fi
5461
5462 else
5463
5464                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5465
5466 fi
5467
5468
5469           eval "$wx_cv_use_no_deps"
5470
5471           if test x"$enablestring" = xdisable; then
5472             if test $wxUSE_NO_DEPS = no; then
5473               result=yes
5474             else
5475               result=no
5476             fi
5477           else
5478             result=$wxUSE_NO_DEPS
5479           fi
5480
5481           { echo "$as_me:$LINENO: result: $result" >&5
5482 echo "${ECHO_T}$result" >&6; }
5483
5484
5485           enablestring=disable
5486           defaultval=
5487           if test -z "$defaultval"; then
5488               if test x"$enablestring" = xdisable; then
5489                   defaultval=yes
5490               else
5491                   defaultval=no
5492               fi
5493           fi
5494
5495           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5496 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5497           # Check whether --enable-vararg_macros was given.
5498 if test "${enable_vararg_macros+set}" = set; then
5499   enableval=$enable_vararg_macros;
5500                           if test "$enableval" = yes; then
5501                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5502                           else
5503                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5504                           fi
5505
5506 else
5507
5508                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5509
5510 fi
5511
5512
5513           eval "$wx_cv_use_vararg_macros"
5514
5515           if test x"$enablestring" = xdisable; then
5516             if test $wxUSE_VARARG_MACROS = no; then
5517               result=yes
5518             else
5519               result=no
5520             fi
5521           else
5522             result=$wxUSE_VARARG_MACROS
5523           fi
5524
5525           { echo "$as_me:$LINENO: result: $result" >&5
5526 echo "${ECHO_T}$result" >&6; }
5527
5528
5529
5530           enablestring=
5531           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5532 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5533           # Check whether --enable-universal_binary was given.
5534 if test "${enable_universal_binary+set}" = set; then
5535   enableval=$enable_universal_binary;
5536                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5537
5538 else
5539
5540                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5541
5542 fi
5543
5544
5545           eval "$wx_cv_use_universal_binary"
5546
5547           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5548 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5549
5550
5551           enablestring=
5552           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-macosx_arch" >&5
5553 echo $ECHO_N "checking for --${enablestring:-enable}-macosx_arch... $ECHO_C" >&6; }
5554           # Check whether --enable-macosx_arch was given.
5555 if test "${enable_macosx_arch+set}" = set; then
5556   enableval=$enable_macosx_arch;
5557                           wx_cv_use_macosx_arch="wxUSE_MAC_ARCH='$enableval'"
5558
5559 else
5560
5561                           wx_cv_use_macosx_arch='wxUSE_MAC_ARCH='$DEFAULT_wxUSE_MAC_ARCH
5562
5563 fi
5564
5565
5566           eval "$wx_cv_use_macosx_arch"
5567
5568           { echo "$as_me:$LINENO: result: $wxUSE_MAC_ARCH" >&5
5569 echo "${ECHO_T}$wxUSE_MAC_ARCH" >&6; }
5570
5571
5572
5573           enablestring=
5574           defaultval=
5575           if test -z "$defaultval"; then
5576               if test x"$enablestring" = xdisable; then
5577                   defaultval=yes
5578               else
5579                   defaultval=no
5580               fi
5581           fi
5582
5583           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5584 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5585           # Check whether --enable-compat26 was given.
5586 if test "${enable_compat26+set}" = set; then
5587   enableval=$enable_compat26;
5588                           if test "$enableval" = yes; then
5589                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5590                           else
5591                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5592                           fi
5593
5594 else
5595
5596                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5597
5598 fi
5599
5600
5601           eval "$wx_cv_use_compat26"
5602
5603           if test x"$enablestring" = xdisable; then
5604             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5605               result=yes
5606             else
5607               result=no
5608             fi
5609           else
5610             result=$WXWIN_COMPATIBILITY_2_6
5611           fi
5612
5613           { echo "$as_me:$LINENO: result: $result" >&5
5614 echo "${ECHO_T}$result" >&6; }
5615
5616
5617           enablestring=disable
5618           defaultval=
5619           if test -z "$defaultval"; then
5620               if test x"$enablestring" = xdisable; then
5621                   defaultval=yes
5622               else
5623                   defaultval=no
5624               fi
5625           fi
5626
5627           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5628 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5629           # Check whether --enable-compat28 was given.
5630 if test "${enable_compat28+set}" = set; then
5631   enableval=$enable_compat28;
5632                           if test "$enableval" = yes; then
5633                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5634                           else
5635                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5636                           fi
5637
5638 else
5639
5640                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5641
5642 fi
5643
5644
5645           eval "$wx_cv_use_compat28"
5646
5647           if test x"$enablestring" = xdisable; then
5648             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5649               result=yes
5650             else
5651               result=no
5652             fi
5653           else
5654             result=$WXWIN_COMPATIBILITY_2_8
5655           fi
5656
5657           { echo "$as_me:$LINENO: result: $result" >&5
5658 echo "${ECHO_T}$result" >&6; }
5659
5660
5661
5662           enablestring=disable
5663           defaultval=
5664           if test -z "$defaultval"; then
5665               if test x"$enablestring" = xdisable; then
5666                   defaultval=yes
5667               else
5668                   defaultval=no
5669               fi
5670           fi
5671
5672           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5673 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5674           # Check whether --enable-rpath was given.
5675 if test "${enable_rpath+set}" = set; then
5676   enableval=$enable_rpath;
5677                           if test "$enableval" = yes; then
5678                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5679                           else
5680                             wx_cv_use_rpath='wxUSE_RPATH=no'
5681                           fi
5682
5683 else
5684
5685                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5686
5687 fi
5688
5689
5690           eval "$wx_cv_use_rpath"
5691
5692           if test x"$enablestring" = xdisable; then
5693             if test $wxUSE_RPATH = no; then
5694               result=yes
5695             else
5696               result=no
5697             fi
5698           else
5699             result=$wxUSE_RPATH
5700           fi
5701
5702           { echo "$as_me:$LINENO: result: $result" >&5
5703 echo "${ECHO_T}$result" >&6; }
5704
5705
5706
5707           enablestring=
5708           defaultval=
5709           if test -z "$defaultval"; then
5710               if test x"$enablestring" = xdisable; then
5711                   defaultval=yes
5712               else
5713                   defaultval=no
5714               fi
5715           fi
5716
5717           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5718 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5719           # Check whether --enable-objc_uniquifying was given.
5720 if test "${enable_objc_uniquifying+set}" = set; then
5721   enableval=$enable_objc_uniquifying;
5722                           if test "$enableval" = yes; then
5723                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5724                           else
5725                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5726                           fi
5727
5728 else
5729
5730                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5731
5732 fi
5733
5734
5735           eval "$wx_cv_use_objc_uniquifying"
5736
5737           if test x"$enablestring" = xdisable; then
5738             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5739               result=yes
5740             else
5741               result=no
5742             fi
5743           else
5744             result=$wxUSE_OBJC_UNIQUIFYING
5745           fi
5746
5747           { echo "$as_me:$LINENO: result: $result" >&5
5748 echo "${ECHO_T}$result" >&6; }
5749
5750
5751
5752           enablestring=disable
5753           defaultval=
5754           if test -z "$defaultval"; then
5755               if test x"$enablestring" = xdisable; then
5756                   defaultval=yes
5757               else
5758                   defaultval=no
5759               fi
5760           fi
5761
5762           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5763 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5764           # Check whether --enable-visibility was given.
5765 if test "${enable_visibility+set}" = set; then
5766   enableval=$enable_visibility;
5767                           if test "$enableval" = yes; then
5768                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5769                           else
5770                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5771                           fi
5772
5773 else
5774
5775                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5776
5777 fi
5778
5779
5780           eval "$wx_cv_use_visibility"
5781
5782           if test x"$enablestring" = xdisable; then
5783             if test $wxUSE_VISIBILITY = no; then
5784               result=yes
5785             else
5786               result=no
5787             fi
5788           else
5789             result=$wxUSE_VISIBILITY
5790           fi
5791
5792           { echo "$as_me:$LINENO: result: $result" >&5
5793 echo "${ECHO_T}$result" >&6; }
5794
5795
5796           enablestring=disable
5797           defaultval=
5798           if test -z "$defaultval"; then
5799               if test x"$enablestring" = xdisable; then
5800                   defaultval=yes
5801               else
5802                   defaultval=no
5803               fi
5804           fi
5805
5806           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5807 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5808           # Check whether --enable-tls was given.
5809 if test "${enable_tls+set}" = set; then
5810   enableval=$enable_tls;
5811                           if test "$enableval" = yes; then
5812                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5813                           else
5814                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5815                           fi
5816
5817 else
5818
5819                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5820
5821 fi
5822
5823
5824           eval "$wx_cv_use_tls"
5825
5826           if test x"$enablestring" = xdisable; then
5827             if test $wxUSE_COMPILER_TLS = no; then
5828               result=yes
5829             else
5830               result=no
5831             fi
5832           else
5833             result=$wxUSE_COMPILER_TLS
5834           fi
5835
5836           { echo "$as_me:$LINENO: result: $result" >&5
5837 echo "${ECHO_T}$result" >&6; }
5838
5839
5840
5841
5842           enablestring=
5843           defaultval=$wxUSE_ALL_FEATURES
5844           if test -z "$defaultval"; then
5845               if test x"$enablestring" = xdisable; then
5846                   defaultval=yes
5847               else
5848                   defaultval=no
5849               fi
5850           fi
5851
5852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5853 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5854           # Check whether --enable-intl was given.
5855 if test "${enable_intl+set}" = set; then
5856   enableval=$enable_intl;
5857                           if test "$enableval" = yes; then
5858                             wx_cv_use_intl='wxUSE_INTL=yes'
5859                           else
5860                             wx_cv_use_intl='wxUSE_INTL=no'
5861                           fi
5862
5863 else
5864
5865                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5866
5867 fi
5868
5869
5870           eval "$wx_cv_use_intl"
5871
5872           if test x"$enablestring" = xdisable; then
5873             if test $wxUSE_INTL = no; then
5874               result=yes
5875             else
5876               result=no
5877             fi
5878           else
5879             result=$wxUSE_INTL
5880           fi
5881
5882           { echo "$as_me:$LINENO: result: $result" >&5
5883 echo "${ECHO_T}$result" >&6; }
5884
5885
5886           enablestring=
5887           defaultval=$wxUSE_ALL_FEATURES
5888           if test -z "$defaultval"; then
5889               if test x"$enablestring" = xdisable; then
5890                   defaultval=yes
5891               else
5892                   defaultval=no
5893               fi
5894           fi
5895
5896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5897 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5898           # Check whether --enable-xlocale was given.
5899 if test "${enable_xlocale+set}" = set; then
5900   enableval=$enable_xlocale;
5901                           if test "$enableval" = yes; then
5902                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5903                           else
5904                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5905                           fi
5906
5907 else
5908
5909                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5910
5911 fi
5912
5913
5914           eval "$wx_cv_use_xlocale"
5915
5916           if test x"$enablestring" = xdisable; then
5917             if test $wxUSE_XLOCALE = no; then
5918               result=yes
5919             else
5920               result=no
5921             fi
5922           else
5923             result=$wxUSE_XLOCALE
5924           fi
5925
5926           { echo "$as_me:$LINENO: result: $result" >&5
5927 echo "${ECHO_T}$result" >&6; }
5928
5929
5930           enablestring=
5931           defaultval=$wxUSE_ALL_FEATURES
5932           if test -z "$defaultval"; then
5933               if test x"$enablestring" = xdisable; then
5934                   defaultval=yes
5935               else
5936                   defaultval=no
5937               fi
5938           fi
5939
5940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5941 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5942           # Check whether --enable-config was given.
5943 if test "${enable_config+set}" = set; then
5944   enableval=$enable_config;
5945                           if test "$enableval" = yes; then
5946                             wx_cv_use_config='wxUSE_CONFIG=yes'
5947                           else
5948                             wx_cv_use_config='wxUSE_CONFIG=no'
5949                           fi
5950
5951 else
5952
5953                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5954
5955 fi
5956
5957
5958           eval "$wx_cv_use_config"
5959
5960           if test x"$enablestring" = xdisable; then
5961             if test $wxUSE_CONFIG = no; then
5962               result=yes
5963             else
5964               result=no
5965             fi
5966           else
5967             result=$wxUSE_CONFIG
5968           fi
5969
5970           { echo "$as_me:$LINENO: result: $result" >&5
5971 echo "${ECHO_T}$result" >&6; }
5972
5973
5974
5975           enablestring=
5976           defaultval=$wxUSE_ALL_FEATURES
5977           if test -z "$defaultval"; then
5978               if test x"$enablestring" = xdisable; then
5979                   defaultval=yes
5980               else
5981                   defaultval=no
5982               fi
5983           fi
5984
5985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5986 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5987           # Check whether --enable-protocols was given.
5988 if test "${enable_protocols+set}" = set; then
5989   enableval=$enable_protocols;
5990                           if test "$enableval" = yes; then
5991                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5992                           else
5993                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5994                           fi
5995
5996 else
5997
5998                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5999
6000 fi
6001
6002
6003           eval "$wx_cv_use_protocols"
6004
6005           if test x"$enablestring" = xdisable; then
6006             if test $wxUSE_PROTOCOL = no; then
6007               result=yes
6008             else
6009               result=no
6010             fi
6011           else
6012             result=$wxUSE_PROTOCOL
6013           fi
6014
6015           { echo "$as_me:$LINENO: result: $result" >&5
6016 echo "${ECHO_T}$result" >&6; }
6017
6018
6019           enablestring=
6020           defaultval=$wxUSE_ALL_FEATURES
6021           if test -z "$defaultval"; then
6022               if test x"$enablestring" = xdisable; then
6023                   defaultval=yes
6024               else
6025                   defaultval=no
6026               fi
6027           fi
6028
6029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6030 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6031           # Check whether --enable-ftp was given.
6032 if test "${enable_ftp+set}" = set; then
6033   enableval=$enable_ftp;
6034                           if test "$enableval" = yes; then
6035                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6036                           else
6037                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6038                           fi
6039
6040 else
6041
6042                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6043
6044 fi
6045
6046
6047           eval "$wx_cv_use_ftp"
6048
6049           if test x"$enablestring" = xdisable; then
6050             if test $wxUSE_PROTOCOL_FTP = no; then
6051               result=yes
6052             else
6053               result=no
6054             fi
6055           else
6056             result=$wxUSE_PROTOCOL_FTP
6057           fi
6058
6059           { echo "$as_me:$LINENO: result: $result" >&5
6060 echo "${ECHO_T}$result" >&6; }
6061
6062
6063           enablestring=
6064           defaultval=$wxUSE_ALL_FEATURES
6065           if test -z "$defaultval"; then
6066               if test x"$enablestring" = xdisable; then
6067                   defaultval=yes
6068               else
6069                   defaultval=no
6070               fi
6071           fi
6072
6073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6074 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6075           # Check whether --enable-http was given.
6076 if test "${enable_http+set}" = set; then
6077   enableval=$enable_http;
6078                           if test "$enableval" = yes; then
6079                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6080                           else
6081                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6082                           fi
6083
6084 else
6085
6086                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6087
6088 fi
6089
6090
6091           eval "$wx_cv_use_http"
6092
6093           if test x"$enablestring" = xdisable; then
6094             if test $wxUSE_PROTOCOL_HTTP = no; then
6095               result=yes
6096             else
6097               result=no
6098             fi
6099           else
6100             result=$wxUSE_PROTOCOL_HTTP
6101           fi
6102
6103           { echo "$as_me:$LINENO: result: $result" >&5
6104 echo "${ECHO_T}$result" >&6; }
6105
6106
6107           enablestring=
6108           defaultval=$wxUSE_ALL_FEATURES
6109           if test -z "$defaultval"; then
6110               if test x"$enablestring" = xdisable; then
6111                   defaultval=yes
6112               else
6113                   defaultval=no
6114               fi
6115           fi
6116
6117           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6118 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6119           # Check whether --enable-fileproto was given.
6120 if test "${enable_fileproto+set}" = set; then
6121   enableval=$enable_fileproto;
6122                           if test "$enableval" = yes; then
6123                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6124                           else
6125                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6126                           fi
6127
6128 else
6129
6130                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6131
6132 fi
6133
6134
6135           eval "$wx_cv_use_fileproto"
6136
6137           if test x"$enablestring" = xdisable; then
6138             if test $wxUSE_PROTOCOL_FILE = no; then
6139               result=yes
6140             else
6141               result=no
6142             fi
6143           else
6144             result=$wxUSE_PROTOCOL_FILE
6145           fi
6146
6147           { echo "$as_me:$LINENO: result: $result" >&5
6148 echo "${ECHO_T}$result" >&6; }
6149
6150
6151           enablestring=
6152           defaultval=$wxUSE_ALL_FEATURES
6153           if test -z "$defaultval"; then
6154               if test x"$enablestring" = xdisable; then
6155                   defaultval=yes
6156               else
6157                   defaultval=no
6158               fi
6159           fi
6160
6161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6162 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6163           # Check whether --enable-sockets was given.
6164 if test "${enable_sockets+set}" = set; then
6165   enableval=$enable_sockets;
6166                           if test "$enableval" = yes; then
6167                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6168                           else
6169                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6170                           fi
6171
6172 else
6173
6174                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6175
6176 fi
6177
6178
6179           eval "$wx_cv_use_sockets"
6180
6181           if test x"$enablestring" = xdisable; then
6182             if test $wxUSE_SOCKETS = no; then
6183               result=yes
6184             else
6185               result=no
6186             fi
6187           else
6188             result=$wxUSE_SOCKETS
6189           fi
6190
6191           { echo "$as_me:$LINENO: result: $result" >&5
6192 echo "${ECHO_T}$result" >&6; }
6193
6194
6195           enablestring=
6196           defaultval=$wxUSE_ALL_FEATURES
6197           if test -z "$defaultval"; then
6198               if test x"$enablestring" = xdisable; then
6199                   defaultval=yes
6200               else
6201                   defaultval=no
6202               fi
6203           fi
6204
6205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6206 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6207           # Check whether --enable-ipv6 was given.
6208 if test "${enable_ipv6+set}" = set; then
6209   enableval=$enable_ipv6;
6210                           if test "$enableval" = yes; then
6211                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6212                           else
6213                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6214                           fi
6215
6216 else
6217
6218                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6219
6220 fi
6221
6222
6223           eval "$wx_cv_use_ipv6"
6224
6225           if test x"$enablestring" = xdisable; then
6226             if test $wxUSE_IPV6 = no; then
6227               result=yes
6228             else
6229               result=no
6230             fi
6231           else
6232             result=$wxUSE_IPV6
6233           fi
6234
6235           { echo "$as_me:$LINENO: result: $result" >&5
6236 echo "${ECHO_T}$result" >&6; }
6237
6238
6239           enablestring=
6240           defaultval=$wxUSE_ALL_FEATURES
6241           if test -z "$defaultval"; then
6242               if test x"$enablestring" = xdisable; then
6243                   defaultval=yes
6244               else
6245                   defaultval=no
6246               fi
6247           fi
6248
6249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6250 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6251           # Check whether --enable-ole was given.
6252 if test "${enable_ole+set}" = set; then
6253   enableval=$enable_ole;
6254                           if test "$enableval" = yes; then
6255                             wx_cv_use_ole='wxUSE_OLE=yes'
6256                           else
6257                             wx_cv_use_ole='wxUSE_OLE=no'
6258                           fi
6259
6260 else
6261
6262                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6263
6264 fi
6265
6266
6267           eval "$wx_cv_use_ole"
6268
6269           if test x"$enablestring" = xdisable; then
6270             if test $wxUSE_OLE = no; then
6271               result=yes
6272             else
6273               result=no
6274             fi
6275           else
6276             result=$wxUSE_OLE
6277           fi
6278
6279           { echo "$as_me:$LINENO: result: $result" >&5
6280 echo "${ECHO_T}$result" >&6; }
6281
6282
6283           enablestring=
6284           defaultval=$wxUSE_ALL_FEATURES
6285           if test -z "$defaultval"; then
6286               if test x"$enablestring" = xdisable; then
6287                   defaultval=yes
6288               else
6289                   defaultval=no
6290               fi
6291           fi
6292
6293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6294 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6295           # Check whether --enable-dataobj was given.
6296 if test "${enable_dataobj+set}" = set; then
6297   enableval=$enable_dataobj;
6298                           if test "$enableval" = yes; then
6299                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6300                           else
6301                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6302                           fi
6303
6304 else
6305
6306                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6307
6308 fi
6309
6310
6311           eval "$wx_cv_use_dataobj"
6312
6313           if test x"$enablestring" = xdisable; then
6314             if test $wxUSE_DATAOBJ = no; then
6315               result=yes
6316             else
6317               result=no
6318             fi
6319           else
6320             result=$wxUSE_DATAOBJ
6321           fi
6322
6323           { echo "$as_me:$LINENO: result: $result" >&5
6324 echo "${ECHO_T}$result" >&6; }
6325
6326
6327
6328           enablestring=
6329           defaultval=$wxUSE_ALL_FEATURES
6330           if test -z "$defaultval"; then
6331               if test x"$enablestring" = xdisable; then
6332                   defaultval=yes
6333               else
6334                   defaultval=no
6335               fi
6336           fi
6337
6338           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6339 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6340           # Check whether --enable-ipc was given.
6341 if test "${enable_ipc+set}" = set; then
6342   enableval=$enable_ipc;
6343                           if test "$enableval" = yes; then
6344                             wx_cv_use_ipc='wxUSE_IPC=yes'
6345                           else
6346                             wx_cv_use_ipc='wxUSE_IPC=no'
6347                           fi
6348
6349 else
6350
6351                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6352
6353 fi
6354
6355
6356           eval "$wx_cv_use_ipc"
6357
6358           if test x"$enablestring" = xdisable; then
6359             if test $wxUSE_IPC = no; then
6360               result=yes
6361             else
6362               result=no
6363             fi
6364           else
6365             result=$wxUSE_IPC
6366           fi
6367
6368           { echo "$as_me:$LINENO: result: $result" >&5
6369 echo "${ECHO_T}$result" >&6; }
6370
6371
6372
6373           enablestring=
6374           defaultval=$wxUSE_ALL_FEATURES
6375           if test -z "$defaultval"; then
6376               if test x"$enablestring" = xdisable; then
6377                   defaultval=yes
6378               else
6379                   defaultval=no
6380               fi
6381           fi
6382
6383           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6384 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6385           # Check whether --enable-baseevtloop was given.
6386 if test "${enable_baseevtloop+set}" = set; then
6387   enableval=$enable_baseevtloop;
6388                           if test "$enableval" = yes; then
6389                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6390                           else
6391                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6392                           fi
6393
6394 else
6395
6396                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6397
6398 fi
6399
6400
6401           eval "$wx_cv_use_baseevtloop"
6402
6403           if test x"$enablestring" = xdisable; then
6404             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6405               result=yes
6406             else
6407               result=no
6408             fi
6409           else
6410             result=$wxUSE_CONSOLE_EVENTLOOP
6411           fi
6412
6413           { echo "$as_me:$LINENO: result: $result" >&5
6414 echo "${ECHO_T}$result" >&6; }
6415
6416
6417           enablestring=
6418           defaultval=$wxUSE_ALL_FEATURES
6419           if test -z "$defaultval"; then
6420               if test x"$enablestring" = xdisable; then
6421                   defaultval=yes
6422               else
6423                   defaultval=no
6424               fi
6425           fi
6426
6427           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6428 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6429           # Check whether --enable-epollloop was given.
6430 if test "${enable_epollloop+set}" = set; then
6431   enableval=$enable_epollloop;
6432                           if test "$enableval" = yes; then
6433                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6434                           else
6435                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6436                           fi
6437
6438 else
6439
6440                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6441
6442 fi
6443
6444
6445           eval "$wx_cv_use_epollloop"
6446
6447           if test x"$enablestring" = xdisable; then
6448             if test $wxUSE_EPOLL_DISPATCHER = no; then
6449               result=yes
6450             else
6451               result=no
6452             fi
6453           else
6454             result=$wxUSE_EPOLL_DISPATCHER
6455           fi
6456
6457           { echo "$as_me:$LINENO: result: $result" >&5
6458 echo "${ECHO_T}$result" >&6; }
6459
6460
6461           enablestring=
6462           defaultval=$wxUSE_ALL_FEATURES
6463           if test -z "$defaultval"; then
6464               if test x"$enablestring" = xdisable; then
6465                   defaultval=yes
6466               else
6467                   defaultval=no
6468               fi
6469           fi
6470
6471           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6472 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6473           # Check whether --enable-selectloop was given.
6474 if test "${enable_selectloop+set}" = set; then
6475   enableval=$enable_selectloop;
6476                           if test "$enableval" = yes; then
6477                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6478                           else
6479                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6480                           fi
6481
6482 else
6483
6484                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6485
6486 fi
6487
6488
6489           eval "$wx_cv_use_selectloop"
6490
6491           if test x"$enablestring" = xdisable; then
6492             if test $wxUSE_SELECT_DISPATCHER = no; then
6493               result=yes
6494             else
6495               result=no
6496             fi
6497           else
6498             result=$wxUSE_SELECT_DISPATCHER
6499           fi
6500
6501           { echo "$as_me:$LINENO: result: $result" >&5
6502 echo "${ECHO_T}$result" >&6; }
6503
6504
6505
6506           enablestring=
6507           defaultval=$wxUSE_ALL_FEATURES
6508           if test -z "$defaultval"; then
6509               if test x"$enablestring" = xdisable; then
6510                   defaultval=yes
6511               else
6512                   defaultval=no
6513               fi
6514           fi
6515
6516           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6517 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6518           # Check whether --enable-any was given.
6519 if test "${enable_any+set}" = set; then
6520   enableval=$enable_any;
6521                           if test "$enableval" = yes; then
6522                             wx_cv_use_any='wxUSE_ANY=yes'
6523                           else
6524                             wx_cv_use_any='wxUSE_ANY=no'
6525                           fi
6526
6527 else
6528
6529                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6530
6531 fi
6532
6533
6534           eval "$wx_cv_use_any"
6535
6536           if test x"$enablestring" = xdisable; then
6537             if test $wxUSE_ANY = no; then
6538               result=yes
6539             else
6540               result=no
6541             fi
6542           else
6543             result=$wxUSE_ANY
6544           fi
6545
6546           { echo "$as_me:$LINENO: result: $result" >&5
6547 echo "${ECHO_T}$result" >&6; }
6548
6549
6550           enablestring=
6551           defaultval=$wxUSE_ALL_FEATURES
6552           if test -z "$defaultval"; then
6553               if test x"$enablestring" = xdisable; then
6554                   defaultval=yes
6555               else
6556                   defaultval=no
6557               fi
6558           fi
6559
6560           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6561 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6562           # Check whether --enable-apple_ieee was given.
6563 if test "${enable_apple_ieee+set}" = set; then
6564   enableval=$enable_apple_ieee;
6565                           if test "$enableval" = yes; then
6566                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6567                           else
6568                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6569                           fi
6570
6571 else
6572
6573                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6574
6575 fi
6576
6577
6578           eval "$wx_cv_use_apple_ieee"
6579
6580           if test x"$enablestring" = xdisable; then
6581             if test $wxUSE_APPLE_IEEE = no; then
6582               result=yes
6583             else
6584               result=no
6585             fi
6586           else
6587             result=$wxUSE_APPLE_IEEE
6588           fi
6589
6590           { echo "$as_me:$LINENO: result: $result" >&5
6591 echo "${ECHO_T}$result" >&6; }
6592
6593
6594           enablestring=
6595           defaultval=$wxUSE_ALL_FEATURES
6596           if test -z "$defaultval"; then
6597               if test x"$enablestring" = xdisable; then
6598                   defaultval=yes
6599               else
6600                   defaultval=no
6601               fi
6602           fi
6603
6604           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6605 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6606           # Check whether --enable-arcstream was given.
6607 if test "${enable_arcstream+set}" = set; then
6608   enableval=$enable_arcstream;
6609                           if test "$enableval" = yes; then
6610                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6611                           else
6612                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6613                           fi
6614
6615 else
6616
6617                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6618
6619 fi
6620
6621
6622           eval "$wx_cv_use_arcstream"
6623
6624           if test x"$enablestring" = xdisable; then
6625             if test $wxUSE_ARCHIVE_STREAMS = no; then
6626               result=yes
6627             else
6628               result=no
6629             fi
6630           else
6631             result=$wxUSE_ARCHIVE_STREAMS
6632           fi
6633
6634           { echo "$as_me:$LINENO: result: $result" >&5
6635 echo "${ECHO_T}$result" >&6; }
6636
6637
6638           enablestring=
6639           defaultval=$wxUSE_ALL_FEATURES
6640           if test -z "$defaultval"; then
6641               if test x"$enablestring" = xdisable; then
6642                   defaultval=yes
6643               else
6644                   defaultval=no
6645               fi
6646           fi
6647
6648           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6649 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6650           # Check whether --enable-base64 was given.
6651 if test "${enable_base64+set}" = set; then
6652   enableval=$enable_base64;
6653                           if test "$enableval" = yes; then
6654                             wx_cv_use_base64='wxUSE_BASE64=yes'
6655                           else
6656                             wx_cv_use_base64='wxUSE_BASE64=no'
6657                           fi
6658
6659 else
6660
6661                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6662
6663 fi
6664
6665
6666           eval "$wx_cv_use_base64"
6667
6668           if test x"$enablestring" = xdisable; then
6669             if test $wxUSE_BASE64 = no; then
6670               result=yes
6671             else
6672               result=no
6673             fi
6674           else
6675             result=$wxUSE_BASE64
6676           fi
6677
6678           { echo "$as_me:$LINENO: result: $result" >&5
6679 echo "${ECHO_T}$result" >&6; }
6680
6681
6682           enablestring=
6683           defaultval=$wxUSE_ALL_FEATURES
6684           if test -z "$defaultval"; then
6685               if test x"$enablestring" = xdisable; then
6686                   defaultval=yes
6687               else
6688                   defaultval=no
6689               fi
6690           fi
6691
6692           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6693 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6694           # Check whether --enable-backtrace was given.
6695 if test "${enable_backtrace+set}" = set; then
6696   enableval=$enable_backtrace;
6697                           if test "$enableval" = yes; then
6698                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6699                           else
6700                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6701                           fi
6702
6703 else
6704
6705                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6706
6707 fi
6708
6709
6710           eval "$wx_cv_use_backtrace"
6711
6712           if test x"$enablestring" = xdisable; then
6713             if test $wxUSE_STACKWALKER = no; then
6714               result=yes
6715             else
6716               result=no
6717             fi
6718           else
6719             result=$wxUSE_STACKWALKER
6720           fi
6721
6722           { echo "$as_me:$LINENO: result: $result" >&5
6723 echo "${ECHO_T}$result" >&6; }
6724
6725
6726           enablestring=
6727           defaultval=$wxUSE_ALL_FEATURES
6728           if test -z "$defaultval"; then
6729               if test x"$enablestring" = xdisable; then
6730                   defaultval=yes
6731               else
6732                   defaultval=no
6733               fi
6734           fi
6735
6736           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6737 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6738           # Check whether --enable-catch_segvs was given.
6739 if test "${enable_catch_segvs+set}" = set; then
6740   enableval=$enable_catch_segvs;
6741                           if test "$enableval" = yes; then
6742                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6743                           else
6744                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6745                           fi
6746
6747 else
6748
6749                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6750
6751 fi
6752
6753
6754           eval "$wx_cv_use_catch_segvs"
6755
6756           if test x"$enablestring" = xdisable; then
6757             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6758               result=yes
6759             else
6760               result=no
6761             fi
6762           else
6763             result=$wxUSE_ON_FATAL_EXCEPTION
6764           fi
6765
6766           { echo "$as_me:$LINENO: result: $result" >&5
6767 echo "${ECHO_T}$result" >&6; }
6768
6769
6770           enablestring=
6771           defaultval=$wxUSE_ALL_FEATURES
6772           if test -z "$defaultval"; then
6773               if test x"$enablestring" = xdisable; then
6774                   defaultval=yes
6775               else
6776                   defaultval=no
6777               fi
6778           fi
6779
6780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6781 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6782           # Check whether --enable-cmdline was given.
6783 if test "${enable_cmdline+set}" = set; then
6784   enableval=$enable_cmdline;
6785                           if test "$enableval" = yes; then
6786                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6787                           else
6788                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6789                           fi
6790
6791 else
6792
6793                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6794
6795 fi
6796
6797
6798           eval "$wx_cv_use_cmdline"
6799
6800           if test x"$enablestring" = xdisable; then
6801             if test $wxUSE_CMDLINE_PARSER = no; then
6802               result=yes
6803             else
6804               result=no
6805             fi
6806           else
6807             result=$wxUSE_CMDLINE_PARSER
6808           fi
6809
6810           { echo "$as_me:$LINENO: result: $result" >&5
6811 echo "${ECHO_T}$result" >&6; }
6812
6813
6814           enablestring=
6815           defaultval=$wxUSE_ALL_FEATURES
6816           if test -z "$defaultval"; then
6817               if test x"$enablestring" = xdisable; then
6818                   defaultval=yes
6819               else
6820                   defaultval=no
6821               fi
6822           fi
6823
6824           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6825 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6826           # Check whether --enable-datetime was given.
6827 if test "${enable_datetime+set}" = set; then
6828   enableval=$enable_datetime;
6829                           if test "$enableval" = yes; then
6830                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6831                           else
6832                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6833                           fi
6834
6835 else
6836
6837                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6838
6839 fi
6840
6841
6842           eval "$wx_cv_use_datetime"
6843
6844           if test x"$enablestring" = xdisable; then
6845             if test $wxUSE_DATETIME = no; then
6846               result=yes
6847             else
6848               result=no
6849             fi
6850           else
6851             result=$wxUSE_DATETIME
6852           fi
6853
6854           { echo "$as_me:$LINENO: result: $result" >&5
6855 echo "${ECHO_T}$result" >&6; }
6856
6857
6858           enablestring=
6859           defaultval=$wxUSE_ALL_FEATURES
6860           if test -z "$defaultval"; then
6861               if test x"$enablestring" = xdisable; then
6862                   defaultval=yes
6863               else
6864                   defaultval=no
6865               fi
6866           fi
6867
6868           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6869 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6870           # Check whether --enable-debugreport was given.
6871 if test "${enable_debugreport+set}" = set; then
6872   enableval=$enable_debugreport;
6873                           if test "$enableval" = yes; then
6874                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6875                           else
6876                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6877                           fi
6878
6879 else
6880
6881                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6882
6883 fi
6884
6885
6886           eval "$wx_cv_use_debugreport"
6887
6888           if test x"$enablestring" = xdisable; then
6889             if test $wxUSE_DEBUGREPORT = no; then
6890               result=yes
6891             else
6892               result=no
6893             fi
6894           else
6895             result=$wxUSE_DEBUGREPORT
6896           fi
6897
6898           { echo "$as_me:$LINENO: result: $result" >&5
6899 echo "${ECHO_T}$result" >&6; }
6900
6901
6902           enablestring=
6903           defaultval=$wxUSE_ALL_FEATURES
6904           if test -z "$defaultval"; then
6905               if test x"$enablestring" = xdisable; then
6906                   defaultval=yes
6907               else
6908                   defaultval=no
6909               fi
6910           fi
6911
6912           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6913 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6914           # Check whether --enable-dialupman was given.
6915 if test "${enable_dialupman+set}" = set; then
6916   enableval=$enable_dialupman;
6917                           if test "$enableval" = yes; then
6918                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6919                           else
6920                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6921                           fi
6922
6923 else
6924
6925                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6926
6927 fi
6928
6929
6930           eval "$wx_cv_use_dialupman"
6931
6932           if test x"$enablestring" = xdisable; then
6933             if test $wxUSE_DIALUP_MANAGER = no; then
6934               result=yes
6935             else
6936               result=no
6937             fi
6938           else
6939             result=$wxUSE_DIALUP_MANAGER
6940           fi
6941
6942           { echo "$as_me:$LINENO: result: $result" >&5
6943 echo "${ECHO_T}$result" >&6; }
6944
6945
6946           enablestring=
6947           defaultval=$wxUSE_ALL_FEATURES
6948           if test -z "$defaultval"; then
6949               if test x"$enablestring" = xdisable; then
6950                   defaultval=yes
6951               else
6952                   defaultval=no
6953               fi
6954           fi
6955
6956           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6957 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6958           # Check whether --enable-dynlib was given.
6959 if test "${enable_dynlib+set}" = set; then
6960   enableval=$enable_dynlib;
6961                           if test "$enableval" = yes; then
6962                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6963                           else
6964                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6965                           fi
6966
6967 else
6968
6969                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6970
6971 fi
6972
6973
6974           eval "$wx_cv_use_dynlib"
6975
6976           if test x"$enablestring" = xdisable; then
6977             if test $wxUSE_DYNLIB_CLASS = no; then
6978               result=yes
6979             else
6980               result=no
6981             fi
6982           else
6983             result=$wxUSE_DYNLIB_CLASS
6984           fi
6985
6986           { echo "$as_me:$LINENO: result: $result" >&5
6987 echo "${ECHO_T}$result" >&6; }
6988
6989
6990           enablestring=
6991           defaultval=$wxUSE_ALL_FEATURES
6992           if test -z "$defaultval"; then
6993               if test x"$enablestring" = xdisable; then
6994                   defaultval=yes
6995               else
6996                   defaultval=no
6997               fi
6998           fi
6999
7000           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7001 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7002           # Check whether --enable-dynamicloader was given.
7003 if test "${enable_dynamicloader+set}" = set; then
7004   enableval=$enable_dynamicloader;
7005                           if test "$enableval" = yes; then
7006                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7007                           else
7008                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7009                           fi
7010
7011 else
7012
7013                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7014
7015 fi
7016
7017
7018           eval "$wx_cv_use_dynamicloader"
7019
7020           if test x"$enablestring" = xdisable; then
7021             if test $wxUSE_DYNAMIC_LOADER = no; then
7022               result=yes
7023             else
7024               result=no
7025             fi
7026           else
7027             result=$wxUSE_DYNAMIC_LOADER
7028           fi
7029
7030           { echo "$as_me:$LINENO: result: $result" >&5
7031 echo "${ECHO_T}$result" >&6; }
7032
7033
7034           enablestring=
7035           defaultval=$wxUSE_ALL_FEATURES
7036           if test -z "$defaultval"; then
7037               if test x"$enablestring" = xdisable; then
7038                   defaultval=yes
7039               else
7040                   defaultval=no
7041               fi
7042           fi
7043
7044           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7045 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7046           # Check whether --enable-exceptions was given.
7047 if test "${enable_exceptions+set}" = set; then
7048   enableval=$enable_exceptions;
7049                           if test "$enableval" = yes; then
7050                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7051                           else
7052                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7053                           fi
7054
7055 else
7056
7057                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7058
7059 fi
7060
7061
7062           eval "$wx_cv_use_exceptions"
7063
7064           if test x"$enablestring" = xdisable; then
7065             if test $wxUSE_EXCEPTIONS = no; then
7066               result=yes
7067             else
7068               result=no
7069             fi
7070           else
7071             result=$wxUSE_EXCEPTIONS
7072           fi
7073
7074           { echo "$as_me:$LINENO: result: $result" >&5
7075 echo "${ECHO_T}$result" >&6; }
7076
7077
7078           enablestring=
7079           defaultval=$wxUSE_ALL_FEATURES
7080           if test -z "$defaultval"; then
7081               if test x"$enablestring" = xdisable; then
7082                   defaultval=yes
7083               else
7084                   defaultval=no
7085               fi
7086           fi
7087
7088           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7089 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7090           # Check whether --enable-ffile was given.
7091 if test "${enable_ffile+set}" = set; then
7092   enableval=$enable_ffile;
7093                           if test "$enableval" = yes; then
7094                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7095                           else
7096                             wx_cv_use_ffile='wxUSE_FFILE=no'
7097                           fi
7098
7099 else
7100
7101                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7102
7103 fi
7104
7105
7106           eval "$wx_cv_use_ffile"
7107
7108           if test x"$enablestring" = xdisable; then
7109             if test $wxUSE_FFILE = no; then
7110               result=yes
7111             else
7112               result=no
7113             fi
7114           else
7115             result=$wxUSE_FFILE
7116           fi
7117
7118           { echo "$as_me:$LINENO: result: $result" >&5
7119 echo "${ECHO_T}$result" >&6; }
7120
7121
7122           enablestring=
7123           defaultval=$wxUSE_ALL_FEATURES
7124           if test -z "$defaultval"; then
7125               if test x"$enablestring" = xdisable; then
7126                   defaultval=yes
7127               else
7128                   defaultval=no
7129               fi
7130           fi
7131
7132           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7133 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7134           # Check whether --enable-file was given.
7135 if test "${enable_file+set}" = set; then
7136   enableval=$enable_file;
7137                           if test "$enableval" = yes; then
7138                             wx_cv_use_file='wxUSE_FILE=yes'
7139                           else
7140                             wx_cv_use_file='wxUSE_FILE=no'
7141                           fi
7142
7143 else
7144
7145                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7146
7147 fi
7148
7149
7150           eval "$wx_cv_use_file"
7151
7152           if test x"$enablestring" = xdisable; then
7153             if test $wxUSE_FILE = no; then
7154               result=yes
7155             else
7156               result=no
7157             fi
7158           else
7159             result=$wxUSE_FILE
7160           fi
7161
7162           { echo "$as_me:$LINENO: result: $result" >&5
7163 echo "${ECHO_T}$result" >&6; }
7164
7165
7166           enablestring=
7167           defaultval=$wxUSE_ALL_FEATURES
7168           if test -z "$defaultval"; then
7169               if test x"$enablestring" = xdisable; then
7170                   defaultval=yes
7171               else
7172                   defaultval=no
7173               fi
7174           fi
7175
7176           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
7177 echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7178           # Check whether --enable-filehistory was given.
7179 if test "${enable_filehistory+set}" = set; then
7180   enableval=$enable_filehistory;
7181                           if test "$enableval" = yes; then
7182                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7183                           else
7184                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7185                           fi
7186
7187 else
7188
7189                           wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7190
7191 fi
7192
7193
7194           eval "$wx_cv_use_filehistory"
7195
7196           if test x"$enablestring" = xdisable; then
7197             if test $wxUSE_FILE_HISTORY = no; then
7198               result=yes
7199             else
7200               result=no
7201             fi
7202           else
7203             result=$wxUSE_FILE_HISTORY
7204           fi
7205
7206           { echo "$as_me:$LINENO: result: $result" >&5
7207 echo "${ECHO_T}$result" >&6; }
7208
7209
7210           enablestring=
7211           defaultval=$wxUSE_ALL_FEATURES
7212           if test -z "$defaultval"; then
7213               if test x"$enablestring" = xdisable; then
7214                   defaultval=yes
7215               else
7216                   defaultval=no
7217               fi
7218           fi
7219
7220           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7221 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7222           # Check whether --enable-filesystem was given.
7223 if test "${enable_filesystem+set}" = set; then
7224   enableval=$enable_filesystem;
7225                           if test "$enableval" = yes; then
7226                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7227                           else
7228                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7229                           fi
7230
7231 else
7232
7233                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7234
7235 fi
7236
7237
7238           eval "$wx_cv_use_filesystem"
7239
7240           if test x"$enablestring" = xdisable; then
7241             if test $wxUSE_FILESYSTEM = no; then
7242               result=yes
7243             else
7244               result=no
7245             fi
7246           else
7247             result=$wxUSE_FILESYSTEM
7248           fi
7249
7250           { echo "$as_me:$LINENO: result: $result" >&5
7251 echo "${ECHO_T}$result" >&6; }
7252
7253
7254           enablestring=
7255           defaultval=$wxUSE_ALL_FEATURES
7256           if test -z "$defaultval"; then
7257               if test x"$enablestring" = xdisable; then
7258                   defaultval=yes
7259               else
7260                   defaultval=no
7261               fi
7262           fi
7263
7264           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7265 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7266           # Check whether --enable-fontenum was given.
7267 if test "${enable_fontenum+set}" = set; then
7268   enableval=$enable_fontenum;
7269                           if test "$enableval" = yes; then
7270                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7271                           else
7272                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7273                           fi
7274
7275 else
7276
7277                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7278
7279 fi
7280
7281
7282           eval "$wx_cv_use_fontenum"
7283
7284           if test x"$enablestring" = xdisable; then
7285             if test $wxUSE_FONTENUM = no; then
7286               result=yes
7287             else
7288               result=no
7289             fi
7290           else
7291             result=$wxUSE_FONTENUM
7292           fi
7293
7294           { echo "$as_me:$LINENO: result: $result" >&5
7295 echo "${ECHO_T}$result" >&6; }
7296
7297
7298           enablestring=
7299           defaultval=$wxUSE_ALL_FEATURES
7300           if test -z "$defaultval"; then
7301               if test x"$enablestring" = xdisable; then
7302                   defaultval=yes
7303               else
7304                   defaultval=no
7305               fi
7306           fi
7307
7308           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7309 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7310           # Check whether --enable-fontmap was given.
7311 if test "${enable_fontmap+set}" = set; then
7312   enableval=$enable_fontmap;
7313                           if test "$enableval" = yes; then
7314                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7315                           else
7316                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7317                           fi
7318
7319 else
7320
7321                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7322
7323 fi
7324
7325
7326           eval "$wx_cv_use_fontmap"
7327
7328           if test x"$enablestring" = xdisable; then
7329             if test $wxUSE_FONTMAP = no; then
7330               result=yes
7331             else
7332               result=no
7333             fi
7334           else
7335             result=$wxUSE_FONTMAP
7336           fi
7337
7338           { echo "$as_me:$LINENO: result: $result" >&5
7339 echo "${ECHO_T}$result" >&6; }
7340
7341
7342           enablestring=
7343           defaultval=$wxUSE_ALL_FEATURES
7344           if test -z "$defaultval"; then
7345               if test x"$enablestring" = xdisable; then
7346                   defaultval=yes
7347               else
7348                   defaultval=no
7349               fi
7350           fi
7351
7352           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7353 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7354           # Check whether --enable-fs_archive was given.
7355 if test "${enable_fs_archive+set}" = set; then
7356   enableval=$enable_fs_archive;
7357                           if test "$enableval" = yes; then
7358                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7359                           else
7360                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7361                           fi
7362
7363 else
7364
7365                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7366
7367 fi
7368
7369
7370           eval "$wx_cv_use_fs_archive"
7371
7372           if test x"$enablestring" = xdisable; then
7373             if test $wxUSE_FS_ARCHIVE = no; then
7374               result=yes
7375             else
7376               result=no
7377             fi
7378           else
7379             result=$wxUSE_FS_ARCHIVE
7380           fi
7381
7382           { echo "$as_me:$LINENO: result: $result" >&5
7383 echo "${ECHO_T}$result" >&6; }
7384
7385
7386           enablestring=
7387           defaultval=$wxUSE_ALL_FEATURES
7388           if test -z "$defaultval"; then
7389               if test x"$enablestring" = xdisable; then
7390                   defaultval=yes
7391               else
7392                   defaultval=no
7393               fi
7394           fi
7395
7396           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7397 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7398           # Check whether --enable-fs_inet was given.
7399 if test "${enable_fs_inet+set}" = set; then
7400   enableval=$enable_fs_inet;
7401                           if test "$enableval" = yes; then
7402                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7403                           else
7404                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7405                           fi
7406
7407 else
7408
7409                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7410
7411 fi
7412
7413
7414           eval "$wx_cv_use_fs_inet"
7415
7416           if test x"$enablestring" = xdisable; then
7417             if test $wxUSE_FS_INET = no; then
7418               result=yes
7419             else
7420               result=no
7421             fi
7422           else
7423             result=$wxUSE_FS_INET
7424           fi
7425
7426           { echo "$as_me:$LINENO: result: $result" >&5
7427 echo "${ECHO_T}$result" >&6; }
7428
7429
7430           enablestring=
7431           defaultval=$wxUSE_ALL_FEATURES
7432           if test -z "$defaultval"; then
7433               if test x"$enablestring" = xdisable; then
7434                   defaultval=yes
7435               else
7436                   defaultval=no
7437               fi
7438           fi
7439
7440           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7441 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7442           # Check whether --enable-fs_zip was given.
7443 if test "${enable_fs_zip+set}" = set; then
7444   enableval=$enable_fs_zip;
7445                           if test "$enableval" = yes; then
7446                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7447                           else
7448                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7449                           fi
7450
7451 else
7452
7453                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7454
7455 fi
7456
7457
7458           eval "$wx_cv_use_fs_zip"
7459
7460           if test x"$enablestring" = xdisable; then
7461             if test $wxUSE_FS_ZIP = no; then
7462               result=yes
7463             else
7464               result=no
7465             fi
7466           else
7467             result=$wxUSE_FS_ZIP
7468           fi
7469
7470           { echo "$as_me:$LINENO: result: $result" >&5
7471 echo "${ECHO_T}$result" >&6; }
7472
7473
7474           enablestring=
7475           defaultval=$wxUSE_ALL_FEATURES
7476           if test -z "$defaultval"; then
7477               if test x"$enablestring" = xdisable; then
7478                   defaultval=yes
7479               else
7480                   defaultval=no
7481               fi
7482           fi
7483
7484           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7485 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7486           # Check whether --enable-fswatcher was given.
7487 if test "${enable_fswatcher+set}" = set; then
7488   enableval=$enable_fswatcher;
7489                           if test "$enableval" = yes; then
7490                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7491                           else
7492                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7493                           fi
7494
7495 else
7496
7497                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7498
7499 fi
7500
7501
7502           eval "$wx_cv_use_fswatcher"
7503
7504           if test x"$enablestring" = xdisable; then
7505             if test $wxUSE_FSWATCHER = no; then
7506               result=yes
7507             else
7508               result=no
7509             fi
7510           else
7511             result=$wxUSE_FSWATCHER
7512           fi
7513
7514           { echo "$as_me:$LINENO: result: $result" >&5
7515 echo "${ECHO_T}$result" >&6; }
7516
7517
7518           enablestring=
7519           defaultval=$wxUSE_ALL_FEATURES
7520           if test -z "$defaultval"; then
7521               if test x"$enablestring" = xdisable; then
7522                   defaultval=yes
7523               else
7524                   defaultval=no
7525               fi
7526           fi
7527
7528           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7529 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7530           # Check whether --enable-geometry was given.
7531 if test "${enable_geometry+set}" = set; then
7532   enableval=$enable_geometry;
7533                           if test "$enableval" = yes; then
7534                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7535                           else
7536                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7537                           fi
7538
7539 else
7540
7541                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7542
7543 fi
7544
7545
7546           eval "$wx_cv_use_geometry"
7547
7548           if test x"$enablestring" = xdisable; then
7549             if test $wxUSE_GEOMETRY = no; then
7550               result=yes
7551             else
7552               result=no
7553             fi
7554           else
7555             result=$wxUSE_GEOMETRY
7556           fi
7557
7558           { echo "$as_me:$LINENO: result: $result" >&5
7559 echo "${ECHO_T}$result" >&6; }
7560
7561
7562           enablestring=
7563           defaultval=$wxUSE_ALL_FEATURES
7564           if test -z "$defaultval"; then
7565               if test x"$enablestring" = xdisable; then
7566                   defaultval=yes
7567               else
7568                   defaultval=no
7569               fi
7570           fi
7571
7572           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7573 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7574           # Check whether --enable-log was given.
7575 if test "${enable_log+set}" = set; then
7576   enableval=$enable_log;
7577                           if test "$enableval" = yes; then
7578                             wx_cv_use_log='wxUSE_LOG=yes'
7579                           else
7580                             wx_cv_use_log='wxUSE_LOG=no'
7581                           fi
7582
7583 else
7584
7585                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7586
7587 fi
7588
7589
7590           eval "$wx_cv_use_log"
7591
7592           if test x"$enablestring" = xdisable; then
7593             if test $wxUSE_LOG = no; then
7594               result=yes
7595             else
7596               result=no
7597             fi
7598           else
7599             result=$wxUSE_LOG
7600           fi
7601
7602           { echo "$as_me:$LINENO: result: $result" >&5
7603 echo "${ECHO_T}$result" >&6; }
7604
7605
7606           enablestring=
7607           defaultval=$wxUSE_ALL_FEATURES
7608           if test -z "$defaultval"; then
7609               if test x"$enablestring" = xdisable; then
7610                   defaultval=yes
7611               else
7612                   defaultval=no
7613               fi
7614           fi
7615
7616           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7617 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7618           # Check whether --enable-longlong was given.
7619 if test "${enable_longlong+set}" = set; then
7620   enableval=$enable_longlong;
7621                           if test "$enableval" = yes; then
7622                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7623                           else
7624                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7625                           fi
7626
7627 else
7628
7629                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7630
7631 fi
7632
7633
7634           eval "$wx_cv_use_longlong"
7635
7636           if test x"$enablestring" = xdisable; then
7637             if test $wxUSE_LONGLONG = no; then
7638               result=yes
7639             else
7640               result=no
7641             fi
7642           else
7643             result=$wxUSE_LONGLONG
7644           fi
7645
7646           { echo "$as_me:$LINENO: result: $result" >&5
7647 echo "${ECHO_T}$result" >&6; }
7648
7649
7650           enablestring=
7651           defaultval=$wxUSE_ALL_FEATURES
7652           if test -z "$defaultval"; then
7653               if test x"$enablestring" = xdisable; then
7654                   defaultval=yes
7655               else
7656                   defaultval=no
7657               fi
7658           fi
7659
7660           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7661 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7662           # Check whether --enable-mimetype was given.
7663 if test "${enable_mimetype+set}" = set; then
7664   enableval=$enable_mimetype;
7665                           if test "$enableval" = yes; then
7666                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7667                           else
7668                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7669                           fi
7670
7671 else
7672
7673                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7674
7675 fi
7676
7677
7678           eval "$wx_cv_use_mimetype"
7679
7680           if test x"$enablestring" = xdisable; then
7681             if test $wxUSE_MIMETYPE = no; then
7682               result=yes
7683             else
7684               result=no
7685             fi
7686           else
7687             result=$wxUSE_MIMETYPE
7688           fi
7689
7690           { echo "$as_me:$LINENO: result: $result" >&5
7691 echo "${ECHO_T}$result" >&6; }
7692
7693
7694           enablestring=
7695           defaultval=$wxUSE_ALL_FEATURES
7696           if test -z "$defaultval"; then
7697               if test x"$enablestring" = xdisable; then
7698                   defaultval=yes
7699               else
7700                   defaultval=no
7701               fi
7702           fi
7703
7704           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7705 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7706           # Check whether --enable-printfposparam was given.
7707 if test "${enable_printfposparam+set}" = set; then
7708   enableval=$enable_printfposparam;
7709                           if test "$enableval" = yes; then
7710                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7711                           else
7712                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7713                           fi
7714
7715 else
7716
7717                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7718
7719 fi
7720
7721
7722           eval "$wx_cv_use_printfposparam"
7723
7724           if test x"$enablestring" = xdisable; then
7725             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7726               result=yes
7727             else
7728               result=no
7729             fi
7730           else
7731             result=$wxUSE_PRINTF_POS_PARAMS
7732           fi
7733
7734           { echo "$as_me:$LINENO: result: $result" >&5
7735 echo "${ECHO_T}$result" >&6; }
7736
7737
7738           enablestring=
7739           defaultval=$wxUSE_ALL_FEATURES
7740           if test -z "$defaultval"; then
7741               if test x"$enablestring" = xdisable; then
7742                   defaultval=yes
7743               else
7744                   defaultval=no
7745               fi
7746           fi
7747
7748           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7749 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7750           # Check whether --enable-snglinst was given.
7751 if test "${enable_snglinst+set}" = set; then
7752   enableval=$enable_snglinst;
7753                           if test "$enableval" = yes; then
7754                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7755                           else
7756                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7757                           fi
7758
7759 else
7760
7761                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7762
7763 fi
7764
7765
7766           eval "$wx_cv_use_snglinst"
7767
7768           if test x"$enablestring" = xdisable; then
7769             if test $wxUSE_SNGLINST_CHECKER = no; then
7770               result=yes
7771             else
7772               result=no
7773             fi
7774           else
7775             result=$wxUSE_SNGLINST_CHECKER
7776           fi
7777
7778           { echo "$as_me:$LINENO: result: $result" >&5
7779 echo "${ECHO_T}$result" >&6; }
7780
7781
7782           enablestring=
7783           defaultval=$wxUSE_ALL_FEATURES
7784           if test -z "$defaultval"; then
7785               if test x"$enablestring" = xdisable; then
7786                   defaultval=yes
7787               else
7788                   defaultval=no
7789               fi
7790           fi
7791
7792           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7793 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7794           # Check whether --enable-sound was given.
7795 if test "${enable_sound+set}" = set; then
7796   enableval=$enable_sound;
7797                           if test "$enableval" = yes; then
7798                             wx_cv_use_sound='wxUSE_SOUND=yes'
7799                           else
7800                             wx_cv_use_sound='wxUSE_SOUND=no'
7801                           fi
7802
7803 else
7804
7805                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7806
7807 fi
7808
7809
7810           eval "$wx_cv_use_sound"
7811
7812           if test x"$enablestring" = xdisable; then
7813             if test $wxUSE_SOUND = no; then
7814               result=yes
7815             else
7816               result=no
7817             fi
7818           else
7819             result=$wxUSE_SOUND
7820           fi
7821
7822           { echo "$as_me:$LINENO: result: $result" >&5
7823 echo "${ECHO_T}$result" >&6; }
7824
7825
7826           enablestring=
7827           defaultval=$wxUSE_ALL_FEATURES
7828           if test -z "$defaultval"; then
7829               if test x"$enablestring" = xdisable; then
7830                   defaultval=yes
7831               else
7832                   defaultval=no
7833               fi
7834           fi
7835
7836           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7837 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7838           # Check whether --enable-stdpaths was given.
7839 if test "${enable_stdpaths+set}" = set; then
7840   enableval=$enable_stdpaths;
7841                           if test "$enableval" = yes; then
7842                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7843                           else
7844                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7845                           fi
7846
7847 else
7848
7849                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7850
7851 fi
7852
7853
7854           eval "$wx_cv_use_stdpaths"
7855
7856           if test x"$enablestring" = xdisable; then
7857             if test $wxUSE_STDPATHS = no; then
7858               result=yes
7859             else
7860               result=no
7861             fi
7862           else
7863             result=$wxUSE_STDPATHS
7864           fi
7865
7866           { echo "$as_me:$LINENO: result: $result" >&5
7867 echo "${ECHO_T}$result" >&6; }
7868
7869
7870           enablestring=
7871           defaultval=$wxUSE_ALL_FEATURES
7872           if test -z "$defaultval"; then
7873               if test x"$enablestring" = xdisable; then
7874                   defaultval=yes
7875               else
7876                   defaultval=no
7877               fi
7878           fi
7879
7880           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7881 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7882           # Check whether --enable-stopwatch was given.
7883 if test "${enable_stopwatch+set}" = set; then
7884   enableval=$enable_stopwatch;
7885                           if test "$enableval" = yes; then
7886                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7887                           else
7888                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7889                           fi
7890
7891 else
7892
7893                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7894
7895 fi
7896
7897
7898           eval "$wx_cv_use_stopwatch"
7899
7900           if test x"$enablestring" = xdisable; then
7901             if test $wxUSE_STOPWATCH = no; then
7902               result=yes
7903             else
7904               result=no
7905             fi
7906           else
7907             result=$wxUSE_STOPWATCH
7908           fi
7909
7910           { echo "$as_me:$LINENO: result: $result" >&5
7911 echo "${ECHO_T}$result" >&6; }
7912
7913
7914           enablestring=
7915           defaultval=$wxUSE_ALL_FEATURES
7916           if test -z "$defaultval"; then
7917               if test x"$enablestring" = xdisable; then
7918                   defaultval=yes
7919               else
7920                   defaultval=no
7921               fi
7922           fi
7923
7924           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7925 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7926           # Check whether --enable-streams was given.
7927 if test "${enable_streams+set}" = set; then
7928   enableval=$enable_streams;
7929                           if test "$enableval" = yes; then
7930                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7931                           else
7932                             wx_cv_use_streams='wxUSE_STREAMS=no'
7933                           fi
7934
7935 else
7936
7937                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7938
7939 fi
7940
7941
7942           eval "$wx_cv_use_streams"
7943
7944           if test x"$enablestring" = xdisable; then
7945             if test $wxUSE_STREAMS = no; then
7946               result=yes
7947             else
7948               result=no
7949             fi
7950           else
7951             result=$wxUSE_STREAMS
7952           fi
7953
7954           { echo "$as_me:$LINENO: result: $result" >&5
7955 echo "${ECHO_T}$result" >&6; }
7956
7957
7958           enablestring=
7959           defaultval=$wxUSE_ALL_FEATURES
7960           if test -z "$defaultval"; then
7961               if test x"$enablestring" = xdisable; then
7962                   defaultval=yes
7963               else
7964                   defaultval=no
7965               fi
7966           fi
7967
7968           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
7969 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
7970           # Check whether --enable-sysoptions was given.
7971 if test "${enable_sysoptions+set}" = set; then
7972   enableval=$enable_sysoptions;
7973                           if test "$enableval" = yes; then
7974                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
7975                           else
7976                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
7977                           fi
7978
7979 else
7980
7981                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7982
7983 fi
7984
7985
7986           eval "$wx_cv_use_sysoptions"
7987
7988           if test x"$enablestring" = xdisable; then
7989             if test $wxUSE_SYSTEM_OPTIONS = no; then
7990               result=yes
7991             else
7992               result=no
7993             fi
7994           else
7995             result=$wxUSE_SYSTEM_OPTIONS
7996           fi
7997
7998           { echo "$as_me:$LINENO: result: $result" >&5
7999 echo "${ECHO_T}$result" >&6; }
8000
8001
8002           enablestring=
8003           defaultval=$wxUSE_ALL_FEATURES
8004           if test -z "$defaultval"; then
8005               if test x"$enablestring" = xdisable; then
8006                   defaultval=yes
8007               else
8008                   defaultval=no
8009               fi
8010           fi
8011
8012           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8013 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8014           # Check whether --enable-tarstream was given.
8015 if test "${enable_tarstream+set}" = set; then
8016   enableval=$enable_tarstream;
8017                           if test "$enableval" = yes; then
8018                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8019                           else
8020                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8021                           fi
8022
8023 else
8024
8025                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8026
8027 fi
8028
8029
8030           eval "$wx_cv_use_tarstream"
8031
8032           if test x"$enablestring" = xdisable; then
8033             if test $wxUSE_TARSTREAM = no; then
8034               result=yes
8035             else
8036               result=no
8037             fi
8038           else
8039             result=$wxUSE_TARSTREAM
8040           fi
8041
8042           { echo "$as_me:$LINENO: result: $result" >&5
8043 echo "${ECHO_T}$result" >&6; }
8044
8045
8046           enablestring=
8047           defaultval=$wxUSE_ALL_FEATURES
8048           if test -z "$defaultval"; then
8049               if test x"$enablestring" = xdisable; then
8050                   defaultval=yes
8051               else
8052                   defaultval=no
8053               fi
8054           fi
8055
8056           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8057 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8058           # Check whether --enable-textbuf was given.
8059 if test "${enable_textbuf+set}" = set; then
8060   enableval=$enable_textbuf;
8061                           if test "$enableval" = yes; then
8062                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8063                           else
8064                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8065                           fi
8066
8067 else
8068
8069                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8070
8071 fi
8072
8073
8074           eval "$wx_cv_use_textbuf"
8075
8076           if test x"$enablestring" = xdisable; then
8077             if test $wxUSE_TEXTBUFFER = no; then
8078               result=yes
8079             else
8080               result=no
8081             fi
8082           else
8083             result=$wxUSE_TEXTBUFFER
8084           fi
8085
8086           { echo "$as_me:$LINENO: result: $result" >&5
8087 echo "${ECHO_T}$result" >&6; }
8088
8089
8090           enablestring=
8091           defaultval=$wxUSE_ALL_FEATURES
8092           if test -z "$defaultval"; then
8093               if test x"$enablestring" = xdisable; then
8094                   defaultval=yes
8095               else
8096                   defaultval=no
8097               fi
8098           fi
8099
8100           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8101 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8102           # Check whether --enable-textfile was given.
8103 if test "${enable_textfile+set}" = set; then
8104   enableval=$enable_textfile;
8105                           if test "$enableval" = yes; then
8106                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8107                           else
8108                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8109                           fi
8110
8111 else
8112
8113                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8114
8115 fi
8116
8117
8118           eval "$wx_cv_use_textfile"
8119
8120           if test x"$enablestring" = xdisable; then
8121             if test $wxUSE_TEXTFILE = no; then
8122               result=yes
8123             else
8124               result=no
8125             fi
8126           else
8127             result=$wxUSE_TEXTFILE
8128           fi
8129
8130           { echo "$as_me:$LINENO: result: $result" >&5
8131 echo "${ECHO_T}$result" >&6; }
8132
8133
8134           enablestring=
8135           defaultval=$wxUSE_ALL_FEATURES
8136           if test -z "$defaultval"; then
8137               if test x"$enablestring" = xdisable; then
8138                   defaultval=yes
8139               else
8140                   defaultval=no
8141               fi
8142           fi
8143
8144           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8145 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8146           # Check whether --enable-timer was given.
8147 if test "${enable_timer+set}" = set; then
8148   enableval=$enable_timer;
8149                           if test "$enableval" = yes; then
8150                             wx_cv_use_timer='wxUSE_TIMER=yes'
8151                           else
8152                             wx_cv_use_timer='wxUSE_TIMER=no'
8153                           fi
8154
8155 else
8156
8157                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8158
8159 fi
8160
8161
8162           eval "$wx_cv_use_timer"
8163
8164           if test x"$enablestring" = xdisable; then
8165             if test $wxUSE_TIMER = no; then
8166               result=yes
8167             else
8168               result=no
8169             fi
8170           else
8171             result=$wxUSE_TIMER
8172           fi
8173
8174           { echo "$as_me:$LINENO: result: $result" >&5
8175 echo "${ECHO_T}$result" >&6; }
8176
8177
8178           enablestring=
8179           defaultval=$wxUSE_ALL_FEATURES
8180           if test -z "$defaultval"; then
8181               if test x"$enablestring" = xdisable; then
8182                   defaultval=yes
8183               else
8184                   defaultval=no
8185               fi
8186           fi
8187
8188           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8189 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8190           # Check whether --enable-variant was given.
8191 if test "${enable_variant+set}" = set; then
8192   enableval=$enable_variant;
8193                           if test "$enableval" = yes; then
8194                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8195                           else
8196                             wx_cv_use_variant='wxUSE_VARIANT=no'
8197                           fi
8198
8199 else
8200
8201                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8202
8203 fi
8204
8205
8206           eval "$wx_cv_use_variant"
8207
8208           if test x"$enablestring" = xdisable; then
8209             if test $wxUSE_VARIANT = no; then
8210               result=yes
8211             else
8212               result=no
8213             fi
8214           else
8215             result=$wxUSE_VARIANT
8216           fi
8217
8218           { echo "$as_me:$LINENO: result: $result" >&5
8219 echo "${ECHO_T}$result" >&6; }
8220
8221
8222           enablestring=
8223           defaultval=$wxUSE_ALL_FEATURES
8224           if test -z "$defaultval"; then
8225               if test x"$enablestring" = xdisable; then
8226                   defaultval=yes
8227               else
8228                   defaultval=no
8229               fi
8230           fi
8231
8232           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8233 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8234           # Check whether --enable-zipstream was given.
8235 if test "${enable_zipstream+set}" = set; then
8236   enableval=$enable_zipstream;
8237                           if test "$enableval" = yes; then
8238                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8239                           else
8240                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8241                           fi
8242
8243 else
8244
8245                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8246
8247 fi
8248
8249
8250           eval "$wx_cv_use_zipstream"
8251
8252           if test x"$enablestring" = xdisable; then
8253             if test $wxUSE_ZIPSTREAM = no; then
8254               result=yes
8255             else
8256               result=no
8257             fi
8258           else
8259             result=$wxUSE_ZIPSTREAM
8260           fi
8261
8262           { echo "$as_me:$LINENO: result: $result" >&5
8263 echo "${ECHO_T}$result" >&6; }
8264
8265
8266
8267           enablestring=
8268           defaultval=$wxUSE_ALL_FEATURES
8269           if test -z "$defaultval"; then
8270               if test x"$enablestring" = xdisable; then
8271                   defaultval=yes
8272               else
8273                   defaultval=no
8274               fi
8275           fi
8276
8277           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8278 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8279           # Check whether --enable-url was given.
8280 if test "${enable_url+set}" = set; then
8281   enableval=$enable_url;
8282                           if test "$enableval" = yes; then
8283                             wx_cv_use_url='wxUSE_URL=yes'
8284                           else
8285                             wx_cv_use_url='wxUSE_URL=no'
8286                           fi
8287
8288 else
8289
8290                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8291
8292 fi
8293
8294
8295           eval "$wx_cv_use_url"
8296
8297           if test x"$enablestring" = xdisable; then
8298             if test $wxUSE_URL = no; then
8299               result=yes
8300             else
8301               result=no
8302             fi
8303           else
8304             result=$wxUSE_URL
8305           fi
8306
8307           { echo "$as_me:$LINENO: result: $result" >&5
8308 echo "${ECHO_T}$result" >&6; }
8309
8310
8311           enablestring=
8312           defaultval=$wxUSE_ALL_FEATURES
8313           if test -z "$defaultval"; then
8314               if test x"$enablestring" = xdisable; then
8315                   defaultval=yes
8316               else
8317                   defaultval=no
8318               fi
8319           fi
8320
8321           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8322 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8323           # Check whether --enable-protocol was given.
8324 if test "${enable_protocol+set}" = set; then
8325   enableval=$enable_protocol;
8326                           if test "$enableval" = yes; then
8327                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8328                           else
8329                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8330                           fi
8331
8332 else
8333
8334                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8335
8336 fi
8337
8338
8339           eval "$wx_cv_use_protocol"
8340
8341           if test x"$enablestring" = xdisable; then
8342             if test $wxUSE_PROTOCOL = no; then
8343               result=yes
8344             else
8345               result=no
8346             fi
8347           else
8348             result=$wxUSE_PROTOCOL
8349           fi
8350
8351           { echo "$as_me:$LINENO: result: $result" >&5
8352 echo "${ECHO_T}$result" >&6; }
8353
8354
8355           enablestring=
8356           defaultval=$wxUSE_ALL_FEATURES
8357           if test -z "$defaultval"; then
8358               if test x"$enablestring" = xdisable; then
8359                   defaultval=yes
8360               else
8361                   defaultval=no
8362               fi
8363           fi
8364
8365           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8366 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8367           # Check whether --enable-protocol_http was given.
8368 if test "${enable_protocol_http+set}" = set; then
8369   enableval=$enable_protocol_http;
8370                           if test "$enableval" = yes; then
8371                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8372                           else
8373                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8374                           fi
8375
8376 else
8377
8378                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8379
8380 fi
8381
8382
8383           eval "$wx_cv_use_protocol_http"
8384
8385           if test x"$enablestring" = xdisable; then
8386             if test $wxUSE_PROTOCOL_HTTP = no; then
8387               result=yes
8388             else
8389               result=no
8390             fi
8391           else
8392             result=$wxUSE_PROTOCOL_HTTP
8393           fi
8394
8395           { echo "$as_me:$LINENO: result: $result" >&5
8396 echo "${ECHO_T}$result" >&6; }
8397
8398
8399           enablestring=
8400           defaultval=$wxUSE_ALL_FEATURES
8401           if test -z "$defaultval"; then
8402               if test x"$enablestring" = xdisable; then
8403                   defaultval=yes
8404               else
8405                   defaultval=no
8406               fi
8407           fi
8408
8409           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8410 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8411           # Check whether --enable-protocol_ftp was given.
8412 if test "${enable_protocol_ftp+set}" = set; then
8413   enableval=$enable_protocol_ftp;
8414                           if test "$enableval" = yes; then
8415                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8416                           else
8417                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8418                           fi
8419
8420 else
8421
8422                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8423
8424 fi
8425
8426
8427           eval "$wx_cv_use_protocol_ftp"
8428
8429           if test x"$enablestring" = xdisable; then
8430             if test $wxUSE_PROTOCOL_FTP = no; then
8431               result=yes
8432             else
8433               result=no
8434             fi
8435           else
8436             result=$wxUSE_PROTOCOL_FTP
8437           fi
8438
8439           { echo "$as_me:$LINENO: result: $result" >&5
8440 echo "${ECHO_T}$result" >&6; }
8441
8442
8443           enablestring=
8444           defaultval=$wxUSE_ALL_FEATURES
8445           if test -z "$defaultval"; then
8446               if test x"$enablestring" = xdisable; then
8447                   defaultval=yes
8448               else
8449                   defaultval=no
8450               fi
8451           fi
8452
8453           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8454 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8455           # Check whether --enable-protocol_file was given.
8456 if test "${enable_protocol_file+set}" = set; then
8457   enableval=$enable_protocol_file;
8458                           if test "$enableval" = yes; then
8459                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8460                           else
8461                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8462                           fi
8463
8464 else
8465
8466                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8467
8468 fi
8469
8470
8471           eval "$wx_cv_use_protocol_file"
8472
8473           if test x"$enablestring" = xdisable; then
8474             if test $wxUSE_PROTOCOL_FILE = no; then
8475               result=yes
8476             else
8477               result=no
8478             fi
8479           else
8480             result=$wxUSE_PROTOCOL_FILE
8481           fi
8482
8483           { echo "$as_me:$LINENO: result: $result" >&5
8484 echo "${ECHO_T}$result" >&6; }
8485
8486
8487
8488           enablestring=
8489           defaultval=$wxUSE_ALL_FEATURES
8490           if test -z "$defaultval"; then
8491               if test x"$enablestring" = xdisable; then
8492                   defaultval=yes
8493               else
8494                   defaultval=no
8495               fi
8496           fi
8497
8498           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8499 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8500           # Check whether --enable-threads was given.
8501 if test "${enable_threads+set}" = set; then
8502   enableval=$enable_threads;
8503                           if test "$enableval" = yes; then
8504                             wx_cv_use_threads='wxUSE_THREADS=yes'
8505                           else
8506                             wx_cv_use_threads='wxUSE_THREADS=no'
8507                           fi
8508
8509 else
8510
8511                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8512
8513 fi
8514
8515
8516           eval "$wx_cv_use_threads"
8517
8518           if test x"$enablestring" = xdisable; then
8519             if test $wxUSE_THREADS = no; then
8520               result=yes
8521             else
8522               result=no
8523             fi
8524           else
8525             result=$wxUSE_THREADS
8526           fi
8527
8528           { echo "$as_me:$LINENO: result: $result" >&5
8529 echo "${ECHO_T}$result" >&6; }
8530
8531
8532
8533           enablestring=
8534           defaultval=
8535           if test -z "$defaultval"; then
8536               if test x"$enablestring" = xdisable; then
8537                   defaultval=yes
8538               else
8539                   defaultval=no
8540               fi
8541           fi
8542
8543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8544 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8545           # Check whether --enable-iniconf was given.
8546 if test "${enable_iniconf+set}" = set; then
8547   enableval=$enable_iniconf;
8548                           if test "$enableval" = yes; then
8549                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8550                           else
8551                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8552                           fi
8553
8554 else
8555
8556                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8557
8558 fi
8559
8560
8561           eval "$wx_cv_use_iniconf"
8562
8563           if test x"$enablestring" = xdisable; then
8564             if test $wxUSE_INICONF = no; then
8565               result=yes
8566             else
8567               result=no
8568             fi
8569           else
8570             result=$wxUSE_INICONF
8571           fi
8572
8573           { echo "$as_me:$LINENO: result: $result" >&5
8574 echo "${ECHO_T}$result" >&6; }
8575
8576
8577           enablestring=
8578           defaultval=$wxUSE_ALL_FEATURES
8579           if test -z "$defaultval"; then
8580               if test x"$enablestring" = xdisable; then
8581                   defaultval=yes
8582               else
8583                   defaultval=no
8584               fi
8585           fi
8586
8587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8588 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8589           # Check whether --enable-regkey was given.
8590 if test "${enable_regkey+set}" = set; then
8591   enableval=$enable_regkey;
8592                           if test "$enableval" = yes; then
8593                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8594                           else
8595                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8596                           fi
8597
8598 else
8599
8600                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8601
8602 fi
8603
8604
8605           eval "$wx_cv_use_regkey"
8606
8607           if test x"$enablestring" = xdisable; then
8608             if test $wxUSE_REGKEY = no; then
8609               result=yes
8610             else
8611               result=no
8612             fi
8613           else
8614             result=$wxUSE_REGKEY
8615           fi
8616
8617           { echo "$as_me:$LINENO: result: $result" >&5
8618 echo "${ECHO_T}$result" >&6; }
8619
8620
8621 if test "$wxUSE_GUI" = "yes"; then
8622
8623
8624
8625           enablestring=
8626           defaultval=$wxUSE_ALL_FEATURES
8627           if test -z "$defaultval"; then
8628               if test x"$enablestring" = xdisable; then
8629                   defaultval=yes
8630               else
8631                   defaultval=no
8632               fi
8633           fi
8634
8635           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8636 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8637           # Check whether --enable-docview was given.
8638 if test "${enable_docview+set}" = set; then
8639   enableval=$enable_docview;
8640                           if test "$enableval" = yes; then
8641                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8642                           else
8643                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8644                           fi
8645
8646 else
8647
8648                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8649
8650 fi
8651
8652
8653           eval "$wx_cv_use_docview"
8654
8655           if test x"$enablestring" = xdisable; then
8656             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8657               result=yes
8658             else
8659               result=no
8660             fi
8661           else
8662             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8663           fi
8664
8665           { echo "$as_me:$LINENO: result: $result" >&5
8666 echo "${ECHO_T}$result" >&6; }
8667
8668
8669           enablestring=
8670           defaultval=$wxUSE_ALL_FEATURES
8671           if test -z "$defaultval"; then
8672               if test x"$enablestring" = xdisable; then
8673                   defaultval=yes
8674               else
8675                   defaultval=no
8676               fi
8677           fi
8678
8679           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8680 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8681           # Check whether --enable-help was given.
8682 if test "${enable_help+set}" = set; then
8683   enableval=$enable_help;
8684                           if test "$enableval" = yes; then
8685                             wx_cv_use_help='wxUSE_HELP=yes'
8686                           else
8687                             wx_cv_use_help='wxUSE_HELP=no'
8688                           fi
8689
8690 else
8691
8692                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8693
8694 fi
8695
8696
8697           eval "$wx_cv_use_help"
8698
8699           if test x"$enablestring" = xdisable; then
8700             if test $wxUSE_HELP = no; then
8701               result=yes
8702             else
8703               result=no
8704             fi
8705           else
8706             result=$wxUSE_HELP
8707           fi
8708
8709           { echo "$as_me:$LINENO: result: $result" >&5
8710 echo "${ECHO_T}$result" >&6; }
8711
8712
8713           enablestring=
8714           defaultval=$wxUSE_ALL_FEATURES
8715           if test -z "$defaultval"; then
8716               if test x"$enablestring" = xdisable; then
8717                   defaultval=yes
8718               else
8719                   defaultval=no
8720               fi
8721           fi
8722
8723           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8724 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8725           # Check whether --enable-mshtmlhelp was given.
8726 if test "${enable_mshtmlhelp+set}" = set; then
8727   enableval=$enable_mshtmlhelp;
8728                           if test "$enableval" = yes; then
8729                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8730                           else
8731                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8732                           fi
8733
8734 else
8735
8736                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8737
8738 fi
8739
8740
8741           eval "$wx_cv_use_mshtmlhelp"
8742
8743           if test x"$enablestring" = xdisable; then
8744             if test $wxUSE_MS_HTML_HELP = no; then
8745               result=yes
8746             else
8747               result=no
8748             fi
8749           else
8750             result=$wxUSE_MS_HTML_HELP
8751           fi
8752
8753           { echo "$as_me:$LINENO: result: $result" >&5
8754 echo "${ECHO_T}$result" >&6; }
8755
8756
8757           enablestring=
8758           defaultval=$wxUSE_ALL_FEATURES
8759           if test -z "$defaultval"; then
8760               if test x"$enablestring" = xdisable; then
8761                   defaultval=yes
8762               else
8763                   defaultval=no
8764               fi
8765           fi
8766
8767           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8768 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8769           # Check whether --enable-html was given.
8770 if test "${enable_html+set}" = set; then
8771   enableval=$enable_html;
8772                           if test "$enableval" = yes; then
8773                             wx_cv_use_html='wxUSE_HTML=yes'
8774                           else
8775                             wx_cv_use_html='wxUSE_HTML=no'
8776                           fi
8777
8778 else
8779
8780                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8781
8782 fi
8783
8784
8785           eval "$wx_cv_use_html"
8786
8787           if test x"$enablestring" = xdisable; then
8788             if test $wxUSE_HTML = no; then
8789               result=yes
8790             else
8791               result=no
8792             fi
8793           else
8794             result=$wxUSE_HTML
8795           fi
8796
8797           { echo "$as_me:$LINENO: result: $result" >&5
8798 echo "${ECHO_T}$result" >&6; }
8799
8800
8801           enablestring=
8802           defaultval=$wxUSE_ALL_FEATURES
8803           if test -z "$defaultval"; then
8804               if test x"$enablestring" = xdisable; then
8805                   defaultval=yes
8806               else
8807                   defaultval=no
8808               fi
8809           fi
8810
8811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8812 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8813           # Check whether --enable-htmlhelp was given.
8814 if test "${enable_htmlhelp+set}" = set; then
8815   enableval=$enable_htmlhelp;
8816                           if test "$enableval" = yes; then
8817                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8818                           else
8819                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8820                           fi
8821
8822 else
8823
8824                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8825
8826 fi
8827
8828
8829           eval "$wx_cv_use_htmlhelp"
8830
8831           if test x"$enablestring" = xdisable; then
8832             if test $wxUSE_WXHTML_HELP = no; then
8833               result=yes
8834             else
8835               result=no
8836             fi
8837           else
8838             result=$wxUSE_WXHTML_HELP
8839           fi
8840
8841           { echo "$as_me:$LINENO: result: $result" >&5
8842 echo "${ECHO_T}$result" >&6; }
8843
8844
8845           enablestring=
8846           defaultval=$wxUSE_ALL_FEATURES
8847           if test -z "$defaultval"; then
8848               if test x"$enablestring" = xdisable; then
8849                   defaultval=yes
8850               else
8851                   defaultval=no
8852               fi
8853           fi
8854
8855           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8856 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8857           # Check whether --enable-xrc was given.
8858 if test "${enable_xrc+set}" = set; then
8859   enableval=$enable_xrc;
8860                           if test "$enableval" = yes; then
8861                             wx_cv_use_xrc='wxUSE_XRC=yes'
8862                           else
8863                             wx_cv_use_xrc='wxUSE_XRC=no'
8864                           fi
8865
8866 else
8867
8868                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8869
8870 fi
8871
8872
8873           eval "$wx_cv_use_xrc"
8874
8875           if test x"$enablestring" = xdisable; then
8876             if test $wxUSE_XRC = no; then
8877               result=yes
8878             else
8879               result=no
8880             fi
8881           else
8882             result=$wxUSE_XRC
8883           fi
8884
8885           { echo "$as_me:$LINENO: result: $result" >&5
8886 echo "${ECHO_T}$result" >&6; }
8887
8888
8889           enablestring=
8890           defaultval=$wxUSE_ALL_FEATURES
8891           if test -z "$defaultval"; then
8892               if test x"$enablestring" = xdisable; then
8893                   defaultval=yes
8894               else
8895                   defaultval=no
8896               fi
8897           fi
8898
8899           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8900 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8901           # Check whether --enable-aui was given.
8902 if test "${enable_aui+set}" = set; then
8903   enableval=$enable_aui;
8904                           if test "$enableval" = yes; then
8905                             wx_cv_use_aui='wxUSE_AUI=yes'
8906                           else
8907                             wx_cv_use_aui='wxUSE_AUI=no'
8908                           fi
8909
8910 else
8911
8912                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8913
8914 fi
8915
8916
8917           eval "$wx_cv_use_aui"
8918
8919           if test x"$enablestring" = xdisable; then
8920             if test $wxUSE_AUI = no; then
8921               result=yes
8922             else
8923               result=no
8924             fi
8925           else
8926             result=$wxUSE_AUI
8927           fi
8928
8929           { echo "$as_me:$LINENO: result: $result" >&5
8930 echo "${ECHO_T}$result" >&6; }
8931
8932
8933           enablestring=
8934           defaultval=$wxUSE_ALL_FEATURES
8935           if test -z "$defaultval"; then
8936               if test x"$enablestring" = xdisable; then
8937                   defaultval=yes
8938               else
8939                   defaultval=no
8940               fi
8941           fi
8942
8943           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8944 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8945           # Check whether --enable-propgrid was given.
8946 if test "${enable_propgrid+set}" = set; then
8947   enableval=$enable_propgrid;
8948                           if test "$enableval" = yes; then
8949                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8950                           else
8951                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8952                           fi
8953
8954 else
8955
8956                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8957
8958 fi
8959
8960
8961           eval "$wx_cv_use_propgrid"
8962
8963           if test x"$enablestring" = xdisable; then
8964             if test $wxUSE_PROPGRID = no; then
8965               result=yes
8966             else
8967               result=no
8968             fi
8969           else
8970             result=$wxUSE_PROPGRID
8971           fi
8972
8973           { echo "$as_me:$LINENO: result: $result" >&5
8974 echo "${ECHO_T}$result" >&6; }
8975
8976
8977           enablestring=
8978           defaultval=$wxUSE_ALL_FEATURES
8979           if test -z "$defaultval"; then
8980               if test x"$enablestring" = xdisable; then
8981                   defaultval=yes
8982               else
8983                   defaultval=no
8984               fi
8985           fi
8986
8987           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
8988 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
8989           # Check whether --enable-ribbon was given.
8990 if test "${enable_ribbon+set}" = set; then
8991   enableval=$enable_ribbon;
8992                           if test "$enableval" = yes; then
8993                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
8994                           else
8995                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
8996                           fi
8997
8998 else
8999
9000                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
9001
9002 fi
9003
9004
9005           eval "$wx_cv_use_ribbon"
9006
9007           if test x"$enablestring" = xdisable; then
9008             if test $wxUSE_RIBBON = no; then
9009               result=yes
9010             else
9011               result=no
9012             fi
9013           else
9014             result=$wxUSE_RIBBON
9015           fi
9016
9017           { echo "$as_me:$LINENO: result: $result" >&5
9018 echo "${ECHO_T}$result" >&6; }
9019
9020
9021           enablestring=
9022           defaultval=$wxUSE_ALL_FEATURES
9023           if test -z "$defaultval"; then
9024               if test x"$enablestring" = xdisable; then
9025                   defaultval=yes
9026               else
9027                   defaultval=no
9028               fi
9029           fi
9030
9031           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9032 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9033           # Check whether --enable-stc was given.
9034 if test "${enable_stc+set}" = set; then
9035   enableval=$enable_stc;
9036                           if test "$enableval" = yes; then
9037                             wx_cv_use_stc='wxUSE_STC=yes'
9038                           else
9039                             wx_cv_use_stc='wxUSE_STC=no'
9040                           fi
9041
9042 else
9043
9044                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9045
9046 fi
9047
9048
9049           eval "$wx_cv_use_stc"
9050
9051           if test x"$enablestring" = xdisable; then
9052             if test $wxUSE_STC = no; then
9053               result=yes
9054             else
9055               result=no
9056             fi
9057           else
9058             result=$wxUSE_STC
9059           fi
9060
9061           { echo "$as_me:$LINENO: result: $result" >&5
9062 echo "${ECHO_T}$result" >&6; }
9063
9064
9065           enablestring=
9066           defaultval=$wxUSE_ALL_FEATURES
9067           if test -z "$defaultval"; then
9068               if test x"$enablestring" = xdisable; then
9069                   defaultval=yes
9070               else
9071                   defaultval=no
9072               fi
9073           fi
9074
9075           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9076 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9077           # Check whether --enable-constraints was given.
9078 if test "${enable_constraints+set}" = set; then
9079   enableval=$enable_constraints;
9080                           if test "$enableval" = yes; then
9081                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9082                           else
9083                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9084                           fi
9085
9086 else
9087
9088                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9089
9090 fi
9091
9092
9093           eval "$wx_cv_use_constraints"
9094
9095           if test x"$enablestring" = xdisable; then
9096             if test $wxUSE_CONSTRAINTS = no; then
9097               result=yes
9098             else
9099               result=no
9100             fi
9101           else
9102             result=$wxUSE_CONSTRAINTS
9103           fi
9104
9105           { echo "$as_me:$LINENO: result: $result" >&5
9106 echo "${ECHO_T}$result" >&6; }
9107
9108
9109           enablestring=
9110           defaultval=$wxUSE_ALL_FEATURES
9111           if test -z "$defaultval"; then
9112               if test x"$enablestring" = xdisable; then
9113                   defaultval=yes
9114               else
9115                   defaultval=no
9116               fi
9117           fi
9118
9119           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9120 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9121           # Check whether --enable-loggui was given.
9122 if test "${enable_loggui+set}" = set; then
9123   enableval=$enable_loggui;
9124                           if test "$enableval" = yes; then
9125                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9126                           else
9127                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9128                           fi
9129
9130 else
9131
9132                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9133
9134 fi
9135
9136
9137           eval "$wx_cv_use_loggui"
9138
9139           if test x"$enablestring" = xdisable; then
9140             if test $wxUSE_LOGGUI = no; then
9141               result=yes
9142             else
9143               result=no
9144             fi
9145           else
9146             result=$wxUSE_LOGGUI
9147           fi
9148
9149           { echo "$as_me:$LINENO: result: $result" >&5
9150 echo "${ECHO_T}$result" >&6; }
9151
9152
9153           enablestring=
9154           defaultval=$wxUSE_ALL_FEATURES
9155           if test -z "$defaultval"; then
9156               if test x"$enablestring" = xdisable; then
9157                   defaultval=yes
9158               else
9159                   defaultval=no
9160               fi
9161           fi
9162
9163           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9164 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9165           # Check whether --enable-logwin was given.
9166 if test "${enable_logwin+set}" = set; then
9167   enableval=$enable_logwin;
9168                           if test "$enableval" = yes; then
9169                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9170                           else
9171                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9172                           fi
9173
9174 else
9175
9176                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9177
9178 fi
9179
9180
9181           eval "$wx_cv_use_logwin"
9182
9183           if test x"$enablestring" = xdisable; then
9184             if test $wxUSE_LOGWINDOW = no; then
9185               result=yes
9186             else
9187               result=no
9188             fi
9189           else
9190             result=$wxUSE_LOGWINDOW
9191           fi
9192
9193           { echo "$as_me:$LINENO: result: $result" >&5
9194 echo "${ECHO_T}$result" >&6; }
9195
9196
9197           enablestring=
9198           defaultval=$wxUSE_ALL_FEATURES
9199           if test -z "$defaultval"; then
9200               if test x"$enablestring" = xdisable; then
9201                   defaultval=yes
9202               else
9203                   defaultval=no
9204               fi
9205           fi
9206
9207           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9208 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9209           # Check whether --enable-logdialog was given.
9210 if test "${enable_logdialog+set}" = set; then
9211   enableval=$enable_logdialog;
9212                           if test "$enableval" = yes; then
9213                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9214                           else
9215                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9216                           fi
9217
9218 else
9219
9220                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9221
9222 fi
9223
9224
9225           eval "$wx_cv_use_logdialog"
9226
9227           if test x"$enablestring" = xdisable; then
9228             if test $wxUSE_LOGDIALOG = no; then
9229               result=yes
9230             else
9231               result=no
9232             fi
9233           else
9234             result=$wxUSE_LOGDIALOG
9235           fi
9236
9237           { echo "$as_me:$LINENO: result: $result" >&5
9238 echo "${ECHO_T}$result" >&6; }
9239
9240
9241           enablestring=
9242           defaultval=$wxUSE_ALL_FEATURES
9243           if test -z "$defaultval"; then
9244               if test x"$enablestring" = xdisable; then
9245                   defaultval=yes
9246               else
9247                   defaultval=no
9248               fi
9249           fi
9250
9251           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9252 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9253           # Check whether --enable-mdi was given.
9254 if test "${enable_mdi+set}" = set; then
9255   enableval=$enable_mdi;
9256                           if test "$enableval" = yes; then
9257                             wx_cv_use_mdi='wxUSE_MDI=yes'
9258                           else
9259                             wx_cv_use_mdi='wxUSE_MDI=no'
9260                           fi
9261
9262 else
9263
9264                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9265
9266 fi
9267
9268
9269           eval "$wx_cv_use_mdi"
9270
9271           if test x"$enablestring" = xdisable; then
9272             if test $wxUSE_MDI = no; then
9273               result=yes
9274             else
9275               result=no
9276             fi
9277           else
9278             result=$wxUSE_MDI
9279           fi
9280
9281           { echo "$as_me:$LINENO: result: $result" >&5
9282 echo "${ECHO_T}$result" >&6; }
9283
9284
9285           enablestring=
9286           defaultval=$wxUSE_ALL_FEATURES
9287           if test -z "$defaultval"; then
9288               if test x"$enablestring" = xdisable; then
9289                   defaultval=yes
9290               else
9291                   defaultval=no
9292               fi
9293           fi
9294
9295           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9296 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9297           # Check whether --enable-mdidoc was given.
9298 if test "${enable_mdidoc+set}" = set; then
9299   enableval=$enable_mdidoc;
9300                           if test "$enableval" = yes; then
9301                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9302                           else
9303                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9304                           fi
9305
9306 else
9307
9308                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9309
9310 fi
9311
9312
9313           eval "$wx_cv_use_mdidoc"
9314
9315           if test x"$enablestring" = xdisable; then
9316             if test $wxUSE_MDI_ARCHITECTURE = no; then
9317               result=yes
9318             else
9319               result=no
9320             fi
9321           else
9322             result=$wxUSE_MDI_ARCHITECTURE
9323           fi
9324
9325           { echo "$as_me:$LINENO: result: $result" >&5
9326 echo "${ECHO_T}$result" >&6; }
9327
9328
9329           enablestring=
9330           defaultval=$wxUSE_ALL_FEATURES
9331           if test -z "$defaultval"; then
9332               if test x"$enablestring" = xdisable; then
9333                   defaultval=yes
9334               else
9335                   defaultval=no
9336               fi
9337           fi
9338
9339           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9340 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9341           # Check whether --enable-mediactrl was given.
9342 if test "${enable_mediactrl+set}" = set; then
9343   enableval=$enable_mediactrl;
9344                           if test "$enableval" = yes; then
9345                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9346                           else
9347                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9348                           fi
9349
9350 else
9351
9352                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9353
9354 fi
9355
9356
9357           eval "$wx_cv_use_mediactrl"
9358
9359           if test x"$enablestring" = xdisable; then
9360             if test $wxUSE_MEDIACTRL = no; then
9361               result=yes
9362             else
9363               result=no
9364             fi
9365           else
9366             result=$wxUSE_MEDIACTRL
9367           fi
9368
9369           { echo "$as_me:$LINENO: result: $result" >&5
9370 echo "${ECHO_T}$result" >&6; }
9371
9372
9373           enablestring=
9374           defaultval=$wxUSE_ALL_FEATURES
9375           if test -z "$defaultval"; then
9376               if test x"$enablestring" = xdisable; then
9377                   defaultval=yes
9378               else
9379                   defaultval=no
9380               fi
9381           fi
9382
9383           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9384 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9385           # Check whether --enable-gstreamer8 was given.
9386 if test "${enable_gstreamer8+set}" = set; then
9387   enableval=$enable_gstreamer8;
9388                           if test "$enableval" = yes; then
9389                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9390                           else
9391                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9392                           fi
9393
9394 else
9395
9396                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9397
9398 fi
9399
9400
9401           eval "$wx_cv_use_gstreamer8"
9402
9403           if test x"$enablestring" = xdisable; then
9404             if test $wxUSE_GSTREAMER8 = no; then
9405               result=yes
9406             else
9407               result=no
9408             fi
9409           else
9410             result=$wxUSE_GSTREAMER8
9411           fi
9412
9413           { echo "$as_me:$LINENO: result: $result" >&5
9414 echo "${ECHO_T}$result" >&6; }
9415
9416
9417           enablestring=
9418           defaultval=$wxUSE_ALL_FEATURES
9419           if test -z "$defaultval"; then
9420               if test x"$enablestring" = xdisable; then
9421                   defaultval=yes
9422               else
9423                   defaultval=no
9424               fi
9425           fi
9426
9427           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9428 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9429           # Check whether --enable-richtext was given.
9430 if test "${enable_richtext+set}" = set; then
9431   enableval=$enable_richtext;
9432                           if test "$enableval" = yes; then
9433                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9434                           else
9435                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9436                           fi
9437
9438 else
9439
9440                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9441
9442 fi
9443
9444
9445           eval "$wx_cv_use_richtext"
9446
9447           if test x"$enablestring" = xdisable; then
9448             if test $wxUSE_RICHTEXT = no; then
9449               result=yes
9450             else
9451               result=no
9452             fi
9453           else
9454             result=$wxUSE_RICHTEXT
9455           fi
9456
9457           { echo "$as_me:$LINENO: result: $result" >&5
9458 echo "${ECHO_T}$result" >&6; }
9459
9460
9461           enablestring=
9462           defaultval=$wxUSE_ALL_FEATURES
9463           if test -z "$defaultval"; then
9464               if test x"$enablestring" = xdisable; then
9465                   defaultval=yes
9466               else
9467                   defaultval=no
9468               fi
9469           fi
9470
9471           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9472 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9473           # Check whether --enable-postscript was given.
9474 if test "${enable_postscript+set}" = set; then
9475   enableval=$enable_postscript;
9476                           if test "$enableval" = yes; then
9477                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9478                           else
9479                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9480                           fi
9481
9482 else
9483
9484                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9485
9486 fi
9487
9488
9489           eval "$wx_cv_use_postscript"
9490
9491           if test x"$enablestring" = xdisable; then
9492             if test $wxUSE_POSTSCRIPT = no; then
9493               result=yes
9494             else
9495               result=no
9496             fi
9497           else
9498             result=$wxUSE_POSTSCRIPT
9499           fi
9500
9501           { echo "$as_me:$LINENO: result: $result" >&5
9502 echo "${ECHO_T}$result" >&6; }
9503
9504
9505           enablestring=
9506           defaultval=$wxUSE_ALL_FEATURES
9507           if test -z "$defaultval"; then
9508               if test x"$enablestring" = xdisable; then
9509                   defaultval=yes
9510               else
9511                   defaultval=no
9512               fi
9513           fi
9514
9515           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9516 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9517           # Check whether --enable-printarch was given.
9518 if test "${enable_printarch+set}" = set; then
9519   enableval=$enable_printarch;
9520                           if test "$enableval" = yes; then
9521                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9522                           else
9523                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9524                           fi
9525
9526 else
9527
9528                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9529
9530 fi
9531
9532
9533           eval "$wx_cv_use_printarch"
9534
9535           if test x"$enablestring" = xdisable; then
9536             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9537               result=yes
9538             else
9539               result=no
9540             fi
9541           else
9542             result=$wxUSE_PRINTING_ARCHITECTURE
9543           fi
9544
9545           { echo "$as_me:$LINENO: result: $result" >&5
9546 echo "${ECHO_T}$result" >&6; }
9547
9548
9549           enablestring=
9550           defaultval=$wxUSE_ALL_FEATURES
9551           if test -z "$defaultval"; then
9552               if test x"$enablestring" = xdisable; then
9553                   defaultval=yes
9554               else
9555                   defaultval=no
9556               fi
9557           fi
9558
9559           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9560 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9561           # Check whether --enable-svg was given.
9562 if test "${enable_svg+set}" = set; then
9563   enableval=$enable_svg;
9564                           if test "$enableval" = yes; then
9565                             wx_cv_use_svg='wxUSE_SVG=yes'
9566                           else
9567                             wx_cv_use_svg='wxUSE_SVG=no'
9568                           fi
9569
9570 else
9571
9572                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9573
9574 fi
9575
9576
9577           eval "$wx_cv_use_svg"
9578
9579           if test x"$enablestring" = xdisable; then
9580             if test $wxUSE_SVG = no; then
9581               result=yes
9582             else
9583               result=no
9584             fi
9585           else
9586             result=$wxUSE_SVG
9587           fi
9588
9589           { echo "$as_me:$LINENO: result: $result" >&5
9590 echo "${ECHO_T}$result" >&6; }
9591
9592
9593           enablestring=
9594           defaultval=$wxUSE_ALL_FEATURES
9595           if test -z "$defaultval"; then
9596               if test x"$enablestring" = xdisable; then
9597                   defaultval=yes
9598               else
9599                   defaultval=no
9600               fi
9601           fi
9602
9603           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9604 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9605           # Check whether --enable-webkit was given.
9606 if test "${enable_webkit+set}" = set; then
9607   enableval=$enable_webkit;
9608                           if test "$enableval" = yes; then
9609                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9610                           else
9611                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9612                           fi
9613
9614 else
9615
9616                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9617
9618 fi
9619
9620
9621           eval "$wx_cv_use_webkit"
9622
9623           if test x"$enablestring" = xdisable; then
9624             if test $wxUSE_WEBKIT = no; then
9625               result=yes
9626             else
9627               result=no
9628             fi
9629           else
9630             result=$wxUSE_WEBKIT
9631           fi
9632
9633           { echo "$as_me:$LINENO: result: $result" >&5
9634 echo "${ECHO_T}$result" >&6; }
9635
9636
9637           enablestring=
9638           defaultval=$wxUSE_ALL_FEATURES
9639           if test -z "$defaultval"; then
9640               if test x"$enablestring" = xdisable; then
9641                   defaultval=yes
9642               else
9643                   defaultval=no
9644               fi
9645           fi
9646
9647           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webview" >&5
9648 echo $ECHO_N "checking for --${enablestring:-enable}-webview... $ECHO_C" >&6; }
9649           # Check whether --enable-webview was given.
9650 if test "${enable_webview+set}" = set; then
9651   enableval=$enable_webview;
9652                           if test "$enableval" = yes; then
9653                             wx_cv_use_webview='wxUSE_WEBVIEW=yes'
9654                           else
9655                             wx_cv_use_webview='wxUSE_WEBVIEW=no'
9656                           fi
9657
9658 else
9659
9660                           wx_cv_use_webview='wxUSE_WEBVIEW=${'DEFAULT_wxUSE_WEBVIEW":-$defaultval}"
9661
9662 fi
9663
9664
9665           eval "$wx_cv_use_webview"
9666
9667           if test x"$enablestring" = xdisable; then
9668             if test $wxUSE_WEBVIEW = no; then
9669               result=yes
9670             else
9671               result=no
9672             fi
9673           else
9674             result=$wxUSE_WEBVIEW
9675           fi
9676
9677           { echo "$as_me:$LINENO: result: $result" >&5
9678 echo "${ECHO_T}$result" >&6; }
9679
9680
9681 if test "$wxUSE_MAC" != 1; then
9682
9683           enablestring=
9684           defaultval=$wxUSE_ALL_FEATURES
9685           if test -z "$defaultval"; then
9686               if test x"$enablestring" = xdisable; then
9687                   defaultval=yes
9688               else
9689                   defaultval=no
9690               fi
9691           fi
9692
9693           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9694 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9695           # Check whether --enable-graphics_ctx was given.
9696 if test "${enable_graphics_ctx+set}" = set; then
9697   enableval=$enable_graphics_ctx;
9698                           if test "$enableval" = yes; then
9699                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9700                           else
9701                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9702                           fi
9703
9704 else
9705
9706                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9707
9708 fi
9709
9710
9711           eval "$wx_cv_use_graphics_ctx"
9712
9713           if test x"$enablestring" = xdisable; then
9714             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9715               result=yes
9716             else
9717               result=no
9718             fi
9719           else
9720             result=$wxUSE_GRAPHICS_CONTEXT
9721           fi
9722
9723           { echo "$as_me:$LINENO: result: $result" >&5
9724 echo "${ECHO_T}$result" >&6; }
9725
9726 fi
9727
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}-clipboard" >&5
9741 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9742           # Check whether --enable-clipboard was given.
9743 if test "${enable_clipboard+set}" = set; then
9744   enableval=$enable_clipboard;
9745                           if test "$enableval" = yes; then
9746                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9747                           else
9748                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9749                           fi
9750
9751 else
9752
9753                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9754
9755 fi
9756
9757
9758           eval "$wx_cv_use_clipboard"
9759
9760           if test x"$enablestring" = xdisable; then
9761             if test $wxUSE_CLIPBOARD = no; then
9762               result=yes
9763             else
9764               result=no
9765             fi
9766           else
9767             result=$wxUSE_CLIPBOARD
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}-dnd" >&5
9785 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9786           # Check whether --enable-dnd was given.
9787 if test "${enable_dnd+set}" = set; then
9788   enableval=$enable_dnd;
9789                           if test "$enableval" = yes; then
9790                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9791                           else
9792                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9793                           fi
9794
9795 else
9796
9797                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9798
9799 fi
9800
9801
9802           eval "$wx_cv_use_dnd"
9803
9804           if test x"$enablestring" = xdisable; then
9805             if test $wxUSE_DRAG_AND_DROP = no; then
9806               result=yes
9807             else
9808               result=no
9809             fi
9810           else
9811             result=$wxUSE_DRAG_AND_DROP
9812           fi
9813
9814           { echo "$as_me:$LINENO: result: $result" >&5
9815 echo "${ECHO_T}$result" >&6; }
9816
9817
9818
9819 DEFAULT_wxUSE_CONTROLS=none
9820
9821           enablestring=disable
9822           defaultval=
9823           if test -z "$defaultval"; then
9824               if test x"$enablestring" = xdisable; then
9825                   defaultval=yes
9826               else
9827                   defaultval=no
9828               fi
9829           fi
9830
9831           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9832 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9833           # Check whether --enable-controls was given.
9834 if test "${enable_controls+set}" = set; then
9835   enableval=$enable_controls;
9836                           if test "$enableval" = yes; then
9837                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9838                           else
9839                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9840                           fi
9841
9842 else
9843
9844                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9845
9846 fi
9847
9848
9849           eval "$wx_cv_use_controls"
9850
9851           if test x"$enablestring" = xdisable; then
9852             if test $wxUSE_CONTROLS = no; then
9853               result=yes
9854             else
9855               result=no
9856             fi
9857           else
9858             result=$wxUSE_CONTROLS
9859           fi
9860
9861           { echo "$as_me:$LINENO: result: $result" >&5
9862 echo "${ECHO_T}$result" >&6; }
9863
9864
9865 if test "$wxUSE_CONTROLS" = "no"; then
9866     DEFAULT_wxUSE_ACCEL=no
9867     DEFAULT_wxUSE_ANIMATIONCTRL=no
9868     DEFAULT_wxUSE_BANNERWINDOW=no
9869     DEFAULT_wxUSE_BMPBUTTON=no
9870     DEFAULT_wxUSE_BUTTON=no
9871     DEFAULT_wxUSE_CALCTRL=no
9872     DEFAULT_wxUSE_CARET=no
9873     DEFAULT_wxUSE_CHECKBOX=no
9874     DEFAULT_wxUSE_CHECKLISTBOX=no
9875     DEFAULT_wxUSE_CHOICE=no
9876     DEFAULT_wxUSE_CHOICEBOOK=no
9877     DEFAULT_wxUSE_COLLPANE=no
9878     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9879     DEFAULT_wxUSE_COMBOBOX=no
9880     DEFAULT_wxUSE_COMBOBOX=no
9881     DEFAULT_wxUSE_COMMANDLINKBUTTON=no
9882     DEFAULT_wxUSE_DATAVIEWCTRL=no
9883     DEFAULT_wxUSE_DATEPICKCTRL=no
9884     DEFAULT_wxUSE_DETECT_SM=no
9885     DEFAULT_wxUSE_DIRPICKERCTRL=no
9886     DEFAULT_wxUSE_DISPLAY=no
9887     DEFAULT_wxUSE_FILECTRL=no
9888     DEFAULT_wxUSE_FILEPICKERCTRL=no
9889     DEFAULT_wxUSE_FONTPICKERCTRL=no
9890     DEFAULT_wxUSE_GAUGE=no
9891     DEFAULT_wxUSE_GRID=no
9892     DEFAULT_wxUSE_HEADERCTRL=no
9893     DEFAULT_wxUSE_HYPERLINKCTRL=no
9894     DEFAULT_wxUSE_IMAGLIST=no
9895     DEFAULT_wxUSE_LISTBOOK=no
9896     DEFAULT_wxUSE_LISTBOX=no
9897     DEFAULT_wxUSE_LISTCTRL=no
9898     DEFAULT_wxUSE_MARKUP=no
9899     DEFAULT_wxUSE_NOTEBOOK=no
9900     DEFAULT_wxUSE_POPUPWIN=no
9901     DEFAULT_wxUSE_RADIOBOX=no
9902     DEFAULT_wxUSE_RADIOBTN=no
9903     DEFAULT_wxUSE_RICHMSGDLG=no
9904     DEFAULT_wxUSE_RICHTOOLTIP=no
9905     DEFAULT_wxUSE_REARRANGECTRL=no
9906     DEFAULT_wxUSE_SASH=no
9907     DEFAULT_wxUSE_SCROLLBAR=no
9908     DEFAULT_wxUSE_SEARCHCTRL=no
9909     DEFAULT_wxUSE_SLIDER=no
9910     DEFAULT_wxUSE_SPINBTN=no
9911     DEFAULT_wxUSE_SPINCTRL=no
9912     DEFAULT_wxUSE_SPLITTER=no
9913     DEFAULT_wxUSE_STATBMP=no
9914     DEFAULT_wxUSE_STATBOX=no
9915     DEFAULT_wxUSE_STATLINE=no
9916     DEFAULT_wxUSE_STATUSBAR=no
9917     DEFAULT_wxUSE_TIMEPICKCTRL=no
9918     DEFAULT_wxUSE_TIPWINDOW=no
9919     DEFAULT_wxUSE_TOGGLEBTN=no
9920     DEFAULT_wxUSE_TOOLBAR=no
9921     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9922     DEFAULT_wxUSE_TOOLBOOK=no
9923     DEFAULT_wxUSE_TOOLTIPS=no
9924     DEFAULT_wxUSE_TREEBOOK=no
9925     DEFAULT_wxUSE_TREECTRL=no
9926     DEFAULT_wxUSE_TREELISTCTRL=no
9927 fi
9928
9929
9930           enablestring=
9931           defaultval=$wxUSE_ALL_FEATURES
9932           if test -z "$defaultval"; then
9933               if test x"$enablestring" = xdisable; then
9934                   defaultval=yes
9935               else
9936                   defaultval=no
9937               fi
9938           fi
9939
9940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-markup" >&5
9941 echo $ECHO_N "checking for --${enablestring:-enable}-markup... $ECHO_C" >&6; }
9942           # Check whether --enable-markup was given.
9943 if test "${enable_markup+set}" = set; then
9944   enableval=$enable_markup;
9945                           if test "$enableval" = yes; then
9946                             wx_cv_use_markup='wxUSE_MARKUP=yes'
9947                           else
9948                             wx_cv_use_markup='wxUSE_MARKUP=no'
9949                           fi
9950
9951 else
9952
9953                           wx_cv_use_markup='wxUSE_MARKUP=${'DEFAULT_wxUSE_MARKUP":-$defaultval}"
9954
9955 fi
9956
9957
9958           eval "$wx_cv_use_markup"
9959
9960           if test x"$enablestring" = xdisable; then
9961             if test $wxUSE_MARKUP = no; then
9962               result=yes
9963             else
9964               result=no
9965             fi
9966           else
9967             result=$wxUSE_MARKUP
9968           fi
9969
9970           { echo "$as_me:$LINENO: result: $result" >&5
9971 echo "${ECHO_T}$result" >&6; }
9972
9973
9974
9975           enablestring=
9976           defaultval=$wxUSE_ALL_FEATURES
9977           if test -z "$defaultval"; then
9978               if test x"$enablestring" = xdisable; then
9979                   defaultval=yes
9980               else
9981                   defaultval=no
9982               fi
9983           fi
9984
9985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9986 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9987           # Check whether --enable-accel was given.
9988 if test "${enable_accel+set}" = set; then
9989   enableval=$enable_accel;
9990                           if test "$enableval" = yes; then
9991                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9992                           else
9993                             wx_cv_use_accel='wxUSE_ACCEL=no'
9994                           fi
9995
9996 else
9997
9998                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9999
10000 fi
10001
10002
10003           eval "$wx_cv_use_accel"
10004
10005           if test x"$enablestring" = xdisable; then
10006             if test $wxUSE_ACCEL = no; then
10007               result=yes
10008             else
10009               result=no
10010             fi
10011           else
10012             result=$wxUSE_ACCEL
10013           fi
10014
10015           { echo "$as_me:$LINENO: result: $result" >&5
10016 echo "${ECHO_T}$result" >&6; }
10017
10018
10019           enablestring=
10020           defaultval=$wxUSE_ALL_FEATURES
10021           if test -z "$defaultval"; then
10022               if test x"$enablestring" = xdisable; then
10023                   defaultval=yes
10024               else
10025                   defaultval=no
10026               fi
10027           fi
10028
10029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10030 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10031           # Check whether --enable-animatectrl was given.
10032 if test "${enable_animatectrl+set}" = set; then
10033   enableval=$enable_animatectrl;
10034                           if test "$enableval" = yes; then
10035                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10036                           else
10037                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10038                           fi
10039
10040 else
10041
10042                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10043
10044 fi
10045
10046
10047           eval "$wx_cv_use_animatectrl"
10048
10049           if test x"$enablestring" = xdisable; then
10050             if test $wxUSE_ANIMATIONCTRL = no; then
10051               result=yes
10052             else
10053               result=no
10054             fi
10055           else
10056             result=$wxUSE_ANIMATIONCTRL
10057           fi
10058
10059           { echo "$as_me:$LINENO: result: $result" >&5
10060 echo "${ECHO_T}$result" >&6; }
10061
10062
10063           enablestring=
10064           defaultval=$wxUSE_ALL_FEATURES
10065           if test -z "$defaultval"; then
10066               if test x"$enablestring" = xdisable; then
10067                   defaultval=yes
10068               else
10069                   defaultval=no
10070               fi
10071           fi
10072
10073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bannerwindow" >&5
10074 echo $ECHO_N "checking for --${enablestring:-enable}-bannerwindow... $ECHO_C" >&6; }
10075           # Check whether --enable-bannerwindow was given.
10076 if test "${enable_bannerwindow+set}" = set; then
10077   enableval=$enable_bannerwindow;
10078                           if test "$enableval" = yes; then
10079                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=yes'
10080                           else
10081                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=no'
10082                           fi
10083
10084 else
10085
10086                           wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=${'DEFAULT_wxUSE_BANNERWINDOW":-$defaultval}"
10087
10088 fi
10089
10090
10091           eval "$wx_cv_use_bannerwindow"
10092
10093           if test x"$enablestring" = xdisable; then
10094             if test $wxUSE_BANNERWINDOW = no; then
10095               result=yes
10096             else
10097               result=no
10098             fi
10099           else
10100             result=$wxUSE_BANNERWINDOW
10101           fi
10102
10103           { echo "$as_me:$LINENO: result: $result" >&5
10104 echo "${ECHO_T}$result" >&6; }
10105
10106
10107           enablestring=
10108           defaultval=$wxUSE_ALL_FEATURES
10109           if test -z "$defaultval"; then
10110               if test x"$enablestring" = xdisable; then
10111                   defaultval=yes
10112               else
10113                   defaultval=no
10114               fi
10115           fi
10116
10117           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-artstd" >&5
10118 echo $ECHO_N "checking for --${enablestring:-enable}-artstd... $ECHO_C" >&6; }
10119           # Check whether --enable-artstd was given.
10120 if test "${enable_artstd+set}" = set; then
10121   enableval=$enable_artstd;
10122                           if test "$enableval" = yes; then
10123                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=yes'
10124                           else
10125                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=no'
10126                           fi
10127
10128 else
10129
10130                           wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=${'DEFAULT_wxUSE_ARTPROVIDER_STD":-$defaultval}"
10131
10132 fi
10133
10134
10135           eval "$wx_cv_use_artstd"
10136
10137           if test x"$enablestring" = xdisable; then
10138             if test $wxUSE_ARTPROVIDER_STD = no; then
10139               result=yes
10140             else
10141               result=no
10142             fi
10143           else
10144             result=$wxUSE_ARTPROVIDER_STD
10145           fi
10146
10147           { echo "$as_me:$LINENO: result: $result" >&5
10148 echo "${ECHO_T}$result" >&6; }
10149
10150
10151           enablestring=
10152           defaultval=$wxUSE_ALL_FEATURES
10153           if test -z "$defaultval"; then
10154               if test x"$enablestring" = xdisable; then
10155                   defaultval=yes
10156               else
10157                   defaultval=no
10158               fi
10159           fi
10160
10161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arttango" >&5
10162 echo $ECHO_N "checking for --${enablestring:-enable}-arttango... $ECHO_C" >&6; }
10163           # Check whether --enable-arttango was given.
10164 if test "${enable_arttango+set}" = set; then
10165   enableval=$enable_arttango;
10166                           if test "$enableval" = yes; then
10167                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=yes'
10168                           else
10169                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=no'
10170                           fi
10171
10172 else
10173
10174                           wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=${'DEFAULT_wxUSE_ARTPROVIDER_TANGO":-$defaultval}"
10175
10176 fi
10177
10178
10179           eval "$wx_cv_use_arttango"
10180
10181           if test x"$enablestring" = xdisable; then
10182             if test $wxUSE_ARTPROVIDER_TANGO = no; then
10183               result=yes
10184             else
10185               result=no
10186             fi
10187           else
10188             result=$wxUSE_ARTPROVIDER_TANGO
10189           fi
10190
10191           { echo "$as_me:$LINENO: result: $result" >&5
10192 echo "${ECHO_T}$result" >&6; }
10193
10194
10195           enablestring=
10196           defaultval=$wxUSE_ALL_FEATURES
10197           if test -z "$defaultval"; then
10198               if test x"$enablestring" = xdisable; then
10199                   defaultval=yes
10200               else
10201                   defaultval=no
10202               fi
10203           fi
10204
10205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10206 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10207           # Check whether --enable-bmpbutton was given.
10208 if test "${enable_bmpbutton+set}" = set; then
10209   enableval=$enable_bmpbutton;
10210                           if test "$enableval" = yes; then
10211                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10212                           else
10213                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10214                           fi
10215
10216 else
10217
10218                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10219
10220 fi
10221
10222
10223           eval "$wx_cv_use_bmpbutton"
10224
10225           if test x"$enablestring" = xdisable; then
10226             if test $wxUSE_BMPBUTTON = no; then
10227               result=yes
10228             else
10229               result=no
10230             fi
10231           else
10232             result=$wxUSE_BMPBUTTON
10233           fi
10234
10235           { echo "$as_me:$LINENO: result: $result" >&5
10236 echo "${ECHO_T}$result" >&6; }
10237
10238
10239           enablestring=
10240           defaultval=$wxUSE_ALL_FEATURES
10241           if test -z "$defaultval"; then
10242               if test x"$enablestring" = xdisable; then
10243                   defaultval=yes
10244               else
10245                   defaultval=no
10246               fi
10247           fi
10248
10249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10250 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10251           # Check whether --enable-bmpcombobox was given.
10252 if test "${enable_bmpcombobox+set}" = set; then
10253   enableval=$enable_bmpcombobox;
10254                           if test "$enableval" = yes; then
10255                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10256                           else
10257                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10258                           fi
10259
10260 else
10261
10262                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10263
10264 fi
10265
10266
10267           eval "$wx_cv_use_bmpcombobox"
10268
10269           if test x"$enablestring" = xdisable; then
10270             if test $wxUSE_BITMAPCOMBOBOX = no; then
10271               result=yes
10272             else
10273               result=no
10274             fi
10275           else
10276             result=$wxUSE_BITMAPCOMBOBOX
10277           fi
10278
10279           { echo "$as_me:$LINENO: result: $result" >&5
10280 echo "${ECHO_T}$result" >&6; }
10281
10282
10283           enablestring=
10284           defaultval=$wxUSE_ALL_FEATURES
10285           if test -z "$defaultval"; then
10286               if test x"$enablestring" = xdisable; then
10287                   defaultval=yes
10288               else
10289                   defaultval=no
10290               fi
10291           fi
10292
10293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10294 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10295           # Check whether --enable-button was given.
10296 if test "${enable_button+set}" = set; then
10297   enableval=$enable_button;
10298                           if test "$enableval" = yes; then
10299                             wx_cv_use_button='wxUSE_BUTTON=yes'
10300                           else
10301                             wx_cv_use_button='wxUSE_BUTTON=no'
10302                           fi
10303
10304 else
10305
10306                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10307
10308 fi
10309
10310
10311           eval "$wx_cv_use_button"
10312
10313           if test x"$enablestring" = xdisable; then
10314             if test $wxUSE_BUTTON = no; then
10315               result=yes
10316             else
10317               result=no
10318             fi
10319           else
10320             result=$wxUSE_BUTTON
10321           fi
10322
10323           { echo "$as_me:$LINENO: result: $result" >&5
10324 echo "${ECHO_T}$result" >&6; }
10325
10326
10327           enablestring=
10328           defaultval=$wxUSE_ALL_FEATURES
10329           if test -z "$defaultval"; then
10330               if test x"$enablestring" = xdisable; then
10331                   defaultval=yes
10332               else
10333                   defaultval=no
10334               fi
10335           fi
10336
10337           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10338 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10339           # Check whether --enable-calendar was given.
10340 if test "${enable_calendar+set}" = set; then
10341   enableval=$enable_calendar;
10342                           if test "$enableval" = yes; then
10343                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10344                           else
10345                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10346                           fi
10347
10348 else
10349
10350                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10351
10352 fi
10353
10354
10355           eval "$wx_cv_use_calendar"
10356
10357           if test x"$enablestring" = xdisable; then
10358             if test $wxUSE_CALCTRL = no; then
10359               result=yes
10360             else
10361               result=no
10362             fi
10363           else
10364             result=$wxUSE_CALCTRL
10365           fi
10366
10367           { echo "$as_me:$LINENO: result: $result" >&5
10368 echo "${ECHO_T}$result" >&6; }
10369
10370
10371           enablestring=
10372           defaultval=$wxUSE_ALL_FEATURES
10373           if test -z "$defaultval"; then
10374               if test x"$enablestring" = xdisable; then
10375                   defaultval=yes
10376               else
10377                   defaultval=no
10378               fi
10379           fi
10380
10381           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10382 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10383           # Check whether --enable-caret was given.
10384 if test "${enable_caret+set}" = set; then
10385   enableval=$enable_caret;
10386                           if test "$enableval" = yes; then
10387                             wx_cv_use_caret='wxUSE_CARET=yes'
10388                           else
10389                             wx_cv_use_caret='wxUSE_CARET=no'
10390                           fi
10391
10392 else
10393
10394                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10395
10396 fi
10397
10398
10399           eval "$wx_cv_use_caret"
10400
10401           if test x"$enablestring" = xdisable; then
10402             if test $wxUSE_CARET = no; then
10403               result=yes
10404             else
10405               result=no
10406             fi
10407           else
10408             result=$wxUSE_CARET
10409           fi
10410
10411           { echo "$as_me:$LINENO: result: $result" >&5
10412 echo "${ECHO_T}$result" >&6; }
10413
10414
10415           enablestring=
10416           defaultval=$wxUSE_ALL_FEATURES
10417           if test -z "$defaultval"; then
10418               if test x"$enablestring" = xdisable; then
10419                   defaultval=yes
10420               else
10421                   defaultval=no
10422               fi
10423           fi
10424
10425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10426 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10427           # Check whether --enable-checkbox was given.
10428 if test "${enable_checkbox+set}" = set; then
10429   enableval=$enable_checkbox;
10430                           if test "$enableval" = yes; then
10431                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10432                           else
10433                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10434                           fi
10435
10436 else
10437
10438                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10439
10440 fi
10441
10442
10443           eval "$wx_cv_use_checkbox"
10444
10445           if test x"$enablestring" = xdisable; then
10446             if test $wxUSE_CHECKBOX = no; then
10447               result=yes
10448             else
10449               result=no
10450             fi
10451           else
10452             result=$wxUSE_CHECKBOX
10453           fi
10454
10455           { echo "$as_me:$LINENO: result: $result" >&5
10456 echo "${ECHO_T}$result" >&6; }
10457
10458
10459           enablestring=
10460           defaultval=$wxUSE_ALL_FEATURES
10461           if test -z "$defaultval"; then
10462               if test x"$enablestring" = xdisable; then
10463                   defaultval=yes
10464               else
10465                   defaultval=no
10466               fi
10467           fi
10468
10469           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10470 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10471           # Check whether --enable-checklst was given.
10472 if test "${enable_checklst+set}" = set; then
10473   enableval=$enable_checklst;
10474                           if test "$enableval" = yes; then
10475                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10476                           else
10477                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10478                           fi
10479
10480 else
10481
10482                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10483
10484 fi
10485
10486
10487           eval "$wx_cv_use_checklst"
10488
10489           if test x"$enablestring" = xdisable; then
10490             if test $wxUSE_CHECKLST = no; then
10491               result=yes
10492             else
10493               result=no
10494             fi
10495           else
10496             result=$wxUSE_CHECKLST
10497           fi
10498
10499           { echo "$as_me:$LINENO: result: $result" >&5
10500 echo "${ECHO_T}$result" >&6; }
10501
10502
10503           enablestring=
10504           defaultval=$wxUSE_ALL_FEATURES
10505           if test -z "$defaultval"; then
10506               if test x"$enablestring" = xdisable; then
10507                   defaultval=yes
10508               else
10509                   defaultval=no
10510               fi
10511           fi
10512
10513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10514 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10515           # Check whether --enable-choice was given.
10516 if test "${enable_choice+set}" = set; then
10517   enableval=$enable_choice;
10518                           if test "$enableval" = yes; then
10519                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10520                           else
10521                             wx_cv_use_choice='wxUSE_CHOICE=no'
10522                           fi
10523
10524 else
10525
10526                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10527
10528 fi
10529
10530
10531           eval "$wx_cv_use_choice"
10532
10533           if test x"$enablestring" = xdisable; then
10534             if test $wxUSE_CHOICE = no; then
10535               result=yes
10536             else
10537               result=no
10538             fi
10539           else
10540             result=$wxUSE_CHOICE
10541           fi
10542
10543           { echo "$as_me:$LINENO: result: $result" >&5
10544 echo "${ECHO_T}$result" >&6; }
10545
10546
10547           enablestring=
10548           defaultval=$wxUSE_ALL_FEATURES
10549           if test -z "$defaultval"; then
10550               if test x"$enablestring" = xdisable; then
10551                   defaultval=yes
10552               else
10553                   defaultval=no
10554               fi
10555           fi
10556
10557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10558 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10559           # Check whether --enable-choicebook was given.
10560 if test "${enable_choicebook+set}" = set; then
10561   enableval=$enable_choicebook;
10562                           if test "$enableval" = yes; then
10563                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10564                           else
10565                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10566                           fi
10567
10568 else
10569
10570                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10571
10572 fi
10573
10574
10575           eval "$wx_cv_use_choicebook"
10576
10577           if test x"$enablestring" = xdisable; then
10578             if test $wxUSE_CHOICEBOOK = no; then
10579               result=yes
10580             else
10581               result=no
10582             fi
10583           else
10584             result=$wxUSE_CHOICEBOOK
10585           fi
10586
10587           { echo "$as_me:$LINENO: result: $result" >&5
10588 echo "${ECHO_T}$result" >&6; }
10589
10590
10591           enablestring=
10592           defaultval=$wxUSE_ALL_FEATURES
10593           if test -z "$defaultval"; then
10594               if test x"$enablestring" = xdisable; then
10595                   defaultval=yes
10596               else
10597                   defaultval=no
10598               fi
10599           fi
10600
10601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10602 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10603           # Check whether --enable-collpane was given.
10604 if test "${enable_collpane+set}" = set; then
10605   enableval=$enable_collpane;
10606                           if test "$enableval" = yes; then
10607                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10608                           else
10609                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10610                           fi
10611
10612 else
10613
10614                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10615
10616 fi
10617
10618
10619           eval "$wx_cv_use_collpane"
10620
10621           if test x"$enablestring" = xdisable; then
10622             if test $wxUSE_COLLPANE = no; then
10623               result=yes
10624             else
10625               result=no
10626             fi
10627           else
10628             result=$wxUSE_COLLPANE
10629           fi
10630
10631           { echo "$as_me:$LINENO: result: $result" >&5
10632 echo "${ECHO_T}$result" >&6; }
10633
10634
10635           enablestring=
10636           defaultval=$wxUSE_ALL_FEATURES
10637           if test -z "$defaultval"; then
10638               if test x"$enablestring" = xdisable; then
10639                   defaultval=yes
10640               else
10641                   defaultval=no
10642               fi
10643           fi
10644
10645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10646 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10647           # Check whether --enable-colourpicker was given.
10648 if test "${enable_colourpicker+set}" = set; then
10649   enableval=$enable_colourpicker;
10650                           if test "$enableval" = yes; then
10651                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10652                           else
10653                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10654                           fi
10655
10656 else
10657
10658                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10659
10660 fi
10661
10662
10663           eval "$wx_cv_use_colourpicker"
10664
10665           if test x"$enablestring" = xdisable; then
10666             if test $wxUSE_COLOURPICKERCTRL = no; then
10667               result=yes
10668             else
10669               result=no
10670             fi
10671           else
10672             result=$wxUSE_COLOURPICKERCTRL
10673           fi
10674
10675           { echo "$as_me:$LINENO: result: $result" >&5
10676 echo "${ECHO_T}$result" >&6; }
10677
10678
10679           enablestring=
10680           defaultval=$wxUSE_ALL_FEATURES
10681           if test -z "$defaultval"; then
10682               if test x"$enablestring" = xdisable; then
10683                   defaultval=yes
10684               else
10685                   defaultval=no
10686               fi
10687           fi
10688
10689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10690 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10691           # Check whether --enable-combobox was given.
10692 if test "${enable_combobox+set}" = set; then
10693   enableval=$enable_combobox;
10694                           if test "$enableval" = yes; then
10695                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10696                           else
10697                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10698                           fi
10699
10700 else
10701
10702                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10703
10704 fi
10705
10706
10707           eval "$wx_cv_use_combobox"
10708
10709           if test x"$enablestring" = xdisable; then
10710             if test $wxUSE_COMBOBOX = no; then
10711               result=yes
10712             else
10713               result=no
10714             fi
10715           else
10716             result=$wxUSE_COMBOBOX
10717           fi
10718
10719           { echo "$as_me:$LINENO: result: $result" >&5
10720 echo "${ECHO_T}$result" >&6; }
10721
10722
10723           enablestring=
10724           defaultval=$wxUSE_ALL_FEATURES
10725           if test -z "$defaultval"; then
10726               if test x"$enablestring" = xdisable; then
10727                   defaultval=yes
10728               else
10729                   defaultval=no
10730               fi
10731           fi
10732
10733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10734 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10735           # Check whether --enable-comboctrl was given.
10736 if test "${enable_comboctrl+set}" = set; then
10737   enableval=$enable_comboctrl;
10738                           if test "$enableval" = yes; then
10739                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10740                           else
10741                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10742                           fi
10743
10744 else
10745
10746                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10747
10748 fi
10749
10750
10751           eval "$wx_cv_use_comboctrl"
10752
10753           if test x"$enablestring" = xdisable; then
10754             if test $wxUSE_COMBOCTRL = no; then
10755               result=yes
10756             else
10757               result=no
10758             fi
10759           else
10760             result=$wxUSE_COMBOCTRL
10761           fi
10762
10763           { echo "$as_me:$LINENO: result: $result" >&5
10764 echo "${ECHO_T}$result" >&6; }
10765
10766
10767           enablestring=
10768           defaultval=$wxUSE_ALL_FEATURES
10769           if test -z "$defaultval"; then
10770               if test x"$enablestring" = xdisable; then
10771                   defaultval=yes
10772               else
10773                   defaultval=no
10774               fi
10775           fi
10776
10777           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commandlinkbutton" >&5
10778 echo $ECHO_N "checking for --${enablestring:-enable}-commandlinkbutton... $ECHO_C" >&6; }
10779           # Check whether --enable-commandlinkbutton was given.
10780 if test "${enable_commandlinkbutton+set}" = set; then
10781   enableval=$enable_commandlinkbutton;
10782                           if test "$enableval" = yes; then
10783                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=yes'
10784                           else
10785                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=no'
10786                           fi
10787
10788 else
10789
10790                           wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=${'DEFAULT_wxUSE_COMMANDLINKBUTTON":-$defaultval}"
10791
10792 fi
10793
10794
10795           eval "$wx_cv_use_commandlinkbutton"
10796
10797           if test x"$enablestring" = xdisable; then
10798             if test $wxUSE_COMMANDLINKBUTTON = no; then
10799               result=yes
10800             else
10801               result=no
10802             fi
10803           else
10804             result=$wxUSE_COMMANDLINKBUTTON
10805           fi
10806
10807           { echo "$as_me:$LINENO: result: $result" >&5
10808 echo "${ECHO_T}$result" >&6; }
10809
10810
10811           enablestring=
10812           defaultval=$wxUSE_ALL_FEATURES
10813           if test -z "$defaultval"; then
10814               if test x"$enablestring" = xdisable; then
10815                   defaultval=yes
10816               else
10817                   defaultval=no
10818               fi
10819           fi
10820
10821           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10822 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10823           # Check whether --enable-dataviewctrl was given.
10824 if test "${enable_dataviewctrl+set}" = set; then
10825   enableval=$enable_dataviewctrl;
10826                           if test "$enableval" = yes; then
10827                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10828                           else
10829                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10830                           fi
10831
10832 else
10833
10834                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10835
10836 fi
10837
10838
10839           eval "$wx_cv_use_dataviewctrl"
10840
10841           if test x"$enablestring" = xdisable; then
10842             if test $wxUSE_DATAVIEWCTRL = no; then
10843               result=yes
10844             else
10845               result=no
10846             fi
10847           else
10848             result=$wxUSE_DATAVIEWCTRL
10849           fi
10850
10851           { echo "$as_me:$LINENO: result: $result" >&5
10852 echo "${ECHO_T}$result" >&6; }
10853
10854
10855           enablestring=
10856           defaultval=$wxUSE_ALL_FEATURES
10857           if test -z "$defaultval"; then
10858               if test x"$enablestring" = xdisable; then
10859                   defaultval=yes
10860               else
10861                   defaultval=no
10862               fi
10863           fi
10864
10865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10866 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10867           # Check whether --enable-datepick was given.
10868 if test "${enable_datepick+set}" = set; then
10869   enableval=$enable_datepick;
10870                           if test "$enableval" = yes; then
10871                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10872                           else
10873                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10874                           fi
10875
10876 else
10877
10878                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10879
10880 fi
10881
10882
10883           eval "$wx_cv_use_datepick"
10884
10885           if test x"$enablestring" = xdisable; then
10886             if test $wxUSE_DATEPICKCTRL = no; then
10887               result=yes
10888             else
10889               result=no
10890             fi
10891           else
10892             result=$wxUSE_DATEPICKCTRL
10893           fi
10894
10895           { echo "$as_me:$LINENO: result: $result" >&5
10896 echo "${ECHO_T}$result" >&6; }
10897
10898
10899           enablestring=
10900           defaultval=$wxUSE_ALL_FEATURES
10901           if test -z "$defaultval"; then
10902               if test x"$enablestring" = xdisable; then
10903                   defaultval=yes
10904               else
10905                   defaultval=no
10906               fi
10907           fi
10908
10909           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10910 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10911           # Check whether --enable-detect_sm was given.
10912 if test "${enable_detect_sm+set}" = set; then
10913   enableval=$enable_detect_sm;
10914                           if test "$enableval" = yes; then
10915                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10916                           else
10917                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10918                           fi
10919
10920 else
10921
10922                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10923
10924 fi
10925
10926
10927           eval "$wx_cv_use_detect_sm"
10928
10929           if test x"$enablestring" = xdisable; then
10930             if test $wxUSE_DETECT_SM = no; then
10931               result=yes
10932             else
10933               result=no
10934             fi
10935           else
10936             result=$wxUSE_DETECT_SM
10937           fi
10938
10939           { echo "$as_me:$LINENO: result: $result" >&5
10940 echo "${ECHO_T}$result" >&6; }
10941
10942
10943           enablestring=
10944           defaultval=$wxUSE_ALL_FEATURES
10945           if test -z "$defaultval"; then
10946               if test x"$enablestring" = xdisable; then
10947                   defaultval=yes
10948               else
10949                   defaultval=no
10950               fi
10951           fi
10952
10953           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10954 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10955           # Check whether --enable-dirpicker was given.
10956 if test "${enable_dirpicker+set}" = set; then
10957   enableval=$enable_dirpicker;
10958                           if test "$enableval" = yes; then
10959                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10960                           else
10961                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10962                           fi
10963
10964 else
10965
10966                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10967
10968 fi
10969
10970
10971           eval "$wx_cv_use_dirpicker"
10972
10973           if test x"$enablestring" = xdisable; then
10974             if test $wxUSE_DIRPICKERCTRL = no; then
10975               result=yes
10976             else
10977               result=no
10978             fi
10979           else
10980             result=$wxUSE_DIRPICKERCTRL
10981           fi
10982
10983           { echo "$as_me:$LINENO: result: $result" >&5
10984 echo "${ECHO_T}$result" >&6; }
10985
10986
10987           enablestring=
10988           defaultval=$wxUSE_ALL_FEATURES
10989           if test -z "$defaultval"; then
10990               if test x"$enablestring" = xdisable; then
10991                   defaultval=yes
10992               else
10993                   defaultval=no
10994               fi
10995           fi
10996
10997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10998 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10999           # Check whether --enable-display was given.
11000 if test "${enable_display+set}" = set; then
11001   enableval=$enable_display;
11002                           if test "$enableval" = yes; then
11003                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11004                           else
11005                             wx_cv_use_display='wxUSE_DISPLAY=no'
11006                           fi
11007
11008 else
11009
11010                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11011
11012 fi
11013
11014
11015           eval "$wx_cv_use_display"
11016
11017           if test x"$enablestring" = xdisable; then
11018             if test $wxUSE_DISPLAY = no; then
11019               result=yes
11020             else
11021               result=no
11022             fi
11023           else
11024             result=$wxUSE_DISPLAY
11025           fi
11026
11027           { echo "$as_me:$LINENO: result: $result" >&5
11028 echo "${ECHO_T}$result" >&6; }
11029
11030
11031           enablestring=
11032           defaultval=$wxUSE_ALL_FEATURES
11033           if test -z "$defaultval"; then
11034               if test x"$enablestring" = xdisable; then
11035                   defaultval=yes
11036               else
11037                   defaultval=no
11038               fi
11039           fi
11040
11041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11042 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11043           # Check whether --enable-editablebox was given.
11044 if test "${enable_editablebox+set}" = set; then
11045   enableval=$enable_editablebox;
11046                           if test "$enableval" = yes; then
11047                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11048                           else
11049                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11050                           fi
11051
11052 else
11053
11054                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11055
11056 fi
11057
11058
11059           eval "$wx_cv_use_editablebox"
11060
11061           if test x"$enablestring" = xdisable; then
11062             if test $wxUSE_EDITABLELISTBOX = no; then
11063               result=yes
11064             else
11065               result=no
11066             fi
11067           else
11068             result=$wxUSE_EDITABLELISTBOX
11069           fi
11070
11071           { echo "$as_me:$LINENO: result: $result" >&5
11072 echo "${ECHO_T}$result" >&6; }
11073
11074
11075           enablestring=
11076           defaultval=$wxUSE_ALL_FEATURES
11077           if test -z "$defaultval"; then
11078               if test x"$enablestring" = xdisable; then
11079                   defaultval=yes
11080               else
11081                   defaultval=no
11082               fi
11083           fi
11084
11085           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
11086 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
11087           # Check whether --enable-filectrl was given.
11088 if test "${enable_filectrl+set}" = set; then
11089   enableval=$enable_filectrl;
11090                           if test "$enableval" = yes; then
11091                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
11092                           else
11093                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
11094                           fi
11095
11096 else
11097
11098                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
11099
11100 fi
11101
11102
11103           eval "$wx_cv_use_filectrl"
11104
11105           if test x"$enablestring" = xdisable; then
11106             if test $wxUSE_FILECTRL = no; then
11107               result=yes
11108             else
11109               result=no
11110             fi
11111           else
11112             result=$wxUSE_FILECTRL
11113           fi
11114
11115           { echo "$as_me:$LINENO: result: $result" >&5
11116 echo "${ECHO_T}$result" >&6; }
11117
11118
11119           enablestring=
11120           defaultval=$wxUSE_ALL_FEATURES
11121           if test -z "$defaultval"; then
11122               if test x"$enablestring" = xdisable; then
11123                   defaultval=yes
11124               else
11125                   defaultval=no
11126               fi
11127           fi
11128
11129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11130 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11131           # Check whether --enable-filepicker was given.
11132 if test "${enable_filepicker+set}" = set; then
11133   enableval=$enable_filepicker;
11134                           if test "$enableval" = yes; then
11135                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11136                           else
11137                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11138                           fi
11139
11140 else
11141
11142                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11143
11144 fi
11145
11146
11147           eval "$wx_cv_use_filepicker"
11148
11149           if test x"$enablestring" = xdisable; then
11150             if test $wxUSE_FILEPICKERCTRL = no; then
11151               result=yes
11152             else
11153               result=no
11154             fi
11155           else
11156             result=$wxUSE_FILEPICKERCTRL
11157           fi
11158
11159           { echo "$as_me:$LINENO: result: $result" >&5
11160 echo "${ECHO_T}$result" >&6; }
11161
11162
11163           enablestring=
11164           defaultval=$wxUSE_ALL_FEATURES
11165           if test -z "$defaultval"; then
11166               if test x"$enablestring" = xdisable; then
11167                   defaultval=yes
11168               else
11169                   defaultval=no
11170               fi
11171           fi
11172
11173           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11174 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11175           # Check whether --enable-fontpicker was given.
11176 if test "${enable_fontpicker+set}" = set; then
11177   enableval=$enable_fontpicker;
11178                           if test "$enableval" = yes; then
11179                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11180                           else
11181                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11182                           fi
11183
11184 else
11185
11186                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11187
11188 fi
11189
11190
11191           eval "$wx_cv_use_fontpicker"
11192
11193           if test x"$enablestring" = xdisable; then
11194             if test $wxUSE_FONTPICKERCTRL = no; then
11195               result=yes
11196             else
11197               result=no
11198             fi
11199           else
11200             result=$wxUSE_FONTPICKERCTRL
11201           fi
11202
11203           { echo "$as_me:$LINENO: result: $result" >&5
11204 echo "${ECHO_T}$result" >&6; }
11205
11206
11207           enablestring=
11208           defaultval=$wxUSE_ALL_FEATURES
11209           if test -z "$defaultval"; then
11210               if test x"$enablestring" = xdisable; then
11211                   defaultval=yes
11212               else
11213                   defaultval=no
11214               fi
11215           fi
11216
11217           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11218 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11219           # Check whether --enable-gauge was given.
11220 if test "${enable_gauge+set}" = set; then
11221   enableval=$enable_gauge;
11222                           if test "$enableval" = yes; then
11223                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11224                           else
11225                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11226                           fi
11227
11228 else
11229
11230                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11231
11232 fi
11233
11234
11235           eval "$wx_cv_use_gauge"
11236
11237           if test x"$enablestring" = xdisable; then
11238             if test $wxUSE_GAUGE = no; then
11239               result=yes
11240             else
11241               result=no
11242             fi
11243           else
11244             result=$wxUSE_GAUGE
11245           fi
11246
11247           { echo "$as_me:$LINENO: result: $result" >&5
11248 echo "${ECHO_T}$result" >&6; }
11249
11250
11251           enablestring=
11252           defaultval=$wxUSE_ALL_FEATURES
11253           if test -z "$defaultval"; then
11254               if test x"$enablestring" = xdisable; then
11255                   defaultval=yes
11256               else
11257                   defaultval=no
11258               fi
11259           fi
11260
11261           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11262 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11263           # Check whether --enable-grid was given.
11264 if test "${enable_grid+set}" = set; then
11265   enableval=$enable_grid;
11266                           if test "$enableval" = yes; then
11267                             wx_cv_use_grid='wxUSE_GRID=yes'
11268                           else
11269                             wx_cv_use_grid='wxUSE_GRID=no'
11270                           fi
11271
11272 else
11273
11274                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11275
11276 fi
11277
11278
11279           eval "$wx_cv_use_grid"
11280
11281           if test x"$enablestring" = xdisable; then
11282             if test $wxUSE_GRID = no; then
11283               result=yes
11284             else
11285               result=no
11286             fi
11287           else
11288             result=$wxUSE_GRID
11289           fi
11290
11291           { echo "$as_me:$LINENO: result: $result" >&5
11292 echo "${ECHO_T}$result" >&6; }
11293
11294
11295           enablestring=
11296           defaultval=$wxUSE_ALL_FEATURES
11297           if test -z "$defaultval"; then
11298               if test x"$enablestring" = xdisable; then
11299                   defaultval=yes
11300               else
11301                   defaultval=no
11302               fi
11303           fi
11304
11305           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
11306 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
11307           # Check whether --enable-headerctrl was given.
11308 if test "${enable_headerctrl+set}" = set; then
11309   enableval=$enable_headerctrl;
11310                           if test "$enableval" = yes; then
11311                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
11312                           else
11313                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
11314                           fi
11315
11316 else
11317
11318                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
11319
11320 fi
11321
11322
11323           eval "$wx_cv_use_headerctrl"
11324
11325           if test x"$enablestring" = xdisable; then
11326             if test $wxUSE_HEADERCTRL = no; then
11327               result=yes
11328             else
11329               result=no
11330             fi
11331           else
11332             result=$wxUSE_HEADERCTRL
11333           fi
11334
11335           { echo "$as_me:$LINENO: result: $result" >&5
11336 echo "${ECHO_T}$result" >&6; }
11337
11338
11339           enablestring=
11340           defaultval=$wxUSE_ALL_FEATURES
11341           if test -z "$defaultval"; then
11342               if test x"$enablestring" = xdisable; then
11343                   defaultval=yes
11344               else
11345                   defaultval=no
11346               fi
11347           fi
11348
11349           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11350 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11351           # Check whether --enable-hyperlink was given.
11352 if test "${enable_hyperlink+set}" = set; then
11353   enableval=$enable_hyperlink;
11354                           if test "$enableval" = yes; then
11355                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11356                           else
11357                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11358                           fi
11359
11360 else
11361
11362                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11363
11364 fi
11365
11366
11367           eval "$wx_cv_use_hyperlink"
11368
11369           if test x"$enablestring" = xdisable; then
11370             if test $wxUSE_HYPERLINKCTRL = no; then
11371               result=yes
11372             else
11373               result=no
11374             fi
11375           else
11376             result=$wxUSE_HYPERLINKCTRL
11377           fi
11378
11379           { echo "$as_me:$LINENO: result: $result" >&5
11380 echo "${ECHO_T}$result" >&6; }
11381
11382
11383           enablestring=
11384           defaultval=$wxUSE_ALL_FEATURES
11385           if test -z "$defaultval"; then
11386               if test x"$enablestring" = xdisable; then
11387                   defaultval=yes
11388               else
11389                   defaultval=no
11390               fi
11391           fi
11392
11393           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11394 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11395           # Check whether --enable-imaglist was given.
11396 if test "${enable_imaglist+set}" = set; then
11397   enableval=$enable_imaglist;
11398                           if test "$enableval" = yes; then
11399                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11400                           else
11401                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11402                           fi
11403
11404 else
11405
11406                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11407
11408 fi
11409
11410
11411           eval "$wx_cv_use_imaglist"
11412
11413           if test x"$enablestring" = xdisable; then
11414             if test $wxUSE_IMAGLIST = no; then
11415               result=yes
11416             else
11417               result=no
11418             fi
11419           else
11420             result=$wxUSE_IMAGLIST
11421           fi
11422
11423           { echo "$as_me:$LINENO: result: $result" >&5
11424 echo "${ECHO_T}$result" >&6; }
11425
11426
11427           enablestring=
11428           defaultval=$wxUSE_ALL_FEATURES
11429           if test -z "$defaultval"; then
11430               if test x"$enablestring" = xdisable; then
11431                   defaultval=yes
11432               else
11433                   defaultval=no
11434               fi
11435           fi
11436
11437           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11438 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11439           # Check whether --enable-infobar was given.
11440 if test "${enable_infobar+set}" = set; then
11441   enableval=$enable_infobar;
11442                           if test "$enableval" = yes; then
11443                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11444                           else
11445                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11446                           fi
11447
11448 else
11449
11450                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11451
11452 fi
11453
11454
11455           eval "$wx_cv_use_infobar"
11456
11457           if test x"$enablestring" = xdisable; then
11458             if test $wxUSE_INFOBAR = no; then
11459               result=yes
11460             else
11461               result=no
11462             fi
11463           else
11464             result=$wxUSE_INFOBAR
11465           fi
11466
11467           { echo "$as_me:$LINENO: result: $result" >&5
11468 echo "${ECHO_T}$result" >&6; }
11469
11470
11471           enablestring=
11472           defaultval=$wxUSE_ALL_FEATURES
11473           if test -z "$defaultval"; then
11474               if test x"$enablestring" = xdisable; then
11475                   defaultval=yes
11476               else
11477                   defaultval=no
11478               fi
11479           fi
11480
11481           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11482 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11483           # Check whether --enable-listbook was given.
11484 if test "${enable_listbook+set}" = set; then
11485   enableval=$enable_listbook;
11486                           if test "$enableval" = yes; then
11487                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11488                           else
11489                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11490                           fi
11491
11492 else
11493
11494                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11495
11496 fi
11497
11498
11499           eval "$wx_cv_use_listbook"
11500
11501           if test x"$enablestring" = xdisable; then
11502             if test $wxUSE_LISTBOOK = no; then
11503               result=yes
11504             else
11505               result=no
11506             fi
11507           else
11508             result=$wxUSE_LISTBOOK
11509           fi
11510
11511           { echo "$as_me:$LINENO: result: $result" >&5
11512 echo "${ECHO_T}$result" >&6; }
11513
11514
11515           enablestring=
11516           defaultval=$wxUSE_ALL_FEATURES
11517           if test -z "$defaultval"; then
11518               if test x"$enablestring" = xdisable; then
11519                   defaultval=yes
11520               else
11521                   defaultval=no
11522               fi
11523           fi
11524
11525           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11526 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11527           # Check whether --enable-listbox was given.
11528 if test "${enable_listbox+set}" = set; then
11529   enableval=$enable_listbox;
11530                           if test "$enableval" = yes; then
11531                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11532                           else
11533                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11534                           fi
11535
11536 else
11537
11538                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11539
11540 fi
11541
11542
11543           eval "$wx_cv_use_listbox"
11544
11545           if test x"$enablestring" = xdisable; then
11546             if test $wxUSE_LISTBOX = no; then
11547               result=yes
11548             else
11549               result=no
11550             fi
11551           else
11552             result=$wxUSE_LISTBOX
11553           fi
11554
11555           { echo "$as_me:$LINENO: result: $result" >&5
11556 echo "${ECHO_T}$result" >&6; }
11557
11558
11559           enablestring=
11560           defaultval=$wxUSE_ALL_FEATURES
11561           if test -z "$defaultval"; then
11562               if test x"$enablestring" = xdisable; then
11563                   defaultval=yes
11564               else
11565                   defaultval=no
11566               fi
11567           fi
11568
11569           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11570 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11571           # Check whether --enable-listctrl was given.
11572 if test "${enable_listctrl+set}" = set; then
11573   enableval=$enable_listctrl;
11574                           if test "$enableval" = yes; then
11575                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11576                           else
11577                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11578                           fi
11579
11580 else
11581
11582                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11583
11584 fi
11585
11586
11587           eval "$wx_cv_use_listctrl"
11588
11589           if test x"$enablestring" = xdisable; then
11590             if test $wxUSE_LISTCTRL = no; then
11591               result=yes
11592             else
11593               result=no
11594             fi
11595           else
11596             result=$wxUSE_LISTCTRL
11597           fi
11598
11599           { echo "$as_me:$LINENO: result: $result" >&5
11600 echo "${ECHO_T}$result" >&6; }
11601
11602
11603           enablestring=
11604           defaultval=$wxUSE_ALL_FEATURES
11605           if test -z "$defaultval"; then
11606               if test x"$enablestring" = xdisable; then
11607                   defaultval=yes
11608               else
11609                   defaultval=no
11610               fi
11611           fi
11612
11613           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11614 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11615           # Check whether --enable-notebook was given.
11616 if test "${enable_notebook+set}" = set; then
11617   enableval=$enable_notebook;
11618                           if test "$enableval" = yes; then
11619                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11620                           else
11621                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11622                           fi
11623
11624 else
11625
11626                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11627
11628 fi
11629
11630
11631           eval "$wx_cv_use_notebook"
11632
11633           if test x"$enablestring" = xdisable; then
11634             if test $wxUSE_NOTEBOOK = no; then
11635               result=yes
11636             else
11637               result=no
11638             fi
11639           else
11640             result=$wxUSE_NOTEBOOK
11641           fi
11642
11643           { echo "$as_me:$LINENO: result: $result" >&5
11644 echo "${ECHO_T}$result" >&6; }
11645
11646
11647           enablestring=
11648           defaultval=$wxUSE_ALL_FEATURES
11649           if test -z "$defaultval"; then
11650               if test x"$enablestring" = xdisable; then
11651                   defaultval=yes
11652               else
11653                   defaultval=no
11654               fi
11655           fi
11656
11657           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11658 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11659           # Check whether --enable-notifmsg was given.
11660 if test "${enable_notifmsg+set}" = set; then
11661   enableval=$enable_notifmsg;
11662                           if test "$enableval" = yes; then
11663                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11664                           else
11665                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11666                           fi
11667
11668 else
11669
11670                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11671
11672 fi
11673
11674
11675           eval "$wx_cv_use_notifmsg"
11676
11677           if test x"$enablestring" = xdisable; then
11678             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11679               result=yes
11680             else
11681               result=no
11682             fi
11683           else
11684             result=$wxUSE_NOTIFICATION_MESSAGE
11685           fi
11686
11687           { echo "$as_me:$LINENO: result: $result" >&5
11688 echo "${ECHO_T}$result" >&6; }
11689
11690
11691           enablestring=
11692           defaultval=$wxUSE_ALL_FEATURES
11693           if test -z "$defaultval"; then
11694               if test x"$enablestring" = xdisable; then
11695                   defaultval=yes
11696               else
11697                   defaultval=no
11698               fi
11699           fi
11700
11701           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11702 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11703           # Check whether --enable-odcombobox was given.
11704 if test "${enable_odcombobox+set}" = set; then
11705   enableval=$enable_odcombobox;
11706                           if test "$enableval" = yes; then
11707                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11708                           else
11709                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11710                           fi
11711
11712 else
11713
11714                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11715
11716 fi
11717
11718
11719           eval "$wx_cv_use_odcombobox"
11720
11721           if test x"$enablestring" = xdisable; then
11722             if test $wxUSE_ODCOMBOBOX = no; then
11723               result=yes
11724             else
11725               result=no
11726             fi
11727           else
11728             result=$wxUSE_ODCOMBOBOX
11729           fi
11730
11731           { echo "$as_me:$LINENO: result: $result" >&5
11732 echo "${ECHO_T}$result" >&6; }
11733
11734
11735           enablestring=
11736           defaultval=$wxUSE_ALL_FEATURES
11737           if test -z "$defaultval"; then
11738               if test x"$enablestring" = xdisable; then
11739                   defaultval=yes
11740               else
11741                   defaultval=no
11742               fi
11743           fi
11744
11745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11746 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11747           # Check whether --enable-popupwin was given.
11748 if test "${enable_popupwin+set}" = set; then
11749   enableval=$enable_popupwin;
11750                           if test "$enableval" = yes; then
11751                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11752                           else
11753                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11754                           fi
11755
11756 else
11757
11758                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11759
11760 fi
11761
11762
11763           eval "$wx_cv_use_popupwin"
11764
11765           if test x"$enablestring" = xdisable; then
11766             if test $wxUSE_POPUPWIN = no; then
11767               result=yes
11768             else
11769               result=no
11770             fi
11771           else
11772             result=$wxUSE_POPUPWIN
11773           fi
11774
11775           { echo "$as_me:$LINENO: result: $result" >&5
11776 echo "${ECHO_T}$result" >&6; }
11777
11778
11779           enablestring=
11780           defaultval=$wxUSE_ALL_FEATURES
11781           if test -z "$defaultval"; then
11782               if test x"$enablestring" = xdisable; then
11783                   defaultval=yes
11784               else
11785                   defaultval=no
11786               fi
11787           fi
11788
11789           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11790 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11791           # Check whether --enable-radiobox was given.
11792 if test "${enable_radiobox+set}" = set; then
11793   enableval=$enable_radiobox;
11794                           if test "$enableval" = yes; then
11795                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11796                           else
11797                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11798                           fi
11799
11800 else
11801
11802                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11803
11804 fi
11805
11806
11807           eval "$wx_cv_use_radiobox"
11808
11809           if test x"$enablestring" = xdisable; then
11810             if test $wxUSE_RADIOBOX = no; then
11811               result=yes
11812             else
11813               result=no
11814             fi
11815           else
11816             result=$wxUSE_RADIOBOX
11817           fi
11818
11819           { echo "$as_me:$LINENO: result: $result" >&5
11820 echo "${ECHO_T}$result" >&6; }
11821
11822
11823           enablestring=
11824           defaultval=$wxUSE_ALL_FEATURES
11825           if test -z "$defaultval"; then
11826               if test x"$enablestring" = xdisable; then
11827                   defaultval=yes
11828               else
11829                   defaultval=no
11830               fi
11831           fi
11832
11833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11834 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11835           # Check whether --enable-radiobtn was given.
11836 if test "${enable_radiobtn+set}" = set; then
11837   enableval=$enable_radiobtn;
11838                           if test "$enableval" = yes; then
11839                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11840                           else
11841                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11842                           fi
11843
11844 else
11845
11846                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11847
11848 fi
11849
11850
11851           eval "$wx_cv_use_radiobtn"
11852
11853           if test x"$enablestring" = xdisable; then
11854             if test $wxUSE_RADIOBTN = no; then
11855               result=yes
11856             else
11857               result=no
11858             fi
11859           else
11860             result=$wxUSE_RADIOBTN
11861           fi
11862
11863           { echo "$as_me:$LINENO: result: $result" >&5
11864 echo "${ECHO_T}$result" >&6; }
11865
11866
11867           enablestring=
11868           defaultval=$wxUSE_ALL_FEATURES
11869           if test -z "$defaultval"; then
11870               if test x"$enablestring" = xdisable; then
11871                   defaultval=yes
11872               else
11873                   defaultval=no
11874               fi
11875           fi
11876
11877           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richmsgdlg" >&5
11878 echo $ECHO_N "checking for --${enablestring:-enable}-richmsgdlg... $ECHO_C" >&6; }
11879           # Check whether --enable-richmsgdlg was given.
11880 if test "${enable_richmsgdlg+set}" = set; then
11881   enableval=$enable_richmsgdlg;
11882                           if test "$enableval" = yes; then
11883                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=yes'
11884                           else
11885                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=no'
11886                           fi
11887
11888 else
11889
11890                           wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=${'DEFAULT_wxUSE_RICHMSGDLG":-$defaultval}"
11891
11892 fi
11893
11894
11895           eval "$wx_cv_use_richmsgdlg"
11896
11897           if test x"$enablestring" = xdisable; then
11898             if test $wxUSE_RICHMSGDLG = no; then
11899               result=yes
11900             else
11901               result=no
11902             fi
11903           else
11904             result=$wxUSE_RICHMSGDLG
11905           fi
11906
11907           { echo "$as_me:$LINENO: result: $result" >&5
11908 echo "${ECHO_T}$result" >&6; }
11909
11910
11911           enablestring=
11912           defaultval=$wxUSE_ALL_FEATURES
11913           if test -z "$defaultval"; then
11914               if test x"$enablestring" = xdisable; then
11915                   defaultval=yes
11916               else
11917                   defaultval=no
11918               fi
11919           fi
11920
11921           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtooltip" >&5
11922 echo $ECHO_N "checking for --${enablestring:-enable}-richtooltip... $ECHO_C" >&6; }
11923           # Check whether --enable-richtooltip was given.
11924 if test "${enable_richtooltip+set}" = set; then
11925   enableval=$enable_richtooltip;
11926                           if test "$enableval" = yes; then
11927                             wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=yes'
11928                           else
11929                             wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=no'
11930                           fi
11931
11932 else
11933
11934                           wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=${'DEFAULT_wxUSE_RICHTOOLTIP":-$defaultval}"
11935
11936 fi
11937
11938
11939           eval "$wx_cv_use_richtooltip"
11940
11941           if test x"$enablestring" = xdisable; then
11942             if test $wxUSE_RICHTOOLTIP = no; then
11943               result=yes
11944             else
11945               result=no
11946             fi
11947           else
11948             result=$wxUSE_RICHTOOLTIP
11949           fi
11950
11951           { echo "$as_me:$LINENO: result: $result" >&5
11952 echo "${ECHO_T}$result" >&6; }
11953
11954
11955           enablestring=
11956           defaultval=$wxUSE_ALL_FEATURES
11957           if test -z "$defaultval"; then
11958               if test x"$enablestring" = xdisable; then
11959                   defaultval=yes
11960               else
11961                   defaultval=no
11962               fi
11963           fi
11964
11965           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11966 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11967           # Check whether --enable-rearrangectrl was given.
11968 if test "${enable_rearrangectrl+set}" = set; then
11969   enableval=$enable_rearrangectrl;
11970                           if test "$enableval" = yes; then
11971                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11972                           else
11973                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11974                           fi
11975
11976 else
11977
11978                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11979
11980 fi
11981
11982
11983           eval "$wx_cv_use_rearrangectrl"
11984
11985           if test x"$enablestring" = xdisable; then
11986             if test $wxUSE_REARRANGECTRL = no; then
11987               result=yes
11988             else
11989               result=no
11990             fi
11991           else
11992             result=$wxUSE_REARRANGECTRL
11993           fi
11994
11995           { echo "$as_me:$LINENO: result: $result" >&5
11996 echo "${ECHO_T}$result" >&6; }
11997
11998
11999           enablestring=
12000           defaultval=$wxUSE_ALL_FEATURES
12001           if test -z "$defaultval"; then
12002               if test x"$enablestring" = xdisable; then
12003                   defaultval=yes
12004               else
12005                   defaultval=no
12006               fi
12007           fi
12008
12009           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12010 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12011           # Check whether --enable-sash was given.
12012 if test "${enable_sash+set}" = set; then
12013   enableval=$enable_sash;
12014                           if test "$enableval" = yes; then
12015                             wx_cv_use_sash='wxUSE_SASH=yes'
12016                           else
12017                             wx_cv_use_sash='wxUSE_SASH=no'
12018                           fi
12019
12020 else
12021
12022                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12023
12024 fi
12025
12026
12027           eval "$wx_cv_use_sash"
12028
12029           if test x"$enablestring" = xdisable; then
12030             if test $wxUSE_SASH = no; then
12031               result=yes
12032             else
12033               result=no
12034             fi
12035           else
12036             result=$wxUSE_SASH
12037           fi
12038
12039           { echo "$as_me:$LINENO: result: $result" >&5
12040 echo "${ECHO_T}$result" >&6; }
12041
12042
12043           enablestring=
12044           defaultval=$wxUSE_ALL_FEATURES
12045           if test -z "$defaultval"; then
12046               if test x"$enablestring" = xdisable; then
12047                   defaultval=yes
12048               else
12049                   defaultval=no
12050               fi
12051           fi
12052
12053           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12054 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12055           # Check whether --enable-scrollbar was given.
12056 if test "${enable_scrollbar+set}" = set; then
12057   enableval=$enable_scrollbar;
12058                           if test "$enableval" = yes; then
12059                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12060                           else
12061                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12062                           fi
12063
12064 else
12065
12066                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12067
12068 fi
12069
12070
12071           eval "$wx_cv_use_scrollbar"
12072
12073           if test x"$enablestring" = xdisable; then
12074             if test $wxUSE_SCROLLBAR = no; then
12075               result=yes
12076             else
12077               result=no
12078             fi
12079           else
12080             result=$wxUSE_SCROLLBAR
12081           fi
12082
12083           { echo "$as_me:$LINENO: result: $result" >&5
12084 echo "${ECHO_T}$result" >&6; }
12085
12086
12087           enablestring=
12088           defaultval=$wxUSE_ALL_FEATURES
12089           if test -z "$defaultval"; then
12090               if test x"$enablestring" = xdisable; then
12091                   defaultval=yes
12092               else
12093                   defaultval=no
12094               fi
12095           fi
12096
12097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12098 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12099           # Check whether --enable-searchctrl was given.
12100 if test "${enable_searchctrl+set}" = set; then
12101   enableval=$enable_searchctrl;
12102                           if test "$enableval" = yes; then
12103                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12104                           else
12105                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12106                           fi
12107
12108 else
12109
12110                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12111
12112 fi
12113
12114
12115           eval "$wx_cv_use_searchctrl"
12116
12117           if test x"$enablestring" = xdisable; then
12118             if test $wxUSE_SEARCHCTRL = no; then
12119               result=yes
12120             else
12121               result=no
12122             fi
12123           else
12124             result=$wxUSE_SEARCHCTRL
12125           fi
12126
12127           { echo "$as_me:$LINENO: result: $result" >&5
12128 echo "${ECHO_T}$result" >&6; }
12129
12130
12131           enablestring=
12132           defaultval=$wxUSE_ALL_FEATURES
12133           if test -z "$defaultval"; then
12134               if test x"$enablestring" = xdisable; then
12135                   defaultval=yes
12136               else
12137                   defaultval=no
12138               fi
12139           fi
12140
12141           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12142 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12143           # Check whether --enable-slider was given.
12144 if test "${enable_slider+set}" = set; then
12145   enableval=$enable_slider;
12146                           if test "$enableval" = yes; then
12147                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12148                           else
12149                             wx_cv_use_slider='wxUSE_SLIDER=no'
12150                           fi
12151
12152 else
12153
12154                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12155
12156 fi
12157
12158
12159           eval "$wx_cv_use_slider"
12160
12161           if test x"$enablestring" = xdisable; then
12162             if test $wxUSE_SLIDER = no; then
12163               result=yes
12164             else
12165               result=no
12166             fi
12167           else
12168             result=$wxUSE_SLIDER
12169           fi
12170
12171           { echo "$as_me:$LINENO: result: $result" >&5
12172 echo "${ECHO_T}$result" >&6; }
12173
12174
12175           enablestring=
12176           defaultval=$wxUSE_ALL_FEATURES
12177           if test -z "$defaultval"; then
12178               if test x"$enablestring" = xdisable; then
12179                   defaultval=yes
12180               else
12181                   defaultval=no
12182               fi
12183           fi
12184
12185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12186 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12187           # Check whether --enable-spinbtn was given.
12188 if test "${enable_spinbtn+set}" = set; then
12189   enableval=$enable_spinbtn;
12190                           if test "$enableval" = yes; then
12191                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12192                           else
12193                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12194                           fi
12195
12196 else
12197
12198                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12199
12200 fi
12201
12202
12203           eval "$wx_cv_use_spinbtn"
12204
12205           if test x"$enablestring" = xdisable; then
12206             if test $wxUSE_SPINBTN = no; then
12207               result=yes
12208             else
12209               result=no
12210             fi
12211           else
12212             result=$wxUSE_SPINBTN
12213           fi
12214
12215           { echo "$as_me:$LINENO: result: $result" >&5
12216 echo "${ECHO_T}$result" >&6; }
12217
12218
12219           enablestring=
12220           defaultval=$wxUSE_ALL_FEATURES
12221           if test -z "$defaultval"; then
12222               if test x"$enablestring" = xdisable; then
12223                   defaultval=yes
12224               else
12225                   defaultval=no
12226               fi
12227           fi
12228
12229           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12230 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12231           # Check whether --enable-spinctrl was given.
12232 if test "${enable_spinctrl+set}" = set; then
12233   enableval=$enable_spinctrl;
12234                           if test "$enableval" = yes; then
12235                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12236                           else
12237                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12238                           fi
12239
12240 else
12241
12242                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12243
12244 fi
12245
12246
12247           eval "$wx_cv_use_spinctrl"
12248
12249           if test x"$enablestring" = xdisable; then
12250             if test $wxUSE_SPINCTRL = no; then
12251               result=yes
12252             else
12253               result=no
12254             fi
12255           else
12256             result=$wxUSE_SPINCTRL
12257           fi
12258
12259           { echo "$as_me:$LINENO: result: $result" >&5
12260 echo "${ECHO_T}$result" >&6; }
12261
12262
12263           enablestring=
12264           defaultval=$wxUSE_ALL_FEATURES
12265           if test -z "$defaultval"; then
12266               if test x"$enablestring" = xdisable; then
12267                   defaultval=yes
12268               else
12269                   defaultval=no
12270               fi
12271           fi
12272
12273           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12274 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12275           # Check whether --enable-splitter was given.
12276 if test "${enable_splitter+set}" = set; then
12277   enableval=$enable_splitter;
12278                           if test "$enableval" = yes; then
12279                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12280                           else
12281                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12282                           fi
12283
12284 else
12285
12286                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12287
12288 fi
12289
12290
12291           eval "$wx_cv_use_splitter"
12292
12293           if test x"$enablestring" = xdisable; then
12294             if test $wxUSE_SPLITTER = no; then
12295               result=yes
12296             else
12297               result=no
12298             fi
12299           else
12300             result=$wxUSE_SPLITTER
12301           fi
12302
12303           { echo "$as_me:$LINENO: result: $result" >&5
12304 echo "${ECHO_T}$result" >&6; }
12305
12306
12307           enablestring=
12308           defaultval=$wxUSE_ALL_FEATURES
12309           if test -z "$defaultval"; then
12310               if test x"$enablestring" = xdisable; then
12311                   defaultval=yes
12312               else
12313                   defaultval=no
12314               fi
12315           fi
12316
12317           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12318 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12319           # Check whether --enable-statbmp was given.
12320 if test "${enable_statbmp+set}" = set; then
12321   enableval=$enable_statbmp;
12322                           if test "$enableval" = yes; then
12323                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12324                           else
12325                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12326                           fi
12327
12328 else
12329
12330                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12331
12332 fi
12333
12334
12335           eval "$wx_cv_use_statbmp"
12336
12337           if test x"$enablestring" = xdisable; then
12338             if test $wxUSE_STATBMP = no; then
12339               result=yes
12340             else
12341               result=no
12342             fi
12343           else
12344             result=$wxUSE_STATBMP
12345           fi
12346
12347           { echo "$as_me:$LINENO: result: $result" >&5
12348 echo "${ECHO_T}$result" >&6; }
12349
12350
12351           enablestring=
12352           defaultval=$wxUSE_ALL_FEATURES
12353           if test -z "$defaultval"; then
12354               if test x"$enablestring" = xdisable; then
12355                   defaultval=yes
12356               else
12357                   defaultval=no
12358               fi
12359           fi
12360
12361           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12362 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12363           # Check whether --enable-statbox was given.
12364 if test "${enable_statbox+set}" = set; then
12365   enableval=$enable_statbox;
12366                           if test "$enableval" = yes; then
12367                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12368                           else
12369                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12370                           fi
12371
12372 else
12373
12374                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12375
12376 fi
12377
12378
12379           eval "$wx_cv_use_statbox"
12380
12381           if test x"$enablestring" = xdisable; then
12382             if test $wxUSE_STATBOX = no; then
12383               result=yes
12384             else
12385               result=no
12386             fi
12387           else
12388             result=$wxUSE_STATBOX
12389           fi
12390
12391           { echo "$as_me:$LINENO: result: $result" >&5
12392 echo "${ECHO_T}$result" >&6; }
12393
12394
12395           enablestring=
12396           defaultval=$wxUSE_ALL_FEATURES
12397           if test -z "$defaultval"; then
12398               if test x"$enablestring" = xdisable; then
12399                   defaultval=yes
12400               else
12401                   defaultval=no
12402               fi
12403           fi
12404
12405           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12406 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12407           # Check whether --enable-statline was given.
12408 if test "${enable_statline+set}" = set; then
12409   enableval=$enable_statline;
12410                           if test "$enableval" = yes; then
12411                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12412                           else
12413                             wx_cv_use_statline='wxUSE_STATLINE=no'
12414                           fi
12415
12416 else
12417
12418                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12419
12420 fi
12421
12422
12423           eval "$wx_cv_use_statline"
12424
12425           if test x"$enablestring" = xdisable; then
12426             if test $wxUSE_STATLINE = no; then
12427               result=yes
12428             else
12429               result=no
12430             fi
12431           else
12432             result=$wxUSE_STATLINE
12433           fi
12434
12435           { echo "$as_me:$LINENO: result: $result" >&5
12436 echo "${ECHO_T}$result" >&6; }
12437
12438
12439           enablestring=
12440           defaultval=$wxUSE_ALL_FEATURES
12441           if test -z "$defaultval"; then
12442               if test x"$enablestring" = xdisable; then
12443                   defaultval=yes
12444               else
12445                   defaultval=no
12446               fi
12447           fi
12448
12449           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12450 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12451           # Check whether --enable-stattext was given.
12452 if test "${enable_stattext+set}" = set; then
12453   enableval=$enable_stattext;
12454                           if test "$enableval" = yes; then
12455                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12456                           else
12457                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12458                           fi
12459
12460 else
12461
12462                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12463
12464 fi
12465
12466
12467           eval "$wx_cv_use_stattext"
12468
12469           if test x"$enablestring" = xdisable; then
12470             if test $wxUSE_STATTEXT = no; then
12471               result=yes
12472             else
12473               result=no
12474             fi
12475           else
12476             result=$wxUSE_STATTEXT
12477           fi
12478
12479           { echo "$as_me:$LINENO: result: $result" >&5
12480 echo "${ECHO_T}$result" >&6; }
12481
12482
12483           enablestring=
12484           defaultval=$wxUSE_ALL_FEATURES
12485           if test -z "$defaultval"; then
12486               if test x"$enablestring" = xdisable; then
12487                   defaultval=yes
12488               else
12489                   defaultval=no
12490               fi
12491           fi
12492
12493           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12494 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12495           # Check whether --enable-statusbar was given.
12496 if test "${enable_statusbar+set}" = set; then
12497   enableval=$enable_statusbar;
12498                           if test "$enableval" = yes; then
12499                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12500                           else
12501                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12502                           fi
12503
12504 else
12505
12506                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12507
12508 fi
12509
12510
12511           eval "$wx_cv_use_statusbar"
12512
12513           if test x"$enablestring" = xdisable; then
12514             if test $wxUSE_STATUSBAR = no; then
12515               result=yes
12516             else
12517               result=no
12518             fi
12519           else
12520             result=$wxUSE_STATUSBAR
12521           fi
12522
12523           { echo "$as_me:$LINENO: result: $result" >&5
12524 echo "${ECHO_T}$result" >&6; }
12525
12526
12527           enablestring=
12528           defaultval=$wxUSE_ALL_FEATURES
12529           if test -z "$defaultval"; then
12530               if test x"$enablestring" = xdisable; then
12531                   defaultval=yes
12532               else
12533                   defaultval=no
12534               fi
12535           fi
12536
12537           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12538 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12539           # Check whether --enable-taskbaricon was given.
12540 if test "${enable_taskbaricon+set}" = set; then
12541   enableval=$enable_taskbaricon;
12542                           if test "$enableval" = yes; then
12543                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12544                           else
12545                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12546                           fi
12547
12548 else
12549
12550                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12551
12552 fi
12553
12554
12555           eval "$wx_cv_use_taskbaricon"
12556
12557           if test x"$enablestring" = xdisable; then
12558             if test $wxUSE_TASKBARICON = no; then
12559               result=yes
12560             else
12561               result=no
12562             fi
12563           else
12564             result=$wxUSE_TASKBARICON
12565           fi
12566
12567           { echo "$as_me:$LINENO: result: $result" >&5
12568 echo "${ECHO_T}$result" >&6; }
12569
12570
12571           enablestring=
12572           defaultval=$wxUSE_ALL_FEATURES
12573           if test -z "$defaultval"; then
12574               if test x"$enablestring" = xdisable; then
12575                   defaultval=yes
12576               else
12577                   defaultval=no
12578               fi
12579           fi
12580
12581           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12582 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12583           # Check whether --enable-tbarnative was given.
12584 if test "${enable_tbarnative+set}" = set; then
12585   enableval=$enable_tbarnative;
12586                           if test "$enableval" = yes; then
12587                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12588                           else
12589                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12590                           fi
12591
12592 else
12593
12594                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12595
12596 fi
12597
12598
12599           eval "$wx_cv_use_tbarnative"
12600
12601           if test x"$enablestring" = xdisable; then
12602             if test $wxUSE_TOOLBAR_NATIVE = no; then
12603               result=yes
12604             else
12605               result=no
12606             fi
12607           else
12608             result=$wxUSE_TOOLBAR_NATIVE
12609           fi
12610
12611           { echo "$as_me:$LINENO: result: $result" >&5
12612 echo "${ECHO_T}$result" >&6; }
12613
12614
12615           enablestring=
12616           defaultval=$wxUSE_ALL_FEATURES
12617           if test -z "$defaultval"; then
12618               if test x"$enablestring" = xdisable; then
12619                   defaultval=yes
12620               else
12621                   defaultval=no
12622               fi
12623           fi
12624
12625           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12626 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12627           # Check whether --enable-textctrl was given.
12628 if test "${enable_textctrl+set}" = set; then
12629   enableval=$enable_textctrl;
12630                           if test "$enableval" = yes; then
12631                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12632                           else
12633                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12634                           fi
12635
12636 else
12637
12638                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12639
12640 fi
12641
12642
12643           eval "$wx_cv_use_textctrl"
12644
12645           if test x"$enablestring" = xdisable; then
12646             if test $wxUSE_TEXTCTRL = no; then
12647               result=yes
12648             else
12649               result=no
12650             fi
12651           else
12652             result=$wxUSE_TEXTCTRL
12653           fi
12654
12655           { echo "$as_me:$LINENO: result: $result" >&5
12656 echo "${ECHO_T}$result" >&6; }
12657
12658
12659           enablestring=
12660           defaultval=$wxUSE_ALL_FEATURES
12661           if test -z "$defaultval"; then
12662               if test x"$enablestring" = xdisable; then
12663                   defaultval=yes
12664               else
12665                   defaultval=no
12666               fi
12667           fi
12668
12669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
12670 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
12671           # Check whether --enable-datepick was given.
12672 if test "${enable_datepick+set}" = set; then
12673   enableval=$enable_datepick;
12674                           if test "$enableval" = yes; then
12675                             wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=yes'
12676                           else
12677                             wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=no'
12678                           fi
12679
12680 else
12681
12682                           wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=${'DEFAULT_wxUSE_TIMEPICKCTRL":-$defaultval}"
12683
12684 fi
12685
12686
12687           eval "$wx_cv_use_datepick"
12688
12689           if test x"$enablestring" = xdisable; then
12690             if test $wxUSE_TIMEPICKCTRL = no; then
12691               result=yes
12692             else
12693               result=no
12694             fi
12695           else
12696             result=$wxUSE_TIMEPICKCTRL
12697           fi
12698
12699           { echo "$as_me:$LINENO: result: $result" >&5
12700 echo "${ECHO_T}$result" >&6; }
12701
12702
12703           enablestring=
12704           defaultval=$wxUSE_ALL_FEATURES
12705           if test -z "$defaultval"; then
12706               if test x"$enablestring" = xdisable; then
12707                   defaultval=yes
12708               else
12709                   defaultval=no
12710               fi
12711           fi
12712
12713           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12714 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12715           # Check whether --enable-tipwindow was given.
12716 if test "${enable_tipwindow+set}" = set; then
12717   enableval=$enable_tipwindow;
12718                           if test "$enableval" = yes; then
12719                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12720                           else
12721                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12722                           fi
12723
12724 else
12725
12726                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12727
12728 fi
12729
12730
12731           eval "$wx_cv_use_tipwindow"
12732
12733           if test x"$enablestring" = xdisable; then
12734             if test $wxUSE_TIPWINDOW = no; then
12735               result=yes
12736             else
12737               result=no
12738             fi
12739           else
12740             result=$wxUSE_TIPWINDOW
12741           fi
12742
12743           { echo "$as_me:$LINENO: result: $result" >&5
12744 echo "${ECHO_T}$result" >&6; }
12745
12746
12747           enablestring=
12748           defaultval=$wxUSE_ALL_FEATURES
12749           if test -z "$defaultval"; then
12750               if test x"$enablestring" = xdisable; then
12751                   defaultval=yes
12752               else
12753                   defaultval=no
12754               fi
12755           fi
12756
12757           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12758 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12759           # Check whether --enable-togglebtn was given.
12760 if test "${enable_togglebtn+set}" = set; then
12761   enableval=$enable_togglebtn;
12762                           if test "$enableval" = yes; then
12763                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12764                           else
12765                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12766                           fi
12767
12768 else
12769
12770                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12771
12772 fi
12773
12774
12775           eval "$wx_cv_use_togglebtn"
12776
12777           if test x"$enablestring" = xdisable; then
12778             if test $wxUSE_TOGGLEBTN = no; then
12779               result=yes
12780             else
12781               result=no
12782             fi
12783           else
12784             result=$wxUSE_TOGGLEBTN
12785           fi
12786
12787           { echo "$as_me:$LINENO: result: $result" >&5
12788 echo "${ECHO_T}$result" >&6; }
12789
12790
12791           enablestring=
12792           defaultval=$wxUSE_ALL_FEATURES
12793           if test -z "$defaultval"; then
12794               if test x"$enablestring" = xdisable; then
12795                   defaultval=yes
12796               else
12797                   defaultval=no
12798               fi
12799           fi
12800
12801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12802 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12803           # Check whether --enable-toolbar was given.
12804 if test "${enable_toolbar+set}" = set; then
12805   enableval=$enable_toolbar;
12806                           if test "$enableval" = yes; then
12807                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12808                           else
12809                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12810                           fi
12811
12812 else
12813
12814                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12815
12816 fi
12817
12818
12819           eval "$wx_cv_use_toolbar"
12820
12821           if test x"$enablestring" = xdisable; then
12822             if test $wxUSE_TOOLBAR = no; then
12823               result=yes
12824             else
12825               result=no
12826             fi
12827           else
12828             result=$wxUSE_TOOLBAR
12829           fi
12830
12831           { echo "$as_me:$LINENO: result: $result" >&5
12832 echo "${ECHO_T}$result" >&6; }
12833
12834
12835           enablestring=
12836           defaultval=$wxUSE_ALL_FEATURES
12837           if test -z "$defaultval"; then
12838               if test x"$enablestring" = xdisable; then
12839                   defaultval=yes
12840               else
12841                   defaultval=no
12842               fi
12843           fi
12844
12845           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12846 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12847           # Check whether --enable-toolbook was given.
12848 if test "${enable_toolbook+set}" = set; then
12849   enableval=$enable_toolbook;
12850                           if test "$enableval" = yes; then
12851                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12852                           else
12853                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12854                           fi
12855
12856 else
12857
12858                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12859
12860 fi
12861
12862
12863           eval "$wx_cv_use_toolbook"
12864
12865           if test x"$enablestring" = xdisable; then
12866             if test $wxUSE_TOOLBOOK = no; then
12867               result=yes
12868             else
12869               result=no
12870             fi
12871           else
12872             result=$wxUSE_TOOLBOOK
12873           fi
12874
12875           { echo "$as_me:$LINENO: result: $result" >&5
12876 echo "${ECHO_T}$result" >&6; }
12877
12878
12879           enablestring=
12880           defaultval=$wxUSE_ALL_FEATURES
12881           if test -z "$defaultval"; then
12882               if test x"$enablestring" = xdisable; then
12883                   defaultval=yes
12884               else
12885                   defaultval=no
12886               fi
12887           fi
12888
12889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12890 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12891           # Check whether --enable-treebook was given.
12892 if test "${enable_treebook+set}" = set; then
12893   enableval=$enable_treebook;
12894                           if test "$enableval" = yes; then
12895                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12896                           else
12897                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12898                           fi
12899
12900 else
12901
12902                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12903
12904 fi
12905
12906
12907           eval "$wx_cv_use_treebook"
12908
12909           if test x"$enablestring" = xdisable; then
12910             if test $wxUSE_TREEBOOK = no; then
12911               result=yes
12912             else
12913               result=no
12914             fi
12915           else
12916             result=$wxUSE_TREEBOOK
12917           fi
12918
12919           { echo "$as_me:$LINENO: result: $result" >&5
12920 echo "${ECHO_T}$result" >&6; }
12921
12922
12923           enablestring=
12924           defaultval=$wxUSE_ALL_FEATURES
12925           if test -z "$defaultval"; then
12926               if test x"$enablestring" = xdisable; then
12927                   defaultval=yes
12928               else
12929                   defaultval=no
12930               fi
12931           fi
12932
12933           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12934 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12935           # Check whether --enable-treectrl was given.
12936 if test "${enable_treectrl+set}" = set; then
12937   enableval=$enable_treectrl;
12938                           if test "$enableval" = yes; then
12939                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12940                           else
12941                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12942                           fi
12943
12944 else
12945
12946                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12947
12948 fi
12949
12950
12951           eval "$wx_cv_use_treectrl"
12952
12953           if test x"$enablestring" = xdisable; then
12954             if test $wxUSE_TREECTRL = no; then
12955               result=yes
12956             else
12957               result=no
12958             fi
12959           else
12960             result=$wxUSE_TREECTRL
12961           fi
12962
12963           { echo "$as_me:$LINENO: result: $result" >&5
12964 echo "${ECHO_T}$result" >&6; }
12965
12966
12967           enablestring=
12968           defaultval=$wxUSE_ALL_FEATURES
12969           if test -z "$defaultval"; then
12970               if test x"$enablestring" = xdisable; then
12971                   defaultval=yes
12972               else
12973                   defaultval=no
12974               fi
12975           fi
12976
12977           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treelist" >&5
12978 echo $ECHO_N "checking for --${enablestring:-enable}-treelist... $ECHO_C" >&6; }
12979           # Check whether --enable-treelist was given.
12980 if test "${enable_treelist+set}" = set; then
12981   enableval=$enable_treelist;
12982                           if test "$enableval" = yes; then
12983                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=yes'
12984                           else
12985                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=no'
12986                           fi
12987
12988 else
12989
12990                           wx_cv_use_treelist='wxUSE_TREELISTCTRL=${'DEFAULT_wxUSE_TREELISTCTRL":-$defaultval}"
12991
12992 fi
12993
12994
12995           eval "$wx_cv_use_treelist"
12996
12997           if test x"$enablestring" = xdisable; then
12998             if test $wxUSE_TREELISTCTRL = no; then
12999               result=yes
13000             else
13001               result=no
13002             fi
13003           else
13004             result=$wxUSE_TREELISTCTRL
13005           fi
13006
13007           { echo "$as_me:$LINENO: result: $result" >&5
13008 echo "${ECHO_T}$result" >&6; }
13009
13010
13011
13012
13013           enablestring=
13014           defaultval=$wxUSE_ALL_FEATURES
13015           if test -z "$defaultval"; then
13016               if test x"$enablestring" = xdisable; then
13017                   defaultval=yes
13018               else
13019                   defaultval=no
13020               fi
13021           fi
13022
13023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
13024 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
13025           # Check whether --enable-commondlg was given.
13026 if test "${enable_commondlg+set}" = set; then
13027   enableval=$enable_commondlg;
13028                           if test "$enableval" = yes; then
13029                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
13030                           else
13031                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
13032                           fi
13033
13034 else
13035
13036                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
13037
13038 fi
13039
13040
13041           eval "$wx_cv_use_commondlg"
13042
13043           if test x"$enablestring" = xdisable; then
13044             if test $wxUSE_COMMONDLGS = no; then
13045               result=yes
13046             else
13047               result=no
13048             fi
13049           else
13050             result=$wxUSE_COMMONDLGS
13051           fi
13052
13053           { echo "$as_me:$LINENO: result: $result" >&5
13054 echo "${ECHO_T}$result" >&6; }
13055
13056
13057           enablestring=
13058           defaultval=$wxUSE_ALL_FEATURES
13059           if test -z "$defaultval"; then
13060               if test x"$enablestring" = xdisable; then
13061                   defaultval=yes
13062               else
13063                   defaultval=no
13064               fi
13065           fi
13066
13067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
13068 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
13069           # Check whether --enable-aboutdlg was given.
13070 if test "${enable_aboutdlg+set}" = set; then
13071   enableval=$enable_aboutdlg;
13072                           if test "$enableval" = yes; then
13073                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
13074                           else
13075                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
13076                           fi
13077
13078 else
13079
13080                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
13081
13082 fi
13083
13084
13085           eval "$wx_cv_use_aboutdlg"
13086
13087           if test x"$enablestring" = xdisable; then
13088             if test $wxUSE_ABOUTDLG = no; then
13089               result=yes
13090             else
13091               result=no
13092             fi
13093           else
13094             result=$wxUSE_ABOUTDLG
13095           fi
13096
13097           { echo "$as_me:$LINENO: result: $result" >&5
13098 echo "${ECHO_T}$result" >&6; }
13099
13100
13101           enablestring=
13102           defaultval=$wxUSE_ALL_FEATURES
13103           if test -z "$defaultval"; then
13104               if test x"$enablestring" = xdisable; then
13105                   defaultval=yes
13106               else
13107                   defaultval=no
13108               fi
13109           fi
13110
13111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13112 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13113           # Check whether --enable-choicedlg was given.
13114 if test "${enable_choicedlg+set}" = set; then
13115   enableval=$enable_choicedlg;
13116                           if test "$enableval" = yes; then
13117                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13118                           else
13119                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13120                           fi
13121
13122 else
13123
13124                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13125
13126 fi
13127
13128
13129           eval "$wx_cv_use_choicedlg"
13130
13131           if test x"$enablestring" = xdisable; then
13132             if test $wxUSE_CHOICEDLG = no; then
13133               result=yes
13134             else
13135               result=no
13136             fi
13137           else
13138             result=$wxUSE_CHOICEDLG
13139           fi
13140
13141           { echo "$as_me:$LINENO: result: $result" >&5
13142 echo "${ECHO_T}$result" >&6; }
13143
13144
13145           enablestring=
13146           defaultval=$wxUSE_ALL_FEATURES
13147           if test -z "$defaultval"; then
13148               if test x"$enablestring" = xdisable; then
13149                   defaultval=yes
13150               else
13151                   defaultval=no
13152               fi
13153           fi
13154
13155           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13156 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13157           # Check whether --enable-coldlg was given.
13158 if test "${enable_coldlg+set}" = set; then
13159   enableval=$enable_coldlg;
13160                           if test "$enableval" = yes; then
13161                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13162                           else
13163                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13164                           fi
13165
13166 else
13167
13168                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13169
13170 fi
13171
13172
13173           eval "$wx_cv_use_coldlg"
13174
13175           if test x"$enablestring" = xdisable; then
13176             if test $wxUSE_COLOURDLG = no; then
13177               result=yes
13178             else
13179               result=no
13180             fi
13181           else
13182             result=$wxUSE_COLOURDLG
13183           fi
13184
13185           { echo "$as_me:$LINENO: result: $result" >&5
13186 echo "${ECHO_T}$result" >&6; }
13187
13188
13189           enablestring=
13190           defaultval=$wxUSE_ALL_FEATURES
13191           if test -z "$defaultval"; then
13192               if test x"$enablestring" = xdisable; then
13193                   defaultval=yes
13194               else
13195                   defaultval=no
13196               fi
13197           fi
13198
13199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13200 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13201           # Check whether --enable-filedlg was given.
13202 if test "${enable_filedlg+set}" = set; then
13203   enableval=$enable_filedlg;
13204                           if test "$enableval" = yes; then
13205                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13206                           else
13207                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13208                           fi
13209
13210 else
13211
13212                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13213
13214 fi
13215
13216
13217           eval "$wx_cv_use_filedlg"
13218
13219           if test x"$enablestring" = xdisable; then
13220             if test $wxUSE_FILEDLG = no; then
13221               result=yes
13222             else
13223               result=no
13224             fi
13225           else
13226             result=$wxUSE_FILEDLG
13227           fi
13228
13229           { echo "$as_me:$LINENO: result: $result" >&5
13230 echo "${ECHO_T}$result" >&6; }
13231
13232
13233           enablestring=
13234           defaultval=$wxUSE_ALL_FEATURES
13235           if test -z "$defaultval"; then
13236               if test x"$enablestring" = xdisable; then
13237                   defaultval=yes
13238               else
13239                   defaultval=no
13240               fi
13241           fi
13242
13243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13244 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13245           # Check whether --enable-finddlg was given.
13246 if test "${enable_finddlg+set}" = set; then
13247   enableval=$enable_finddlg;
13248                           if test "$enableval" = yes; then
13249                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13250                           else
13251                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13252                           fi
13253
13254 else
13255
13256                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13257
13258 fi
13259
13260
13261           eval "$wx_cv_use_finddlg"
13262
13263           if test x"$enablestring" = xdisable; then
13264             if test $wxUSE_FINDREPLDLG = no; then
13265               result=yes
13266             else
13267               result=no
13268             fi
13269           else
13270             result=$wxUSE_FINDREPLDLG
13271           fi
13272
13273           { echo "$as_me:$LINENO: result: $result" >&5
13274 echo "${ECHO_T}$result" >&6; }
13275
13276
13277           enablestring=
13278           defaultval=$wxUSE_ALL_FEATURES
13279           if test -z "$defaultval"; then
13280               if test x"$enablestring" = xdisable; then
13281                   defaultval=yes
13282               else
13283                   defaultval=no
13284               fi
13285           fi
13286
13287           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13288 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13289           # Check whether --enable-fontdlg was given.
13290 if test "${enable_fontdlg+set}" = set; then
13291   enableval=$enable_fontdlg;
13292                           if test "$enableval" = yes; then
13293                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13294                           else
13295                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13296                           fi
13297
13298 else
13299
13300                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13301
13302 fi
13303
13304
13305           eval "$wx_cv_use_fontdlg"
13306
13307           if test x"$enablestring" = xdisable; then
13308             if test $wxUSE_FONTDLG = no; then
13309               result=yes
13310             else
13311               result=no
13312             fi
13313           else
13314             result=$wxUSE_FONTDLG
13315           fi
13316
13317           { echo "$as_me:$LINENO: result: $result" >&5
13318 echo "${ECHO_T}$result" >&6; }
13319
13320
13321           enablestring=
13322           defaultval=$wxUSE_ALL_FEATURES
13323           if test -z "$defaultval"; then
13324               if test x"$enablestring" = xdisable; then
13325                   defaultval=yes
13326               else
13327                   defaultval=no
13328               fi
13329           fi
13330
13331           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
13332 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
13333           # Check whether --enable-dirdlg was given.
13334 if test "${enable_dirdlg+set}" = set; then
13335   enableval=$enable_dirdlg;
13336                           if test "$enableval" = yes; then
13337                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
13338                           else
13339                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
13340                           fi
13341
13342 else
13343
13344                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
13345
13346 fi
13347
13348
13349           eval "$wx_cv_use_dirdlg"
13350
13351           if test x"$enablestring" = xdisable; then
13352             if test $wxUSE_DIRDLG = no; then
13353               result=yes
13354             else
13355               result=no
13356             fi
13357           else
13358             result=$wxUSE_DIRDLG
13359           fi
13360
13361           { echo "$as_me:$LINENO: result: $result" >&5
13362 echo "${ECHO_T}$result" >&6; }
13363
13364
13365           enablestring=
13366           defaultval=$wxUSE_ALL_FEATURES
13367           if test -z "$defaultval"; then
13368               if test x"$enablestring" = xdisable; then
13369                   defaultval=yes
13370               else
13371                   defaultval=no
13372               fi
13373           fi
13374
13375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13376 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
13377           # Check whether --enable-msgdlg was given.
13378 if test "${enable_msgdlg+set}" = set; then
13379   enableval=$enable_msgdlg;
13380                           if test "$enableval" = yes; then
13381                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13382                           else
13383                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
13384                           fi
13385
13386 else
13387
13388                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13389
13390 fi
13391
13392
13393           eval "$wx_cv_use_msgdlg"
13394
13395           if test x"$enablestring" = xdisable; then
13396             if test $wxUSE_MSGDLG = no; then
13397               result=yes
13398             else
13399               result=no
13400             fi
13401           else
13402             result=$wxUSE_MSGDLG
13403           fi
13404
13405           { echo "$as_me:$LINENO: result: $result" >&5
13406 echo "${ECHO_T}$result" >&6; }
13407
13408
13409           enablestring=
13410           defaultval=$wxUSE_ALL_FEATURES
13411           if test -z "$defaultval"; then
13412               if test x"$enablestring" = xdisable; then
13413                   defaultval=yes
13414               else
13415                   defaultval=no
13416               fi
13417           fi
13418
13419           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13420 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
13421           # Check whether --enable-numberdlg was given.
13422 if test "${enable_numberdlg+set}" = set; then
13423   enableval=$enable_numberdlg;
13424                           if test "$enableval" = yes; then
13425                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13426                           else
13427                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13428                           fi
13429
13430 else
13431
13432                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13433
13434 fi
13435
13436
13437           eval "$wx_cv_use_numberdlg"
13438
13439           if test x"$enablestring" = xdisable; then
13440             if test $wxUSE_NUMBERDLG = no; then
13441               result=yes
13442             else
13443               result=no
13444             fi
13445           else
13446             result=$wxUSE_NUMBERDLG
13447           fi
13448
13449           { echo "$as_me:$LINENO: result: $result" >&5
13450 echo "${ECHO_T}$result" >&6; }
13451
13452
13453           enablestring=
13454           defaultval=$wxUSE_ALL_FEATURES
13455           if test -z "$defaultval"; then
13456               if test x"$enablestring" = xdisable; then
13457                   defaultval=yes
13458               else
13459                   defaultval=no
13460               fi
13461           fi
13462
13463           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13464 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
13465           # Check whether --enable-splash was given.
13466 if test "${enable_splash+set}" = set; then
13467   enableval=$enable_splash;
13468                           if test "$enableval" = yes; then
13469                             wx_cv_use_splash='wxUSE_SPLASH=yes'
13470                           else
13471                             wx_cv_use_splash='wxUSE_SPLASH=no'
13472                           fi
13473
13474 else
13475
13476                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13477
13478 fi
13479
13480
13481           eval "$wx_cv_use_splash"
13482
13483           if test x"$enablestring" = xdisable; then
13484             if test $wxUSE_SPLASH = no; then
13485               result=yes
13486             else
13487               result=no
13488             fi
13489           else
13490             result=$wxUSE_SPLASH
13491           fi
13492
13493           { echo "$as_me:$LINENO: result: $result" >&5
13494 echo "${ECHO_T}$result" >&6; }
13495
13496
13497           enablestring=
13498           defaultval=$wxUSE_ALL_FEATURES
13499           if test -z "$defaultval"; then
13500               if test x"$enablestring" = xdisable; then
13501                   defaultval=yes
13502               else
13503                   defaultval=no
13504               fi
13505           fi
13506
13507           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13508 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
13509           # Check whether --enable-textdlg was given.
13510 if test "${enable_textdlg+set}" = set; then
13511   enableval=$enable_textdlg;
13512                           if test "$enableval" = yes; then
13513                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13514                           else
13515                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13516                           fi
13517
13518 else
13519
13520                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13521
13522 fi
13523
13524
13525           eval "$wx_cv_use_textdlg"
13526
13527           if test x"$enablestring" = xdisable; then
13528             if test $wxUSE_TEXTDLG = no; then
13529               result=yes
13530             else
13531               result=no
13532             fi
13533           else
13534             result=$wxUSE_TEXTDLG
13535           fi
13536
13537           { echo "$as_me:$LINENO: result: $result" >&5
13538 echo "${ECHO_T}$result" >&6; }
13539
13540
13541           enablestring=
13542           defaultval=$wxUSE_ALL_FEATURES
13543           if test -z "$defaultval"; then
13544               if test x"$enablestring" = xdisable; then
13545                   defaultval=yes
13546               else
13547                   defaultval=no
13548               fi
13549           fi
13550
13551           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13552 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
13553           # Check whether --enable-tipdlg was given.
13554 if test "${enable_tipdlg+set}" = set; then
13555   enableval=$enable_tipdlg;
13556                           if test "$enableval" = yes; then
13557                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13558                           else
13559                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13560                           fi
13561
13562 else
13563
13564                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13565
13566 fi
13567
13568
13569           eval "$wx_cv_use_tipdlg"
13570
13571           if test x"$enablestring" = xdisable; then
13572             if test $wxUSE_STARTUP_TIPS = no; then
13573               result=yes
13574             else
13575               result=no
13576             fi
13577           else
13578             result=$wxUSE_STARTUP_TIPS
13579           fi
13580
13581           { echo "$as_me:$LINENO: result: $result" >&5
13582 echo "${ECHO_T}$result" >&6; }
13583
13584
13585           enablestring=
13586           defaultval=$wxUSE_ALL_FEATURES
13587           if test -z "$defaultval"; then
13588               if test x"$enablestring" = xdisable; then
13589                   defaultval=yes
13590               else
13591                   defaultval=no
13592               fi
13593           fi
13594
13595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13596 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13597           # Check whether --enable-progressdlg was given.
13598 if test "${enable_progressdlg+set}" = set; then
13599   enableval=$enable_progressdlg;
13600                           if test "$enableval" = yes; then
13601                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13602                           else
13603                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13604                           fi
13605
13606 else
13607
13608                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13609
13610 fi
13611
13612
13613           eval "$wx_cv_use_progressdlg"
13614
13615           if test x"$enablestring" = xdisable; then
13616             if test $wxUSE_PROGRESSDLG = no; then
13617               result=yes
13618             else
13619               result=no
13620             fi
13621           else
13622             result=$wxUSE_PROGRESSDLG
13623           fi
13624
13625           { echo "$as_me:$LINENO: result: $result" >&5
13626 echo "${ECHO_T}$result" >&6; }
13627
13628
13629           enablestring=
13630           defaultval=$wxUSE_ALL_FEATURES
13631           if test -z "$defaultval"; then
13632               if test x"$enablestring" = xdisable; then
13633                   defaultval=yes
13634               else
13635                   defaultval=no
13636               fi
13637           fi
13638
13639           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13640 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13641           # Check whether --enable-wizarddlg was given.
13642 if test "${enable_wizarddlg+set}" = set; then
13643   enableval=$enable_wizarddlg;
13644                           if test "$enableval" = yes; then
13645                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13646                           else
13647                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13648                           fi
13649
13650 else
13651
13652                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13653
13654 fi
13655
13656
13657           eval "$wx_cv_use_wizarddlg"
13658
13659           if test x"$enablestring" = xdisable; then
13660             if test $wxUSE_WIZARDDLG = no; then
13661               result=yes
13662             else
13663               result=no
13664             fi
13665           else
13666             result=$wxUSE_WIZARDDLG
13667           fi
13668
13669           { echo "$as_me:$LINENO: result: $result" >&5
13670 echo "${ECHO_T}$result" >&6; }
13671
13672
13673
13674
13675           enablestring=
13676           defaultval=$wxUSE_ALL_FEATURES
13677           if test -z "$defaultval"; then
13678               if test x"$enablestring" = xdisable; then
13679                   defaultval=yes
13680               else
13681                   defaultval=no
13682               fi
13683           fi
13684
13685           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13686 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13687           # Check whether --enable-menus was given.
13688 if test "${enable_menus+set}" = set; then
13689   enableval=$enable_menus;
13690                           if test "$enableval" = yes; then
13691                             wx_cv_use_menus='wxUSE_MENUS=yes'
13692                           else
13693                             wx_cv_use_menus='wxUSE_MENUS=no'
13694                           fi
13695
13696 else
13697
13698                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13699
13700 fi
13701
13702
13703           eval "$wx_cv_use_menus"
13704
13705           if test x"$enablestring" = xdisable; then
13706             if test $wxUSE_MENUS = no; then
13707               result=yes
13708             else
13709               result=no
13710             fi
13711           else
13712             result=$wxUSE_MENUS
13713           fi
13714
13715           { echo "$as_me:$LINENO: result: $result" >&5
13716 echo "${ECHO_T}$result" >&6; }
13717
13718
13719           enablestring=
13720           defaultval=$wxUSE_ALL_FEATURES
13721           if test -z "$defaultval"; then
13722               if test x"$enablestring" = xdisable; then
13723                   defaultval=yes
13724               else
13725                   defaultval=no
13726               fi
13727           fi
13728
13729           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13730 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13731           # Check whether --enable-miniframe was given.
13732 if test "${enable_miniframe+set}" = set; then
13733   enableval=$enable_miniframe;
13734                           if test "$enableval" = yes; then
13735                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13736                           else
13737                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13738                           fi
13739
13740 else
13741
13742                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13743
13744 fi
13745
13746
13747           eval "$wx_cv_use_miniframe"
13748
13749           if test x"$enablestring" = xdisable; then
13750             if test $wxUSE_MINIFRAME = no; then
13751               result=yes
13752             else
13753               result=no
13754             fi
13755           else
13756             result=$wxUSE_MINIFRAME
13757           fi
13758
13759           { echo "$as_me:$LINENO: result: $result" >&5
13760 echo "${ECHO_T}$result" >&6; }
13761
13762
13763           enablestring=
13764           defaultval=$wxUSE_ALL_FEATURES
13765           if test -z "$defaultval"; then
13766               if test x"$enablestring" = xdisable; then
13767                   defaultval=yes
13768               else
13769                   defaultval=no
13770               fi
13771           fi
13772
13773           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13774 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13775           # Check whether --enable-tooltips was given.
13776 if test "${enable_tooltips+set}" = set; then
13777   enableval=$enable_tooltips;
13778                           if test "$enableval" = yes; then
13779                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13780                           else
13781                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13782                           fi
13783
13784 else
13785
13786                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13787
13788 fi
13789
13790
13791           eval "$wx_cv_use_tooltips"
13792
13793           if test x"$enablestring" = xdisable; then
13794             if test $wxUSE_TOOLTIPS = no; then
13795               result=yes
13796             else
13797               result=no
13798             fi
13799           else
13800             result=$wxUSE_TOOLTIPS
13801           fi
13802
13803           { echo "$as_me:$LINENO: result: $result" >&5
13804 echo "${ECHO_T}$result" >&6; }
13805
13806
13807           enablestring=
13808           defaultval=$wxUSE_ALL_FEATURES
13809           if test -z "$defaultval"; then
13810               if test x"$enablestring" = xdisable; then
13811                   defaultval=yes
13812               else
13813                   defaultval=no
13814               fi
13815           fi
13816
13817           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13818 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13819           # Check whether --enable-splines was given.
13820 if test "${enable_splines+set}" = set; then
13821   enableval=$enable_splines;
13822                           if test "$enableval" = yes; then
13823                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13824                           else
13825                             wx_cv_use_splines='wxUSE_SPLINES=no'
13826                           fi
13827
13828 else
13829
13830                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13831
13832 fi
13833
13834
13835           eval "$wx_cv_use_splines"
13836
13837           if test x"$enablestring" = xdisable; then
13838             if test $wxUSE_SPLINES = no; then
13839               result=yes
13840             else
13841               result=no
13842             fi
13843           else
13844             result=$wxUSE_SPLINES
13845           fi
13846
13847           { echo "$as_me:$LINENO: result: $result" >&5
13848 echo "${ECHO_T}$result" >&6; }
13849
13850
13851           enablestring=
13852           defaultval=$wxUSE_ALL_FEATURES
13853           if test -z "$defaultval"; then
13854               if test x"$enablestring" = xdisable; then
13855                   defaultval=yes
13856               else
13857                   defaultval=no
13858               fi
13859           fi
13860
13861           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13862 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13863           # Check whether --enable-mousewheel was given.
13864 if test "${enable_mousewheel+set}" = set; then
13865   enableval=$enable_mousewheel;
13866                           if test "$enableval" = yes; then
13867                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13868                           else
13869                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13870                           fi
13871
13872 else
13873
13874                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13875
13876 fi
13877
13878
13879           eval "$wx_cv_use_mousewheel"
13880
13881           if test x"$enablestring" = xdisable; then
13882             if test $wxUSE_MOUSEWHEEL = no; then
13883               result=yes
13884             else
13885               result=no
13886             fi
13887           else
13888             result=$wxUSE_MOUSEWHEEL
13889           fi
13890
13891           { echo "$as_me:$LINENO: result: $result" >&5
13892 echo "${ECHO_T}$result" >&6; }
13893
13894
13895           enablestring=
13896           defaultval=$wxUSE_ALL_FEATURES
13897           if test -z "$defaultval"; then
13898               if test x"$enablestring" = xdisable; then
13899                   defaultval=yes
13900               else
13901                   defaultval=no
13902               fi
13903           fi
13904
13905           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13906 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13907           # Check whether --enable-validators was given.
13908 if test "${enable_validators+set}" = set; then
13909   enableval=$enable_validators;
13910                           if test "$enableval" = yes; then
13911                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13912                           else
13913                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13914                           fi
13915
13916 else
13917
13918                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13919
13920 fi
13921
13922
13923           eval "$wx_cv_use_validators"
13924
13925           if test x"$enablestring" = xdisable; then
13926             if test $wxUSE_VALIDATORS = no; then
13927               result=yes
13928             else
13929               result=no
13930             fi
13931           else
13932             result=$wxUSE_VALIDATORS
13933           fi
13934
13935           { echo "$as_me:$LINENO: result: $result" >&5
13936 echo "${ECHO_T}$result" >&6; }
13937
13938
13939           enablestring=
13940           defaultval=$wxUSE_ALL_FEATURES
13941           if test -z "$defaultval"; then
13942               if test x"$enablestring" = xdisable; then
13943                   defaultval=yes
13944               else
13945                   defaultval=no
13946               fi
13947           fi
13948
13949           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13950 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13951           # Check whether --enable-busyinfo was given.
13952 if test "${enable_busyinfo+set}" = set; then
13953   enableval=$enable_busyinfo;
13954                           if test "$enableval" = yes; then
13955                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13956                           else
13957                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13958                           fi
13959
13960 else
13961
13962                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13963
13964 fi
13965
13966
13967           eval "$wx_cv_use_busyinfo"
13968
13969           if test x"$enablestring" = xdisable; then
13970             if test $wxUSE_BUSYINFO = no; then
13971               result=yes
13972             else
13973               result=no
13974             fi
13975           else
13976             result=$wxUSE_BUSYINFO
13977           fi
13978
13979           { echo "$as_me:$LINENO: result: $result" >&5
13980 echo "${ECHO_T}$result" >&6; }
13981
13982
13983           enablestring=
13984           defaultval=$wxUSE_ALL_FEATURES
13985           if test -z "$defaultval"; then
13986               if test x"$enablestring" = xdisable; then
13987                   defaultval=yes
13988               else
13989                   defaultval=no
13990               fi
13991           fi
13992
13993           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hotkey" >&5
13994 echo $ECHO_N "checking for --${enablestring:-enable}-hotkey... $ECHO_C" >&6; }
13995           # Check whether --enable-hotkey was given.
13996 if test "${enable_hotkey+set}" = set; then
13997   enableval=$enable_hotkey;
13998                           if test "$enableval" = yes; then
13999                             wx_cv_use_hotkey='wxUSE_HOTKEY=yes'
14000                           else
14001                             wx_cv_use_hotkey='wxUSE_HOTKEY=no'
14002                           fi
14003
14004 else
14005
14006                           wx_cv_use_hotkey='wxUSE_HOTKEY=${'DEFAULT_wxUSE_HOTKEY":-$defaultval}"
14007
14008 fi
14009
14010
14011           eval "$wx_cv_use_hotkey"
14012
14013           if test x"$enablestring" = xdisable; then
14014             if test $wxUSE_HOTKEY = no; then
14015               result=yes
14016             else
14017               result=no
14018             fi
14019           else
14020             result=$wxUSE_HOTKEY
14021           fi
14022
14023           { echo "$as_me:$LINENO: result: $result" >&5
14024 echo "${ECHO_T}$result" >&6; }
14025
14026
14027           enablestring=
14028           defaultval=$wxUSE_ALL_FEATURES
14029           if test -z "$defaultval"; then
14030               if test x"$enablestring" = xdisable; then
14031                   defaultval=yes
14032               else
14033                   defaultval=no
14034               fi
14035           fi
14036
14037           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
14038 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
14039           # Check whether --enable-joystick was given.
14040 if test "${enable_joystick+set}" = set; then
14041   enableval=$enable_joystick;
14042                           if test "$enableval" = yes; then
14043                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
14044                           else
14045                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
14046                           fi
14047
14048 else
14049
14050                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
14051
14052 fi
14053
14054
14055           eval "$wx_cv_use_joystick"
14056
14057           if test x"$enablestring" = xdisable; then
14058             if test $wxUSE_JOYSTICK = no; then
14059               result=yes
14060             else
14061               result=no
14062             fi
14063           else
14064             result=$wxUSE_JOYSTICK
14065           fi
14066
14067           { echo "$as_me:$LINENO: result: $result" >&5
14068 echo "${ECHO_T}$result" >&6; }
14069
14070
14071           enablestring=
14072           defaultval=$wxUSE_ALL_FEATURES
14073           if test -z "$defaultval"; then
14074               if test x"$enablestring" = xdisable; then
14075                   defaultval=yes
14076               else
14077                   defaultval=no
14078               fi
14079           fi
14080
14081           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
14082 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
14083           # Check whether --enable-metafile was given.
14084 if test "${enable_metafile+set}" = set; then
14085   enableval=$enable_metafile;
14086                           if test "$enableval" = yes; then
14087                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
14088                           else
14089                             wx_cv_use_metafile='wxUSE_METAFILE=no'
14090                           fi
14091
14092 else
14093
14094                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
14095
14096 fi
14097
14098
14099           eval "$wx_cv_use_metafile"
14100
14101           if test x"$enablestring" = xdisable; then
14102             if test $wxUSE_METAFILE = no; then
14103               result=yes
14104             else
14105               result=no
14106             fi
14107           else
14108             result=$wxUSE_METAFILE
14109           fi
14110
14111           { echo "$as_me:$LINENO: result: $result" >&5
14112 echo "${ECHO_T}$result" >&6; }
14113
14114
14115           enablestring=
14116           defaultval=$wxUSE_ALL_FEATURES
14117           if test -z "$defaultval"; then
14118               if test x"$enablestring" = xdisable; then
14119                   defaultval=yes
14120               else
14121                   defaultval=no
14122               fi
14123           fi
14124
14125           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
14126 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
14127           # Check whether --enable-dragimage was given.
14128 if test "${enable_dragimage+set}" = set; then
14129   enableval=$enable_dragimage;
14130                           if test "$enableval" = yes; then
14131                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
14132                           else
14133                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
14134                           fi
14135
14136 else
14137
14138                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
14139
14140 fi
14141
14142
14143           eval "$wx_cv_use_dragimage"
14144
14145           if test x"$enablestring" = xdisable; then
14146             if test $wxUSE_DRAGIMAGE = no; then
14147               result=yes
14148             else
14149               result=no
14150             fi
14151           else
14152             result=$wxUSE_DRAGIMAGE
14153           fi
14154
14155           { echo "$as_me:$LINENO: result: $result" >&5
14156 echo "${ECHO_T}$result" >&6; }
14157
14158
14159           enablestring=
14160           defaultval=$wxUSE_ALL_FEATURES
14161           if test -z "$defaultval"; then
14162               if test x"$enablestring" = xdisable; then
14163                   defaultval=yes
14164               else
14165                   defaultval=no
14166               fi
14167           fi
14168
14169           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
14170 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
14171           # Check whether --enable-accessibility was given.
14172 if test "${enable_accessibility+set}" = set; then
14173   enableval=$enable_accessibility;
14174                           if test "$enableval" = yes; then
14175                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
14176                           else
14177                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
14178                           fi
14179
14180 else
14181
14182                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
14183
14184 fi
14185
14186
14187           eval "$wx_cv_use_accessibility"
14188
14189           if test x"$enablestring" = xdisable; then
14190             if test $wxUSE_ACCESSIBILITY = no; then
14191               result=yes
14192             else
14193               result=no
14194             fi
14195           else
14196             result=$wxUSE_ACCESSIBILITY
14197           fi
14198
14199           { echo "$as_me:$LINENO: result: $result" >&5
14200 echo "${ECHO_T}$result" >&6; }
14201
14202
14203           enablestring=
14204           defaultval=$wxUSE_ALL_FEATURES
14205           if test -z "$defaultval"; then
14206               if test x"$enablestring" = xdisable; then
14207                   defaultval=yes
14208               else
14209                   defaultval=no
14210               fi
14211           fi
14212
14213           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
14214 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
14215           # Check whether --enable-uiactionsim was given.
14216 if test "${enable_uiactionsim+set}" = set; then
14217   enableval=$enable_uiactionsim;
14218                           if test "$enableval" = yes; then
14219                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
14220                           else
14221                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
14222                           fi
14223
14224 else
14225
14226                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
14227
14228 fi
14229
14230
14231           eval "$wx_cv_use_uiactionsim"
14232
14233           if test x"$enablestring" = xdisable; then
14234             if test $wxUSE_UIACTIONSIMULATOR = no; then
14235               result=yes
14236             else
14237               result=no
14238             fi
14239           else
14240             result=$wxUSE_UIACTIONSIMULATOR
14241           fi
14242
14243           { echo "$as_me:$LINENO: result: $result" >&5
14244 echo "${ECHO_T}$result" >&6; }
14245
14246
14247           enablestring=
14248           defaultval=$wxUSE_ALL_FEATURES
14249           if test -z "$defaultval"; then
14250               if test x"$enablestring" = xdisable; then
14251                   defaultval=yes
14252               else
14253                   defaultval=no
14254               fi
14255           fi
14256
14257           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dctransform" >&5
14258 echo $ECHO_N "checking for --${enablestring:-enable}-dctransform... $ECHO_C" >&6; }
14259           # Check whether --enable-dctransform was given.
14260 if test "${enable_dctransform+set}" = set; then
14261   enableval=$enable_dctransform;
14262                           if test "$enableval" = yes; then
14263                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=yes'
14264                           else
14265                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=no'
14266                           fi
14267
14268 else
14269
14270                           wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=${'DEFAULT_wxUSE_DC_TRANSFORM_MATRIX":-$defaultval}"
14271
14272 fi
14273
14274
14275           eval "$wx_cv_use_dctransform"
14276
14277           if test x"$enablestring" = xdisable; then
14278             if test $wxUSE_DC_TRANSFORM_MATRIX = no; then
14279               result=yes
14280             else
14281               result=no
14282             fi
14283           else
14284             result=$wxUSE_DC_TRANSFORM_MATRIX
14285           fi
14286
14287           { echo "$as_me:$LINENO: result: $result" >&5
14288 echo "${ECHO_T}$result" >&6; }
14289
14290
14291           enablestring=
14292           defaultval=$wxUSE_ALL_FEATURES
14293           if test -z "$defaultval"; then
14294               if test x"$enablestring" = xdisable; then
14295                   defaultval=yes
14296               else
14297                   defaultval=no
14298               fi
14299           fi
14300
14301           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewwebkit" >&5
14302 echo $ECHO_N "checking for --${enablestring:-enable}-webviewwebkit... $ECHO_C" >&6; }
14303           # Check whether --enable-webviewwebkit was given.
14304 if test "${enable_webviewwebkit+set}" = set; then
14305   enableval=$enable_webviewwebkit;
14306                           if test "$enableval" = yes; then
14307                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=yes'
14308                           else
14309                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=no'
14310                           fi
14311
14312 else
14313
14314                           wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=${'DEFAULT_wxUSE_WEBVIEW_WEBKIT":-$defaultval}"
14315
14316 fi
14317
14318
14319           eval "$wx_cv_use_webviewwebkit"
14320
14321           if test x"$enablestring" = xdisable; then
14322             if test $wxUSE_WEBVIEW_WEBKIT = no; then
14323               result=yes
14324             else
14325               result=no
14326             fi
14327           else
14328             result=$wxUSE_WEBVIEW_WEBKIT
14329           fi
14330
14331           { echo "$as_me:$LINENO: result: $result" >&5
14332 echo "${ECHO_T}$result" >&6; }
14333
14334
14335
14336
14337           enablestring=
14338           defaultval=$wxUSE_ALL_FEATURES
14339           if test -z "$defaultval"; then
14340               if test x"$enablestring" = xdisable; then
14341                   defaultval=yes
14342               else
14343                   defaultval=no
14344               fi
14345           fi
14346
14347           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
14348 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
14349           # Check whether --enable-palette was given.
14350 if test "${enable_palette+set}" = set; then
14351   enableval=$enable_palette;
14352                           if test "$enableval" = yes; then
14353                             wx_cv_use_palette='wxUSE_PALETTE=yes'
14354                           else
14355                             wx_cv_use_palette='wxUSE_PALETTE=no'
14356                           fi
14357
14358 else
14359
14360                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
14361
14362 fi
14363
14364
14365           eval "$wx_cv_use_palette"
14366
14367           if test x"$enablestring" = xdisable; then
14368             if test $wxUSE_PALETTE = no; then
14369               result=yes
14370             else
14371               result=no
14372             fi
14373           else
14374             result=$wxUSE_PALETTE
14375           fi
14376
14377           { echo "$as_me:$LINENO: result: $result" >&5
14378 echo "${ECHO_T}$result" >&6; }
14379
14380
14381           enablestring=
14382           defaultval=$wxUSE_ALL_FEATURES
14383           if test -z "$defaultval"; then
14384               if test x"$enablestring" = xdisable; then
14385                   defaultval=yes
14386               else
14387                   defaultval=no
14388               fi
14389           fi
14390
14391           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
14392 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
14393           # Check whether --enable-image was given.
14394 if test "${enable_image+set}" = set; then
14395   enableval=$enable_image;
14396                           if test "$enableval" = yes; then
14397                             wx_cv_use_image='wxUSE_IMAGE=yes'
14398                           else
14399                             wx_cv_use_image='wxUSE_IMAGE=no'
14400                           fi
14401
14402 else
14403
14404                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
14405
14406 fi
14407
14408
14409           eval "$wx_cv_use_image"
14410
14411           if test x"$enablestring" = xdisable; then
14412             if test $wxUSE_IMAGE = no; then
14413               result=yes
14414             else
14415               result=no
14416             fi
14417           else
14418             result=$wxUSE_IMAGE
14419           fi
14420
14421           { echo "$as_me:$LINENO: result: $result" >&5
14422 echo "${ECHO_T}$result" >&6; }
14423
14424
14425           enablestring=
14426           defaultval=$wxUSE_ALL_FEATURES
14427           if test -z "$defaultval"; then
14428               if test x"$enablestring" = xdisable; then
14429                   defaultval=yes
14430               else
14431                   defaultval=no
14432               fi
14433           fi
14434
14435           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14436 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
14437           # Check whether --enable-gif was given.
14438 if test "${enable_gif+set}" = set; then
14439   enableval=$enable_gif;
14440                           if test "$enableval" = yes; then
14441                             wx_cv_use_gif='wxUSE_GIF=yes'
14442                           else
14443                             wx_cv_use_gif='wxUSE_GIF=no'
14444                           fi
14445
14446 else
14447
14448                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14449
14450 fi
14451
14452
14453           eval "$wx_cv_use_gif"
14454
14455           if test x"$enablestring" = xdisable; then
14456             if test $wxUSE_GIF = no; then
14457               result=yes
14458             else
14459               result=no
14460             fi
14461           else
14462             result=$wxUSE_GIF
14463           fi
14464
14465           { echo "$as_me:$LINENO: result: $result" >&5
14466 echo "${ECHO_T}$result" >&6; }
14467
14468
14469           enablestring=
14470           defaultval=$wxUSE_ALL_FEATURES
14471           if test -z "$defaultval"; then
14472               if test x"$enablestring" = xdisable; then
14473                   defaultval=yes
14474               else
14475                   defaultval=no
14476               fi
14477           fi
14478
14479           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14480 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
14481           # Check whether --enable-pcx was given.
14482 if test "${enable_pcx+set}" = set; then
14483   enableval=$enable_pcx;
14484                           if test "$enableval" = yes; then
14485                             wx_cv_use_pcx='wxUSE_PCX=yes'
14486                           else
14487                             wx_cv_use_pcx='wxUSE_PCX=no'
14488                           fi
14489
14490 else
14491
14492                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14493
14494 fi
14495
14496
14497           eval "$wx_cv_use_pcx"
14498
14499           if test x"$enablestring" = xdisable; then
14500             if test $wxUSE_PCX = no; then
14501               result=yes
14502             else
14503               result=no
14504             fi
14505           else
14506             result=$wxUSE_PCX
14507           fi
14508
14509           { echo "$as_me:$LINENO: result: $result" >&5
14510 echo "${ECHO_T}$result" >&6; }
14511
14512
14513           enablestring=
14514           defaultval=$wxUSE_ALL_FEATURES
14515           if test -z "$defaultval"; then
14516               if test x"$enablestring" = xdisable; then
14517                   defaultval=yes
14518               else
14519                   defaultval=no
14520               fi
14521           fi
14522
14523           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14524 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
14525           # Check whether --enable-tga was given.
14526 if test "${enable_tga+set}" = set; then
14527   enableval=$enable_tga;
14528                           if test "$enableval" = yes; then
14529                             wx_cv_use_tga='wxUSE_TGA=yes'
14530                           else
14531                             wx_cv_use_tga='wxUSE_TGA=no'
14532                           fi
14533
14534 else
14535
14536                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
14537
14538 fi
14539
14540
14541           eval "$wx_cv_use_tga"
14542
14543           if test x"$enablestring" = xdisable; then
14544             if test $wxUSE_TGA = no; then
14545               result=yes
14546             else
14547               result=no
14548             fi
14549           else
14550             result=$wxUSE_TGA
14551           fi
14552
14553           { echo "$as_me:$LINENO: result: $result" >&5
14554 echo "${ECHO_T}$result" >&6; }
14555
14556
14557           enablestring=
14558           defaultval=$wxUSE_ALL_FEATURES
14559           if test -z "$defaultval"; then
14560               if test x"$enablestring" = xdisable; then
14561                   defaultval=yes
14562               else
14563                   defaultval=no
14564               fi
14565           fi
14566
14567           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
14568 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
14569           # Check whether --enable-iff was given.
14570 if test "${enable_iff+set}" = set; then
14571   enableval=$enable_iff;
14572                           if test "$enableval" = yes; then
14573                             wx_cv_use_iff='wxUSE_IFF=yes'
14574                           else
14575                             wx_cv_use_iff='wxUSE_IFF=no'
14576                           fi
14577
14578 else
14579
14580                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
14581
14582 fi
14583
14584
14585           eval "$wx_cv_use_iff"
14586
14587           if test x"$enablestring" = xdisable; then
14588             if test $wxUSE_IFF = no; then
14589               result=yes
14590             else
14591               result=no
14592             fi
14593           else
14594             result=$wxUSE_IFF
14595           fi
14596
14597           { echo "$as_me:$LINENO: result: $result" >&5
14598 echo "${ECHO_T}$result" >&6; }
14599
14600
14601           enablestring=
14602           defaultval=$wxUSE_ALL_FEATURES
14603           if test -z "$defaultval"; then
14604               if test x"$enablestring" = xdisable; then
14605                   defaultval=yes
14606               else
14607                   defaultval=no
14608               fi
14609           fi
14610
14611           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
14612 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
14613           # Check whether --enable-pnm was given.
14614 if test "${enable_pnm+set}" = set; then
14615   enableval=$enable_pnm;
14616                           if test "$enableval" = yes; then
14617                             wx_cv_use_pnm='wxUSE_PNM=yes'
14618                           else
14619                             wx_cv_use_pnm='wxUSE_PNM=no'
14620                           fi
14621
14622 else
14623
14624                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
14625
14626 fi
14627
14628
14629           eval "$wx_cv_use_pnm"
14630
14631           if test x"$enablestring" = xdisable; then
14632             if test $wxUSE_PNM = no; then
14633               result=yes
14634             else
14635               result=no
14636             fi
14637           else
14638             result=$wxUSE_PNM
14639           fi
14640
14641           { echo "$as_me:$LINENO: result: $result" >&5
14642 echo "${ECHO_T}$result" >&6; }
14643
14644
14645           enablestring=
14646           defaultval=$wxUSE_ALL_FEATURES
14647           if test -z "$defaultval"; then
14648               if test x"$enablestring" = xdisable; then
14649                   defaultval=yes
14650               else
14651                   defaultval=no
14652               fi
14653           fi
14654
14655           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
14656 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
14657           # Check whether --enable-xpm was given.
14658 if test "${enable_xpm+set}" = set; then
14659   enableval=$enable_xpm;
14660                           if test "$enableval" = yes; then
14661                             wx_cv_use_xpm='wxUSE_XPM=yes'
14662                           else
14663                             wx_cv_use_xpm='wxUSE_XPM=no'
14664                           fi
14665
14666 else
14667
14668                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
14669
14670 fi
14671
14672
14673           eval "$wx_cv_use_xpm"
14674
14675           if test x"$enablestring" = xdisable; then
14676             if test $wxUSE_XPM = no; then
14677               result=yes
14678             else
14679               result=no
14680             fi
14681           else
14682             result=$wxUSE_XPM
14683           fi
14684
14685           { echo "$as_me:$LINENO: result: $result" >&5
14686 echo "${ECHO_T}$result" >&6; }
14687
14688
14689           enablestring=
14690           defaultval=$wxUSE_ALL_FEATURES
14691           if test -z "$defaultval"; then
14692               if test x"$enablestring" = xdisable; then
14693                   defaultval=yes
14694               else
14695                   defaultval=no
14696               fi
14697           fi
14698
14699           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14700 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
14701           # Check whether --enable-ico_cur was given.
14702 if test "${enable_ico_cur+set}" = set; then
14703   enableval=$enable_ico_cur;
14704                           if test "$enableval" = yes; then
14705                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14706                           else
14707                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14708                           fi
14709
14710 else
14711
14712                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14713
14714 fi
14715
14716
14717           eval "$wx_cv_use_ico_cur"
14718
14719           if test x"$enablestring" = xdisable; then
14720             if test $wxUSE_ICO_CUR = no; then
14721               result=yes
14722             else
14723               result=no
14724             fi
14725           else
14726             result=$wxUSE_ICO_CUR
14727           fi
14728
14729           { echo "$as_me:$LINENO: result: $result" >&5
14730 echo "${ECHO_T}$result" >&6; }
14731
14732
14733
14734
14735           enablestring=
14736           defaultval=$wxUSE_ALL_FEATURES
14737           if test -z "$defaultval"; then
14738               if test x"$enablestring" = xdisable; then
14739                   defaultval=yes
14740               else
14741                   defaultval=no
14742               fi
14743           fi
14744
14745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14746 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14747           # Check whether --enable-dccache was given.
14748 if test "${enable_dccache+set}" = set; then
14749   enableval=$enable_dccache;
14750                           if test "$enableval" = yes; then
14751                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14752                           else
14753                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14754                           fi
14755
14756 else
14757
14758                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14759
14760 fi
14761
14762
14763           eval "$wx_cv_use_dccache"
14764
14765           if test x"$enablestring" = xdisable; then
14766             if test $wxUSE_DC_CACHEING = no; then
14767               result=yes
14768             else
14769               result=no
14770             fi
14771           else
14772             result=$wxUSE_DC_CACHEING
14773           fi
14774
14775           { echo "$as_me:$LINENO: result: $result" >&5
14776 echo "${ECHO_T}$result" >&6; }
14777
14778
14779           enablestring=
14780           defaultval=$wxUSE_ALL_FEATURES
14781           if test -z "$defaultval"; then
14782               if test x"$enablestring" = xdisable; then
14783                   defaultval=yes
14784               else
14785                   defaultval=no
14786               fi
14787           fi
14788
14789           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14790 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14791           # Check whether --enable-ps-in-msw was given.
14792 if test "${enable_ps_in_msw+set}" = set; then
14793   enableval=$enable_ps_in_msw;
14794                           if test "$enableval" = yes; then
14795                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14796                           else
14797                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14798                           fi
14799
14800 else
14801
14802                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14803
14804 fi
14805
14806
14807           eval "$wx_cv_use_ps_in_msw"
14808
14809           if test x"$enablestring" = xdisable; then
14810             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14811               result=yes
14812             else
14813               result=no
14814             fi
14815           else
14816             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14817           fi
14818
14819           { echo "$as_me:$LINENO: result: $result" >&5
14820 echo "${ECHO_T}$result" >&6; }
14821
14822
14823           enablestring=
14824           defaultval=$wxUSE_ALL_FEATURES
14825           if test -z "$defaultval"; then
14826               if test x"$enablestring" = xdisable; then
14827                   defaultval=yes
14828               else
14829                   defaultval=no
14830               fi
14831           fi
14832
14833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14834 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14835           # Check whether --enable-ownerdrawn was given.
14836 if test "${enable_ownerdrawn+set}" = set; then
14837   enableval=$enable_ownerdrawn;
14838                           if test "$enableval" = yes; then
14839                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14840                           else
14841                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14842                           fi
14843
14844 else
14845
14846                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14847
14848 fi
14849
14850
14851           eval "$wx_cv_use_ownerdrawn"
14852
14853           if test x"$enablestring" = xdisable; then
14854             if test $wxUSE_OWNER_DRAWN = no; then
14855               result=yes
14856             else
14857               result=no
14858             fi
14859           else
14860             result=$wxUSE_OWNER_DRAWN
14861           fi
14862
14863           { echo "$as_me:$LINENO: result: $result" >&5
14864 echo "${ECHO_T}$result" >&6; }
14865
14866
14867           enablestring=
14868           defaultval=$wxUSE_ALL_FEATURES
14869           if test -z "$defaultval"; then
14870               if test x"$enablestring" = xdisable; then
14871                   defaultval=yes
14872               else
14873                   defaultval=no
14874               fi
14875           fi
14876
14877           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14878 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14879           # Check whether --enable-uxtheme was given.
14880 if test "${enable_uxtheme+set}" = set; then
14881   enableval=$enable_uxtheme;
14882                           if test "$enableval" = yes; then
14883                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14884                           else
14885                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14886                           fi
14887
14888 else
14889
14890                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14891
14892 fi
14893
14894
14895           eval "$wx_cv_use_uxtheme"
14896
14897           if test x"$enablestring" = xdisable; then
14898             if test $wxUSE_UXTHEME = no; then
14899               result=yes
14900             else
14901               result=no
14902             fi
14903           else
14904             result=$wxUSE_UXTHEME
14905           fi
14906
14907           { echo "$as_me:$LINENO: result: $result" >&5
14908 echo "${ECHO_T}$result" >&6; }
14909
14910
14911           enablestring=
14912           defaultval=$wxUSE_ALL_FEATURES
14913           if test -z "$defaultval"; then
14914               if test x"$enablestring" = xdisable; then
14915                   defaultval=yes
14916               else
14917                   defaultval=no
14918               fi
14919           fi
14920
14921           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14922 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14923           # Check whether --enable-wxdib was given.
14924 if test "${enable_wxdib+set}" = set; then
14925   enableval=$enable_wxdib;
14926                           if test "$enableval" = yes; then
14927                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14928                           else
14929                             wx_cv_use_wxdib='wxUSE_DIB=no'
14930                           fi
14931
14932 else
14933
14934                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14935
14936 fi
14937
14938
14939           eval "$wx_cv_use_wxdib"
14940
14941           if test x"$enablestring" = xdisable; then
14942             if test $wxUSE_DIB = no; then
14943               result=yes
14944             else
14945               result=no
14946             fi
14947           else
14948             result=$wxUSE_DIB
14949           fi
14950
14951           { echo "$as_me:$LINENO: result: $result" >&5
14952 echo "${ECHO_T}$result" >&6; }
14953
14954
14955           enablestring=
14956           defaultval=$wxUSE_ALL_FEATURES
14957           if test -z "$defaultval"; then
14958               if test x"$enablestring" = xdisable; then
14959                   defaultval=yes
14960               else
14961                   defaultval=no
14962               fi
14963           fi
14964
14965           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewie" >&5
14966 echo $ECHO_N "checking for --${enablestring:-enable}-webviewie... $ECHO_C" >&6; }
14967           # Check whether --enable-webviewie was given.
14968 if test "${enable_webviewie+set}" = set; then
14969   enableval=$enable_webviewie;
14970                           if test "$enableval" = yes; then
14971                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=yes'
14972                           else
14973                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=no'
14974                           fi
14975
14976 else
14977
14978                           wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=${'DEFAULT_wxUSE_WEBVIEW_IE":-$defaultval}"
14979
14980 fi
14981
14982
14983           eval "$wx_cv_use_webviewie"
14984
14985           if test x"$enablestring" = xdisable; then
14986             if test $wxUSE_WEBVIEW_IE = no; then
14987               result=yes
14988             else
14989               result=no
14990             fi
14991           else
14992             result=$wxUSE_WEBVIEW_IE
14993           fi
14994
14995           { echo "$as_me:$LINENO: result: $result" >&5
14996 echo "${ECHO_T}$result" >&6; }
14997
14998
14999 if test "$wxUSE_MSW" != 1; then
15000     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
15001 fi
15002
15003
15004           enablestring=
15005           defaultval=$wxUSE_ALL_FEATURES
15006           if test -z "$defaultval"; then
15007               if test x"$enablestring" = xdisable; then
15008                   defaultval=yes
15009               else
15010                   defaultval=no
15011               fi
15012           fi
15013
15014           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
15015 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
15016           # Check whether --enable-autoidman was given.
15017 if test "${enable_autoidman+set}" = set; then
15018   enableval=$enable_autoidman;
15019                           if test "$enableval" = yes; then
15020                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
15021                           else
15022                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
15023                           fi
15024
15025 else
15026
15027                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
15028
15029 fi
15030
15031
15032           eval "$wx_cv_use_autoidman"
15033
15034           if test x"$enablestring" = xdisable; then
15035             if test $wxUSE_AUTOID_MANAGEMENT = no; then
15036               result=yes
15037             else
15038               result=no
15039             fi
15040           else
15041             result=$wxUSE_AUTOID_MANAGEMENT
15042           fi
15043
15044           { echo "$as_me:$LINENO: result: $result" >&5
15045 echo "${ECHO_T}$result" >&6; }
15046
15047
15048 fi
15049
15050
15051 cat >confcache <<\_ACEOF
15052 # This file is a shell script that caches the results of configure
15053 # tests run on this system so they can be shared between configure
15054 # scripts and configure runs, see configure's option --config-cache.
15055 # It is not useful on other systems.  If it contains results you don't
15056 # want to keep, you may remove or edit it.
15057 #
15058 # config.status only pays attention to the cache file if you give it
15059 # the --recheck option to rerun configure.
15060 #
15061 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15062 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15063 # following values.
15064
15065 _ACEOF
15066
15067 # The following way of writing the cache mishandles newlines in values,
15068 # but we know of no workaround that is simple, portable, and efficient.
15069 # So, we kill variables containing newlines.
15070 # Ultrix sh set writes to stderr and can't be redirected directly,
15071 # and sets the high bit in the cache file unless we assign to the vars.
15072 (
15073   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15074     eval ac_val=\$$ac_var
15075     case $ac_val in #(
15076     *${as_nl}*)
15077       case $ac_var in #(
15078       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15079 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15080       esac
15081       case $ac_var in #(
15082       _ | IFS | as_nl) ;; #(
15083       *) $as_unset $ac_var ;;
15084       esac ;;
15085     esac
15086   done
15087
15088   (set) 2>&1 |
15089     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15090     *${as_nl}ac_space=\ *)
15091       # `set' does not quote correctly, so add quotes (double-quote
15092       # substitution turns \\\\ into \\, and sed turns \\ into \).
15093       sed -n \
15094         "s/'/'\\\\''/g;
15095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15096       ;; #(
15097     *)
15098       # `set' quotes correctly as required by POSIX, so do not add quotes.
15099       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15100       ;;
15101     esac |
15102     sort
15103 ) |
15104   sed '
15105      /^ac_cv_env_/b end
15106      t clear
15107      :clear
15108      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15109      t end
15110      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15111      :end' >>confcache
15112 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15113   if test -w "$cache_file"; then
15114     test "x$cache_file" != "x/dev/null" &&
15115       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15116 echo "$as_me: updating cache $cache_file" >&6;}
15117     cat confcache >$cache_file
15118   else
15119     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15120 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15121   fi
15122 fi
15123 rm -f confcache
15124
15125 CFLAGS=${CFLAGS:=}
15126 ac_ext=c
15127 ac_cpp='$CPP $CPPFLAGS'
15128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15131 if test -n "$ac_tool_prefix"; then
15132   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15133 set dummy ${ac_tool_prefix}gcc; ac_word=$2
15134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15136 if test "${ac_cv_prog_CC+set}" = set; then
15137   echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139   if test -n "$CC"; then
15140   ac_cv_prog_CC="$CC" # Let the user override the test.
15141 else
15142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15143 for as_dir in $PATH
15144 do
15145   IFS=$as_save_IFS
15146   test -z "$as_dir" && as_dir=.
15147   for ac_exec_ext in '' $ac_executable_extensions; do
15148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15149     ac_cv_prog_CC="${ac_tool_prefix}gcc"
15150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15151     break 2
15152   fi
15153 done
15154 done
15155 IFS=$as_save_IFS
15156
15157 fi
15158 fi
15159 CC=$ac_cv_prog_CC
15160 if test -n "$CC"; then
15161   { echo "$as_me:$LINENO: result: $CC" >&5
15162 echo "${ECHO_T}$CC" >&6; }
15163 else
15164   { echo "$as_me:$LINENO: result: no" >&5
15165 echo "${ECHO_T}no" >&6; }
15166 fi
15167
15168
15169 fi
15170 if test -z "$ac_cv_prog_CC"; then
15171   ac_ct_CC=$CC
15172   # Extract the first word of "gcc", so it can be a program name with args.
15173 set dummy gcc; ac_word=$2
15174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15177   echo $ECHO_N "(cached) $ECHO_C" >&6
15178 else
15179   if test -n "$ac_ct_CC"; then
15180   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15181 else
15182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15183 for as_dir in $PATH
15184 do
15185   IFS=$as_save_IFS
15186   test -z "$as_dir" && as_dir=.
15187   for ac_exec_ext in '' $ac_executable_extensions; do
15188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15189     ac_cv_prog_ac_ct_CC="gcc"
15190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15191     break 2
15192   fi
15193 done
15194 done
15195 IFS=$as_save_IFS
15196
15197 fi
15198 fi
15199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15200 if test -n "$ac_ct_CC"; then
15201   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15202 echo "${ECHO_T}$ac_ct_CC" >&6; }
15203 else
15204   { echo "$as_me:$LINENO: result: no" >&5
15205 echo "${ECHO_T}no" >&6; }
15206 fi
15207
15208   if test "x$ac_ct_CC" = x; then
15209     CC=""
15210   else
15211     case $cross_compiling:$ac_tool_warned in
15212 yes:)
15213 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15214 whose name does not start with the host triplet.  If you think this
15215 configuration is useful to you, please write to autoconf@gnu.org." >&5
15216 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15217 whose name does not start with the host triplet.  If you think this
15218 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15219 ac_tool_warned=yes ;;
15220 esac
15221     CC=$ac_ct_CC
15222   fi
15223 else
15224   CC="$ac_cv_prog_CC"
15225 fi
15226
15227 if test -z "$CC"; then
15228           if test -n "$ac_tool_prefix"; then
15229     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15230 set dummy ${ac_tool_prefix}cc; ac_word=$2
15231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15233 if test "${ac_cv_prog_CC+set}" = set; then
15234   echo $ECHO_N "(cached) $ECHO_C" >&6
15235 else
15236   if test -n "$CC"; then
15237   ac_cv_prog_CC="$CC" # Let the user override the test.
15238 else
15239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15240 for as_dir in $PATH
15241 do
15242   IFS=$as_save_IFS
15243   test -z "$as_dir" && as_dir=.
15244   for ac_exec_ext in '' $ac_executable_extensions; do
15245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15246     ac_cv_prog_CC="${ac_tool_prefix}cc"
15247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15248     break 2
15249   fi
15250 done
15251 done
15252 IFS=$as_save_IFS
15253
15254 fi
15255 fi
15256 CC=$ac_cv_prog_CC
15257 if test -n "$CC"; then
15258   { echo "$as_me:$LINENO: result: $CC" >&5
15259 echo "${ECHO_T}$CC" >&6; }
15260 else
15261   { echo "$as_me:$LINENO: result: no" >&5
15262 echo "${ECHO_T}no" >&6; }
15263 fi
15264
15265
15266   fi
15267 fi
15268 if test -z "$CC"; then
15269   # Extract the first word of "cc", so it can be a program name with args.
15270 set dummy cc; ac_word=$2
15271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15273 if test "${ac_cv_prog_CC+set}" = set; then
15274   echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276   if test -n "$CC"; then
15277   ac_cv_prog_CC="$CC" # Let the user override the test.
15278 else
15279   ac_prog_rejected=no
15280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15281 for as_dir in $PATH
15282 do
15283   IFS=$as_save_IFS
15284   test -z "$as_dir" && as_dir=.
15285   for ac_exec_ext in '' $ac_executable_extensions; do
15286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15287     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15288        ac_prog_rejected=yes
15289        continue
15290      fi
15291     ac_cv_prog_CC="cc"
15292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15293     break 2
15294   fi
15295 done
15296 done
15297 IFS=$as_save_IFS
15298
15299 if test $ac_prog_rejected = yes; then
15300   # We found a bogon in the path, so make sure we never use it.
15301   set dummy $ac_cv_prog_CC
15302   shift
15303   if test $# != 0; then
15304     # We chose a different compiler from the bogus one.
15305     # However, it has the same basename, so the bogon will be chosen
15306     # first if we set CC to just the basename; use the full file name.
15307     shift
15308     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15309   fi
15310 fi
15311 fi
15312 fi
15313 CC=$ac_cv_prog_CC
15314 if test -n "$CC"; then
15315   { echo "$as_me:$LINENO: result: $CC" >&5
15316 echo "${ECHO_T}$CC" >&6; }
15317 else
15318   { echo "$as_me:$LINENO: result: no" >&5
15319 echo "${ECHO_T}no" >&6; }
15320 fi
15321
15322
15323 fi
15324 if test -z "$CC"; then
15325   if test -n "$ac_tool_prefix"; then
15326   for ac_prog in cl.exe
15327   do
15328     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15332 if test "${ac_cv_prog_CC+set}" = set; then
15333   echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335   if test -n "$CC"; then
15336   ac_cv_prog_CC="$CC" # Let the user override the test.
15337 else
15338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15339 for as_dir in $PATH
15340 do
15341   IFS=$as_save_IFS
15342   test -z "$as_dir" && as_dir=.
15343   for ac_exec_ext in '' $ac_executable_extensions; do
15344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15345     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15347     break 2
15348   fi
15349 done
15350 done
15351 IFS=$as_save_IFS
15352
15353 fi
15354 fi
15355 CC=$ac_cv_prog_CC
15356 if test -n "$CC"; then
15357   { echo "$as_me:$LINENO: result: $CC" >&5
15358 echo "${ECHO_T}$CC" >&6; }
15359 else
15360   { echo "$as_me:$LINENO: result: no" >&5
15361 echo "${ECHO_T}no" >&6; }
15362 fi
15363
15364
15365     test -n "$CC" && break
15366   done
15367 fi
15368 if test -z "$CC"; then
15369   ac_ct_CC=$CC
15370   for ac_prog in cl.exe
15371 do
15372   # Extract the first word of "$ac_prog", so it can be a program name with args.
15373 set dummy $ac_prog; ac_word=$2
15374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15376 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15377   echo $ECHO_N "(cached) $ECHO_C" >&6
15378 else
15379   if test -n "$ac_ct_CC"; then
15380   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15381 else
15382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15383 for as_dir in $PATH
15384 do
15385   IFS=$as_save_IFS
15386   test -z "$as_dir" && as_dir=.
15387   for ac_exec_ext in '' $ac_executable_extensions; do
15388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15389     ac_cv_prog_ac_ct_CC="$ac_prog"
15390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15391     break 2
15392   fi
15393 done
15394 done
15395 IFS=$as_save_IFS
15396
15397 fi
15398 fi
15399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15400 if test -n "$ac_ct_CC"; then
15401   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15402 echo "${ECHO_T}$ac_ct_CC" >&6; }
15403 else
15404   { echo "$as_me:$LINENO: result: no" >&5
15405 echo "${ECHO_T}no" >&6; }
15406 fi
15407
15408
15409   test -n "$ac_ct_CC" && break
15410 done
15411
15412   if test "x$ac_ct_CC" = x; then
15413     CC=""
15414   else
15415     case $cross_compiling:$ac_tool_warned in
15416 yes:)
15417 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15418 whose name does not start with the host triplet.  If you think this
15419 configuration is useful to you, please write to autoconf@gnu.org." >&5
15420 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15421 whose name does not start with the host triplet.  If you think this
15422 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15423 ac_tool_warned=yes ;;
15424 esac
15425     CC=$ac_ct_CC
15426   fi
15427 fi
15428
15429 fi
15430
15431
15432 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15433 See \`config.log' for more details." >&5
15434 echo "$as_me: error: no acceptable C compiler found in \$PATH
15435 See \`config.log' for more details." >&2;}
15436    { (exit 1); exit 1; }; }
15437
15438 # Provide some information about the compiler.
15439 echo "$as_me:$LINENO: checking for C compiler version" >&5
15440 ac_compiler=`set X $ac_compile; echo $2`
15441 { (ac_try="$ac_compiler --version >&5"
15442 case "(($ac_try" in
15443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444   *) ac_try_echo=$ac_try;;
15445 esac
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447   (eval "$ac_compiler --version >&5") 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }
15451 { (ac_try="$ac_compiler -v >&5"
15452 case "(($ac_try" in
15453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454   *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457   (eval "$ac_compiler -v >&5") 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); }
15461 { (ac_try="$ac_compiler -V >&5"
15462 case "(($ac_try" in
15463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464   *) ac_try_echo=$ac_try;;
15465 esac
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467   (eval "$ac_compiler -V >&5") 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }
15471
15472 cat >conftest.$ac_ext <<_ACEOF
15473 /* confdefs.h.  */
15474 _ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h.  */
15478
15479 int
15480 main ()
15481 {
15482
15483   ;
15484   return 0;
15485 }
15486 _ACEOF
15487 ac_clean_files_save=$ac_clean_files
15488 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15489 # Try to create an executable without -o first, disregard a.out.
15490 # It will help us diagnose broken compilers, and finding out an intuition
15491 # of exeext.
15492 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15493 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
15494 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15495 #
15496 # List of possible output files, starting from the most likely.
15497 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
15498 # only as a last resort.  b.out is created by i960 compilers.
15499 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
15500 #
15501 # The IRIX 6 linker writes into existing files which may not be
15502 # executable, retaining their permissions.  Remove them first so a
15503 # subsequent execution test works.
15504 ac_rmfiles=
15505 for ac_file in $ac_files
15506 do
15507   case $ac_file in
15508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15509     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15510   esac
15511 done
15512 rm -f $ac_rmfiles
15513
15514 if { (ac_try="$ac_link_default"
15515 case "(($ac_try" in
15516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517   *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520   (eval "$ac_link_default") 2>&5
15521   ac_status=$?
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); }; then
15524   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
15525 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
15526 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
15527 # so that the user can short-circuit this test for compilers unknown to
15528 # Autoconf.
15529 for ac_file in $ac_files ''
15530 do
15531   test -f "$ac_file" || continue
15532   case $ac_file in
15533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
15534         ;;
15535     [ab].out )
15536         # We found the default executable, but exeext='' is most
15537         # certainly right.
15538         break;;
15539     *.* )
15540         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
15541         then :; else
15542            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15543         fi
15544         # We set ac_cv_exeext here because the later test for it is not
15545         # safe: cross compilers may not add the suffix if given an `-o'
15546         # argument, so we may need to know it at that point already.
15547         # Even if this section looks crufty: it has the advantage of
15548         # actually working.
15549         break;;
15550     * )
15551         break;;
15552   esac
15553 done
15554 test "$ac_cv_exeext" = no && ac_cv_exeext=
15555
15556 else
15557   ac_file=''
15558 fi
15559
15560 { echo "$as_me:$LINENO: result: $ac_file" >&5
15561 echo "${ECHO_T}$ac_file" >&6; }
15562 if test -z "$ac_file"; then
15563   echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15565
15566 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
15567 See \`config.log' for more details." >&5
15568 echo "$as_me: error: C compiler cannot create executables
15569 See \`config.log' for more details." >&2;}
15570    { (exit 77); exit 77; }; }
15571 fi
15572
15573 ac_exeext=$ac_cv_exeext
15574
15575 # Check that the compiler produces executables we can run.  If not, either
15576 # the compiler is broken, or we cross compile.
15577 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
15578 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
15579 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15580 # If not cross compiling, check that we can run a simple program.
15581 if test "$cross_compiling" != yes; then
15582   if { ac_try='./$ac_file'
15583   { (case "(($ac_try" in
15584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585   *) ac_try_echo=$ac_try;;
15586 esac
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588   (eval "$ac_try") 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; }; then
15592     cross_compiling=no
15593   else
15594     if test "$cross_compiling" = maybe; then
15595         cross_compiling=yes
15596     else
15597         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
15598 If you meant to cross compile, use \`--host'.
15599 See \`config.log' for more details." >&5
15600 echo "$as_me: error: cannot run C compiled programs.
15601 If you meant to cross compile, use \`--host'.
15602 See \`config.log' for more details." >&2;}
15603    { (exit 1); exit 1; }; }
15604     fi
15605   fi
15606 fi
15607 { echo "$as_me:$LINENO: result: yes" >&5
15608 echo "${ECHO_T}yes" >&6; }
15609
15610 rm -f a.out a.exe conftest$ac_cv_exeext b.out
15611 ac_clean_files=$ac_clean_files_save
15612 # Check that the compiler produces executables we can run.  If not, either
15613 # the compiler is broken, or we cross compile.
15614 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
15615 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
15616 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
15617 echo "${ECHO_T}$cross_compiling" >&6; }
15618
15619 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
15620 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
15621 if { (ac_try="$ac_link"
15622 case "(($ac_try" in
15623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624   *) ac_try_echo=$ac_try;;
15625 esac
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627   (eval "$ac_link") 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); }; then
15631   # If both `conftest.exe' and `conftest' are `present' (well, observable)
15632 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15633 # work properly (i.e., refer to `conftest.exe'), while it won't with
15634 # `rm'.
15635 for ac_file in conftest.exe conftest conftest.*; do
15636   test -f "$ac_file" || continue
15637   case $ac_file in
15638     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15639     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15640           break;;
15641     * ) break;;
15642   esac
15643 done
15644 else
15645   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
15646 See \`config.log' for more details." >&5
15647 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
15648 See \`config.log' for more details." >&2;}
15649    { (exit 1); exit 1; }; }
15650 fi
15651
15652 rm -f conftest$ac_cv_exeext
15653 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
15654 echo "${ECHO_T}$ac_cv_exeext" >&6; }
15655
15656 rm -f conftest.$ac_ext
15657 EXEEXT=$ac_cv_exeext
15658 ac_exeext=$EXEEXT
15659 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
15660 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
15661 if test "${ac_cv_objext+set}" = set; then
15662   echo $ECHO_N "(cached) $ECHO_C" >&6
15663 else
15664   cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h.  */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h.  */
15670
15671 int
15672 main ()
15673 {
15674
15675   ;
15676   return 0;
15677 }
15678 _ACEOF
15679 rm -f conftest.o conftest.obj
15680 if { (ac_try="$ac_compile"
15681 case "(($ac_try" in
15682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683   *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686   (eval "$ac_compile") 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; then
15690   for ac_file in conftest.o conftest.obj conftest.*; do
15691   test -f "$ac_file" || continue;
15692   case $ac_file in
15693     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
15694     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15695        break;;
15696   esac
15697 done
15698 else
15699   echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
15703 See \`config.log' for more details." >&5
15704 echo "$as_me: error: cannot compute suffix of object files: cannot compile
15705 See \`config.log' for more details." >&2;}
15706    { (exit 1); exit 1; }; }
15707 fi
15708
15709 rm -f conftest.$ac_cv_objext conftest.$ac_ext
15710 fi
15711 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
15712 echo "${ECHO_T}$ac_cv_objext" >&6; }
15713 OBJEXT=$ac_cv_objext
15714 ac_objext=$OBJEXT
15715 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15716 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
15717 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15718   echo $ECHO_N "(cached) $ECHO_C" >&6
15719 else
15720   cat >conftest.$ac_ext <<_ACEOF
15721 /* confdefs.h.  */
15722 _ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h.  */
15726
15727 int
15728 main ()
15729 {
15730 #ifndef __GNUC__
15731        choke me
15732 #endif
15733
15734   ;
15735   return 0;
15736 }
15737 _ACEOF
15738 rm -f conftest.$ac_objext
15739 if { (ac_try="$ac_compile"
15740 case "(($ac_try" in
15741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742   *) ac_try_echo=$ac_try;;
15743 esac
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745   (eval "$ac_compile") 2>conftest.er1
15746   ac_status=$?
15747   grep -v '^ *+' conftest.er1 >conftest.err
15748   rm -f conftest.er1
15749   cat conftest.err >&5
15750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751   (exit $ac_status); } && {
15752          test -z "$ac_c_werror_flag" ||
15753          test ! -s conftest.err
15754        } && test -s conftest.$ac_objext; then
15755   ac_compiler_gnu=yes
15756 else
15757   echo "$as_me: failed program was:" >&5
15758 sed 's/^/| /' conftest.$ac_ext >&5
15759
15760         ac_compiler_gnu=no
15761 fi
15762
15763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15765
15766 fi
15767 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15768 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15769 GCC=`test $ac_compiler_gnu = yes && echo yes`
15770 ac_test_CFLAGS=${CFLAGS+set}
15771 ac_save_CFLAGS=$CFLAGS
15772 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15773 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15774 if test "${ac_cv_prog_cc_g+set}" = set; then
15775   echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777   ac_save_c_werror_flag=$ac_c_werror_flag
15778    ac_c_werror_flag=yes
15779    ac_cv_prog_cc_g=no
15780    CFLAGS="-g"
15781    cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h.  */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h.  */
15787
15788 int
15789 main ()
15790 {
15791
15792   ;
15793   return 0;
15794 }
15795 _ACEOF
15796 rm -f conftest.$ac_objext
15797 if { (ac_try="$ac_compile"
15798 case "(($ac_try" in
15799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800   *) ac_try_echo=$ac_try;;
15801 esac
15802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803   (eval "$ac_compile") 2>conftest.er1
15804   ac_status=$?
15805   grep -v '^ *+' conftest.er1 >conftest.err
15806   rm -f conftest.er1
15807   cat conftest.err >&5
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); } && {
15810          test -z "$ac_c_werror_flag" ||
15811          test ! -s conftest.err
15812        } && test -s conftest.$ac_objext; then
15813   ac_cv_prog_cc_g=yes
15814 else
15815   echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15817
15818         CFLAGS=""
15819       cat >conftest.$ac_ext <<_ACEOF
15820 /* confdefs.h.  */
15821 _ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h.  */
15825
15826 int
15827 main ()
15828 {
15829
15830   ;
15831   return 0;
15832 }
15833 _ACEOF
15834 rm -f conftest.$ac_objext
15835 if { (ac_try="$ac_compile"
15836 case "(($ac_try" in
15837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838   *) ac_try_echo=$ac_try;;
15839 esac
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841   (eval "$ac_compile") 2>conftest.er1
15842   ac_status=$?
15843   grep -v '^ *+' conftest.er1 >conftest.err
15844   rm -f conftest.er1
15845   cat conftest.err >&5
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); } && {
15848          test -z "$ac_c_werror_flag" ||
15849          test ! -s conftest.err
15850        } && test -s conftest.$ac_objext; then
15851   :
15852 else
15853   echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15855
15856         ac_c_werror_flag=$ac_save_c_werror_flag
15857          CFLAGS="-g"
15858          cat >conftest.$ac_ext <<_ACEOF
15859 /* confdefs.h.  */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h.  */
15864
15865 int
15866 main ()
15867 {
15868
15869   ;
15870   return 0;
15871 }
15872 _ACEOF
15873 rm -f conftest.$ac_objext
15874 if { (ac_try="$ac_compile"
15875 case "(($ac_try" in
15876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877   *) ac_try_echo=$ac_try;;
15878 esac
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880   (eval "$ac_compile") 2>conftest.er1
15881   ac_status=$?
15882   grep -v '^ *+' conftest.er1 >conftest.err
15883   rm -f conftest.er1
15884   cat conftest.err >&5
15885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); } && {
15887          test -z "$ac_c_werror_flag" ||
15888          test ! -s conftest.err
15889        } && test -s conftest.$ac_objext; then
15890   ac_cv_prog_cc_g=yes
15891 else
15892   echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15894
15895
15896 fi
15897
15898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899 fi
15900
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 fi
15903
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905    ac_c_werror_flag=$ac_save_c_werror_flag
15906 fi
15907 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15908 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15909 if test "$ac_test_CFLAGS" = set; then
15910   CFLAGS=$ac_save_CFLAGS
15911 elif test $ac_cv_prog_cc_g = yes; then
15912   if test "$GCC" = yes; then
15913     CFLAGS="-g -O2"
15914   else
15915     CFLAGS="-g"
15916   fi
15917 else
15918   if test "$GCC" = yes; then
15919     CFLAGS="-O2"
15920   else
15921     CFLAGS=
15922   fi
15923 fi
15924 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15925 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15926 if test "${ac_cv_prog_cc_c89+set}" = set; then
15927   echo $ECHO_N "(cached) $ECHO_C" >&6
15928 else
15929   ac_cv_prog_cc_c89=no
15930 ac_save_CC=$CC
15931 cat >conftest.$ac_ext <<_ACEOF
15932 /* confdefs.h.  */
15933 _ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h.  */
15937 #include <stdarg.h>
15938 #include <stdio.h>
15939 #include <sys/types.h>
15940 #include <sys/stat.h>
15941 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15942 struct buf { int x; };
15943 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15944 static char *e (p, i)
15945      char **p;
15946      int i;
15947 {
15948   return p[i];
15949 }
15950 static char *f (char * (*g) (char **, int), char **p, ...)
15951 {
15952   char *s;
15953   va_list v;
15954   va_start (v,p);
15955   s = g (p, va_arg (v,int));
15956   va_end (v);
15957   return s;
15958 }
15959
15960 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15961    function prototypes and stuff, but not '\xHH' hex character constants.
15962    These don't provoke an error unfortunately, instead are silently treated
15963    as 'x'.  The following induces an error, until -std is added to get
15964    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15965    array size at least.  It's necessary to write '\x00'==0 to get something
15966    that's true only with -std.  */
15967 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15968
15969 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15970    inside strings and character constants.  */
15971 #define FOO(x) 'x'
15972 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15973
15974 int test (int i, double x);
15975 struct s1 {int (*f) (int a);};
15976 struct s2 {int (*f) (double a);};
15977 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15978 int argc;
15979 char **argv;
15980 int
15981 main ()
15982 {
15983 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15984   ;
15985   return 0;
15986 }
15987 _ACEOF
15988 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15989         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15990 do
15991   CC="$ac_save_CC $ac_arg"
15992   rm -f conftest.$ac_objext
15993 if { (ac_try="$ac_compile"
15994 case "(($ac_try" in
15995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996   *) ac_try_echo=$ac_try;;
15997 esac
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999   (eval "$ac_compile") 2>conftest.er1
16000   ac_status=$?
16001   grep -v '^ *+' conftest.er1 >conftest.err
16002   rm -f conftest.er1
16003   cat conftest.err >&5
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); } && {
16006          test -z "$ac_c_werror_flag" ||
16007          test ! -s conftest.err
16008        } && test -s conftest.$ac_objext; then
16009   ac_cv_prog_cc_c89=$ac_arg
16010 else
16011   echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014
16015 fi
16016
16017 rm -f core conftest.err conftest.$ac_objext
16018   test "x$ac_cv_prog_cc_c89" != "xno" && break
16019 done
16020 rm -f conftest.$ac_ext
16021 CC=$ac_save_CC
16022
16023 fi
16024 # AC_CACHE_VAL
16025 case "x$ac_cv_prog_cc_c89" in
16026   x)
16027     { echo "$as_me:$LINENO: result: none needed" >&5
16028 echo "${ECHO_T}none needed" >&6; } ;;
16029   xno)
16030     { echo "$as_me:$LINENO: result: unsupported" >&5
16031 echo "${ECHO_T}unsupported" >&6; } ;;
16032   *)
16033     CC="$CC $ac_cv_prog_cc_c89"
16034     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
16035 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
16036 esac
16037
16038
16039 ac_ext=c
16040 ac_cpp='$CPP $CPPFLAGS'
16041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16044
16045
16046
16047
16048
16049
16050
16051
16052     ac_ext=c
16053 ac_cpp='$CPP $CPPFLAGS'
16054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16057
16058     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
16059 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
16060 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
16061   echo $ECHO_N "(cached) $ECHO_C" >&6
16062 else
16063   cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h.  */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h.  */
16069
16070 int
16071 main ()
16072 {
16073
16074              #ifndef __INTEL_COMPILER
16075                 choke me
16076              #endif
16077
16078   ;
16079   return 0;
16080 }
16081 _ACEOF
16082 rm -f conftest.$ac_objext
16083 if { (ac_try="$ac_compile"
16084 case "(($ac_try" in
16085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086   *) ac_try_echo=$ac_try;;
16087 esac
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089   (eval "$ac_compile") 2>conftest.er1
16090   ac_status=$?
16091   grep -v '^ *+' conftest.er1 >conftest.err
16092   rm -f conftest.er1
16093   cat conftest.err >&5
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); } && {
16096          test -z "$ac_c_werror_flag" ||
16097          test ! -s conftest.err
16098        } && test -s conftest.$ac_objext; then
16099   bakefile_cv_c_compiler___INTEL_COMPILER=yes
16100 else
16101   echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104         bakefile_cv_c_compiler___INTEL_COMPILER=no
16105
16106 fi
16107
16108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16109
16110
16111 fi
16112 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
16113 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
16114     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
16115         :; INTELCC=yes
16116     else
16117         :;
16118     fi
16119     ac_ext=c
16120 ac_cpp='$CPP $CPPFLAGS'
16121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16124
16125
16126
16127
16128         if test "$INTELCC" = "yes"; then
16129
16130
16131     ac_ext=c
16132 ac_cpp='$CPP $CPPFLAGS'
16133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16136
16137     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
16138 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
16139 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16140   echo $ECHO_N "(cached) $ECHO_C" >&6
16141 else
16142   cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148
16149 int
16150 main ()
16151 {
16152
16153              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
16154                 choke me
16155              #endif
16156
16157   ;
16158   return 0;
16159 }
16160 _ACEOF
16161 rm -f conftest.$ac_objext
16162 if { (ac_try="$ac_compile"
16163 case "(($ac_try" in
16164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165   *) ac_try_echo=$ac_try;;
16166 esac
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168   (eval "$ac_compile") 2>conftest.er1
16169   ac_status=$?
16170   grep -v '^ *+' conftest.er1 >conftest.err
16171   rm -f conftest.er1
16172   cat conftest.err >&5
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); } && {
16175          test -z "$ac_c_werror_flag" ||
16176          test ! -s conftest.err
16177        } && test -s conftest.$ac_objext; then
16178   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
16179 else
16180   echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16182
16183         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
16184
16185 fi
16186
16187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188
16189
16190 fi
16191 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
16192 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
16193     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
16194         :; INTELCC8=yes
16195     else
16196         :;
16197     fi
16198     ac_ext=c
16199 ac_cpp='$CPP $CPPFLAGS'
16200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16203
16204
16205
16206
16207
16208     ac_ext=c
16209 ac_cpp='$CPP $CPPFLAGS'
16210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16213
16214     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
16215 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
16216 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
16217   echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219   cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h.  */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h.  */
16225
16226 int
16227 main ()
16228 {
16229
16230              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
16231                 choke me
16232              #endif
16233
16234   ;
16235   return 0;
16236 }
16237 _ACEOF
16238 rm -f conftest.$ac_objext
16239 if { (ac_try="$ac_compile"
16240 case "(($ac_try" in
16241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242   *) ac_try_echo=$ac_try;;
16243 esac
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245   (eval "$ac_compile") 2>conftest.er1
16246   ac_status=$?
16247   grep -v '^ *+' conftest.er1 >conftest.err
16248   rm -f conftest.er1
16249   cat conftest.err >&5
16250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251   (exit $ac_status); } && {
16252          test -z "$ac_c_werror_flag" ||
16253          test ! -s conftest.err
16254        } && test -s conftest.$ac_objext; then
16255   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
16256 else
16257   echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16259
16260         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
16261
16262 fi
16263
16264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16265
16266
16267 fi
16268 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
16269 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
16270     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
16271         :; INTELCC10=yes
16272     else
16273         :;
16274     fi
16275     ac_ext=c
16276 ac_cpp='$CPP $CPPFLAGS'
16277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16280
16281
16282
16283     fi
16284
16285         if test "x$GCC" != "xyes"; then
16286         if test "xCC" = "xC"; then
16287             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16288 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16289 if test "${bakefile_cv_c_exto+set}" = set; then
16290   echo $ECHO_N "(cached) $ECHO_C" >&6
16291 else
16292   cat >conftest.$ac_ext <<_ACEOF
16293 /* confdefs.h.  */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h.  */
16298
16299 int
16300 main ()
16301 {
16302
16303   ;
16304   return 0;
16305 }
16306 _ACEOF
16307 rm -f conftest.$ac_objext conftest.$ac_ext.o
16308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16309   (eval $ac_compile) 2>&5
16310   ac_status=$?
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); }; then
16313   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16314     case $ac_file in
16315         conftest.$ac_ext.o)
16316             bakefile_cv_c_exto="-ext o"
16317             ;;
16318         *)
16319             ;;
16320     esac
16321 done
16322 else
16323   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16324 See \`config.log' for more details." >&5
16325 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16326 See \`config.log' for more details." >&2;}
16327    { (exit 1); exit 1; }; }
16328
16329 fi
16330
16331 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16332
16333 fi
16334 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16335 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16336 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16337     if test "c" = "c"; then
16338         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16339     fi
16340     if test "c" = "cxx"; then
16341         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16342     fi
16343 fi
16344
16345             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16346                 unset ac_cv_prog_cc_g
16347                 ac_test_CFLAGS=${CFLAGS+set}
16348 ac_save_CFLAGS=$CFLAGS
16349 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16350 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16351 if test "${ac_cv_prog_cc_g+set}" = set; then
16352   echo $ECHO_N "(cached) $ECHO_C" >&6
16353 else
16354   ac_save_c_werror_flag=$ac_c_werror_flag
16355    ac_c_werror_flag=yes
16356    ac_cv_prog_cc_g=no
16357    CFLAGS="-g"
16358    cat >conftest.$ac_ext <<_ACEOF
16359 /* confdefs.h.  */
16360 _ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h.  */
16364
16365 int
16366 main ()
16367 {
16368
16369   ;
16370   return 0;
16371 }
16372 _ACEOF
16373 rm -f conftest.$ac_objext
16374 if { (ac_try="$ac_compile"
16375 case "(($ac_try" in
16376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377   *) ac_try_echo=$ac_try;;
16378 esac
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380   (eval "$ac_compile") 2>conftest.er1
16381   ac_status=$?
16382   grep -v '^ *+' conftest.er1 >conftest.err
16383   rm -f conftest.er1
16384   cat conftest.err >&5
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); } && {
16387          test -z "$ac_c_werror_flag" ||
16388          test ! -s conftest.err
16389        } && test -s conftest.$ac_objext; then
16390   ac_cv_prog_cc_g=yes
16391 else
16392   echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16394
16395         CFLAGS=""
16396       cat >conftest.$ac_ext <<_ACEOF
16397 /* confdefs.h.  */
16398 _ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h.  */
16402
16403 int
16404 main ()
16405 {
16406
16407   ;
16408   return 0;
16409 }
16410 _ACEOF
16411 rm -f conftest.$ac_objext
16412 if { (ac_try="$ac_compile"
16413 case "(($ac_try" in
16414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415   *) ac_try_echo=$ac_try;;
16416 esac
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418   (eval "$ac_compile") 2>conftest.er1
16419   ac_status=$?
16420   grep -v '^ *+' conftest.er1 >conftest.err
16421   rm -f conftest.er1
16422   cat conftest.err >&5
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); } && {
16425          test -z "$ac_c_werror_flag" ||
16426          test ! -s conftest.err
16427        } && test -s conftest.$ac_objext; then
16428   :
16429 else
16430   echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16432
16433         ac_c_werror_flag=$ac_save_c_werror_flag
16434          CFLAGS="-g"
16435          cat >conftest.$ac_ext <<_ACEOF
16436 /* confdefs.h.  */
16437 _ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h.  */
16441
16442 int
16443 main ()
16444 {
16445
16446   ;
16447   return 0;
16448 }
16449 _ACEOF
16450 rm -f conftest.$ac_objext
16451 if { (ac_try="$ac_compile"
16452 case "(($ac_try" in
16453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454   *) ac_try_echo=$ac_try;;
16455 esac
16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457   (eval "$ac_compile") 2>conftest.er1
16458   ac_status=$?
16459   grep -v '^ *+' conftest.er1 >conftest.err
16460   rm -f conftest.er1
16461   cat conftest.err >&5
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); } && {
16464          test -z "$ac_c_werror_flag" ||
16465          test ! -s conftest.err
16466        } && test -s conftest.$ac_objext; then
16467   ac_cv_prog_cc_g=yes
16468 else
16469   echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16471
16472
16473 fi
16474
16475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476 fi
16477
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16479 fi
16480
16481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16482    ac_c_werror_flag=$ac_save_c_werror_flag
16483 fi
16484 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16486 if test "$ac_test_CFLAGS" = set; then
16487   CFLAGS=$ac_save_CFLAGS
16488 elif test $ac_cv_prog_cc_g = yes; then
16489   if test "$GCC" = yes; then
16490     CFLAGS="-g -O2"
16491   else
16492     CFLAGS="-g"
16493   fi
16494 else
16495   if test "$GCC" = yes; then
16496     CFLAGS="-O2"
16497   else
16498     CFLAGS=
16499   fi
16500 fi
16501             fi
16502         fi
16503
16504                         case `uname -s` in
16505             AIX*)
16506
16507
16508     ac_ext=c
16509 ac_cpp='$CPP $CPPFLAGS'
16510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16513
16514     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16515 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16516 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16517   echo $ECHO_N "(cached) $ECHO_C" >&6
16518 else
16519   cat >conftest.$ac_ext <<_ACEOF
16520 /* confdefs.h.  */
16521 _ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h.  */
16525
16526 int
16527 main ()
16528 {
16529
16530              #ifndef __xlC__
16531                 choke me
16532              #endif
16533
16534   ;
16535   return 0;
16536 }
16537 _ACEOF
16538 rm -f conftest.$ac_objext
16539 if { (ac_try="$ac_compile"
16540 case "(($ac_try" in
16541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542   *) ac_try_echo=$ac_try;;
16543 esac
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545   (eval "$ac_compile") 2>conftest.er1
16546   ac_status=$?
16547   grep -v '^ *+' conftest.er1 >conftest.err
16548   rm -f conftest.er1
16549   cat conftest.err >&5
16550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551   (exit $ac_status); } && {
16552          test -z "$ac_c_werror_flag" ||
16553          test ! -s conftest.err
16554        } && test -s conftest.$ac_objext; then
16555   bakefile_cv_c_compiler___xlC__=yes
16556 else
16557   echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560         bakefile_cv_c_compiler___xlC__=no
16561
16562 fi
16563
16564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565
16566
16567 fi
16568 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16569 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16570     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16571         :; XLCC=yes
16572     else
16573         :;
16574     fi
16575     ac_ext=c
16576 ac_cpp='$CPP $CPPFLAGS'
16577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16580
16581
16582
16583                 ;;
16584
16585             Darwin)
16586
16587
16588     ac_ext=c
16589 ac_cpp='$CPP $CPPFLAGS'
16590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16593
16594     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
16595 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
16596 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
16597   echo $ECHO_N "(cached) $ECHO_C" >&6
16598 else
16599   cat >conftest.$ac_ext <<_ACEOF
16600 /* confdefs.h.  */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h.  */
16605
16606 int
16607 main ()
16608 {
16609
16610              #ifndef __MWERKS__
16611                 choke me
16612              #endif
16613
16614   ;
16615   return 0;
16616 }
16617 _ACEOF
16618 rm -f conftest.$ac_objext
16619 if { (ac_try="$ac_compile"
16620 case "(($ac_try" in
16621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622   *) ac_try_echo=$ac_try;;
16623 esac
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625   (eval "$ac_compile") 2>conftest.er1
16626   ac_status=$?
16627   grep -v '^ *+' conftest.er1 >conftest.err
16628   rm -f conftest.er1
16629   cat conftest.err >&5
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); } && {
16632          test -z "$ac_c_werror_flag" ||
16633          test ! -s conftest.err
16634        } && test -s conftest.$ac_objext; then
16635   bakefile_cv_c_compiler___MWERKS__=yes
16636 else
16637   echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16639
16640         bakefile_cv_c_compiler___MWERKS__=no
16641
16642 fi
16643
16644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16645
16646
16647 fi
16648 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16649 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
16650     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16651         :; MWCC=yes
16652     else
16653         :;
16654     fi
16655     ac_ext=c
16656 ac_cpp='$CPP $CPPFLAGS'
16657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16660
16661
16662
16663                 if test "$MWCC" != "yes"; then
16664
16665
16666     ac_ext=c
16667 ac_cpp='$CPP $CPPFLAGS'
16668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16671
16672     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16673 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16674 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16675   echo $ECHO_N "(cached) $ECHO_C" >&6
16676 else
16677   cat >conftest.$ac_ext <<_ACEOF
16678 /* confdefs.h.  */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h.  */
16683
16684 int
16685 main ()
16686 {
16687
16688              #ifndef __xlC__
16689                 choke me
16690              #endif
16691
16692   ;
16693   return 0;
16694 }
16695 _ACEOF
16696 rm -f conftest.$ac_objext
16697 if { (ac_try="$ac_compile"
16698 case "(($ac_try" in
16699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700   *) ac_try_echo=$ac_try;;
16701 esac
16702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703   (eval "$ac_compile") 2>conftest.er1
16704   ac_status=$?
16705   grep -v '^ *+' conftest.er1 >conftest.err
16706   rm -f conftest.er1
16707   cat conftest.err >&5
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); } && {
16710          test -z "$ac_c_werror_flag" ||
16711          test ! -s conftest.err
16712        } && test -s conftest.$ac_objext; then
16713   bakefile_cv_c_compiler___xlC__=yes
16714 else
16715   echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16717
16718         bakefile_cv_c_compiler___xlC__=no
16719
16720 fi
16721
16722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723
16724
16725 fi
16726 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16727 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16728     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16729         :; XLCC=yes
16730     else
16731         :;
16732     fi
16733     ac_ext=c
16734 ac_cpp='$CPP $CPPFLAGS'
16735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16738
16739
16740
16741                 fi
16742                 ;;
16743
16744             IRIX*)
16745
16746
16747     ac_ext=c
16748 ac_cpp='$CPP $CPPFLAGS'
16749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16752
16753     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16754 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
16755 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16756   echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758   cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h.  */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h.  */
16764
16765 int
16766 main ()
16767 {
16768
16769              #ifndef _SGI_COMPILER_VERSION
16770                 choke me
16771              #endif
16772
16773   ;
16774   return 0;
16775 }
16776 _ACEOF
16777 rm -f conftest.$ac_objext
16778 if { (ac_try="$ac_compile"
16779 case "(($ac_try" in
16780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781   *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784   (eval "$ac_compile") 2>conftest.er1
16785   ac_status=$?
16786   grep -v '^ *+' conftest.er1 >conftest.err
16787   rm -f conftest.er1
16788   cat conftest.err >&5
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); } && {
16791          test -z "$ac_c_werror_flag" ||
16792          test ! -s conftest.err
16793        } && test -s conftest.$ac_objext; then
16794   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16795 else
16796   echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16798
16799         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16800
16801 fi
16802
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804
16805
16806 fi
16807 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16808 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16809     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16810         :; SGICC=yes
16811     else
16812         :;
16813     fi
16814     ac_ext=c
16815 ac_cpp='$CPP $CPPFLAGS'
16816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16819
16820
16821
16822                 ;;
16823
16824             Linux*)
16825                                                 if test "$INTELCC" != "yes"; then
16826
16827
16828     ac_ext=c
16829 ac_cpp='$CPP $CPPFLAGS'
16830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16833
16834     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16835 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16836 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16837   echo $ECHO_N "(cached) $ECHO_C" >&6
16838 else
16839   cat >conftest.$ac_ext <<_ACEOF
16840 /* confdefs.h.  */
16841 _ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h.  */
16845
16846 int
16847 main ()
16848 {
16849
16850              #ifndef __SUNPRO_C
16851                 choke me
16852              #endif
16853
16854   ;
16855   return 0;
16856 }
16857 _ACEOF
16858 rm -f conftest.$ac_objext
16859 if { (ac_try="$ac_compile"
16860 case "(($ac_try" in
16861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862   *) ac_try_echo=$ac_try;;
16863 esac
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865   (eval "$ac_compile") 2>conftest.er1
16866   ac_status=$?
16867   grep -v '^ *+' conftest.er1 >conftest.err
16868   rm -f conftest.er1
16869   cat conftest.err >&5
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); } && {
16872          test -z "$ac_c_werror_flag" ||
16873          test ! -s conftest.err
16874        } && test -s conftest.$ac_objext; then
16875   bakefile_cv_c_compiler___SUNPRO_C=yes
16876 else
16877   echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16879
16880         bakefile_cv_c_compiler___SUNPRO_C=no
16881
16882 fi
16883
16884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885
16886
16887 fi
16888 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16889 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16890     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16891         :; SUNCC=yes
16892     else
16893         :;
16894     fi
16895     ac_ext=c
16896 ac_cpp='$CPP $CPPFLAGS'
16897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16900
16901
16902
16903                 fi
16904                 ;;
16905
16906             HP-UX*)
16907
16908
16909     ac_ext=c
16910 ac_cpp='$CPP $CPPFLAGS'
16911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16914
16915     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16916 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16917 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16918   echo $ECHO_N "(cached) $ECHO_C" >&6
16919 else
16920   cat >conftest.$ac_ext <<_ACEOF
16921 /* confdefs.h.  */
16922 _ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h.  */
16926
16927 int
16928 main ()
16929 {
16930
16931              #ifndef __HP_cc
16932                 choke me
16933              #endif
16934
16935   ;
16936   return 0;
16937 }
16938 _ACEOF
16939 rm -f conftest.$ac_objext
16940 if { (ac_try="$ac_compile"
16941 case "(($ac_try" in
16942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943   *) ac_try_echo=$ac_try;;
16944 esac
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946   (eval "$ac_compile") 2>conftest.er1
16947   ac_status=$?
16948   grep -v '^ *+' conftest.er1 >conftest.err
16949   rm -f conftest.er1
16950   cat conftest.err >&5
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); } && {
16953          test -z "$ac_c_werror_flag" ||
16954          test ! -s conftest.err
16955        } && test -s conftest.$ac_objext; then
16956   bakefile_cv_c_compiler___HP_cc=yes
16957 else
16958   echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961         bakefile_cv_c_compiler___HP_cc=no
16962
16963 fi
16964
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966
16967
16968 fi
16969 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16970 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
16971     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16972         :; HPCC=yes
16973     else
16974         :;
16975     fi
16976     ac_ext=c
16977 ac_cpp='$CPP $CPPFLAGS'
16978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16981
16982
16983
16984                 ;;
16985
16986             OSF1)
16987
16988
16989     ac_ext=c
16990 ac_cpp='$CPP $CPPFLAGS'
16991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16994
16995     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16996 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
16997 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16998   echo $ECHO_N "(cached) $ECHO_C" >&6
16999 else
17000   cat >conftest.$ac_ext <<_ACEOF
17001 /* confdefs.h.  */
17002 _ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h.  */
17006
17007 int
17008 main ()
17009 {
17010
17011              #ifndef __DECC
17012                 choke me
17013              #endif
17014
17015   ;
17016   return 0;
17017 }
17018 _ACEOF
17019 rm -f conftest.$ac_objext
17020 if { (ac_try="$ac_compile"
17021 case "(($ac_try" in
17022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023   *) ac_try_echo=$ac_try;;
17024 esac
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026   (eval "$ac_compile") 2>conftest.er1
17027   ac_status=$?
17028   grep -v '^ *+' conftest.er1 >conftest.err
17029   rm -f conftest.er1
17030   cat conftest.err >&5
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); } && {
17033          test -z "$ac_c_werror_flag" ||
17034          test ! -s conftest.err
17035        } && test -s conftest.$ac_objext; then
17036   bakefile_cv_c_compiler___DECC=yes
17037 else
17038   echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17040
17041         bakefile_cv_c_compiler___DECC=no
17042
17043 fi
17044
17045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046
17047
17048 fi
17049 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
17050 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
17051     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
17052         :; COMPAQCC=yes
17053     else
17054         :;
17055     fi
17056     ac_ext=c
17057 ac_cpp='$CPP $CPPFLAGS'
17058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17061
17062
17063
17064                 ;;
17065
17066             SunOS)
17067
17068
17069     ac_ext=c
17070 ac_cpp='$CPP $CPPFLAGS'
17071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17074
17075     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17076 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17077 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17078   echo $ECHO_N "(cached) $ECHO_C" >&6
17079 else
17080   cat >conftest.$ac_ext <<_ACEOF
17081 /* confdefs.h.  */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h.  */
17086
17087 int
17088 main ()
17089 {
17090
17091              #ifndef __SUNPRO_C
17092                 choke me
17093              #endif
17094
17095   ;
17096   return 0;
17097 }
17098 _ACEOF
17099 rm -f conftest.$ac_objext
17100 if { (ac_try="$ac_compile"
17101 case "(($ac_try" in
17102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103   *) ac_try_echo=$ac_try;;
17104 esac
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106   (eval "$ac_compile") 2>conftest.er1
17107   ac_status=$?
17108   grep -v '^ *+' conftest.er1 >conftest.err
17109   rm -f conftest.er1
17110   cat conftest.err >&5
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); } && {
17113          test -z "$ac_c_werror_flag" ||
17114          test ! -s conftest.err
17115        } && test -s conftest.$ac_objext; then
17116   bakefile_cv_c_compiler___SUNPRO_C=yes
17117 else
17118   echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121         bakefile_cv_c_compiler___SUNPRO_C=no
17122
17123 fi
17124
17125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126
17127
17128 fi
17129 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17130 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17131     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17132         :; SUNCC=yes
17133     else
17134         :;
17135     fi
17136     ac_ext=c
17137 ac_cpp='$CPP $CPPFLAGS'
17138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17141
17142
17143
17144                 ;;
17145         esac
17146     fi
17147
17148
17149
17150 ac_ext=c
17151 ac_cpp='$CPP $CPPFLAGS'
17152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17155 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
17156 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
17157 # On Suns, sometimes $CPP names a directory.
17158 if test -n "$CPP" && test -d "$CPP"; then
17159   CPP=
17160 fi
17161 if test -z "$CPP"; then
17162   if test "${ac_cv_prog_CPP+set}" = set; then
17163   echo $ECHO_N "(cached) $ECHO_C" >&6
17164 else
17165       # Double quotes because CPP needs to be expanded
17166     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17167     do
17168       ac_preproc_ok=false
17169 for ac_c_preproc_warn_flag in '' yes
17170 do
17171   # Use a header file that comes with gcc, so configuring glibc
17172   # with a fresh cross-compiler works.
17173   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17174   # <limits.h> exists even on freestanding compilers.
17175   # On the NeXT, cc -E runs the code through the compiler's parser,
17176   # not just through cpp. "Syntax error" is here to catch this case.
17177   cat >conftest.$ac_ext <<_ACEOF
17178 /* confdefs.h.  */
17179 _ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h.  */
17183 #ifdef __STDC__
17184 # include <limits.h>
17185 #else
17186 # include <assert.h>
17187 #endif
17188                      Syntax error
17189 _ACEOF
17190 if { (ac_try="$ac_cpp conftest.$ac_ext"
17191 case "(($ac_try" in
17192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193   *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17197   ac_status=$?
17198   grep -v '^ *+' conftest.er1 >conftest.err
17199   rm -f conftest.er1
17200   cat conftest.err >&5
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); } >/dev/null && {
17203          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17204          test ! -s conftest.err
17205        }; then
17206   :
17207 else
17208   echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17210
17211   # Broken: fails on valid input.
17212 continue
17213 fi
17214
17215 rm -f conftest.err conftest.$ac_ext
17216
17217   # OK, works on sane cases.  Now check whether nonexistent headers
17218   # can be detected and how.
17219   cat >conftest.$ac_ext <<_ACEOF
17220 /* confdefs.h.  */
17221 _ACEOF
17222 cat confdefs.h >>conftest.$ac_ext
17223 cat >>conftest.$ac_ext <<_ACEOF
17224 /* end confdefs.h.  */
17225 #include <ac_nonexistent.h>
17226 _ACEOF
17227 if { (ac_try="$ac_cpp conftest.$ac_ext"
17228 case "(($ac_try" in
17229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230   *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17234   ac_status=$?
17235   grep -v '^ *+' conftest.er1 >conftest.err
17236   rm -f conftest.er1
17237   cat conftest.err >&5
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); } >/dev/null && {
17240          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17241          test ! -s conftest.err
17242        }; then
17243   # Broken: success on invalid input.
17244 continue
17245 else
17246   echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249   # Passes both tests.
17250 ac_preproc_ok=:
17251 break
17252 fi
17253
17254 rm -f conftest.err conftest.$ac_ext
17255
17256 done
17257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17258 rm -f conftest.err conftest.$ac_ext
17259 if $ac_preproc_ok; then
17260   break
17261 fi
17262
17263     done
17264     ac_cv_prog_CPP=$CPP
17265
17266 fi
17267   CPP=$ac_cv_prog_CPP
17268 else
17269   ac_cv_prog_CPP=$CPP
17270 fi
17271 { echo "$as_me:$LINENO: result: $CPP" >&5
17272 echo "${ECHO_T}$CPP" >&6; }
17273 ac_preproc_ok=false
17274 for ac_c_preproc_warn_flag in '' yes
17275 do
17276   # Use a header file that comes with gcc, so configuring glibc
17277   # with a fresh cross-compiler works.
17278   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17279   # <limits.h> exists even on freestanding compilers.
17280   # On the NeXT, cc -E runs the code through the compiler's parser,
17281   # not just through cpp. "Syntax error" is here to catch this case.
17282   cat >conftest.$ac_ext <<_ACEOF
17283 /* confdefs.h.  */
17284 _ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h.  */
17288 #ifdef __STDC__
17289 # include <limits.h>
17290 #else
17291 # include <assert.h>
17292 #endif
17293                      Syntax error
17294 _ACEOF
17295 if { (ac_try="$ac_cpp conftest.$ac_ext"
17296 case "(($ac_try" in
17297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298   *) ac_try_echo=$ac_try;;
17299 esac
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17302   ac_status=$?
17303   grep -v '^ *+' conftest.er1 >conftest.err
17304   rm -f conftest.er1
17305   cat conftest.err >&5
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); } >/dev/null && {
17308          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17309          test ! -s conftest.err
17310        }; then
17311   :
17312 else
17313   echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17315
17316   # Broken: fails on valid input.
17317 continue
17318 fi
17319
17320 rm -f conftest.err conftest.$ac_ext
17321
17322   # OK, works on sane cases.  Now check whether nonexistent headers
17323   # can be detected and how.
17324   cat >conftest.$ac_ext <<_ACEOF
17325 /* confdefs.h.  */
17326 _ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h.  */
17330 #include <ac_nonexistent.h>
17331 _ACEOF
17332 if { (ac_try="$ac_cpp conftest.$ac_ext"
17333 case "(($ac_try" in
17334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335   *) ac_try_echo=$ac_try;;
17336 esac
17337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17339   ac_status=$?
17340   grep -v '^ *+' conftest.er1 >conftest.err
17341   rm -f conftest.er1
17342   cat conftest.err >&5
17343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); } >/dev/null && {
17345          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17346          test ! -s conftest.err
17347        }; then
17348   # Broken: success on invalid input.
17349 continue
17350 else
17351   echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17353
17354   # Passes both tests.
17355 ac_preproc_ok=:
17356 break
17357 fi
17358
17359 rm -f conftest.err conftest.$ac_ext
17360
17361 done
17362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17363 rm -f conftest.err conftest.$ac_ext
17364 if $ac_preproc_ok; then
17365   :
17366 else
17367   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17368 See \`config.log' for more details." >&5
17369 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17370 See \`config.log' for more details." >&2;}
17371    { (exit 1); exit 1; }; }
17372 fi
17373
17374 ac_ext=c
17375 ac_cpp='$CPP $CPPFLAGS'
17376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17379
17380
17381 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17382 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17383 if test "${ac_cv_path_GREP+set}" = set; then
17384   echo $ECHO_N "(cached) $ECHO_C" >&6
17385 else
17386   # Extract the first word of "grep ggrep" to use in msg output
17387 if test -z "$GREP"; then
17388 set dummy grep ggrep; ac_prog_name=$2
17389 if test "${ac_cv_path_GREP+set}" = set; then
17390   echo $ECHO_N "(cached) $ECHO_C" >&6
17391 else
17392   ac_path_GREP_found=false
17393 # Loop through the user's path and test for each of PROGNAME-LIST
17394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17396 do
17397   IFS=$as_save_IFS
17398   test -z "$as_dir" && as_dir=.
17399   for ac_prog in grep ggrep; do
17400   for ac_exec_ext in '' $ac_executable_extensions; do
17401     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17402     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17403     # Check for GNU ac_path_GREP and select it if it is found.
17404   # Check for GNU $ac_path_GREP
17405 case `"$ac_path_GREP" --version 2>&1` in
17406 *GNU*)
17407   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17408 *)
17409   ac_count=0
17410   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17411   while :
17412   do
17413     cat "conftest.in" "conftest.in" >"conftest.tmp"
17414     mv "conftest.tmp" "conftest.in"
17415     cp "conftest.in" "conftest.nl"
17416     echo 'GREP' >> "conftest.nl"
17417     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17418     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17419     ac_count=`expr $ac_count + 1`
17420     if test $ac_count -gt ${ac_path_GREP_max-0}; then
17421       # Best one so far, save it but keep looking for a better one
17422       ac_cv_path_GREP="$ac_path_GREP"
17423       ac_path_GREP_max=$ac_count
17424     fi
17425     # 10*(2^10) chars as input seems more than enough
17426     test $ac_count -gt 10 && break
17427   done
17428   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17429 esac
17430
17431
17432     $ac_path_GREP_found && break 3
17433   done
17434 done
17435
17436 done
17437 IFS=$as_save_IFS
17438
17439
17440 fi
17441
17442 GREP="$ac_cv_path_GREP"
17443 if test -z "$GREP"; then
17444   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17445 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17446    { (exit 1); exit 1; }; }
17447 fi
17448
17449 else
17450   ac_cv_path_GREP=$GREP
17451 fi
17452
17453
17454 fi
17455 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
17456 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
17457  GREP="$ac_cv_path_GREP"
17458
17459
17460 { echo "$as_me:$LINENO: checking for egrep" >&5
17461 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
17462 if test "${ac_cv_path_EGREP+set}" = set; then
17463   echo $ECHO_N "(cached) $ECHO_C" >&6
17464 else
17465   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17466    then ac_cv_path_EGREP="$GREP -E"
17467    else
17468      # Extract the first word of "egrep" to use in msg output
17469 if test -z "$EGREP"; then
17470 set dummy egrep; ac_prog_name=$2
17471 if test "${ac_cv_path_EGREP+set}" = set; then
17472   echo $ECHO_N "(cached) $ECHO_C" >&6
17473 else
17474   ac_path_EGREP_found=false
17475 # Loop through the user's path and test for each of PROGNAME-LIST
17476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17478 do
17479   IFS=$as_save_IFS
17480   test -z "$as_dir" && as_dir=.
17481   for ac_prog in egrep; do
17482   for ac_exec_ext in '' $ac_executable_extensions; do
17483     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
17484     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
17485     # Check for GNU ac_path_EGREP and select it if it is found.
17486   # Check for GNU $ac_path_EGREP
17487 case `"$ac_path_EGREP" --version 2>&1` in
17488 *GNU*)
17489   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17490 *)
17491   ac_count=0
17492   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17493   while :
17494   do
17495     cat "conftest.in" "conftest.in" >"conftest.tmp"
17496     mv "conftest.tmp" "conftest.in"
17497     cp "conftest.in" "conftest.nl"
17498     echo 'EGREP' >> "conftest.nl"
17499     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17500     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17501     ac_count=`expr $ac_count + 1`
17502     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17503       # Best one so far, save it but keep looking for a better one
17504       ac_cv_path_EGREP="$ac_path_EGREP"
17505       ac_path_EGREP_max=$ac_count
17506     fi
17507     # 10*(2^10) chars as input seems more than enough
17508     test $ac_count -gt 10 && break
17509   done
17510   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17511 esac
17512
17513
17514     $ac_path_EGREP_found && break 3
17515   done
17516 done
17517
17518 done
17519 IFS=$as_save_IFS
17520
17521
17522 fi
17523
17524 EGREP="$ac_cv_path_EGREP"
17525 if test -z "$EGREP"; then
17526   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17527 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17528    { (exit 1); exit 1; }; }
17529 fi
17530
17531 else
17532   ac_cv_path_EGREP=$EGREP
17533 fi
17534
17535
17536    fi
17537 fi
17538 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
17539 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
17540  EGREP="$ac_cv_path_EGREP"
17541
17542
17543 if test $ac_cv_c_compiler_gnu = yes; then
17544     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
17545 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
17546 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
17547   echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549     ac_pattern="Autoconf.*'x'"
17550   cat >conftest.$ac_ext <<_ACEOF
17551 /* confdefs.h.  */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h.  */
17556 #include <sgtty.h>
17557 Autoconf TIOCGETP
17558 _ACEOF
17559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17560   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17561   ac_cv_prog_gcc_traditional=yes
17562 else
17563   ac_cv_prog_gcc_traditional=no
17564 fi
17565 rm -f conftest*
17566
17567
17568   if test $ac_cv_prog_gcc_traditional = no; then
17569     cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h.  */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h.  */
17575 #include <termio.h>
17576 Autoconf TCGETA
17577 _ACEOF
17578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17579   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17580   ac_cv_prog_gcc_traditional=yes
17581 fi
17582 rm -f conftest*
17583
17584   fi
17585 fi
17586 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
17587 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
17588   if test $ac_cv_prog_gcc_traditional = yes; then
17589     CC="$CC -traditional"
17590   fi
17591 fi
17592
17593
17594 CXXFLAGS=${CXXFLAGS:=}
17595 ac_ext=cpp
17596 ac_cpp='$CXXCPP $CPPFLAGS'
17597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17600 if test -z "$CXX"; then
17601   if test -n "$CCC"; then
17602     CXX=$CCC
17603   else
17604     if test -n "$ac_tool_prefix"; then
17605   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17606   do
17607     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17611 if test "${ac_cv_prog_CXX+set}" = set; then
17612   echo $ECHO_N "(cached) $ECHO_C" >&6
17613 else
17614   if test -n "$CXX"; then
17615   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17616 else
17617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17618 for as_dir in $PATH
17619 do
17620   IFS=$as_save_IFS
17621   test -z "$as_dir" && as_dir=.
17622   for ac_exec_ext in '' $ac_executable_extensions; do
17623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17624     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17626     break 2
17627   fi
17628 done
17629 done
17630 IFS=$as_save_IFS
17631
17632 fi
17633 fi
17634 CXX=$ac_cv_prog_CXX
17635 if test -n "$CXX"; then
17636   { echo "$as_me:$LINENO: result: $CXX" >&5
17637 echo "${ECHO_T}$CXX" >&6; }
17638 else
17639   { echo "$as_me:$LINENO: result: no" >&5
17640 echo "${ECHO_T}no" >&6; }
17641 fi
17642
17643
17644     test -n "$CXX" && break
17645   done
17646 fi
17647 if test -z "$CXX"; then
17648   ac_ct_CXX=$CXX
17649   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17650 do
17651   # Extract the first word of "$ac_prog", so it can be a program name with args.
17652 set dummy $ac_prog; ac_word=$2
17653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17655 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17656   echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658   if test -n "$ac_ct_CXX"; then
17659   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17660 else
17661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17662 for as_dir in $PATH
17663 do
17664   IFS=$as_save_IFS
17665   test -z "$as_dir" && as_dir=.
17666   for ac_exec_ext in '' $ac_executable_extensions; do
17667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17668     ac_cv_prog_ac_ct_CXX="$ac_prog"
17669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17670     break 2
17671   fi
17672 done
17673 done
17674 IFS=$as_save_IFS
17675
17676 fi
17677 fi
17678 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17679 if test -n "$ac_ct_CXX"; then
17680   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17681 echo "${ECHO_T}$ac_ct_CXX" >&6; }
17682 else
17683   { echo "$as_me:$LINENO: result: no" >&5
17684 echo "${ECHO_T}no" >&6; }
17685 fi
17686
17687
17688   test -n "$ac_ct_CXX" && break
17689 done
17690
17691   if test "x$ac_ct_CXX" = x; then
17692     CXX="g++"
17693   else
17694     case $cross_compiling:$ac_tool_warned in
17695 yes:)
17696 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17697 whose name does not start with the host triplet.  If you think this
17698 configuration is useful to you, please write to autoconf@gnu.org." >&5
17699 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17700 whose name does not start with the host triplet.  If you think this
17701 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17702 ac_tool_warned=yes ;;
17703 esac
17704     CXX=$ac_ct_CXX
17705   fi
17706 fi
17707
17708   fi
17709 fi
17710 # Provide some information about the compiler.
17711 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
17712 ac_compiler=`set X $ac_compile; echo $2`
17713 { (ac_try="$ac_compiler --version >&5"
17714 case "(($ac_try" in
17715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716   *) ac_try_echo=$ac_try;;
17717 esac
17718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17719   (eval "$ac_compiler --version >&5") 2>&5
17720   ac_status=$?
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); }
17723 { (ac_try="$ac_compiler -v >&5"
17724 case "(($ac_try" in
17725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726   *) ac_try_echo=$ac_try;;
17727 esac
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729   (eval "$ac_compiler -v >&5") 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }
17733 { (ac_try="$ac_compiler -V >&5"
17734 case "(($ac_try" in
17735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736   *) ac_try_echo=$ac_try;;
17737 esac
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739   (eval "$ac_compiler -V >&5") 2>&5
17740   ac_status=$?
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); }
17743
17744 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17745 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17746 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17747   echo $ECHO_N "(cached) $ECHO_C" >&6
17748 else
17749   cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h.  */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h.  */
17755
17756 int
17757 main ()
17758 {
17759 #ifndef __GNUC__
17760        choke me
17761 #endif
17762
17763   ;
17764   return 0;
17765 }
17766 _ACEOF
17767 rm -f conftest.$ac_objext
17768 if { (ac_try="$ac_compile"
17769 case "(($ac_try" in
17770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771   *) ac_try_echo=$ac_try;;
17772 esac
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774   (eval "$ac_compile") 2>conftest.er1
17775   ac_status=$?
17776   grep -v '^ *+' conftest.er1 >conftest.err
17777   rm -f conftest.er1
17778   cat conftest.err >&5
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); } && {
17781          test -z "$ac_cxx_werror_flag" ||
17782          test ! -s conftest.err
17783        } && test -s conftest.$ac_objext; then
17784   ac_compiler_gnu=yes
17785 else
17786   echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17788
17789         ac_compiler_gnu=no
17790 fi
17791
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17794
17795 fi
17796 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17797 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17798 GXX=`test $ac_compiler_gnu = yes && echo yes`
17799 ac_test_CXXFLAGS=${CXXFLAGS+set}
17800 ac_save_CXXFLAGS=$CXXFLAGS
17801 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17802 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17803 if test "${ac_cv_prog_cxx_g+set}" = set; then
17804   echo $ECHO_N "(cached) $ECHO_C" >&6
17805 else
17806   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17807    ac_cxx_werror_flag=yes
17808    ac_cv_prog_cxx_g=no
17809    CXXFLAGS="-g"
17810    cat >conftest.$ac_ext <<_ACEOF
17811 /* confdefs.h.  */
17812 _ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h.  */
17816
17817 int
17818 main ()
17819 {
17820
17821   ;
17822   return 0;
17823 }
17824 _ACEOF
17825 rm -f conftest.$ac_objext
17826 if { (ac_try="$ac_compile"
17827 case "(($ac_try" in
17828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829   *) ac_try_echo=$ac_try;;
17830 esac
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832   (eval "$ac_compile") 2>conftest.er1
17833   ac_status=$?
17834   grep -v '^ *+' conftest.er1 >conftest.err
17835   rm -f conftest.er1
17836   cat conftest.err >&5
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); } && {
17839          test -z "$ac_cxx_werror_flag" ||
17840          test ! -s conftest.err
17841        } && test -s conftest.$ac_objext; then
17842   ac_cv_prog_cxx_g=yes
17843 else
17844   echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847         CXXFLAGS=""
17848       cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h.  */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h.  */
17854
17855 int
17856 main ()
17857 {
17858
17859   ;
17860   return 0;
17861 }
17862 _ACEOF
17863 rm -f conftest.$ac_objext
17864 if { (ac_try="$ac_compile"
17865 case "(($ac_try" in
17866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867   *) ac_try_echo=$ac_try;;
17868 esac
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870   (eval "$ac_compile") 2>conftest.er1
17871   ac_status=$?
17872   grep -v '^ *+' conftest.er1 >conftest.err
17873   rm -f conftest.er1
17874   cat conftest.err >&5
17875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876   (exit $ac_status); } && {
17877          test -z "$ac_cxx_werror_flag" ||
17878          test ! -s conftest.err
17879        } && test -s conftest.$ac_objext; then
17880   :
17881 else
17882   echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17884
17885         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17886          CXXFLAGS="-g"
17887          cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h.  */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h.  */
17893
17894 int
17895 main ()
17896 {
17897
17898   ;
17899   return 0;
17900 }
17901 _ACEOF
17902 rm -f conftest.$ac_objext
17903 if { (ac_try="$ac_compile"
17904 case "(($ac_try" in
17905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906   *) ac_try_echo=$ac_try;;
17907 esac
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909   (eval "$ac_compile") 2>conftest.er1
17910   ac_status=$?
17911   grep -v '^ *+' conftest.er1 >conftest.err
17912   rm -f conftest.er1
17913   cat conftest.err >&5
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); } && {
17916          test -z "$ac_cxx_werror_flag" ||
17917          test ! -s conftest.err
17918        } && test -s conftest.$ac_objext; then
17919   ac_cv_prog_cxx_g=yes
17920 else
17921   echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17923
17924
17925 fi
17926
17927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17928 fi
17929
17930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17931 fi
17932
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17935 fi
17936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17937 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17938 if test "$ac_test_CXXFLAGS" = set; then
17939   CXXFLAGS=$ac_save_CXXFLAGS
17940 elif test $ac_cv_prog_cxx_g = yes; then
17941   if test "$GXX" = yes; then
17942     CXXFLAGS="-g -O2"
17943   else
17944     CXXFLAGS="-g"
17945   fi
17946 else
17947   if test "$GXX" = yes; then
17948     CXXFLAGS="-O2"
17949   else
17950     CXXFLAGS=
17951   fi
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
17964
17965
17966     ac_ext=cpp
17967 ac_cpp='$CXXCPP $CPPFLAGS'
17968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17971
17972     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17973 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
17974 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
17975   echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17977   cat >conftest.$ac_ext <<_ACEOF
17978 /* confdefs.h.  */
17979 _ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h.  */
17983
17984 int
17985 main ()
17986 {
17987
17988              #ifndef __INTEL_COMPILER
17989                 choke me
17990              #endif
17991
17992   ;
17993   return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003   (eval "$ac_compile") 2>conftest.er1
18004   ac_status=$?
18005   grep -v '^ *+' conftest.er1 >conftest.err
18006   rm -f conftest.er1
18007   cat conftest.err >&5
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); } && {
18010          test -z "$ac_cxx_werror_flag" ||
18011          test ! -s conftest.err
18012        } && test -s conftest.$ac_objext; then
18013   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
18014 else
18015   echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18017
18018         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
18019
18020 fi
18021
18022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023
18024
18025 fi
18026 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
18027 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
18028     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
18029         :; INTELCXX=yes
18030     else
18031         :;
18032     fi
18033     ac_ext=c
18034 ac_cpp='$CPP $CPPFLAGS'
18035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18038
18039
18040
18041
18042         if test "$INTELCXX" = "yes"; then
18043
18044
18045     ac_ext=cpp
18046 ac_cpp='$CXXCPP $CPPFLAGS'
18047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18050
18051     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
18052 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
18053 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
18054   echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056   cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h.  */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h.  */
18062
18063 int
18064 main ()
18065 {
18066
18067              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
18068                 choke me
18069              #endif
18070
18071   ;
18072   return 0;
18073 }
18074 _ACEOF
18075 rm -f conftest.$ac_objext
18076 if { (ac_try="$ac_compile"
18077 case "(($ac_try" in
18078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079   *) ac_try_echo=$ac_try;;
18080 esac
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082   (eval "$ac_compile") 2>conftest.er1
18083   ac_status=$?
18084   grep -v '^ *+' conftest.er1 >conftest.err
18085   rm -f conftest.er1
18086   cat conftest.err >&5
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); } && {
18089          test -z "$ac_cxx_werror_flag" ||
18090          test ! -s conftest.err
18091        } && test -s conftest.$ac_objext; then
18092   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
18093 else
18094   echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18096
18097         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
18098
18099 fi
18100
18101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18102
18103
18104 fi
18105 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
18106 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
18107     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
18108         :; INTELCXX8=yes
18109     else
18110         :;
18111     fi
18112     ac_ext=c
18113 ac_cpp='$CPP $CPPFLAGS'
18114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18117
18118
18119
18120
18121
18122     ac_ext=cpp
18123 ac_cpp='$CXXCPP $CPPFLAGS'
18124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18127
18128     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
18129 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
18130 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
18131   echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133   cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h.  */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h.  */
18139
18140 int
18141 main ()
18142 {
18143
18144              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
18145                 choke me
18146              #endif
18147
18148   ;
18149   return 0;
18150 }
18151 _ACEOF
18152 rm -f conftest.$ac_objext
18153 if { (ac_try="$ac_compile"
18154 case "(($ac_try" in
18155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156   *) ac_try_echo=$ac_try;;
18157 esac
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159   (eval "$ac_compile") 2>conftest.er1
18160   ac_status=$?
18161   grep -v '^ *+' conftest.er1 >conftest.err
18162   rm -f conftest.er1
18163   cat conftest.err >&5
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); } && {
18166          test -z "$ac_cxx_werror_flag" ||
18167          test ! -s conftest.err
18168        } && test -s conftest.$ac_objext; then
18169   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
18170 else
18171   echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18173
18174         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
18175
18176 fi
18177
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179
18180
18181 fi
18182 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
18183 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
18184     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
18185         :; INTELCXX10=yes
18186     else
18187         :;
18188     fi
18189     ac_ext=c
18190 ac_cpp='$CPP $CPPFLAGS'
18191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18194
18195
18196
18197     fi
18198
18199         if test "x$GCXX" != "xyes"; then
18200         if test "xCXX" = "xC"; then
18201             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18202 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18203 if test "${bakefile_cv_c_exto+set}" = set; then
18204   echo $ECHO_N "(cached) $ECHO_C" >&6
18205 else
18206   cat >conftest.$ac_ext <<_ACEOF
18207 /* confdefs.h.  */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h.  */
18212
18213 int
18214 main ()
18215 {
18216
18217   ;
18218   return 0;
18219 }
18220 _ACEOF
18221 rm -f conftest.$ac_objext conftest.$ac_ext.o
18222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18223   (eval $ac_compile) 2>&5
18224   ac_status=$?
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); }; then
18227   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18228     case $ac_file in
18229         conftest.$ac_ext.o)
18230             bakefile_cv_c_exto="-ext o"
18231             ;;
18232         *)
18233             ;;
18234     esac
18235 done
18236 else
18237   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18238 See \`config.log' for more details." >&5
18239 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18240 See \`config.log' for more details." >&2;}
18241    { (exit 1); exit 1; }; }
18242
18243 fi
18244
18245 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18246
18247 fi
18248 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18249 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18250 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18251     if test "c" = "c"; then
18252         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18253     fi
18254     if test "c" = "cxx"; then
18255         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18256     fi
18257 fi
18258
18259             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18260                 unset ac_cv_prog_cc_g
18261                 ac_test_CFLAGS=${CFLAGS+set}
18262 ac_save_CFLAGS=$CFLAGS
18263 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18264 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18265 if test "${ac_cv_prog_cc_g+set}" = set; then
18266   echo $ECHO_N "(cached) $ECHO_C" >&6
18267 else
18268   ac_save_c_werror_flag=$ac_c_werror_flag
18269    ac_c_werror_flag=yes
18270    ac_cv_prog_cc_g=no
18271    CFLAGS="-g"
18272    cat >conftest.$ac_ext <<_ACEOF
18273 /* confdefs.h.  */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h.  */
18278
18279 int
18280 main ()
18281 {
18282
18283   ;
18284   return 0;
18285 }
18286 _ACEOF
18287 rm -f conftest.$ac_objext
18288 if { (ac_try="$ac_compile"
18289 case "(($ac_try" in
18290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291   *) ac_try_echo=$ac_try;;
18292 esac
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294   (eval "$ac_compile") 2>conftest.er1
18295   ac_status=$?
18296   grep -v '^ *+' conftest.er1 >conftest.err
18297   rm -f conftest.er1
18298   cat conftest.err >&5
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); } && {
18301          test -z "$ac_c_werror_flag" ||
18302          test ! -s conftest.err
18303        } && test -s conftest.$ac_objext; then
18304   ac_cv_prog_cc_g=yes
18305 else
18306   echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18308
18309         CFLAGS=""
18310       cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h.  */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h.  */
18316
18317 int
18318 main ()
18319 {
18320
18321   ;
18322   return 0;
18323 }
18324 _ACEOF
18325 rm -f conftest.$ac_objext
18326 if { (ac_try="$ac_compile"
18327 case "(($ac_try" in
18328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329   *) ac_try_echo=$ac_try;;
18330 esac
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332   (eval "$ac_compile") 2>conftest.er1
18333   ac_status=$?
18334   grep -v '^ *+' conftest.er1 >conftest.err
18335   rm -f conftest.er1
18336   cat conftest.err >&5
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); } && {
18339          test -z "$ac_c_werror_flag" ||
18340          test ! -s conftest.err
18341        } && test -s conftest.$ac_objext; then
18342   :
18343 else
18344   echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18346
18347         ac_c_werror_flag=$ac_save_c_werror_flag
18348          CFLAGS="-g"
18349          cat >conftest.$ac_ext <<_ACEOF
18350 /* confdefs.h.  */
18351 _ACEOF
18352 cat confdefs.h >>conftest.$ac_ext
18353 cat >>conftest.$ac_ext <<_ACEOF
18354 /* end confdefs.h.  */
18355
18356 int
18357 main ()
18358 {
18359
18360   ;
18361   return 0;
18362 }
18363 _ACEOF
18364 rm -f conftest.$ac_objext
18365 if { (ac_try="$ac_compile"
18366 case "(($ac_try" in
18367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368   *) ac_try_echo=$ac_try;;
18369 esac
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371   (eval "$ac_compile") 2>conftest.er1
18372   ac_status=$?
18373   grep -v '^ *+' conftest.er1 >conftest.err
18374   rm -f conftest.er1
18375   cat conftest.err >&5
18376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377   (exit $ac_status); } && {
18378          test -z "$ac_c_werror_flag" ||
18379          test ! -s conftest.err
18380        } && test -s conftest.$ac_objext; then
18381   ac_cv_prog_cc_g=yes
18382 else
18383   echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386
18387 fi
18388
18389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18390 fi
18391
18392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18393 fi
18394
18395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18396    ac_c_werror_flag=$ac_save_c_werror_flag
18397 fi
18398 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18399 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18400 if test "$ac_test_CFLAGS" = set; then
18401   CFLAGS=$ac_save_CFLAGS
18402 elif test $ac_cv_prog_cc_g = yes; then
18403   if test "$GCC" = yes; then
18404     CFLAGS="-g -O2"
18405   else
18406     CFLAGS="-g"
18407   fi
18408 else
18409   if test "$GCC" = yes; then
18410     CFLAGS="-O2"
18411   else
18412     CFLAGS=
18413   fi
18414 fi
18415             fi
18416         fi
18417
18418                         case `uname -s` in
18419             AIX*)
18420
18421
18422     ac_ext=cpp
18423 ac_cpp='$CXXCPP $CPPFLAGS'
18424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18427
18428     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18429 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18430 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18431   echo $ECHO_N "(cached) $ECHO_C" >&6
18432 else
18433   cat >conftest.$ac_ext <<_ACEOF
18434 /* confdefs.h.  */
18435 _ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h.  */
18439
18440 int
18441 main ()
18442 {
18443
18444              #ifndef __xlC__
18445                 choke me
18446              #endif
18447
18448   ;
18449   return 0;
18450 }
18451 _ACEOF
18452 rm -f conftest.$ac_objext
18453 if { (ac_try="$ac_compile"
18454 case "(($ac_try" in
18455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456   *) ac_try_echo=$ac_try;;
18457 esac
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459   (eval "$ac_compile") 2>conftest.er1
18460   ac_status=$?
18461   grep -v '^ *+' conftest.er1 >conftest.err
18462   rm -f conftest.er1
18463   cat conftest.err >&5
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); } && {
18466          test -z "$ac_cxx_werror_flag" ||
18467          test ! -s conftest.err
18468        } && test -s conftest.$ac_objext; then
18469   bakefile_cv_cxx_compiler___xlC__=yes
18470 else
18471   echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18473
18474         bakefile_cv_cxx_compiler___xlC__=no
18475
18476 fi
18477
18478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479
18480
18481 fi
18482 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18483 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18484     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18485         :; XLCXX=yes
18486     else
18487         :;
18488     fi
18489     ac_ext=c
18490 ac_cpp='$CPP $CPPFLAGS'
18491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18494
18495
18496
18497                 ;;
18498
18499             Darwin)
18500
18501
18502     ac_ext=cpp
18503 ac_cpp='$CXXCPP $CPPFLAGS'
18504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18507
18508     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18509 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18510 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18511   echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513   cat >conftest.$ac_ext <<_ACEOF
18514 /* confdefs.h.  */
18515 _ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h.  */
18519
18520 int
18521 main ()
18522 {
18523
18524              #ifndef __MWERKS__
18525                 choke me
18526              #endif
18527
18528   ;
18529   return 0;
18530 }
18531 _ACEOF
18532 rm -f conftest.$ac_objext
18533 if { (ac_try="$ac_compile"
18534 case "(($ac_try" in
18535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536   *) ac_try_echo=$ac_try;;
18537 esac
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539   (eval "$ac_compile") 2>conftest.er1
18540   ac_status=$?
18541   grep -v '^ *+' conftest.er1 >conftest.err
18542   rm -f conftest.er1
18543   cat conftest.err >&5
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); } && {
18546          test -z "$ac_cxx_werror_flag" ||
18547          test ! -s conftest.err
18548        } && test -s conftest.$ac_objext; then
18549   bakefile_cv_cxx_compiler___MWERKS__=yes
18550 else
18551   echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18553
18554         bakefile_cv_cxx_compiler___MWERKS__=no
18555
18556 fi
18557
18558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18559
18560
18561 fi
18562 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18563 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18564     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18565         :; MWCXX=yes
18566     else
18567         :;
18568     fi
18569     ac_ext=c
18570 ac_cpp='$CPP $CPPFLAGS'
18571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18574
18575
18576
18577                 if test "$MWCXX" != "yes"; then
18578
18579
18580     ac_ext=cpp
18581 ac_cpp='$CXXCPP $CPPFLAGS'
18582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18585
18586     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18587 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18588 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18589   echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591   cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597
18598 int
18599 main ()
18600 {
18601
18602              #ifndef __xlC__
18603                 choke me
18604              #endif
18605
18606   ;
18607   return 0;
18608 }
18609 _ACEOF
18610 rm -f conftest.$ac_objext
18611 if { (ac_try="$ac_compile"
18612 case "(($ac_try" in
18613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614   *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617   (eval "$ac_compile") 2>conftest.er1
18618   ac_status=$?
18619   grep -v '^ *+' conftest.er1 >conftest.err
18620   rm -f conftest.er1
18621   cat conftest.err >&5
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); } && {
18624          test -z "$ac_cxx_werror_flag" ||
18625          test ! -s conftest.err
18626        } && test -s conftest.$ac_objext; then
18627   bakefile_cv_cxx_compiler___xlC__=yes
18628 else
18629   echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18631
18632         bakefile_cv_cxx_compiler___xlC__=no
18633
18634 fi
18635
18636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18637
18638
18639 fi
18640 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18641 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18642     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18643         :; XLCXX=yes
18644     else
18645         :;
18646     fi
18647     ac_ext=c
18648 ac_cpp='$CPP $CPPFLAGS'
18649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18652
18653
18654
18655                 fi
18656                 ;;
18657
18658             IRIX*)
18659
18660
18661     ac_ext=cpp
18662 ac_cpp='$CXXCPP $CPPFLAGS'
18663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18666
18667     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
18668 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
18669 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
18670   echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672   cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h.  */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h.  */
18678
18679 int
18680 main ()
18681 {
18682
18683              #ifndef _SGI_COMPILER_VERSION
18684                 choke me
18685              #endif
18686
18687   ;
18688   return 0;
18689 }
18690 _ACEOF
18691 rm -f conftest.$ac_objext
18692 if { (ac_try="$ac_compile"
18693 case "(($ac_try" in
18694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695   *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698   (eval "$ac_compile") 2>conftest.er1
18699   ac_status=$?
18700   grep -v '^ *+' conftest.er1 >conftest.err
18701   rm -f conftest.er1
18702   cat conftest.err >&5
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); } && {
18705          test -z "$ac_cxx_werror_flag" ||
18706          test ! -s conftest.err
18707        } && test -s conftest.$ac_objext; then
18708   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18709 else
18710   echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18712
18713         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18714
18715 fi
18716
18717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18718
18719
18720 fi
18721 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18722 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18723     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18724         :; SGICXX=yes
18725     else
18726         :;
18727     fi
18728     ac_ext=c
18729 ac_cpp='$CPP $CPPFLAGS'
18730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18733
18734
18735
18736                 ;;
18737
18738             Linux*)
18739                                                 if test "$INTELCXX" != "yes"; then
18740
18741
18742     ac_ext=cpp
18743 ac_cpp='$CXXCPP $CPPFLAGS'
18744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18747
18748     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18749 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18750 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18751   echo $ECHO_N "(cached) $ECHO_C" >&6
18752 else
18753   cat >conftest.$ac_ext <<_ACEOF
18754 /* confdefs.h.  */
18755 _ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h.  */
18759
18760 int
18761 main ()
18762 {
18763
18764              #ifndef __SUNPRO_CC
18765                 choke me
18766              #endif
18767
18768   ;
18769   return 0;
18770 }
18771 _ACEOF
18772 rm -f conftest.$ac_objext
18773 if { (ac_try="$ac_compile"
18774 case "(($ac_try" in
18775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776   *) ac_try_echo=$ac_try;;
18777 esac
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779   (eval "$ac_compile") 2>conftest.er1
18780   ac_status=$?
18781   grep -v '^ *+' conftest.er1 >conftest.err
18782   rm -f conftest.er1
18783   cat conftest.err >&5
18784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785   (exit $ac_status); } && {
18786          test -z "$ac_cxx_werror_flag" ||
18787          test ! -s conftest.err
18788        } && test -s conftest.$ac_objext; then
18789   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18790 else
18791   echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18793
18794         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18795
18796 fi
18797
18798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18799
18800
18801 fi
18802 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18803 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18804     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18805         :; SUNCXX=yes
18806     else
18807         :;
18808     fi
18809     ac_ext=c
18810 ac_cpp='$CPP $CPPFLAGS'
18811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18814
18815
18816
18817                 fi
18818                 ;;
18819
18820             HP-UX*)
18821
18822
18823     ac_ext=cpp
18824 ac_cpp='$CXXCPP $CPPFLAGS'
18825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18828
18829     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18830 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18831 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18832   echo $ECHO_N "(cached) $ECHO_C" >&6
18833 else
18834   cat >conftest.$ac_ext <<_ACEOF
18835 /* confdefs.h.  */
18836 _ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h.  */
18840
18841 int
18842 main ()
18843 {
18844
18845              #ifndef __HP_aCC
18846                 choke me
18847              #endif
18848
18849   ;
18850   return 0;
18851 }
18852 _ACEOF
18853 rm -f conftest.$ac_objext
18854 if { (ac_try="$ac_compile"
18855 case "(($ac_try" in
18856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857   *) ac_try_echo=$ac_try;;
18858 esac
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860   (eval "$ac_compile") 2>conftest.er1
18861   ac_status=$?
18862   grep -v '^ *+' conftest.er1 >conftest.err
18863   rm -f conftest.er1
18864   cat conftest.err >&5
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); } && {
18867          test -z "$ac_cxx_werror_flag" ||
18868          test ! -s conftest.err
18869        } && test -s conftest.$ac_objext; then
18870   bakefile_cv_cxx_compiler___HP_aCC=yes
18871 else
18872   echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18874
18875         bakefile_cv_cxx_compiler___HP_aCC=no
18876
18877 fi
18878
18879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18880
18881
18882 fi
18883 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18884 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18885     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18886         :; HPCXX=yes
18887     else
18888         :;
18889     fi
18890     ac_ext=c
18891 ac_cpp='$CPP $CPPFLAGS'
18892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18895
18896
18897
18898                 ;;
18899
18900             OSF1)
18901
18902
18903     ac_ext=cpp
18904 ac_cpp='$CXXCPP $CPPFLAGS'
18905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18908
18909     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18910 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18911 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18912   echo $ECHO_N "(cached) $ECHO_C" >&6
18913 else
18914   cat >conftest.$ac_ext <<_ACEOF
18915 /* confdefs.h.  */
18916 _ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h.  */
18920
18921 int
18922 main ()
18923 {
18924
18925              #ifndef __DECCXX
18926                 choke me
18927              #endif
18928
18929   ;
18930   return 0;
18931 }
18932 _ACEOF
18933 rm -f conftest.$ac_objext
18934 if { (ac_try="$ac_compile"
18935 case "(($ac_try" in
18936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937   *) ac_try_echo=$ac_try;;
18938 esac
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940   (eval "$ac_compile") 2>conftest.er1
18941   ac_status=$?
18942   grep -v '^ *+' conftest.er1 >conftest.err
18943   rm -f conftest.er1
18944   cat conftest.err >&5
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } && {
18947          test -z "$ac_cxx_werror_flag" ||
18948          test ! -s conftest.err
18949        } && test -s conftest.$ac_objext; then
18950   bakefile_cv_cxx_compiler___DECCXX=yes
18951 else
18952   echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18954
18955         bakefile_cv_cxx_compiler___DECCXX=no
18956
18957 fi
18958
18959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18960
18961
18962 fi
18963 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18964 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
18965     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
18966         :; COMPAQCXX=yes
18967     else
18968         :;
18969     fi
18970     ac_ext=c
18971 ac_cpp='$CPP $CPPFLAGS'
18972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18975
18976
18977
18978                 ;;
18979
18980             SunOS)
18981
18982
18983     ac_ext=cpp
18984 ac_cpp='$CXXCPP $CPPFLAGS'
18985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18988
18989     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18990 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18991 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18992   echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994   cat >conftest.$ac_ext <<_ACEOF
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000
19001 int
19002 main ()
19003 {
19004
19005              #ifndef __SUNPRO_CC
19006                 choke me
19007              #endif
19008
19009   ;
19010   return 0;
19011 }
19012 _ACEOF
19013 rm -f conftest.$ac_objext
19014 if { (ac_try="$ac_compile"
19015 case "(($ac_try" in
19016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017   *) ac_try_echo=$ac_try;;
19018 esac
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020   (eval "$ac_compile") 2>conftest.er1
19021   ac_status=$?
19022   grep -v '^ *+' conftest.er1 >conftest.err
19023   rm -f conftest.er1
19024   cat conftest.err >&5
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); } && {
19027          test -z "$ac_cxx_werror_flag" ||
19028          test ! -s conftest.err
19029        } && test -s conftest.$ac_objext; then
19030   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19031 else
19032   echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19034
19035         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19036
19037 fi
19038
19039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19040
19041
19042 fi
19043 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19044 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19045     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19046         :; SUNCXX=yes
19047     else
19048         :;
19049     fi
19050     ac_ext=c
19051 ac_cpp='$CPP $CPPFLAGS'
19052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19055
19056
19057
19058                 ;;
19059         esac
19060     fi
19061
19062
19063
19064 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
19065     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
19066 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
19067    { (exit 1); exit 1; }; }
19068 fi
19069
19070 if test "x$SUNCXX" != xyes; then
19071     if test -n "$ac_tool_prefix"; then
19072   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19073 set dummy ${ac_tool_prefix}ar; ac_word=$2
19074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19076 if test "${ac_cv_prog_AR+set}" = set; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079   if test -n "$AR"; then
19080   ac_cv_prog_AR="$AR" # Let the user override the test.
19081 else
19082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19083 for as_dir in $PATH
19084 do
19085   IFS=$as_save_IFS
19086   test -z "$as_dir" && as_dir=.
19087   for ac_exec_ext in '' $ac_executable_extensions; do
19088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19089     ac_cv_prog_AR="${ac_tool_prefix}ar"
19090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19091     break 2
19092   fi
19093 done
19094 done
19095 IFS=$as_save_IFS
19096
19097 fi
19098 fi
19099 AR=$ac_cv_prog_AR
19100 if test -n "$AR"; then
19101   { echo "$as_me:$LINENO: result: $AR" >&5
19102 echo "${ECHO_T}$AR" >&6; }
19103 else
19104   { echo "$as_me:$LINENO: result: no" >&5
19105 echo "${ECHO_T}no" >&6; }
19106 fi
19107
19108
19109 fi
19110 if test -z "$ac_cv_prog_AR"; then
19111   ac_ct_AR=$AR
19112   # Extract the first word of "ar", so it can be a program name with args.
19113 set dummy ar; ac_word=$2
19114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19116 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19117   echo $ECHO_N "(cached) $ECHO_C" >&6
19118 else
19119   if test -n "$ac_ct_AR"; then
19120   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19121 else
19122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19123 for as_dir in $PATH
19124 do
19125   IFS=$as_save_IFS
19126   test -z "$as_dir" && as_dir=.
19127   for ac_exec_ext in '' $ac_executable_extensions; do
19128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19129     ac_cv_prog_ac_ct_AR="ar"
19130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19131     break 2
19132   fi
19133 done
19134 done
19135 IFS=$as_save_IFS
19136
19137 fi
19138 fi
19139 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19140 if test -n "$ac_ct_AR"; then
19141   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19142 echo "${ECHO_T}$ac_ct_AR" >&6; }
19143 else
19144   { echo "$as_me:$LINENO: result: no" >&5
19145 echo "${ECHO_T}no" >&6; }
19146 fi
19147
19148   if test "x$ac_ct_AR" = x; then
19149     AR=""
19150   else
19151     case $cross_compiling:$ac_tool_warned in
19152 yes:)
19153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19154 whose name does not start with the host triplet.  If you think this
19155 configuration is useful to you, please write to autoconf@gnu.org." >&5
19156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19157 whose name does not start with the host triplet.  If you think this
19158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19159 ac_tool_warned=yes ;;
19160 esac
19161     AR=$ac_ct_AR
19162   fi
19163 else
19164   AR="$ac_cv_prog_AR"
19165 fi
19166
19167     if test "x$AR" = "x" ; then
19168         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
19169 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
19170    { (exit 1); exit 1; }; }
19171     fi
19172 fi
19173
19174
19175 if test "$wxUSE_MAC" = 1; then
19176
19177 retest_macosx_linking=no
19178
19179 OSX_ARCH_OPTS=""
19180 if test "x$wxUSE_MAC_ARCH" != xno; then
19181     OSX_ARCH_OPTS="-arch $wxUSE_MAC_ARCH"
19182 fi
19183
19184     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
19185                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
19186             # Implicitly turn on the new --with-macosx-sdk using the default
19187             # SDK which provides the behaviour this option has always had.
19188             if test "x$wxUSE_MACOSX_SDK" = "x"; then
19189                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
19190 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
19191                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
19192 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
19193                 wxUSE_MACOSX_SDK=yes
19194             fi
19195         else
19196             # Complain to user if he specified an argument to --enable-universal_binary
19197             # and also 1) specified --with-macosx-sdk using the default (yes) or
19198             # 2) specified --with-macosx-sdk using a path or 3) specified
19199             # --without-macosx-sdk (no).
19200             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
19201                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19202 See \`config.log' for more details." >&5
19203 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19204 See \`config.log' for more details." >&2;}
19205    { (exit 1); exit 1; }; }
19206             else
19207                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
19208                 # special-case the empty string because the below test simply
19209                 # converts "no" to the empty string anyway.
19210                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
19211                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
19212 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
19213             fi
19214         fi
19215                 OSX_ARCH_OPTS="-arch ppc -arch i386"
19216         if test "$wxUSE_OSX_COCOA" = 1; then
19217             OSX_ARCH_OPTS="$OSX_ARCH_OPTS -arch x86_64"
19218         fi
19219         { echo "$as_me:$LINENO: checking for universal binary architectures" >&5
19220 echo $ECHO_N "checking for universal binary architectures... $ECHO_C" >&6; }
19221         { echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
19222 echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
19223
19224                                                                                                                 retest_macosx_linking=yes
19225
19226                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
19227 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
19228         bk_use_pch=no
19229     fi
19230
19231 CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
19232 CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
19233 OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
19234 OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
19235 LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
19236
19237 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
19238     wxUSE_MACOSX_SDK=
19239 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
19240     # TODO: Search for most recent SDK and use it.
19241     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
19242 fi
19243
19244
19245 if test "x$wxUSE_MACOSX_SDK" != "x"; then
19246     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
19247 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
19248     if ! test -d "$wxUSE_MACOSX_SDK"; then
19249         { { echo "$as_me:$LINENO: error: not found
19250 See \`config.log' for more details." >&5
19251 echo "$as_me: error: not found
19252 See \`config.log' for more details." >&2;}
19253    { (exit 1); exit 1; }; }
19254     else
19255         { echo "$as_me:$LINENO: result: exists" >&5
19256 echo "${ECHO_T}exists" >&6; }
19257     fi
19258         MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
19259     retest_macosx_linking=yes
19260             fi
19261
19262 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
19263     wxUSE_MACOSX_VERSION_MIN=
19264 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
19265     if test "x$wxUSE_MACOSX_SDK" != "x"; then
19266         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
19267 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
19268
19269         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/'`
19270
19271         # If that failed, try again with the new key
19272         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
19273
19274             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/'`
19275
19276         fi
19277
19278         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
19279             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
19280             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
19281 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
19282         else
19283             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
19284 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
19285             wxUSE_MACOSX_VERSION_MIN=
19286         fi
19287     else
19288         wxUSE_MACOSX_VERSION_MIN=
19289     fi
19290 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
19291     for ac_prog in sw_vers
19292 do
19293   # Extract the first word of "$ac_prog", so it can be a program name with args.
19294 set dummy $ac_prog; ac_word=$2
19295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19297 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
19298   echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300   if test -n "$OSX_SW_VERS"; then
19301   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
19302 else
19303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19304 for as_dir in $PATH
19305 do
19306   IFS=$as_save_IFS
19307   test -z "$as_dir" && as_dir=.
19308   for ac_exec_ext in '' $ac_executable_extensions; do
19309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19310     ac_cv_prog_OSX_SW_VERS="$ac_prog"
19311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19312     break 2
19313   fi
19314 done
19315 done
19316 IFS=$as_save_IFS
19317
19318 fi
19319 fi
19320 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
19321 if test -n "$OSX_SW_VERS"; then
19322   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
19323 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
19324 else
19325   { echo "$as_me:$LINENO: result: no" >&5
19326 echo "${ECHO_T}no" >&6; }
19327 fi
19328
19329
19330   test -n "$OSX_SW_VERS" && break
19331 done
19332
19333     if test "$OSX_SW_VERS" != ""; then
19334         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
19335     else
19336                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
19337 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
19338         OSX_VERSION="10.4"
19339     fi
19340
19341     case "$OSX_VERSION" in
19342         10.4* )
19343             wxUSE_MACOSX_VERSION_MIN=10.4
19344             ;;
19345
19346         * )
19347             if test "$wxUSE_OSX_CARBON" = 1; then
19348                 # otherwise configure stops on leopard for universal_binary
19349                 wxUSE_MACOSX_VERSION_MIN=10.4
19350             else
19351                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
19352                 wxUSE_MACOSX_VERSION_MIN=10.5
19353             fi
19354             ;;
19355     esac
19356 fi
19357
19358 NEEDS_GCC40="no"
19359 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
19360     NEEDS_GCC40="yes"
19361 fi
19362
19363 if test "$wxUSE_OSX_CARBON" = 1; then
19364     NEEDS_GCC40="yes"
19365 fi
19366
19367 if test "x$NEEDS_GCC40" == "xyes"; then
19368     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
19369     # and wants 10.4 compatible code, then 'downgrade' to 4.0
19370     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
19371     if test "x$CC" = "xgcc"; then
19372         CCVERSION=`$CC --version | grep 4.[2-9].`
19373         if test "x$CCVERSION" != "x"; then
19374             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
19375             CC="gcc-4.0"
19376         fi
19377     fi
19378
19379     if test "x$CXX" = "xg++"; then
19380         CCVERSION=`$CXX --version | grep 4.[2-9].`
19381         if test "x$CCVERSION" != "x"; then
19382             CXX="g++-4.0"
19383         fi
19384     fi
19385 fi
19386
19387 if test "x$MACOSX_SDK_OPTS" != "x"; then
19388     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
19389     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
19390     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
19391 fi
19392
19393 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
19394     if test "$wxUSE_OSX_IPHONE" = 1; then
19395         MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN"
19396     else
19397         MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
19398     fi
19399     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
19400     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
19401     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
19402     retest_macosx_linking=yes
19403 fi
19404
19405 if test "x$retest_macosx_linking" = "xyes"; then
19406     ac_ext=c
19407 ac_cpp='$CPP $CPPFLAGS'
19408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411
19412     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
19413 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
19414     cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h.  */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h.  */
19420
19421 int
19422 main ()
19423 {
19424
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430 if { (ac_try="$ac_link"
19431 case "(($ac_try" in
19432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433   *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436   (eval "$ac_link") 2>conftest.er1
19437   ac_status=$?
19438   grep -v '^ *+' conftest.er1 >conftest.err
19439   rm -f conftest.er1
19440   cat conftest.err >&5
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } && {
19443          test -z "$ac_c_werror_flag" ||
19444          test ! -s conftest.err
19445        } && test -s conftest$ac_exeext &&
19446        $as_test_x conftest$ac_exeext; then
19447   { echo "$as_me:$LINENO: result: yes" >&5
19448 echo "${ECHO_T}yes" >&6; }
19449 else
19450   echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19452
19453         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19454 See \`config.log' for more details." >&5
19455 echo "$as_me: error: no.  Try a different SDK
19456 See \`config.log' for more details." >&2;}
19457    { (exit 1); exit 1; }; }; exit 1
19458 fi
19459
19460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19461       conftest$ac_exeext conftest.$ac_ext
19462     ac_ext=c
19463 ac_cpp='$CPP $CPPFLAGS'
19464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19467
19468
19469     ac_ext=cpp
19470 ac_cpp='$CXXCPP $CPPFLAGS'
19471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19474
19475     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
19476 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
19477     cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h.  */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h.  */
19483
19484 int
19485 main ()
19486 {
19487
19488   ;
19489   return 0;
19490 }
19491 _ACEOF
19492 rm -f conftest.$ac_objext conftest$ac_exeext
19493 if { (ac_try="$ac_link"
19494 case "(($ac_try" in
19495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496   *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499   (eval "$ac_link") 2>conftest.er1
19500   ac_status=$?
19501   grep -v '^ *+' conftest.er1 >conftest.err
19502   rm -f conftest.er1
19503   cat conftest.err >&5
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); } && {
19506          test -z "$ac_cxx_werror_flag" ||
19507          test ! -s conftest.err
19508        } && test -s conftest$ac_exeext &&
19509        $as_test_x conftest$ac_exeext; then
19510   { echo "$as_me:$LINENO: result: yes" >&5
19511 echo "${ECHO_T}yes" >&6; }
19512 else
19513   echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19515
19516         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19517 See \`config.log' for more details." >&5
19518 echo "$as_me: error: no.  Try a different SDK
19519 See \`config.log' for more details." >&2;}
19520    { (exit 1); exit 1; }; }; exit 1
19521 fi
19522
19523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19524       conftest$ac_exeext conftest.$ac_ext
19525     ac_ext=c
19526 ac_cpp='$CPP $CPPFLAGS'
19527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19530
19531 fi
19532
19533 fi
19534 case "${host}" in
19535
19536                 *-*-darwin* )
19537         INSTALL_PROGRAM="cp -fp"
19538         INSTALL_DATA="cp -fp"
19539         ;;
19540     *)
19541         ;;
19542 esac
19543
19544
19545 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
19546     CXXFLAGS="-qunique $CXXFLAGS"
19547 fi
19548
19549 case "${host}" in
19550   powerpc-*-darwin* )
19551     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
19552 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
19553     cat >conftest.$ac_ext <<_ACEOF
19554 /* confdefs.h.  */
19555 _ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h.  */
19559
19560 int
19561 main ()
19562 {
19563 #ifndef __POWERPC__
19564         choke me for lack of PowerPC
19565 #endif
19566
19567   ;
19568   return 0;
19569 }
19570 _ACEOF
19571 rm -f conftest.$ac_objext
19572 if { (ac_try="$ac_compile"
19573 case "(($ac_try" in
19574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575   *) ac_try_echo=$ac_try;;
19576 esac
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578   (eval "$ac_compile") 2>conftest.er1
19579   ac_status=$?
19580   grep -v '^ *+' conftest.er1 >conftest.err
19581   rm -f conftest.er1
19582   cat conftest.err >&5
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); } && {
19585          test -z "$ac_c_werror_flag" ||
19586          test ! -s conftest.err
19587        } && test -s conftest.$ac_objext; then
19588   { echo "$as_me:$LINENO: result: yes" >&5
19589 echo "${ECHO_T}yes" >&6; }
19590 else
19591   echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594         { echo "$as_me:$LINENO: result: no" >&5
19595 echo "${ECHO_T}no" >&6; }
19596         cat >>confdefs.h <<\_ACEOF
19597 #define __POWERPC__ 1
19598 _ACEOF
19599
19600
19601 fi
19602
19603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19604   ;;
19605 esac
19606
19607 case "${host}" in
19608   *-*-darwin* )
19609     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
19610 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
19611     cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h.  */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h.  */
19617 #include <CoreFoundation/CFBase.h>
19618
19619 int
19620 main ()
19621 {
19622
19623   ;
19624   return 0;
19625 }
19626 _ACEOF
19627 rm -f conftest.$ac_objext
19628 if { (ac_try="$ac_compile"
19629 case "(($ac_try" in
19630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631   *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634   (eval "$ac_compile") 2>conftest.er1
19635   ac_status=$?
19636   grep -v '^ *+' conftest.er1 >conftest.err
19637   rm -f conftest.er1
19638   cat conftest.err >&5
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); } && {
19641          test -z "$ac_c_werror_flag" ||
19642          test ! -s conftest.err
19643        } && test -s conftest.$ac_objext; then
19644   { echo "$as_me:$LINENO: result: yes" >&5
19645 echo "${ECHO_T}yes" >&6; }
19646 else
19647   echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19649
19650         { echo "$as_me:$LINENO: result: no" >&5
19651 echo "${ECHO_T}no" >&6; }
19652         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
19653 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
19654         cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h.  */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h.  */
19660 #define __CF_USE_FRAMEWORK_INCLUDES__
19661 #include <CoreFoundation/CFBase.h>
19662
19663 int
19664 main ()
19665 {
19666
19667   ;
19668   return 0;
19669 }
19670 _ACEOF
19671 rm -f conftest.$ac_objext
19672 if { (ac_try="$ac_compile"
19673 case "(($ac_try" in
19674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675   *) ac_try_echo=$ac_try;;
19676 esac
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678   (eval "$ac_compile") 2>conftest.er1
19679   ac_status=$?
19680   grep -v '^ *+' conftest.er1 >conftest.err
19681   rm -f conftest.er1
19682   cat conftest.err >&5
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); } && {
19685          test -z "$ac_c_werror_flag" ||
19686          test ! -s conftest.err
19687        } && test -s conftest.$ac_objext; then
19688   { echo "$as_me:$LINENO: result: yes" >&5
19689 echo "${ECHO_T}yes" >&6; }
19690                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
19691 else
19692   echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19694
19695         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
19696 See \`config.log' for more details." >&5
19697 echo "$as_me: error: no.  CoreFoundation not available.
19698 See \`config.log' for more details." >&2;}
19699    { (exit 1); exit 1; }; }
19700
19701 fi
19702
19703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19704
19705
19706 fi
19707
19708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19709   ;;
19710 esac
19711
19712 wants_win32=0
19713 doesnt_want_win32=0
19714 case "${host}" in
19715   *-*-cygwin*)
19716       if test "$wxUSE_MSW" = 1 ; then
19717         wants_win32=1
19718       else
19719                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
19720 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
19721 if test "${wx_cv_nocygwin+set}" = set; then
19722   echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724
19725                 cat >conftest.$ac_ext <<_ACEOF
19726 /* confdefs.h.  */
19727 _ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h.  */
19731
19732 int
19733 main ()
19734 {
19735
19736                         #ifdef __MINGW32__
19737                             choke me
19738                         #endif
19739
19740   ;
19741   return 0;
19742 }
19743 _ACEOF
19744 rm -f conftest.$ac_objext
19745 if { (ac_try="$ac_compile"
19746 case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751   (eval "$ac_compile") 2>conftest.er1
19752   ac_status=$?
19753   grep -v '^ *+' conftest.er1 >conftest.err
19754   rm -f conftest.er1
19755   cat conftest.err >&5
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); } && {
19758          test -z "$ac_c_werror_flag" ||
19759          test ! -s conftest.err
19760        } && test -s conftest.$ac_objext; then
19761   wx_cv_nocygwin=no
19762 else
19763   echo "$as_me: failed program was:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19765
19766         wx_cv_nocygwin=yes
19767
19768 fi
19769
19770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19771
19772
19773 fi
19774 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19775 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19776
19777         if test "$wx_cv_nocygwin" = "yes"; then
19778             wants_win32=1
19779         else
19780             doesnt_want_win32=1
19781         fi
19782       fi
19783       if test "$wants_win32" = 1 ; then
19784         BAKEFILE_FORCE_PLATFORM=win32
19785       fi
19786   ;;
19787   *-*-mingw*)
19788       wants_win32=1
19789   ;;
19790 esac
19791
19792 if test "$wxUSE_WINE" = "yes"; then
19793     wants_win32=1
19794     LDFLAGS_GUI="-mwindows"
19795 fi
19796
19797 if test "$wants_win32" = 1 ; then
19798     USE_UNIX=0
19799     USE_WIN32=1
19800     cat >>confdefs.h <<\_ACEOF
19801 #define __WIN32__ 1
19802 _ACEOF
19803
19804     cat >>confdefs.h <<\_ACEOF
19805 #define __WIN95__ 1
19806 _ACEOF
19807
19808     cat >>confdefs.h <<\_ACEOF
19809 #define __WINDOWS__ 1
19810 _ACEOF
19811
19812     cat >>confdefs.h <<\_ACEOF
19813 #define __GNUWIN32__ 1
19814 _ACEOF
19815
19816     cat >>confdefs.h <<\_ACEOF
19817 #define STRICT 1
19818 _ACEOF
19819
19820 fi
19821 if test "$doesnt_want_win32" = 1 ; then
19822     USE_UNIX=1
19823     USE_WIN32=0
19824 fi
19825
19826 if test "$USE_UNIX" = 1 ; then
19827     wxUSE_UNIX=yes
19828     cat >>confdefs.h <<\_ACEOF
19829 #define __UNIX__ 1
19830 _ACEOF
19831
19832 fi
19833
19834 case "${host}" in
19835   *-pc-os2_emx | *-pc-os2-emx )
19836                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19837                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19838 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19839 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19840   echo $ECHO_N "(cached) $ECHO_C" >&6
19841 else
19842   ac_check_lib_save_LIBS=$LIBS
19843 LIBS="-lcExt  $LIBS"
19844 cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h.  */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h.  */
19850
19851 /* Override any GCC internal prototype to avoid an error.
19852    Use char because int might match the return type of a GCC
19853    builtin and then its argument prototype would still apply.  */
19854 #ifdef __cplusplus
19855 extern "C"
19856 #endif
19857 char drand48 ();
19858 int
19859 main ()
19860 {
19861 return drand48 ();
19862   ;
19863   return 0;
19864 }
19865 _ACEOF
19866 rm -f conftest.$ac_objext conftest$ac_exeext
19867 if { (ac_try="$ac_link"
19868 case "(($ac_try" in
19869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870   *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873   (eval "$ac_link") 2>conftest.er1
19874   ac_status=$?
19875   grep -v '^ *+' conftest.er1 >conftest.err
19876   rm -f conftest.er1
19877   cat conftest.err >&5
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); } && {
19880          test -z "$ac_c_werror_flag" ||
19881          test ! -s conftest.err
19882        } && test -s conftest$ac_exeext &&
19883        $as_test_x conftest$ac_exeext; then
19884   ac_cv_lib_cExt_drand48=yes
19885 else
19886   echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889         ac_cv_lib_cExt_drand48=no
19890 fi
19891
19892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19893       conftest$ac_exeext conftest.$ac_ext
19894 LIBS=$ac_check_lib_save_LIBS
19895 fi
19896 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19897 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19898 if test $ac_cv_lib_cExt_drand48 = yes; then
19899   LIBS="$LIBS -lcExt"
19900 fi
19901
19902       else
19903                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19904       fi
19905                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19906 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19907 if test "${wx_cv_gccversion+set}" = set; then
19908   echo $ECHO_N "(cached) $ECHO_C" >&6
19909 else
19910
19911           if test "$cross_compiling" = yes; then
19912                 wx_cv_gccversion="EMX2"
19913
19914 else
19915   cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h.  */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h.  */
19921
19922                   #include <stdio.h>
19923
19924                   int main()
19925                   {
19926                       FILE *f=fopen("conftestval", "w");
19927                       if (!f) exit(1);
19928                       fprintf(f,
19929                   #if (__GNUC__ < 3)
19930                               "EMX2"
19931                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19932                               "EMX3"
19933                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19934                               "Innotek5"
19935                   #else
19936                               "Innotek6"
19937                   #endif
19938                       );
19939                       exit(0);
19940                   }
19941
19942 _ACEOF
19943 rm -f conftest$ac_exeext
19944 if { (ac_try="$ac_link"
19945 case "(($ac_try" in
19946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947   *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950   (eval "$ac_link") 2>&5
19951   ac_status=$?
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19954   { (case "(($ac_try" in
19955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19956   *) ac_try_echo=$ac_try;;
19957 esac
19958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19959   (eval "$ac_try") 2>&5
19960   ac_status=$?
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); }; }; then
19963   wx_cv_gccversion=`cat conftestval`
19964 else
19965   echo "$as_me: program exited with status $ac_status" >&5
19966 echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19968
19969 ( exit $ac_status )
19970 wx_cv_gccversion="EMX2"
19971 fi
19972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19973 fi
19974
19975
19976
19977 fi
19978 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19979 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
19980       if test "$wx_cv_gccversion" = "EMX2"; then
19981           LIBS="$LIBS -lstdcpp"
19982           LDFLAGS="$LDFLAGS -Zsysv-signals"
19983       else
19984           if test "$wx_cv_gccversion" = "EMX3"; then
19985               LIBS="$LIBS -lstdcxx -lgcc"
19986               LDFLAGS="$LDFLAGS -Zsysv-signals"
19987           else
19988               LIBS="$LIBS -lstdc++"
19989           fi
19990       fi
19991       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
19992         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19993 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
19994         wxUSE_OMF=yes
19995         enable_omf=yes
19996       fi
19997         ;;
19998   *)
19999
20000       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
20001 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
20002 if test "${ac_cv_string_strcasecmp+set}" = set; then
20003   echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005
20006           cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h.  */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h.  */
20012
20013               #include <string.h>
20014
20015 int
20016 main ()
20017 {
20018
20019                   strcasecmp("foo", "bar");
20020
20021   ;
20022   return 0;
20023 }
20024 _ACEOF
20025 rm -f conftest.$ac_objext conftest$ac_exeext
20026 if { (ac_try="$ac_link"
20027 case "(($ac_try" in
20028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029   *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032   (eval "$ac_link") 2>conftest.er1
20033   ac_status=$?
20034   grep -v '^ *+' conftest.er1 >conftest.err
20035   rm -f conftest.er1
20036   cat conftest.err >&5
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); } && {
20039          test -z "$ac_c_werror_flag" ||
20040          test ! -s conftest.err
20041        } && test -s conftest$ac_exeext &&
20042        $as_test_x conftest$ac_exeext; then
20043   ac_cv_string_strcasecmp=yes
20044 else
20045   echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20047
20048         ac_cv_string_strcasecmp=no
20049
20050 fi
20051
20052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20053       conftest$ac_exeext conftest.$ac_ext
20054
20055 fi
20056 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
20057 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
20058
20059       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
20060           cat >>confdefs.h <<\_ACEOF
20061 #define HAVE_STRCASECMP_IN_STRING_H 1
20062 _ACEOF
20063
20064       else
20065           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
20066 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
20067 if test "${ac_cv_strings_strcasecmp+set}" = set; then
20068   echo $ECHO_N "(cached) $ECHO_C" >&6
20069 else
20070
20071               cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h.  */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h.  */
20077
20078                   #include <strings.h>
20079
20080 int
20081 main ()
20082 {
20083
20084                       strcasecmp("foo", "bar");
20085
20086   ;
20087   return 0;
20088 }
20089 _ACEOF
20090 rm -f conftest.$ac_objext conftest$ac_exeext
20091 if { (ac_try="$ac_link"
20092 case "(($ac_try" in
20093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094   *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097   (eval "$ac_link") 2>conftest.er1
20098   ac_status=$?
20099   grep -v '^ *+' conftest.er1 >conftest.err
20100   rm -f conftest.er1
20101   cat conftest.err >&5
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); } && {
20104          test -z "$ac_c_werror_flag" ||
20105          test ! -s conftest.err
20106        } && test -s conftest$ac_exeext &&
20107        $as_test_x conftest$ac_exeext; then
20108   ac_cv_strings_strcasecmp=yes
20109 else
20110   echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20112
20113         ac_cv_strings_strcasecmp=no
20114
20115 fi
20116
20117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20118       conftest$ac_exeext conftest.$ac_ext
20119
20120 fi
20121 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
20122 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
20123
20124           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
20125               cat >>confdefs.h <<\_ACEOF
20126 #define HAVE_STRCASECMP_IN_STRINGS_H 1
20127 _ACEOF
20128
20129           else
20130               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
20131 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
20132    { (exit 1); exit 1; }; }
20133           fi
20134       fi
20135
20136         ;;
20137 esac
20138
20139
20140 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20142 if test "${ac_cv_header_stdc+set}" = set; then
20143   echo $ECHO_N "(cached) $ECHO_C" >&6
20144 else
20145   cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h.  */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h.  */
20151 #include <stdlib.h>
20152 #include <stdarg.h>
20153 #include <string.h>
20154 #include <float.h>
20155
20156 int
20157 main ()
20158 {
20159
20160   ;
20161   return 0;
20162 }
20163 _ACEOF
20164 rm -f conftest.$ac_objext
20165 if { (ac_try="$ac_compile"
20166 case "(($ac_try" in
20167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168   *) ac_try_echo=$ac_try;;
20169 esac
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171   (eval "$ac_compile") 2>conftest.er1
20172   ac_status=$?
20173   grep -v '^ *+' conftest.er1 >conftest.err
20174   rm -f conftest.er1
20175   cat conftest.err >&5
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); } && {
20178          test -z "$ac_c_werror_flag" ||
20179          test ! -s conftest.err
20180        } && test -s conftest.$ac_objext; then
20181   ac_cv_header_stdc=yes
20182 else
20183   echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20185
20186         ac_cv_header_stdc=no
20187 fi
20188
20189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20190
20191 if test $ac_cv_header_stdc = yes; then
20192   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20193   cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h.  */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h.  */
20199 #include <string.h>
20200
20201 _ACEOF
20202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20203   $EGREP "memchr" >/dev/null 2>&1; then
20204   :
20205 else
20206   ac_cv_header_stdc=no
20207 fi
20208 rm -f conftest*
20209
20210 fi
20211
20212 if test $ac_cv_header_stdc = yes; then
20213   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 #include <stdlib.h>
20221
20222 _ACEOF
20223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20224   $EGREP "free" >/dev/null 2>&1; then
20225   :
20226 else
20227   ac_cv_header_stdc=no
20228 fi
20229 rm -f conftest*
20230
20231 fi
20232
20233 if test $ac_cv_header_stdc = yes; then
20234   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20235   if test "$cross_compiling" = yes; then
20236   :
20237 else
20238   cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h.  */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h.  */
20244 #include <ctype.h>
20245 #include <stdlib.h>
20246 #if ((' ' & 0x0FF) == 0x020)
20247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20249 #else
20250 # define ISLOWER(c) \
20251                    (('a' <= (c) && (c) <= 'i') \
20252                      || ('j' <= (c) && (c) <= 'r') \
20253                      || ('s' <= (c) && (c) <= 'z'))
20254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20255 #endif
20256
20257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20258 int
20259 main ()
20260 {
20261   int i;
20262   for (i = 0; i < 256; i++)
20263     if (XOR (islower (i), ISLOWER (i))
20264         || toupper (i) != TOUPPER (i))
20265       return 2;
20266   return 0;
20267 }
20268 _ACEOF
20269 rm -f conftest$ac_exeext
20270 if { (ac_try="$ac_link"
20271 case "(($ac_try" in
20272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273   *) ac_try_echo=$ac_try;;
20274 esac
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276   (eval "$ac_link") 2>&5
20277   ac_status=$?
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20280   { (case "(($ac_try" in
20281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282   *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285   (eval "$ac_try") 2>&5
20286   ac_status=$?
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); }; }; then
20289   :
20290 else
20291   echo "$as_me: program exited with status $ac_status" >&5
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20294
20295 ( exit $ac_status )
20296 ac_cv_header_stdc=no
20297 fi
20298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20299 fi
20300
20301
20302 fi
20303 fi
20304 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20305 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20306 if test $ac_cv_header_stdc = yes; then
20307
20308 cat >>confdefs.h <<\_ACEOF
20309 #define STDC_HEADERS 1
20310 _ACEOF
20311
20312 fi
20313
20314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
20325                   inttypes.h stdint.h unistd.h
20326 do
20327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20331   echo $ECHO_N "(cached) $ECHO_C" >&6
20332 else
20333   cat >conftest.$ac_ext <<_ACEOF
20334 /* confdefs.h.  */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h.  */
20339 $ac_includes_default
20340
20341 #include <$ac_header>
20342 _ACEOF
20343 rm -f conftest.$ac_objext
20344 if { (ac_try="$ac_compile"
20345 case "(($ac_try" in
20346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347   *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350   (eval "$ac_compile") 2>conftest.er1
20351   ac_status=$?
20352   grep -v '^ *+' conftest.er1 >conftest.err
20353   rm -f conftest.er1
20354   cat conftest.err >&5
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); } && {
20357          test -z "$ac_c_werror_flag" ||
20358          test ! -s conftest.err
20359        } && test -s conftest.$ac_objext; then
20360   eval "$as_ac_Header=yes"
20361 else
20362   echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20364
20365         eval "$as_ac_Header=no"
20366 fi
20367
20368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20369 fi
20370 ac_res=`eval echo '${'$as_ac_Header'}'`
20371                { echo "$as_me:$LINENO: result: $ac_res" >&5
20372 echo "${ECHO_T}$ac_res" >&6; }
20373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20374   cat >>confdefs.h <<_ACEOF
20375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20376 _ACEOF
20377
20378 fi
20379
20380 done
20381
20382
20383
20384
20385 for ac_header in langinfo.h wchar.h
20386 do
20387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20391   echo $ECHO_N "(cached) $ECHO_C" >&6
20392 else
20393   cat >conftest.$ac_ext <<_ACEOF
20394 /* confdefs.h.  */
20395 _ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h.  */
20399 $ac_includes_default
20400
20401 #include <$ac_header>
20402 _ACEOF
20403 rm -f conftest.$ac_objext
20404 if { (ac_try="$ac_compile"
20405 case "(($ac_try" in
20406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407   *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410   (eval "$ac_compile") 2>conftest.er1
20411   ac_status=$?
20412   grep -v '^ *+' conftest.er1 >conftest.err
20413   rm -f conftest.er1
20414   cat conftest.err >&5
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); } && {
20417          test -z "$ac_c_werror_flag" ||
20418          test ! -s conftest.err
20419        } && test -s conftest.$ac_objext; then
20420   eval "$as_ac_Header=yes"
20421 else
20422   echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20424
20425         eval "$as_ac_Header=no"
20426 fi
20427
20428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20429 fi
20430 ac_res=`eval echo '${'$as_ac_Header'}'`
20431                { echo "$as_me:$LINENO: result: $ac_res" >&5
20432 echo "${ECHO_T}$ac_res" >&6; }
20433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20434   cat >>confdefs.h <<_ACEOF
20435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20436 _ACEOF
20437
20438 fi
20439
20440 done
20441
20442
20443 if test "$ac_cv_header_wchar_h" != "yes"; then
20444
20445 for ac_header in wcstr.h
20446 do
20447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20451   echo $ECHO_N "(cached) $ECHO_C" >&6
20452 else
20453   cat >conftest.$ac_ext <<_ACEOF
20454 /* confdefs.h.  */
20455 _ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h.  */
20459 $ac_includes_default
20460
20461 #include <$ac_header>
20462 _ACEOF
20463 rm -f conftest.$ac_objext
20464 if { (ac_try="$ac_compile"
20465 case "(($ac_try" in
20466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467   *) ac_try_echo=$ac_try;;
20468 esac
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470   (eval "$ac_compile") 2>conftest.er1
20471   ac_status=$?
20472   grep -v '^ *+' conftest.er1 >conftest.err
20473   rm -f conftest.er1
20474   cat conftest.err >&5
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); } && {
20477          test -z "$ac_c_werror_flag" ||
20478          test ! -s conftest.err
20479        } && test -s conftest.$ac_objext; then
20480   eval "$as_ac_Header=yes"
20481 else
20482   echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20484
20485         eval "$as_ac_Header=no"
20486 fi
20487
20488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20489 fi
20490 ac_res=`eval echo '${'$as_ac_Header'}'`
20491                { echo "$as_me:$LINENO: result: $ac_res" >&5
20492 echo "${ECHO_T}$ac_res" >&6; }
20493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20494   cat >>confdefs.h <<_ACEOF
20495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20496 _ACEOF
20497
20498 fi
20499
20500 done
20501
20502 fi
20503
20504 case "${host}" in
20505   *-pc-os2_emx | *-pc-os2-emx )
20506                   if test $ac_cv_header_langinfo_h = "yes" \
20507                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20508                      -o "$wx_cv_gccversion" = "EMX3" \
20509                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20510           LIBS="$LIBS -lintl"
20511       fi
20512   ;;
20513 esac
20514
20515 if test "$USE_UNIX" = 1 ; then
20516
20517 for ac_header in sys/select.h
20518 do
20519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20523   echo $ECHO_N "(cached) $ECHO_C" >&6
20524 else
20525   cat >conftest.$ac_ext <<_ACEOF
20526 /* confdefs.h.  */
20527 _ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h.  */
20531 $ac_includes_default
20532
20533 #include <$ac_header>
20534 _ACEOF
20535 rm -f conftest.$ac_objext
20536 if { (ac_try="$ac_compile"
20537 case "(($ac_try" in
20538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539   *) ac_try_echo=$ac_try;;
20540 esac
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542   (eval "$ac_compile") 2>conftest.er1
20543   ac_status=$?
20544   grep -v '^ *+' conftest.er1 >conftest.err
20545   rm -f conftest.er1
20546   cat conftest.err >&5
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } && {
20549          test -z "$ac_c_werror_flag" ||
20550          test ! -s conftest.err
20551        } && test -s conftest.$ac_objext; then
20552   eval "$as_ac_Header=yes"
20553 else
20554   echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20556
20557         eval "$as_ac_Header=no"
20558 fi
20559
20560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20561 fi
20562 ac_res=`eval echo '${'$as_ac_Header'}'`
20563                { echo "$as_me:$LINENO: result: $ac_res" >&5
20564 echo "${ECHO_T}$ac_res" >&6; }
20565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20566   cat >>confdefs.h <<_ACEOF
20567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20568 _ACEOF
20569
20570 fi
20571
20572 done
20573
20574 fi
20575
20576
20577 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20578 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20579 if test "${ac_cv_c_const+set}" = set; then
20580   echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582   cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h.  */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h.  */
20588
20589 int
20590 main ()
20591 {
20592 /* FIXME: Include the comments suggested by Paul. */
20593 #ifndef __cplusplus
20594   /* Ultrix mips cc rejects this.  */
20595   typedef int charset[2];
20596   const charset cs;
20597   /* SunOS 4.1.1 cc rejects this.  */
20598   char const *const *pcpcc;
20599   char **ppc;
20600   /* NEC SVR4.0.2 mips cc rejects this.  */
20601   struct point {int x, y;};
20602   static struct point const zero = {0,0};
20603   /* AIX XL C 1.02.0.0 rejects this.
20604      It does not let you subtract one const X* pointer from another in
20605      an arm of an if-expression whose if-part is not a constant
20606      expression */
20607   const char *g = "string";
20608   pcpcc = &g + (g ? g-g : 0);
20609   /* HPUX 7.0 cc rejects these. */
20610   ++pcpcc;
20611   ppc = (char**) pcpcc;
20612   pcpcc = (char const *const *) ppc;
20613   { /* SCO 3.2v4 cc rejects this.  */
20614     char *t;
20615     char const *s = 0 ? (char *) 0 : (char const *) 0;
20616
20617     *t++ = 0;
20618     if (s) return 0;
20619   }
20620   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20621     int x[] = {25, 17};
20622     const int *foo = &x[0];
20623     ++foo;
20624   }
20625   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20626     typedef const int *iptr;
20627     iptr p = 0;
20628     ++p;
20629   }
20630   { /* AIX XL C 1.02.0.0 rejects this saying
20631        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20632     struct s { int j; const int *ap[3]; };
20633     struct s *b; b->j = 5;
20634   }
20635   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20636     const int foo = 10;
20637     if (!foo) return 0;
20638   }
20639   return !cs[0] && !zero.x;
20640 #endif
20641
20642   ;
20643   return 0;
20644 }
20645 _ACEOF
20646 rm -f conftest.$ac_objext
20647 if { (ac_try="$ac_compile"
20648 case "(($ac_try" in
20649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650   *) ac_try_echo=$ac_try;;
20651 esac
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653   (eval "$ac_compile") 2>conftest.er1
20654   ac_status=$?
20655   grep -v '^ *+' conftest.er1 >conftest.err
20656   rm -f conftest.er1
20657   cat conftest.err >&5
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); } && {
20660          test -z "$ac_c_werror_flag" ||
20661          test ! -s conftest.err
20662        } && test -s conftest.$ac_objext; then
20663   ac_cv_c_const=yes
20664 else
20665   echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20667
20668         ac_cv_c_const=no
20669 fi
20670
20671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20672 fi
20673 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20674 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20675 if test $ac_cv_c_const = no; then
20676
20677 cat >>confdefs.h <<\_ACEOF
20678 #define const
20679 _ACEOF
20680
20681 fi
20682
20683 { echo "$as_me:$LINENO: checking for inline" >&5
20684 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20685 if test "${ac_cv_c_inline+set}" = set; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
20688   ac_cv_c_inline=no
20689 for ac_kw in inline __inline__ __inline; do
20690   cat >conftest.$ac_ext <<_ACEOF
20691 /* confdefs.h.  */
20692 _ACEOF
20693 cat confdefs.h >>conftest.$ac_ext
20694 cat >>conftest.$ac_ext <<_ACEOF
20695 /* end confdefs.h.  */
20696 #ifndef __cplusplus
20697 typedef int foo_t;
20698 static $ac_kw foo_t static_foo () {return 0; }
20699 $ac_kw foo_t foo () {return 0; }
20700 #endif
20701
20702 _ACEOF
20703 rm -f conftest.$ac_objext
20704 if { (ac_try="$ac_compile"
20705 case "(($ac_try" in
20706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707   *) ac_try_echo=$ac_try;;
20708 esac
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710   (eval "$ac_compile") 2>conftest.er1
20711   ac_status=$?
20712   grep -v '^ *+' conftest.er1 >conftest.err
20713   rm -f conftest.er1
20714   cat conftest.err >&5
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); } && {
20717          test -z "$ac_c_werror_flag" ||
20718          test ! -s conftest.err
20719        } && test -s conftest.$ac_objext; then
20720   ac_cv_c_inline=$ac_kw
20721 else
20722   echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725
20726 fi
20727
20728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20729   test "$ac_cv_c_inline" != no && break
20730 done
20731
20732 fi
20733 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20734 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20735
20736
20737 case $ac_cv_c_inline in
20738   inline | yes) ;;
20739   *)
20740     case $ac_cv_c_inline in
20741       no) ac_val=;;
20742       *) ac_val=$ac_cv_c_inline;;
20743     esac
20744     cat >>confdefs.h <<_ACEOF
20745 #ifndef __cplusplus
20746 #define inline $ac_val
20747 #endif
20748 _ACEOF
20749     ;;
20750 esac
20751
20752
20753 { echo "$as_me:$LINENO: checking for short" >&5
20754 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20755 if test "${ac_cv_type_short+set}" = set; then
20756   echo $ECHO_N "(cached) $ECHO_C" >&6
20757 else
20758   cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764 $ac_includes_default
20765 typedef short ac__type_new_;
20766 int
20767 main ()
20768 {
20769 if ((ac__type_new_ *) 0)
20770   return 0;
20771 if (sizeof (ac__type_new_))
20772   return 0;
20773   ;
20774   return 0;
20775 }
20776 _ACEOF
20777 rm -f conftest.$ac_objext
20778 if { (ac_try="$ac_compile"
20779 case "(($ac_try" in
20780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781   *) ac_try_echo=$ac_try;;
20782 esac
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784   (eval "$ac_compile") 2>conftest.er1
20785   ac_status=$?
20786   grep -v '^ *+' conftest.er1 >conftest.err
20787   rm -f conftest.er1
20788   cat conftest.err >&5
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); } && {
20791          test -z "$ac_c_werror_flag" ||
20792          test ! -s conftest.err
20793        } && test -s conftest.$ac_objext; then
20794   ac_cv_type_short=yes
20795 else
20796   echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799         ac_cv_type_short=no
20800 fi
20801
20802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20803 fi
20804 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20805 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20806
20807 # The cast to long int works around a bug in the HP C Compiler
20808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20810 # This bug is HP SR number 8606223364.
20811 { echo "$as_me:$LINENO: checking size of short" >&5
20812 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20813 if test "${ac_cv_sizeof_short+set}" = set; then
20814   echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816   if test "$cross_compiling" = yes; then
20817   # Depending upon the size, compute the lo and hi bounds.
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824 $ac_includes_default
20825    typedef short ac__type_sizeof_;
20826 int
20827 main ()
20828 {
20829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20830 test_array [0] = 0
20831
20832   ;
20833   return 0;
20834 }
20835 _ACEOF
20836 rm -f conftest.$ac_objext
20837 if { (ac_try="$ac_compile"
20838 case "(($ac_try" in
20839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840   *) ac_try_echo=$ac_try;;
20841 esac
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843   (eval "$ac_compile") 2>conftest.er1
20844   ac_status=$?
20845   grep -v '^ *+' conftest.er1 >conftest.err
20846   rm -f conftest.er1
20847   cat conftest.err >&5
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); } && {
20850          test -z "$ac_c_werror_flag" ||
20851          test ! -s conftest.err
20852        } && test -s conftest.$ac_objext; then
20853   ac_lo=0 ac_mid=0
20854   while :; do
20855     cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h.  */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h.  */
20861 $ac_includes_default
20862    typedef short ac__type_sizeof_;
20863 int
20864 main ()
20865 {
20866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20867 test_array [0] = 0
20868
20869   ;
20870   return 0;
20871 }
20872 _ACEOF
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_compile") 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } && {
20887          test -z "$ac_c_werror_flag" ||
20888          test ! -s conftest.err
20889        } && test -s conftest.$ac_objext; then
20890   ac_hi=$ac_mid; break
20891 else
20892   echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895         ac_lo=`expr $ac_mid + 1`
20896                         if test $ac_lo -le $ac_mid; then
20897                           ac_lo= ac_hi=
20898                           break
20899                         fi
20900                         ac_mid=`expr 2 '*' $ac_mid + 1`
20901 fi
20902
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904   done
20905 else
20906   echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909         cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h.  */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h.  */
20915 $ac_includes_default
20916    typedef short ac__type_sizeof_;
20917 int
20918 main ()
20919 {
20920 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20921 test_array [0] = 0
20922
20923   ;
20924   return 0;
20925 }
20926 _ACEOF
20927 rm -f conftest.$ac_objext
20928 if { (ac_try="$ac_compile"
20929 case "(($ac_try" in
20930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931   *) ac_try_echo=$ac_try;;
20932 esac
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934   (eval "$ac_compile") 2>conftest.er1
20935   ac_status=$?
20936   grep -v '^ *+' conftest.er1 >conftest.err
20937   rm -f conftest.er1
20938   cat conftest.err >&5
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); } && {
20941          test -z "$ac_c_werror_flag" ||
20942          test ! -s conftest.err
20943        } && test -s conftest.$ac_objext; then
20944   ac_hi=-1 ac_mid=-1
20945   while :; do
20946     cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952 $ac_includes_default
20953    typedef short ac__type_sizeof_;
20954 int
20955 main ()
20956 {
20957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20958 test_array [0] = 0
20959
20960   ;
20961   return 0;
20962 }
20963 _ACEOF
20964 rm -f conftest.$ac_objext
20965 if { (ac_try="$ac_compile"
20966 case "(($ac_try" in
20967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968   *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971   (eval "$ac_compile") 2>conftest.er1
20972   ac_status=$?
20973   grep -v '^ *+' conftest.er1 >conftest.err
20974   rm -f conftest.er1
20975   cat conftest.err >&5
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); } && {
20978          test -z "$ac_c_werror_flag" ||
20979          test ! -s conftest.err
20980        } && test -s conftest.$ac_objext; then
20981   ac_lo=$ac_mid; break
20982 else
20983   echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20985
20986         ac_hi=`expr '(' $ac_mid ')' - 1`
20987                         if test $ac_mid -le $ac_hi; then
20988                           ac_lo= ac_hi=
20989                           break
20990                         fi
20991                         ac_mid=`expr 2 '*' $ac_mid`
20992 fi
20993
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995   done
20996 else
20997   echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000         ac_lo= ac_hi=
21001 fi
21002
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 fi
21005
21006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007 # Binary search between lo and hi bounds.
21008 while test "x$ac_lo" != "x$ac_hi"; do
21009   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21010   cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h.  */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h.  */
21016 $ac_includes_default
21017    typedef short ac__type_sizeof_;
21018 int
21019 main ()
21020 {
21021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21022 test_array [0] = 0
21023
21024   ;
21025   return 0;
21026 }
21027 _ACEOF
21028 rm -f conftest.$ac_objext
21029 if { (ac_try="$ac_compile"
21030 case "(($ac_try" in
21031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032   *) ac_try_echo=$ac_try;;
21033 esac
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035   (eval "$ac_compile") 2>conftest.er1
21036   ac_status=$?
21037   grep -v '^ *+' conftest.er1 >conftest.err
21038   rm -f conftest.er1
21039   cat conftest.err >&5
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); } && {
21042          test -z "$ac_c_werror_flag" ||
21043          test ! -s conftest.err
21044        } && test -s conftest.$ac_objext; then
21045   ac_hi=$ac_mid
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050         ac_lo=`expr '(' $ac_mid ')' + 1`
21051 fi
21052
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054 done
21055 case $ac_lo in
21056 ?*) ac_cv_sizeof_short=$ac_lo;;
21057 '') if test "$ac_cv_type_short" = yes; then
21058      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21059 See \`config.log' for more details." >&5
21060 echo "$as_me: error: cannot compute sizeof (short)
21061 See \`config.log' for more details." >&2;}
21062    { (exit 77); exit 77; }; }
21063    else
21064      ac_cv_sizeof_short=0
21065    fi ;;
21066 esac
21067 else
21068   cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074 $ac_includes_default
21075    typedef short ac__type_sizeof_;
21076 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21077 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21078 #include <stdio.h>
21079 #include <stdlib.h>
21080 int
21081 main ()
21082 {
21083
21084   FILE *f = fopen ("conftest.val", "w");
21085   if (! f)
21086     return 1;
21087   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21088     {
21089       long int i = longval ();
21090       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21091         return 1;
21092       fprintf (f, "%ld\n", i);
21093     }
21094   else
21095     {
21096       unsigned long int i = ulongval ();
21097       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21098         return 1;
21099       fprintf (f, "%lu\n", i);
21100     }
21101   return ferror (f) || fclose (f) != 0;
21102
21103   ;
21104   return 0;
21105 }
21106 _ACEOF
21107 rm -f conftest$ac_exeext
21108 if { (ac_try="$ac_link"
21109 case "(($ac_try" in
21110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111   *) ac_try_echo=$ac_try;;
21112 esac
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114   (eval "$ac_link") 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21118   { (case "(($ac_try" in
21119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120   *) ac_try_echo=$ac_try;;
21121 esac
21122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123   (eval "$ac_try") 2>&5
21124   ac_status=$?
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); }; }; then
21127   ac_cv_sizeof_short=`cat conftest.val`
21128 else
21129   echo "$as_me: program exited with status $ac_status" >&5
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21132
21133 ( exit $ac_status )
21134 if test "$ac_cv_type_short" = yes; then
21135      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21136 See \`config.log' for more details." >&5
21137 echo "$as_me: error: cannot compute sizeof (short)
21138 See \`config.log' for more details." >&2;}
21139    { (exit 77); exit 77; }; }
21140    else
21141      ac_cv_sizeof_short=0
21142    fi
21143 fi
21144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21145 fi
21146 rm -f conftest.val
21147 fi
21148 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21149 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21150
21151
21152
21153 cat >>confdefs.h <<_ACEOF
21154 #define SIZEOF_SHORT $ac_cv_sizeof_short
21155 _ACEOF
21156
21157
21158 { echo "$as_me:$LINENO: checking for void *" >&5
21159 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21160 if test "${ac_cv_type_void_p+set}" = set; then
21161   echo $ECHO_N "(cached) $ECHO_C" >&6
21162 else
21163   cat >conftest.$ac_ext <<_ACEOF
21164 /* confdefs.h.  */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h.  */
21169 $ac_includes_default
21170 typedef void * ac__type_new_;
21171 int
21172 main ()
21173 {
21174 if ((ac__type_new_ *) 0)
21175   return 0;
21176 if (sizeof (ac__type_new_))
21177   return 0;
21178   ;
21179   return 0;
21180 }
21181 _ACEOF
21182 rm -f conftest.$ac_objext
21183 if { (ac_try="$ac_compile"
21184 case "(($ac_try" in
21185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186   *) ac_try_echo=$ac_try;;
21187 esac
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189   (eval "$ac_compile") 2>conftest.er1
21190   ac_status=$?
21191   grep -v '^ *+' conftest.er1 >conftest.err
21192   rm -f conftest.er1
21193   cat conftest.err >&5
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); } && {
21196          test -z "$ac_c_werror_flag" ||
21197          test ! -s conftest.err
21198        } && test -s conftest.$ac_objext; then
21199   ac_cv_type_void_p=yes
21200 else
21201   echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21203
21204         ac_cv_type_void_p=no
21205 fi
21206
21207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21208 fi
21209 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21210 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21211
21212 # The cast to long int works around a bug in the HP C Compiler
21213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21215 # This bug is HP SR number 8606223364.
21216 { echo "$as_me:$LINENO: checking size of void *" >&5
21217 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21218 if test "${ac_cv_sizeof_void_p+set}" = set; then
21219   echo $ECHO_N "(cached) $ECHO_C" >&6
21220 else
21221   if test "$cross_compiling" = yes; then
21222   # Depending upon the size, compute the lo and hi bounds.
21223 cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h.  */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h.  */
21229 $ac_includes_default
21230    typedef void * ac__type_sizeof_;
21231 int
21232 main ()
21233 {
21234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21235 test_array [0] = 0
21236
21237   ;
21238   return 0;
21239 }
21240 _ACEOF
21241 rm -f conftest.$ac_objext
21242 if { (ac_try="$ac_compile"
21243 case "(($ac_try" in
21244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245   *) ac_try_echo=$ac_try;;
21246 esac
21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248   (eval "$ac_compile") 2>conftest.er1
21249   ac_status=$?
21250   grep -v '^ *+' conftest.er1 >conftest.err
21251   rm -f conftest.er1
21252   cat conftest.err >&5
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); } && {
21255          test -z "$ac_c_werror_flag" ||
21256          test ! -s conftest.err
21257        } && test -s conftest.$ac_objext; then
21258   ac_lo=0 ac_mid=0
21259   while :; do
21260     cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h.  */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h.  */
21266 $ac_includes_default
21267    typedef void * ac__type_sizeof_;
21268 int
21269 main ()
21270 {
21271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21272 test_array [0] = 0
21273
21274   ;
21275   return 0;
21276 }
21277 _ACEOF
21278 rm -f conftest.$ac_objext
21279 if { (ac_try="$ac_compile"
21280 case "(($ac_try" in
21281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282   *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285   (eval "$ac_compile") 2>conftest.er1
21286   ac_status=$?
21287   grep -v '^ *+' conftest.er1 >conftest.err
21288   rm -f conftest.er1
21289   cat conftest.err >&5
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); } && {
21292          test -z "$ac_c_werror_flag" ||
21293          test ! -s conftest.err
21294        } && test -s conftest.$ac_objext; then
21295   ac_hi=$ac_mid; break
21296 else
21297   echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21299
21300         ac_lo=`expr $ac_mid + 1`
21301                         if test $ac_lo -le $ac_mid; then
21302                           ac_lo= ac_hi=
21303                           break
21304                         fi
21305                         ac_mid=`expr 2 '*' $ac_mid + 1`
21306 fi
21307
21308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21309   done
21310 else
21311   echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21313
21314         cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h.  */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h.  */
21320 $ac_includes_default
21321    typedef void * ac__type_sizeof_;
21322 int
21323 main ()
21324 {
21325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21326 test_array [0] = 0
21327
21328   ;
21329   return 0;
21330 }
21331 _ACEOF
21332 rm -f conftest.$ac_objext
21333 if { (ac_try="$ac_compile"
21334 case "(($ac_try" in
21335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336   *) ac_try_echo=$ac_try;;
21337 esac
21338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339   (eval "$ac_compile") 2>conftest.er1
21340   ac_status=$?
21341   grep -v '^ *+' conftest.er1 >conftest.err
21342   rm -f conftest.er1
21343   cat conftest.err >&5
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); } && {
21346          test -z "$ac_c_werror_flag" ||
21347          test ! -s conftest.err
21348        } && test -s conftest.$ac_objext; then
21349   ac_hi=-1 ac_mid=-1
21350   while :; do
21351     cat >conftest.$ac_ext <<_ACEOF
21352 /* confdefs.h.  */
21353 _ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h.  */
21357 $ac_includes_default
21358    typedef void * ac__type_sizeof_;
21359 int
21360 main ()
21361 {
21362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21363 test_array [0] = 0
21364
21365   ;
21366   return 0;
21367 }
21368 _ACEOF
21369 rm -f conftest.$ac_objext
21370 if { (ac_try="$ac_compile"
21371 case "(($ac_try" in
21372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373   *) ac_try_echo=$ac_try;;
21374 esac
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376   (eval "$ac_compile") 2>conftest.er1
21377   ac_status=$?
21378   grep -v '^ *+' conftest.er1 >conftest.err
21379   rm -f conftest.er1
21380   cat conftest.err >&5
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); } && {
21383          test -z "$ac_c_werror_flag" ||
21384          test ! -s conftest.err
21385        } && test -s conftest.$ac_objext; then
21386   ac_lo=$ac_mid; break
21387 else
21388   echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391         ac_hi=`expr '(' $ac_mid ')' - 1`
21392                         if test $ac_mid -le $ac_hi; then
21393                           ac_lo= ac_hi=
21394                           break
21395                         fi
21396                         ac_mid=`expr 2 '*' $ac_mid`
21397 fi
21398
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400   done
21401 else
21402   echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21404
21405         ac_lo= ac_hi=
21406 fi
21407
21408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409 fi
21410
21411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412 # Binary search between lo and hi bounds.
21413 while test "x$ac_lo" != "x$ac_hi"; do
21414   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21415   cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h.  */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h.  */
21421 $ac_includes_default
21422    typedef void * ac__type_sizeof_;
21423 int
21424 main ()
21425 {
21426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21427 test_array [0] = 0
21428
21429   ;
21430   return 0;
21431 }
21432 _ACEOF
21433 rm -f conftest.$ac_objext
21434 if { (ac_try="$ac_compile"
21435 case "(($ac_try" in
21436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437   *) ac_try_echo=$ac_try;;
21438 esac
21439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440   (eval "$ac_compile") 2>conftest.er1
21441   ac_status=$?
21442   grep -v '^ *+' conftest.er1 >conftest.err
21443   rm -f conftest.er1
21444   cat conftest.err >&5
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); } && {
21447          test -z "$ac_c_werror_flag" ||
21448          test ! -s conftest.err
21449        } && test -s conftest.$ac_objext; then
21450   ac_hi=$ac_mid
21451 else
21452   echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455         ac_lo=`expr '(' $ac_mid ')' + 1`
21456 fi
21457
21458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21459 done
21460 case $ac_lo in
21461 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21462 '') if test "$ac_cv_type_void_p" = yes; then
21463      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21464 See \`config.log' for more details." >&5
21465 echo "$as_me: error: cannot compute sizeof (void *)
21466 See \`config.log' for more details." >&2;}
21467    { (exit 77); exit 77; }; }
21468    else
21469      ac_cv_sizeof_void_p=0
21470    fi ;;
21471 esac
21472 else
21473   cat >conftest.$ac_ext <<_ACEOF
21474 /* confdefs.h.  */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h.  */
21479 $ac_includes_default
21480    typedef void * ac__type_sizeof_;
21481 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21482 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21483 #include <stdio.h>
21484 #include <stdlib.h>
21485 int
21486 main ()
21487 {
21488
21489   FILE *f = fopen ("conftest.val", "w");
21490   if (! f)
21491     return 1;
21492   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21493     {
21494       long int i = longval ();
21495       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21496         return 1;
21497       fprintf (f, "%ld\n", i);
21498     }
21499   else
21500     {
21501       unsigned long int i = ulongval ();
21502       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21503         return 1;
21504       fprintf (f, "%lu\n", i);
21505     }
21506   return ferror (f) || fclose (f) != 0;
21507
21508   ;
21509   return 0;
21510 }
21511 _ACEOF
21512 rm -f conftest$ac_exeext
21513 if { (ac_try="$ac_link"
21514 case "(($ac_try" in
21515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516   *) ac_try_echo=$ac_try;;
21517 esac
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519   (eval "$ac_link") 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21523   { (case "(($ac_try" in
21524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525   *) ac_try_echo=$ac_try;;
21526 esac
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528   (eval "$ac_try") 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); }; }; then
21532   ac_cv_sizeof_void_p=`cat conftest.val`
21533 else
21534   echo "$as_me: program exited with status $ac_status" >&5
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538 ( exit $ac_status )
21539 if test "$ac_cv_type_void_p" = yes; then
21540      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21541 See \`config.log' for more details." >&5
21542 echo "$as_me: error: cannot compute sizeof (void *)
21543 See \`config.log' for more details." >&2;}
21544    { (exit 77); exit 77; }; }
21545    else
21546      ac_cv_sizeof_void_p=0
21547    fi
21548 fi
21549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21550 fi
21551 rm -f conftest.val
21552 fi
21553 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21554 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21555
21556
21557
21558 cat >>confdefs.h <<_ACEOF
21559 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21560 _ACEOF
21561
21562
21563 { echo "$as_me:$LINENO: checking for int" >&5
21564 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21565 if test "${ac_cv_type_int+set}" = set; then
21566   echo $ECHO_N "(cached) $ECHO_C" >&6
21567 else
21568   cat >conftest.$ac_ext <<_ACEOF
21569 /* confdefs.h.  */
21570 _ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h.  */
21574 $ac_includes_default
21575 typedef int ac__type_new_;
21576 int
21577 main ()
21578 {
21579 if ((ac__type_new_ *) 0)
21580   return 0;
21581 if (sizeof (ac__type_new_))
21582   return 0;
21583   ;
21584   return 0;
21585 }
21586 _ACEOF
21587 rm -f conftest.$ac_objext
21588 if { (ac_try="$ac_compile"
21589 case "(($ac_try" in
21590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591   *) ac_try_echo=$ac_try;;
21592 esac
21593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594   (eval "$ac_compile") 2>conftest.er1
21595   ac_status=$?
21596   grep -v '^ *+' conftest.er1 >conftest.err
21597   rm -f conftest.er1
21598   cat conftest.err >&5
21599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600   (exit $ac_status); } && {
21601          test -z "$ac_c_werror_flag" ||
21602          test ! -s conftest.err
21603        } && test -s conftest.$ac_objext; then
21604   ac_cv_type_int=yes
21605 else
21606   echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21608
21609         ac_cv_type_int=no
21610 fi
21611
21612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21613 fi
21614 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21615 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21616
21617 # The cast to long int works around a bug in the HP C Compiler
21618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21620 # This bug is HP SR number 8606223364.
21621 { echo "$as_me:$LINENO: checking size of int" >&5
21622 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21623 if test "${ac_cv_sizeof_int+set}" = set; then
21624   echo $ECHO_N "(cached) $ECHO_C" >&6
21625 else
21626   if test "$cross_compiling" = yes; then
21627   # Depending upon the size, compute the lo and hi bounds.
21628 cat >conftest.$ac_ext <<_ACEOF
21629 /* confdefs.h.  */
21630 _ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h.  */
21634 $ac_includes_default
21635    typedef int ac__type_sizeof_;
21636 int
21637 main ()
21638 {
21639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21640 test_array [0] = 0
21641
21642   ;
21643   return 0;
21644 }
21645 _ACEOF
21646 rm -f conftest.$ac_objext
21647 if { (ac_try="$ac_compile"
21648 case "(($ac_try" in
21649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650   *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653   (eval "$ac_compile") 2>conftest.er1
21654   ac_status=$?
21655   grep -v '^ *+' conftest.er1 >conftest.err
21656   rm -f conftest.er1
21657   cat conftest.err >&5
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); } && {
21660          test -z "$ac_c_werror_flag" ||
21661          test ! -s conftest.err
21662        } && test -s conftest.$ac_objext; then
21663   ac_lo=0 ac_mid=0
21664   while :; do
21665     cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h.  */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h.  */
21671 $ac_includes_default
21672    typedef int ac__type_sizeof_;
21673 int
21674 main ()
21675 {
21676 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21677 test_array [0] = 0
21678
21679   ;
21680   return 0;
21681 }
21682 _ACEOF
21683 rm -f conftest.$ac_objext
21684 if { (ac_try="$ac_compile"
21685 case "(($ac_try" in
21686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687   *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690   (eval "$ac_compile") 2>conftest.er1
21691   ac_status=$?
21692   grep -v '^ *+' conftest.er1 >conftest.err
21693   rm -f conftest.er1
21694   cat conftest.err >&5
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); } && {
21697          test -z "$ac_c_werror_flag" ||
21698          test ! -s conftest.err
21699        } && test -s conftest.$ac_objext; then
21700   ac_hi=$ac_mid; break
21701 else
21702   echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21704
21705         ac_lo=`expr $ac_mid + 1`
21706                         if test $ac_lo -le $ac_mid; then
21707                           ac_lo= ac_hi=
21708                           break
21709                         fi
21710                         ac_mid=`expr 2 '*' $ac_mid + 1`
21711 fi
21712
21713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21714   done
21715 else
21716   echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21718
21719         cat >conftest.$ac_ext <<_ACEOF
21720 /* confdefs.h.  */
21721 _ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h.  */
21725 $ac_includes_default
21726    typedef int ac__type_sizeof_;
21727 int
21728 main ()
21729 {
21730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21731 test_array [0] = 0
21732
21733   ;
21734   return 0;
21735 }
21736 _ACEOF
21737 rm -f conftest.$ac_objext
21738 if { (ac_try="$ac_compile"
21739 case "(($ac_try" in
21740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741   *) ac_try_echo=$ac_try;;
21742 esac
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744   (eval "$ac_compile") 2>conftest.er1
21745   ac_status=$?
21746   grep -v '^ *+' conftest.er1 >conftest.err
21747   rm -f conftest.er1
21748   cat conftest.err >&5
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); } && {
21751          test -z "$ac_c_werror_flag" ||
21752          test ! -s conftest.err
21753        } && test -s conftest.$ac_objext; then
21754   ac_hi=-1 ac_mid=-1
21755   while :; do
21756     cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h.  */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h.  */
21762 $ac_includes_default
21763    typedef int ac__type_sizeof_;
21764 int
21765 main ()
21766 {
21767 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21768 test_array [0] = 0
21769
21770   ;
21771   return 0;
21772 }
21773 _ACEOF
21774 rm -f conftest.$ac_objext
21775 if { (ac_try="$ac_compile"
21776 case "(($ac_try" in
21777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778   *) ac_try_echo=$ac_try;;
21779 esac
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781   (eval "$ac_compile") 2>conftest.er1
21782   ac_status=$?
21783   grep -v '^ *+' conftest.er1 >conftest.err
21784   rm -f conftest.er1
21785   cat conftest.err >&5
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); } && {
21788          test -z "$ac_c_werror_flag" ||
21789          test ! -s conftest.err
21790        } && test -s conftest.$ac_objext; then
21791   ac_lo=$ac_mid; break
21792 else
21793   echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21795
21796         ac_hi=`expr '(' $ac_mid ')' - 1`
21797                         if test $ac_mid -le $ac_hi; then
21798                           ac_lo= ac_hi=
21799                           break
21800                         fi
21801                         ac_mid=`expr 2 '*' $ac_mid`
21802 fi
21803
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805   done
21806 else
21807   echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810         ac_lo= ac_hi=
21811 fi
21812
21813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21814 fi
21815
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 # Binary search between lo and hi bounds.
21818 while test "x$ac_lo" != "x$ac_hi"; do
21819   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21820   cat >conftest.$ac_ext <<_ACEOF
21821 /* confdefs.h.  */
21822 _ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h.  */
21826 $ac_includes_default
21827    typedef int ac__type_sizeof_;
21828 int
21829 main ()
21830 {
21831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21832 test_array [0] = 0
21833
21834   ;
21835   return 0;
21836 }
21837 _ACEOF
21838 rm -f conftest.$ac_objext
21839 if { (ac_try="$ac_compile"
21840 case "(($ac_try" in
21841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842   *) ac_try_echo=$ac_try;;
21843 esac
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845   (eval "$ac_compile") 2>conftest.er1
21846   ac_status=$?
21847   grep -v '^ *+' conftest.er1 >conftest.err
21848   rm -f conftest.er1
21849   cat conftest.err >&5
21850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851   (exit $ac_status); } && {
21852          test -z "$ac_c_werror_flag" ||
21853          test ! -s conftest.err
21854        } && test -s conftest.$ac_objext; then
21855   ac_hi=$ac_mid
21856 else
21857   echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21859
21860         ac_lo=`expr '(' $ac_mid ')' + 1`
21861 fi
21862
21863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21864 done
21865 case $ac_lo in
21866 ?*) ac_cv_sizeof_int=$ac_lo;;
21867 '') if test "$ac_cv_type_int" = yes; then
21868      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21869 See \`config.log' for more details." >&5
21870 echo "$as_me: error: cannot compute sizeof (int)
21871 See \`config.log' for more details." >&2;}
21872    { (exit 77); exit 77; }; }
21873    else
21874      ac_cv_sizeof_int=0
21875    fi ;;
21876 esac
21877 else
21878   cat >conftest.$ac_ext <<_ACEOF
21879 /* confdefs.h.  */
21880 _ACEOF
21881 cat confdefs.h >>conftest.$ac_ext
21882 cat >>conftest.$ac_ext <<_ACEOF
21883 /* end confdefs.h.  */
21884 $ac_includes_default
21885    typedef int ac__type_sizeof_;
21886 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21887 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21888 #include <stdio.h>
21889 #include <stdlib.h>
21890 int
21891 main ()
21892 {
21893
21894   FILE *f = fopen ("conftest.val", "w");
21895   if (! f)
21896     return 1;
21897   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21898     {
21899       long int i = longval ();
21900       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21901         return 1;
21902       fprintf (f, "%ld\n", i);
21903     }
21904   else
21905     {
21906       unsigned long int i = ulongval ();
21907       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21908         return 1;
21909       fprintf (f, "%lu\n", i);
21910     }
21911   return ferror (f) || fclose (f) != 0;
21912
21913   ;
21914   return 0;
21915 }
21916 _ACEOF
21917 rm -f conftest$ac_exeext
21918 if { (ac_try="$ac_link"
21919 case "(($ac_try" in
21920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921   *) ac_try_echo=$ac_try;;
21922 esac
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924   (eval "$ac_link") 2>&5
21925   ac_status=$?
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21928   { (case "(($ac_try" in
21929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930   *) ac_try_echo=$ac_try;;
21931 esac
21932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21933   (eval "$ac_try") 2>&5
21934   ac_status=$?
21935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936   (exit $ac_status); }; }; then
21937   ac_cv_sizeof_int=`cat conftest.val`
21938 else
21939   echo "$as_me: program exited with status $ac_status" >&5
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943 ( exit $ac_status )
21944 if test "$ac_cv_type_int" = yes; then
21945      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21946 See \`config.log' for more details." >&5
21947 echo "$as_me: error: cannot compute sizeof (int)
21948 See \`config.log' for more details." >&2;}
21949    { (exit 77); exit 77; }; }
21950    else
21951      ac_cv_sizeof_int=0
21952    fi
21953 fi
21954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21955 fi
21956 rm -f conftest.val
21957 fi
21958 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21959 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21960
21961
21962
21963 cat >>confdefs.h <<_ACEOF
21964 #define SIZEOF_INT $ac_cv_sizeof_int
21965 _ACEOF
21966
21967
21968 { echo "$as_me:$LINENO: checking for long" >&5
21969 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21970 if test "${ac_cv_type_long+set}" = set; then
21971   echo $ECHO_N "(cached) $ECHO_C" >&6
21972 else
21973   cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h.  */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h.  */
21979 $ac_includes_default
21980 typedef long ac__type_new_;
21981 int
21982 main ()
21983 {
21984 if ((ac__type_new_ *) 0)
21985   return 0;
21986 if (sizeof (ac__type_new_))
21987   return 0;
21988   ;
21989   return 0;
21990 }
21991 _ACEOF
21992 rm -f conftest.$ac_objext
21993 if { (ac_try="$ac_compile"
21994 case "(($ac_try" in
21995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996   *) ac_try_echo=$ac_try;;
21997 esac
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999   (eval "$ac_compile") 2>conftest.er1
22000   ac_status=$?
22001   grep -v '^ *+' conftest.er1 >conftest.err
22002   rm -f conftest.er1
22003   cat conftest.err >&5
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); } && {
22006          test -z "$ac_c_werror_flag" ||
22007          test ! -s conftest.err
22008        } && test -s conftest.$ac_objext; then
22009   ac_cv_type_long=yes
22010 else
22011   echo "$as_me: failed program was:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22013
22014         ac_cv_type_long=no
22015 fi
22016
22017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22018 fi
22019 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22020 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22021
22022 # The cast to long int works around a bug in the HP C Compiler
22023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22025 # This bug is HP SR number 8606223364.
22026 { echo "$as_me:$LINENO: checking size of long" >&5
22027 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22028 if test "${ac_cv_sizeof_long+set}" = set; then
22029   echo $ECHO_N "(cached) $ECHO_C" >&6
22030 else
22031   if test "$cross_compiling" = yes; then
22032   # Depending upon the size, compute the lo and hi bounds.
22033 cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h.  */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h.  */
22039 $ac_includes_default
22040    typedef long ac__type_sizeof_;
22041 int
22042 main ()
22043 {
22044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22045 test_array [0] = 0
22046
22047   ;
22048   return 0;
22049 }
22050 _ACEOF
22051 rm -f conftest.$ac_objext
22052 if { (ac_try="$ac_compile"
22053 case "(($ac_try" in
22054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055   *) ac_try_echo=$ac_try;;
22056 esac
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058   (eval "$ac_compile") 2>conftest.er1
22059   ac_status=$?
22060   grep -v '^ *+' conftest.er1 >conftest.err
22061   rm -f conftest.er1
22062   cat conftest.err >&5
22063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064   (exit $ac_status); } && {
22065          test -z "$ac_c_werror_flag" ||
22066          test ! -s conftest.err
22067        } && test -s conftest.$ac_objext; then
22068   ac_lo=0 ac_mid=0
22069   while :; do
22070     cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h.  */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h.  */
22076 $ac_includes_default
22077    typedef long ac__type_sizeof_;
22078 int
22079 main ()
22080 {
22081 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22082 test_array [0] = 0
22083
22084   ;
22085   return 0;
22086 }
22087 _ACEOF
22088 rm -f conftest.$ac_objext
22089 if { (ac_try="$ac_compile"
22090 case "(($ac_try" in
22091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092   *) ac_try_echo=$ac_try;;
22093 esac
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095   (eval "$ac_compile") 2>conftest.er1
22096   ac_status=$?
22097   grep -v '^ *+' conftest.er1 >conftest.err
22098   rm -f conftest.er1
22099   cat conftest.err >&5
22100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101   (exit $ac_status); } && {
22102          test -z "$ac_c_werror_flag" ||
22103          test ! -s conftest.err
22104        } && test -s conftest.$ac_objext; then
22105   ac_hi=$ac_mid; break
22106 else
22107   echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22109
22110         ac_lo=`expr $ac_mid + 1`
22111                         if test $ac_lo -le $ac_mid; then
22112                           ac_lo= ac_hi=
22113                           break
22114                         fi
22115                         ac_mid=`expr 2 '*' $ac_mid + 1`
22116 fi
22117
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119   done
22120 else
22121   echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22123
22124         cat >conftest.$ac_ext <<_ACEOF
22125 /* confdefs.h.  */
22126 _ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h.  */
22130 $ac_includes_default
22131    typedef long ac__type_sizeof_;
22132 int
22133 main ()
22134 {
22135 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22136 test_array [0] = 0
22137
22138   ;
22139   return 0;
22140 }
22141 _ACEOF
22142 rm -f conftest.$ac_objext
22143 if { (ac_try="$ac_compile"
22144 case "(($ac_try" in
22145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22146   *) ac_try_echo=$ac_try;;
22147 esac
22148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22149   (eval "$ac_compile") 2>conftest.er1
22150   ac_status=$?
22151   grep -v '^ *+' conftest.er1 >conftest.err
22152   rm -f conftest.er1
22153   cat conftest.err >&5
22154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155   (exit $ac_status); } && {
22156          test -z "$ac_c_werror_flag" ||
22157          test ! -s conftest.err
22158        } && test -s conftest.$ac_objext; then
22159   ac_hi=-1 ac_mid=-1
22160   while :; do
22161     cat >conftest.$ac_ext <<_ACEOF
22162 /* confdefs.h.  */
22163 _ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h.  */
22167 $ac_includes_default
22168    typedef long ac__type_sizeof_;
22169 int
22170 main ()
22171 {
22172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22173 test_array [0] = 0
22174
22175   ;
22176   return 0;
22177 }
22178 _ACEOF
22179 rm -f conftest.$ac_objext
22180 if { (ac_try="$ac_compile"
22181 case "(($ac_try" in
22182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183   *) ac_try_echo=$ac_try;;
22184 esac
22185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22186   (eval "$ac_compile") 2>conftest.er1
22187   ac_status=$?
22188   grep -v '^ *+' conftest.er1 >conftest.err
22189   rm -f conftest.er1
22190   cat conftest.err >&5
22191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192   (exit $ac_status); } && {
22193          test -z "$ac_c_werror_flag" ||
22194          test ! -s conftest.err
22195        } && test -s conftest.$ac_objext; then
22196   ac_lo=$ac_mid; break
22197 else
22198   echo "$as_me: failed program was:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22200
22201         ac_hi=`expr '(' $ac_mid ')' - 1`
22202                         if test $ac_mid -le $ac_hi; then
22203                           ac_lo= ac_hi=
22204                           break
22205                         fi
22206                         ac_mid=`expr 2 '*' $ac_mid`
22207 fi
22208
22209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22210   done
22211 else
22212   echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22214
22215         ac_lo= ac_hi=
22216 fi
22217
22218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22219 fi
22220
22221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22222 # Binary search between lo and hi bounds.
22223 while test "x$ac_lo" != "x$ac_hi"; do
22224   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22225   cat >conftest.$ac_ext <<_ACEOF
22226 /* confdefs.h.  */
22227 _ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h.  */
22231 $ac_includes_default
22232    typedef long ac__type_sizeof_;
22233 int
22234 main ()
22235 {
22236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22237 test_array [0] = 0
22238
22239   ;
22240   return 0;
22241 }
22242 _ACEOF
22243 rm -f conftest.$ac_objext
22244 if { (ac_try="$ac_compile"
22245 case "(($ac_try" in
22246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247   *) ac_try_echo=$ac_try;;
22248 esac
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250   (eval "$ac_compile") 2>conftest.er1
22251   ac_status=$?
22252   grep -v '^ *+' conftest.er1 >conftest.err
22253   rm -f conftest.er1
22254   cat conftest.err >&5
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); } && {
22257          test -z "$ac_c_werror_flag" ||
22258          test ! -s conftest.err
22259        } && test -s conftest.$ac_objext; then
22260   ac_hi=$ac_mid
22261 else
22262   echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22264
22265         ac_lo=`expr '(' $ac_mid ')' + 1`
22266 fi
22267
22268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 done
22270 case $ac_lo in
22271 ?*) ac_cv_sizeof_long=$ac_lo;;
22272 '') if test "$ac_cv_type_long" = yes; then
22273      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22274 See \`config.log' for more details." >&5
22275 echo "$as_me: error: cannot compute sizeof (long)
22276 See \`config.log' for more details." >&2;}
22277    { (exit 77); exit 77; }; }
22278    else
22279      ac_cv_sizeof_long=0
22280    fi ;;
22281 esac
22282 else
22283   cat >conftest.$ac_ext <<_ACEOF
22284 /* confdefs.h.  */
22285 _ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h.  */
22289 $ac_includes_default
22290    typedef long ac__type_sizeof_;
22291 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22292 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22293 #include <stdio.h>
22294 #include <stdlib.h>
22295 int
22296 main ()
22297 {
22298
22299   FILE *f = fopen ("conftest.val", "w");
22300   if (! f)
22301     return 1;
22302   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22303     {
22304       long int i = longval ();
22305       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22306         return 1;
22307       fprintf (f, "%ld\n", i);
22308     }
22309   else
22310     {
22311       unsigned long int i = ulongval ();
22312       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22313         return 1;
22314       fprintf (f, "%lu\n", i);
22315     }
22316   return ferror (f) || fclose (f) != 0;
22317
22318   ;
22319   return 0;
22320 }
22321 _ACEOF
22322 rm -f conftest$ac_exeext
22323 if { (ac_try="$ac_link"
22324 case "(($ac_try" in
22325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326   *) ac_try_echo=$ac_try;;
22327 esac
22328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22329   (eval "$ac_link") 2>&5
22330   ac_status=$?
22331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22333   { (case "(($ac_try" in
22334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335   *) ac_try_echo=$ac_try;;
22336 esac
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338   (eval "$ac_try") 2>&5
22339   ac_status=$?
22340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341   (exit $ac_status); }; }; then
22342   ac_cv_sizeof_long=`cat conftest.val`
22343 else
22344   echo "$as_me: program exited with status $ac_status" >&5
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348 ( exit $ac_status )
22349 if test "$ac_cv_type_long" = yes; then
22350      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22351 See \`config.log' for more details." >&5
22352 echo "$as_me: error: cannot compute sizeof (long)
22353 See \`config.log' for more details." >&2;}
22354    { (exit 77); exit 77; }; }
22355    else
22356      ac_cv_sizeof_long=0
22357    fi
22358 fi
22359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22360 fi
22361 rm -f conftest.val
22362 fi
22363 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22364 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22365
22366
22367
22368 cat >>confdefs.h <<_ACEOF
22369 #define SIZEOF_LONG $ac_cv_sizeof_long
22370 _ACEOF
22371
22372
22373 { echo "$as_me:$LINENO: checking for size_t" >&5
22374 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22375 if test "${ac_cv_type_size_t+set}" = set; then
22376   echo $ECHO_N "(cached) $ECHO_C" >&6
22377 else
22378   cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h.  */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h.  */
22384 $ac_includes_default
22385 typedef size_t ac__type_new_;
22386 int
22387 main ()
22388 {
22389 if ((ac__type_new_ *) 0)
22390   return 0;
22391 if (sizeof (ac__type_new_))
22392   return 0;
22393   ;
22394   return 0;
22395 }
22396 _ACEOF
22397 rm -f conftest.$ac_objext
22398 if { (ac_try="$ac_compile"
22399 case "(($ac_try" in
22400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22401   *) ac_try_echo=$ac_try;;
22402 esac
22403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22404   (eval "$ac_compile") 2>conftest.er1
22405   ac_status=$?
22406   grep -v '^ *+' conftest.er1 >conftest.err
22407   rm -f conftest.er1
22408   cat conftest.err >&5
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); } && {
22411          test -z "$ac_c_werror_flag" ||
22412          test ! -s conftest.err
22413        } && test -s conftest.$ac_objext; then
22414   ac_cv_type_size_t=yes
22415 else
22416   echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22418
22419         ac_cv_type_size_t=no
22420 fi
22421
22422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22423 fi
22424 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22425 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22426
22427 # The cast to long int works around a bug in the HP C Compiler
22428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22430 # This bug is HP SR number 8606223364.
22431 { echo "$as_me:$LINENO: checking size of size_t" >&5
22432 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22433 if test "${ac_cv_sizeof_size_t+set}" = set; then
22434   echo $ECHO_N "(cached) $ECHO_C" >&6
22435 else
22436   if test "$cross_compiling" = yes; then
22437   # Depending upon the size, compute the lo and hi bounds.
22438 cat >conftest.$ac_ext <<_ACEOF
22439 /* confdefs.h.  */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h.  */
22444 $ac_includes_default
22445    typedef size_t ac__type_sizeof_;
22446 int
22447 main ()
22448 {
22449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22450 test_array [0] = 0
22451
22452   ;
22453   return 0;
22454 }
22455 _ACEOF
22456 rm -f conftest.$ac_objext
22457 if { (ac_try="$ac_compile"
22458 case "(($ac_try" in
22459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460   *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463   (eval "$ac_compile") 2>conftest.er1
22464   ac_status=$?
22465   grep -v '^ *+' conftest.er1 >conftest.err
22466   rm -f conftest.er1
22467   cat conftest.err >&5
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); } && {
22470          test -z "$ac_c_werror_flag" ||
22471          test ! -s conftest.err
22472        } && test -s conftest.$ac_objext; then
22473   ac_lo=0 ac_mid=0
22474   while :; do
22475     cat >conftest.$ac_ext <<_ACEOF
22476 /* confdefs.h.  */
22477 _ACEOF
22478 cat confdefs.h >>conftest.$ac_ext
22479 cat >>conftest.$ac_ext <<_ACEOF
22480 /* end confdefs.h.  */
22481 $ac_includes_default
22482    typedef size_t ac__type_sizeof_;
22483 int
22484 main ()
22485 {
22486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22487 test_array [0] = 0
22488
22489   ;
22490   return 0;
22491 }
22492 _ACEOF
22493 rm -f conftest.$ac_objext
22494 if { (ac_try="$ac_compile"
22495 case "(($ac_try" in
22496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497   *) ac_try_echo=$ac_try;;
22498 esac
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500   (eval "$ac_compile") 2>conftest.er1
22501   ac_status=$?
22502   grep -v '^ *+' conftest.er1 >conftest.err
22503   rm -f conftest.er1
22504   cat conftest.err >&5
22505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506   (exit $ac_status); } && {
22507          test -z "$ac_c_werror_flag" ||
22508          test ! -s conftest.err
22509        } && test -s conftest.$ac_objext; then
22510   ac_hi=$ac_mid; break
22511 else
22512   echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22514
22515         ac_lo=`expr $ac_mid + 1`
22516                         if test $ac_lo -le $ac_mid; then
22517                           ac_lo= ac_hi=
22518                           break
22519                         fi
22520                         ac_mid=`expr 2 '*' $ac_mid + 1`
22521 fi
22522
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524   done
22525 else
22526   echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22528
22529         cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h.  */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h.  */
22535 $ac_includes_default
22536    typedef size_t ac__type_sizeof_;
22537 int
22538 main ()
22539 {
22540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22541 test_array [0] = 0
22542
22543   ;
22544   return 0;
22545 }
22546 _ACEOF
22547 rm -f conftest.$ac_objext
22548 if { (ac_try="$ac_compile"
22549 case "(($ac_try" in
22550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551   *) ac_try_echo=$ac_try;;
22552 esac
22553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554   (eval "$ac_compile") 2>conftest.er1
22555   ac_status=$?
22556   grep -v '^ *+' conftest.er1 >conftest.err
22557   rm -f conftest.er1
22558   cat conftest.err >&5
22559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560   (exit $ac_status); } && {
22561          test -z "$ac_c_werror_flag" ||
22562          test ! -s conftest.err
22563        } && test -s conftest.$ac_objext; then
22564   ac_hi=-1 ac_mid=-1
22565   while :; do
22566     cat >conftest.$ac_ext <<_ACEOF
22567 /* confdefs.h.  */
22568 _ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h.  */
22572 $ac_includes_default
22573    typedef size_t ac__type_sizeof_;
22574 int
22575 main ()
22576 {
22577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22578 test_array [0] = 0
22579
22580   ;
22581   return 0;
22582 }
22583 _ACEOF
22584 rm -f conftest.$ac_objext
22585 if { (ac_try="$ac_compile"
22586 case "(($ac_try" in
22587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22588   *) ac_try_echo=$ac_try;;
22589 esac
22590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22591   (eval "$ac_compile") 2>conftest.er1
22592   ac_status=$?
22593   grep -v '^ *+' conftest.er1 >conftest.err
22594   rm -f conftest.er1
22595   cat conftest.err >&5
22596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597   (exit $ac_status); } && {
22598          test -z "$ac_c_werror_flag" ||
22599          test ! -s conftest.err
22600        } && test -s conftest.$ac_objext; then
22601   ac_lo=$ac_mid; break
22602 else
22603   echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22605
22606         ac_hi=`expr '(' $ac_mid ')' - 1`
22607                         if test $ac_mid -le $ac_hi; then
22608                           ac_lo= ac_hi=
22609                           break
22610                         fi
22611                         ac_mid=`expr 2 '*' $ac_mid`
22612 fi
22613
22614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22615   done
22616 else
22617   echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620         ac_lo= ac_hi=
22621 fi
22622
22623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 fi
22625
22626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22627 # Binary search between lo and hi bounds.
22628 while test "x$ac_lo" != "x$ac_hi"; do
22629   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22630   cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h.  */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h.  */
22636 $ac_includes_default
22637    typedef size_t ac__type_sizeof_;
22638 int
22639 main ()
22640 {
22641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22642 test_array [0] = 0
22643
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 rm -f conftest.$ac_objext
22649 if { (ac_try="$ac_compile"
22650 case "(($ac_try" in
22651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652   *) ac_try_echo=$ac_try;;
22653 esac
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655   (eval "$ac_compile") 2>conftest.er1
22656   ac_status=$?
22657   grep -v '^ *+' conftest.er1 >conftest.err
22658   rm -f conftest.er1
22659   cat conftest.err >&5
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); } && {
22662          test -z "$ac_c_werror_flag" ||
22663          test ! -s conftest.err
22664        } && test -s conftest.$ac_objext; then
22665   ac_hi=$ac_mid
22666 else
22667   echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22669
22670         ac_lo=`expr '(' $ac_mid ')' + 1`
22671 fi
22672
22673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22674 done
22675 case $ac_lo in
22676 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22677 '') if test "$ac_cv_type_size_t" = yes; then
22678      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22679 See \`config.log' for more details." >&5
22680 echo "$as_me: error: cannot compute sizeof (size_t)
22681 See \`config.log' for more details." >&2;}
22682    { (exit 77); exit 77; }; }
22683    else
22684      ac_cv_sizeof_size_t=0
22685    fi ;;
22686 esac
22687 else
22688   cat >conftest.$ac_ext <<_ACEOF
22689 /* confdefs.h.  */
22690 _ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h.  */
22694 $ac_includes_default
22695    typedef size_t ac__type_sizeof_;
22696 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22697 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22698 #include <stdio.h>
22699 #include <stdlib.h>
22700 int
22701 main ()
22702 {
22703
22704   FILE *f = fopen ("conftest.val", "w");
22705   if (! f)
22706     return 1;
22707   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22708     {
22709       long int i = longval ();
22710       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22711         return 1;
22712       fprintf (f, "%ld\n", i);
22713     }
22714   else
22715     {
22716       unsigned long int i = ulongval ();
22717       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22718         return 1;
22719       fprintf (f, "%lu\n", i);
22720     }
22721   return ferror (f) || fclose (f) != 0;
22722
22723   ;
22724   return 0;
22725 }
22726 _ACEOF
22727 rm -f conftest$ac_exeext
22728 if { (ac_try="$ac_link"
22729 case "(($ac_try" in
22730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731   *) ac_try_echo=$ac_try;;
22732 esac
22733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734   (eval "$ac_link") 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22738   { (case "(($ac_try" in
22739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740   *) ac_try_echo=$ac_try;;
22741 esac
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743   (eval "$ac_try") 2>&5
22744   ac_status=$?
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); }; }; then
22747   ac_cv_sizeof_size_t=`cat conftest.val`
22748 else
22749   echo "$as_me: program exited with status $ac_status" >&5
22750 echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22752
22753 ( exit $ac_status )
22754 if test "$ac_cv_type_size_t" = yes; then
22755      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22756 See \`config.log' for more details." >&5
22757 echo "$as_me: error: cannot compute sizeof (size_t)
22758 See \`config.log' for more details." >&2;}
22759    { (exit 77); exit 77; }; }
22760    else
22761      ac_cv_sizeof_size_t=0
22762    fi
22763 fi
22764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22765 fi
22766 rm -f conftest.val
22767 fi
22768 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22769 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22770
22771
22772
22773 cat >>confdefs.h <<_ACEOF
22774 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22775 _ACEOF
22776
22777
22778
22779 case "${host}" in
22780     arm-*-linux* )
22781         { echo "$as_me:$LINENO: checking for long long" >&5
22782 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22783 if test "${ac_cv_type_long_long+set}" = set; then
22784   echo $ECHO_N "(cached) $ECHO_C" >&6
22785 else
22786   cat >conftest.$ac_ext <<_ACEOF
22787 /* confdefs.h.  */
22788 _ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h.  */
22792 $ac_includes_default
22793 typedef long long ac__type_new_;
22794 int
22795 main ()
22796 {
22797 if ((ac__type_new_ *) 0)
22798   return 0;
22799 if (sizeof (ac__type_new_))
22800   return 0;
22801   ;
22802   return 0;
22803 }
22804 _ACEOF
22805 rm -f conftest.$ac_objext
22806 if { (ac_try="$ac_compile"
22807 case "(($ac_try" in
22808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22809   *) ac_try_echo=$ac_try;;
22810 esac
22811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22812   (eval "$ac_compile") 2>conftest.er1
22813   ac_status=$?
22814   grep -v '^ *+' conftest.er1 >conftest.err
22815   rm -f conftest.er1
22816   cat conftest.err >&5
22817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818   (exit $ac_status); } && {
22819          test -z "$ac_c_werror_flag" ||
22820          test ! -s conftest.err
22821        } && test -s conftest.$ac_objext; then
22822   ac_cv_type_long_long=yes
22823 else
22824   echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22826
22827         ac_cv_type_long_long=no
22828 fi
22829
22830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22831 fi
22832 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22833 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22834
22835 # The cast to long int works around a bug in the HP C Compiler
22836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22838 # This bug is HP SR number 8606223364.
22839 { echo "$as_me:$LINENO: checking size of long long" >&5
22840 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22841 if test "${ac_cv_sizeof_long_long+set}" = set; then
22842   echo $ECHO_N "(cached) $ECHO_C" >&6
22843 else
22844   if test "$cross_compiling" = yes; then
22845   # Depending upon the size, compute the lo and hi bounds.
22846 cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h.  */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h.  */
22852 $ac_includes_default
22853    typedef long long ac__type_sizeof_;
22854 int
22855 main ()
22856 {
22857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22858 test_array [0] = 0
22859
22860   ;
22861   return 0;
22862 }
22863 _ACEOF
22864 rm -f conftest.$ac_objext
22865 if { (ac_try="$ac_compile"
22866 case "(($ac_try" in
22867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22868   *) ac_try_echo=$ac_try;;
22869 esac
22870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22871   (eval "$ac_compile") 2>conftest.er1
22872   ac_status=$?
22873   grep -v '^ *+' conftest.er1 >conftest.err
22874   rm -f conftest.er1
22875   cat conftest.err >&5
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); } && {
22878          test -z "$ac_c_werror_flag" ||
22879          test ! -s conftest.err
22880        } && test -s conftest.$ac_objext; then
22881   ac_lo=0 ac_mid=0
22882   while :; do
22883     cat >conftest.$ac_ext <<_ACEOF
22884 /* confdefs.h.  */
22885 _ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h.  */
22889 $ac_includes_default
22890    typedef long long ac__type_sizeof_;
22891 int
22892 main ()
22893 {
22894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22895 test_array [0] = 0
22896
22897   ;
22898   return 0;
22899 }
22900 _ACEOF
22901 rm -f conftest.$ac_objext
22902 if { (ac_try="$ac_compile"
22903 case "(($ac_try" in
22904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905   *) ac_try_echo=$ac_try;;
22906 esac
22907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22908   (eval "$ac_compile") 2>conftest.er1
22909   ac_status=$?
22910   grep -v '^ *+' conftest.er1 >conftest.err
22911   rm -f conftest.er1
22912   cat conftest.err >&5
22913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914   (exit $ac_status); } && {
22915          test -z "$ac_c_werror_flag" ||
22916          test ! -s conftest.err
22917        } && test -s conftest.$ac_objext; then
22918   ac_hi=$ac_mid; break
22919 else
22920   echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22922
22923         ac_lo=`expr $ac_mid + 1`
22924                         if test $ac_lo -le $ac_mid; then
22925                           ac_lo= ac_hi=
22926                           break
22927                         fi
22928                         ac_mid=`expr 2 '*' $ac_mid + 1`
22929 fi
22930
22931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22932   done
22933 else
22934   echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22936
22937         cat >conftest.$ac_ext <<_ACEOF
22938 /* confdefs.h.  */
22939 _ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h.  */
22943 $ac_includes_default
22944    typedef long long ac__type_sizeof_;
22945 int
22946 main ()
22947 {
22948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22949 test_array [0] = 0
22950
22951   ;
22952   return 0;
22953 }
22954 _ACEOF
22955 rm -f conftest.$ac_objext
22956 if { (ac_try="$ac_compile"
22957 case "(($ac_try" in
22958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959   *) ac_try_echo=$ac_try;;
22960 esac
22961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962   (eval "$ac_compile") 2>conftest.er1
22963   ac_status=$?
22964   grep -v '^ *+' conftest.er1 >conftest.err
22965   rm -f conftest.er1
22966   cat conftest.err >&5
22967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968   (exit $ac_status); } && {
22969          test -z "$ac_c_werror_flag" ||
22970          test ! -s conftest.err
22971        } && test -s conftest.$ac_objext; then
22972   ac_hi=-1 ac_mid=-1
22973   while :; do
22974     cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h.  */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h.  */
22980 $ac_includes_default
22981    typedef long long ac__type_sizeof_;
22982 int
22983 main ()
22984 {
22985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22986 test_array [0] = 0
22987
22988   ;
22989   return 0;
22990 }
22991 _ACEOF
22992 rm -f conftest.$ac_objext
22993 if { (ac_try="$ac_compile"
22994 case "(($ac_try" in
22995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996   *) ac_try_echo=$ac_try;;
22997 esac
22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999   (eval "$ac_compile") 2>conftest.er1
23000   ac_status=$?
23001   grep -v '^ *+' conftest.er1 >conftest.err
23002   rm -f conftest.er1
23003   cat conftest.err >&5
23004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005   (exit $ac_status); } && {
23006          test -z "$ac_c_werror_flag" ||
23007          test ! -s conftest.err
23008        } && test -s conftest.$ac_objext; then
23009   ac_lo=$ac_mid; break
23010 else
23011   echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23013
23014         ac_hi=`expr '(' $ac_mid ')' - 1`
23015                         if test $ac_mid -le $ac_hi; then
23016                           ac_lo= ac_hi=
23017                           break
23018                         fi
23019                         ac_mid=`expr 2 '*' $ac_mid`
23020 fi
23021
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23023   done
23024 else
23025   echo "$as_me: failed program was:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23027
23028         ac_lo= ac_hi=
23029 fi
23030
23031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23032 fi
23033
23034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23035 # Binary search between lo and hi bounds.
23036 while test "x$ac_lo" != "x$ac_hi"; do
23037   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23038   cat >conftest.$ac_ext <<_ACEOF
23039 /* confdefs.h.  */
23040 _ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h.  */
23044 $ac_includes_default
23045    typedef long long ac__type_sizeof_;
23046 int
23047 main ()
23048 {
23049 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23050 test_array [0] = 0
23051
23052   ;
23053   return 0;
23054 }
23055 _ACEOF
23056 rm -f conftest.$ac_objext
23057 if { (ac_try="$ac_compile"
23058 case "(($ac_try" in
23059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23060   *) ac_try_echo=$ac_try;;
23061 esac
23062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23063   (eval "$ac_compile") 2>conftest.er1
23064   ac_status=$?
23065   grep -v '^ *+' conftest.er1 >conftest.err
23066   rm -f conftest.er1
23067   cat conftest.err >&5
23068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069   (exit $ac_status); } && {
23070          test -z "$ac_c_werror_flag" ||
23071          test ! -s conftest.err
23072        } && test -s conftest.$ac_objext; then
23073   ac_hi=$ac_mid
23074 else
23075   echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078         ac_lo=`expr '(' $ac_mid ')' + 1`
23079 fi
23080
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 done
23083 case $ac_lo in
23084 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23085 '') if test "$ac_cv_type_long_long" = yes; then
23086      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23087 See \`config.log' for more details." >&5
23088 echo "$as_me: error: cannot compute sizeof (long long)
23089 See \`config.log' for more details." >&2;}
23090    { (exit 77); exit 77; }; }
23091    else
23092      ac_cv_sizeof_long_long=0
23093    fi ;;
23094 esac
23095 else
23096   cat >conftest.$ac_ext <<_ACEOF
23097 /* confdefs.h.  */
23098 _ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h.  */
23102 $ac_includes_default
23103    typedef long long ac__type_sizeof_;
23104 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23105 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23106 #include <stdio.h>
23107 #include <stdlib.h>
23108 int
23109 main ()
23110 {
23111
23112   FILE *f = fopen ("conftest.val", "w");
23113   if (! f)
23114     return 1;
23115   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23116     {
23117       long int i = longval ();
23118       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23119         return 1;
23120       fprintf (f, "%ld\n", i);
23121     }
23122   else
23123     {
23124       unsigned long int i = ulongval ();
23125       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23126         return 1;
23127       fprintf (f, "%lu\n", i);
23128     }
23129   return ferror (f) || fclose (f) != 0;
23130
23131   ;
23132   return 0;
23133 }
23134 _ACEOF
23135 rm -f conftest$ac_exeext
23136 if { (ac_try="$ac_link"
23137 case "(($ac_try" in
23138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139   *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142   (eval "$ac_link") 2>&5
23143   ac_status=$?
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23146   { (case "(($ac_try" in
23147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148   *) ac_try_echo=$ac_try;;
23149 esac
23150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23151   (eval "$ac_try") 2>&5
23152   ac_status=$?
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); }; }; then
23155   ac_cv_sizeof_long_long=`cat conftest.val`
23156 else
23157   echo "$as_me: program exited with status $ac_status" >&5
23158 echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161 ( exit $ac_status )
23162 if test "$ac_cv_type_long_long" = yes; then
23163      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23164 See \`config.log' for more details." >&5
23165 echo "$as_me: error: cannot compute sizeof (long long)
23166 See \`config.log' for more details." >&2;}
23167    { (exit 77); exit 77; }; }
23168    else
23169      ac_cv_sizeof_long_long=0
23170    fi
23171 fi
23172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23173 fi
23174 rm -f conftest.val
23175 fi
23176 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23177 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23178
23179
23180
23181 cat >>confdefs.h <<_ACEOF
23182 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23183 _ACEOF
23184
23185
23186     ;;
23187     *-hp-hpux* )
23188         { echo "$as_me:$LINENO: checking for long long" >&5
23189 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23190 if test "${ac_cv_type_long_long+set}" = set; then
23191   echo $ECHO_N "(cached) $ECHO_C" >&6
23192 else
23193   cat >conftest.$ac_ext <<_ACEOF
23194 /* confdefs.h.  */
23195 _ACEOF
23196 cat confdefs.h >>conftest.$ac_ext
23197 cat >>conftest.$ac_ext <<_ACEOF
23198 /* end confdefs.h.  */
23199 $ac_includes_default
23200 typedef long long ac__type_new_;
23201 int
23202 main ()
23203 {
23204 if ((ac__type_new_ *) 0)
23205   return 0;
23206 if (sizeof (ac__type_new_))
23207   return 0;
23208   ;
23209   return 0;
23210 }
23211 _ACEOF
23212 rm -f conftest.$ac_objext
23213 if { (ac_try="$ac_compile"
23214 case "(($ac_try" in
23215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216   *) ac_try_echo=$ac_try;;
23217 esac
23218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23219   (eval "$ac_compile") 2>conftest.er1
23220   ac_status=$?
23221   grep -v '^ *+' conftest.er1 >conftest.err
23222   rm -f conftest.er1
23223   cat conftest.err >&5
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); } && {
23226          test -z "$ac_c_werror_flag" ||
23227          test ! -s conftest.err
23228        } && test -s conftest.$ac_objext; then
23229   ac_cv_type_long_long=yes
23230 else
23231   echo "$as_me: failed program was:" >&5
23232 sed 's/^/| /' conftest.$ac_ext >&5
23233
23234         ac_cv_type_long_long=no
23235 fi
23236
23237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23238 fi
23239 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23240 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23241
23242 # The cast to long int works around a bug in the HP C Compiler
23243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23245 # This bug is HP SR number 8606223364.
23246 { echo "$as_me:$LINENO: checking size of long long" >&5
23247 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23248 if test "${ac_cv_sizeof_long_long+set}" = set; then
23249   echo $ECHO_N "(cached) $ECHO_C" >&6
23250 else
23251   if test "$cross_compiling" = yes; then
23252   # Depending upon the size, compute the lo and hi bounds.
23253 cat >conftest.$ac_ext <<_ACEOF
23254 /* confdefs.h.  */
23255 _ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h.  */
23259 $ac_includes_default
23260    typedef long long ac__type_sizeof_;
23261 int
23262 main ()
23263 {
23264 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23265 test_array [0] = 0
23266
23267   ;
23268   return 0;
23269 }
23270 _ACEOF
23271 rm -f conftest.$ac_objext
23272 if { (ac_try="$ac_compile"
23273 case "(($ac_try" in
23274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275   *) ac_try_echo=$ac_try;;
23276 esac
23277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23278   (eval "$ac_compile") 2>conftest.er1
23279   ac_status=$?
23280   grep -v '^ *+' conftest.er1 >conftest.err
23281   rm -f conftest.er1
23282   cat conftest.err >&5
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); } && {
23285          test -z "$ac_c_werror_flag" ||
23286          test ! -s conftest.err
23287        } && test -s conftest.$ac_objext; then
23288   ac_lo=0 ac_mid=0
23289   while :; do
23290     cat >conftest.$ac_ext <<_ACEOF
23291 /* confdefs.h.  */
23292 _ACEOF
23293 cat confdefs.h >>conftest.$ac_ext
23294 cat >>conftest.$ac_ext <<_ACEOF
23295 /* end confdefs.h.  */
23296 $ac_includes_default
23297    typedef long long ac__type_sizeof_;
23298 int
23299 main ()
23300 {
23301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23302 test_array [0] = 0
23303
23304   ;
23305   return 0;
23306 }
23307 _ACEOF
23308 rm -f conftest.$ac_objext
23309 if { (ac_try="$ac_compile"
23310 case "(($ac_try" in
23311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23312   *) ac_try_echo=$ac_try;;
23313 esac
23314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23315   (eval "$ac_compile") 2>conftest.er1
23316   ac_status=$?
23317   grep -v '^ *+' conftest.er1 >conftest.err
23318   rm -f conftest.er1
23319   cat conftest.err >&5
23320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321   (exit $ac_status); } && {
23322          test -z "$ac_c_werror_flag" ||
23323          test ! -s conftest.err
23324        } && test -s conftest.$ac_objext; then
23325   ac_hi=$ac_mid; break
23326 else
23327   echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23329
23330         ac_lo=`expr $ac_mid + 1`
23331                         if test $ac_lo -le $ac_mid; then
23332                           ac_lo= ac_hi=
23333                           break
23334                         fi
23335                         ac_mid=`expr 2 '*' $ac_mid + 1`
23336 fi
23337
23338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23339   done
23340 else
23341   echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23343
23344         cat >conftest.$ac_ext <<_ACEOF
23345 /* confdefs.h.  */
23346 _ACEOF
23347 cat confdefs.h >>conftest.$ac_ext
23348 cat >>conftest.$ac_ext <<_ACEOF
23349 /* end confdefs.h.  */
23350 $ac_includes_default
23351    typedef long long ac__type_sizeof_;
23352 int
23353 main ()
23354 {
23355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23356 test_array [0] = 0
23357
23358   ;
23359   return 0;
23360 }
23361 _ACEOF
23362 rm -f conftest.$ac_objext
23363 if { (ac_try="$ac_compile"
23364 case "(($ac_try" in
23365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366   *) ac_try_echo=$ac_try;;
23367 esac
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369   (eval "$ac_compile") 2>conftest.er1
23370   ac_status=$?
23371   grep -v '^ *+' conftest.er1 >conftest.err
23372   rm -f conftest.er1
23373   cat conftest.err >&5
23374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375   (exit $ac_status); } && {
23376          test -z "$ac_c_werror_flag" ||
23377          test ! -s conftest.err
23378        } && test -s conftest.$ac_objext; then
23379   ac_hi=-1 ac_mid=-1
23380   while :; do
23381     cat >conftest.$ac_ext <<_ACEOF
23382 /* confdefs.h.  */
23383 _ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h.  */
23387 $ac_includes_default
23388    typedef long long ac__type_sizeof_;
23389 int
23390 main ()
23391 {
23392 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23393 test_array [0] = 0
23394
23395   ;
23396   return 0;
23397 }
23398 _ACEOF
23399 rm -f conftest.$ac_objext
23400 if { (ac_try="$ac_compile"
23401 case "(($ac_try" in
23402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23403   *) ac_try_echo=$ac_try;;
23404 esac
23405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23406   (eval "$ac_compile") 2>conftest.er1
23407   ac_status=$?
23408   grep -v '^ *+' conftest.er1 >conftest.err
23409   rm -f conftest.er1
23410   cat conftest.err >&5
23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412   (exit $ac_status); } && {
23413          test -z "$ac_c_werror_flag" ||
23414          test ! -s conftest.err
23415        } && test -s conftest.$ac_objext; then
23416   ac_lo=$ac_mid; break
23417 else
23418   echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23420
23421         ac_hi=`expr '(' $ac_mid ')' - 1`
23422                         if test $ac_mid -le $ac_hi; then
23423                           ac_lo= ac_hi=
23424                           break
23425                         fi
23426                         ac_mid=`expr 2 '*' $ac_mid`
23427 fi
23428
23429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23430   done
23431 else
23432   echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23434
23435         ac_lo= ac_hi=
23436 fi
23437
23438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23439 fi
23440
23441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23442 # Binary search between lo and hi bounds.
23443 while test "x$ac_lo" != "x$ac_hi"; do
23444   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23445   cat >conftest.$ac_ext <<_ACEOF
23446 /* confdefs.h.  */
23447 _ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h.  */
23451 $ac_includes_default
23452    typedef long long ac__type_sizeof_;
23453 int
23454 main ()
23455 {
23456 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23457 test_array [0] = 0
23458
23459   ;
23460   return 0;
23461 }
23462 _ACEOF
23463 rm -f conftest.$ac_objext
23464 if { (ac_try="$ac_compile"
23465 case "(($ac_try" in
23466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467   *) ac_try_echo=$ac_try;;
23468 esac
23469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470   (eval "$ac_compile") 2>conftest.er1
23471   ac_status=$?
23472   grep -v '^ *+' conftest.er1 >conftest.err
23473   rm -f conftest.er1
23474   cat conftest.err >&5
23475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476   (exit $ac_status); } && {
23477          test -z "$ac_c_werror_flag" ||
23478          test ! -s conftest.err
23479        } && test -s conftest.$ac_objext; then
23480   ac_hi=$ac_mid
23481 else
23482   echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23484
23485         ac_lo=`expr '(' $ac_mid ')' + 1`
23486 fi
23487
23488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23489 done
23490 case $ac_lo in
23491 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23492 '') if test "$ac_cv_type_long_long" = yes; then
23493      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23494 See \`config.log' for more details." >&5
23495 echo "$as_me: error: cannot compute sizeof (long long)
23496 See \`config.log' for more details." >&2;}
23497    { (exit 77); exit 77; }; }
23498    else
23499      ac_cv_sizeof_long_long=0
23500    fi ;;
23501 esac
23502 else
23503   cat >conftest.$ac_ext <<_ACEOF
23504 /* confdefs.h.  */
23505 _ACEOF
23506 cat confdefs.h >>conftest.$ac_ext
23507 cat >>conftest.$ac_ext <<_ACEOF
23508 /* end confdefs.h.  */
23509 $ac_includes_default
23510    typedef long long ac__type_sizeof_;
23511 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23512 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23513 #include <stdio.h>
23514 #include <stdlib.h>
23515 int
23516 main ()
23517 {
23518
23519   FILE *f = fopen ("conftest.val", "w");
23520   if (! f)
23521     return 1;
23522   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23523     {
23524       long int i = longval ();
23525       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23526         return 1;
23527       fprintf (f, "%ld\n", i);
23528     }
23529   else
23530     {
23531       unsigned long int i = ulongval ();
23532       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23533         return 1;
23534       fprintf (f, "%lu\n", i);
23535     }
23536   return ferror (f) || fclose (f) != 0;
23537
23538   ;
23539   return 0;
23540 }
23541 _ACEOF
23542 rm -f conftest$ac_exeext
23543 if { (ac_try="$ac_link"
23544 case "(($ac_try" in
23545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546   *) ac_try_echo=$ac_try;;
23547 esac
23548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23549   (eval "$ac_link") 2>&5
23550   ac_status=$?
23551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23553   { (case "(($ac_try" in
23554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23555   *) ac_try_echo=$ac_try;;
23556 esac
23557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23558   (eval "$ac_try") 2>&5
23559   ac_status=$?
23560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561   (exit $ac_status); }; }; then
23562   ac_cv_sizeof_long_long=`cat conftest.val`
23563 else
23564   echo "$as_me: program exited with status $ac_status" >&5
23565 echo "$as_me: failed program was:" >&5
23566 sed 's/^/| /' conftest.$ac_ext >&5
23567
23568 ( exit $ac_status )
23569 if test "$ac_cv_type_long_long" = yes; then
23570      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23571 See \`config.log' for more details." >&5
23572 echo "$as_me: error: cannot compute sizeof (long long)
23573 See \`config.log' for more details." >&2;}
23574    { (exit 77); exit 77; }; }
23575    else
23576      ac_cv_sizeof_long_long=0
23577    fi
23578 fi
23579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23580 fi
23581 rm -f conftest.val
23582 fi
23583 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23584 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23585
23586
23587
23588 cat >>confdefs.h <<_ACEOF
23589 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23590 _ACEOF
23591
23592
23593         if test "$ac_cv_sizeof_long_long" != 0; then
23594                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23595         fi
23596     ;;
23597     * )
23598         { echo "$as_me:$LINENO: checking for long long" >&5
23599 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23600 if test "${ac_cv_type_long_long+set}" = set; then
23601   echo $ECHO_N "(cached) $ECHO_C" >&6
23602 else
23603   cat >conftest.$ac_ext <<_ACEOF
23604 /* confdefs.h.  */
23605 _ACEOF
23606 cat confdefs.h >>conftest.$ac_ext
23607 cat >>conftest.$ac_ext <<_ACEOF
23608 /* end confdefs.h.  */
23609 $ac_includes_default
23610 typedef long long ac__type_new_;
23611 int
23612 main ()
23613 {
23614 if ((ac__type_new_ *) 0)
23615   return 0;
23616 if (sizeof (ac__type_new_))
23617   return 0;
23618   ;
23619   return 0;
23620 }
23621 _ACEOF
23622 rm -f conftest.$ac_objext
23623 if { (ac_try="$ac_compile"
23624 case "(($ac_try" in
23625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23626   *) ac_try_echo=$ac_try;;
23627 esac
23628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23629   (eval "$ac_compile") 2>conftest.er1
23630   ac_status=$?
23631   grep -v '^ *+' conftest.er1 >conftest.err
23632   rm -f conftest.er1
23633   cat conftest.err >&5
23634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635   (exit $ac_status); } && {
23636          test -z "$ac_c_werror_flag" ||
23637          test ! -s conftest.err
23638        } && test -s conftest.$ac_objext; then
23639   ac_cv_type_long_long=yes
23640 else
23641   echo "$as_me: failed program was:" >&5
23642 sed 's/^/| /' conftest.$ac_ext >&5
23643
23644         ac_cv_type_long_long=no
23645 fi
23646
23647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23648 fi
23649 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23650 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23651
23652 # The cast to long int works around a bug in the HP C Compiler
23653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23655 # This bug is HP SR number 8606223364.
23656 { echo "$as_me:$LINENO: checking size of long long" >&5
23657 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23658 if test "${ac_cv_sizeof_long_long+set}" = set; then
23659   echo $ECHO_N "(cached) $ECHO_C" >&6
23660 else
23661   if test "$cross_compiling" = yes; then
23662   # Depending upon the size, compute the lo and hi bounds.
23663 cat >conftest.$ac_ext <<_ACEOF
23664 /* confdefs.h.  */
23665 _ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h.  */
23669 $ac_includes_default
23670    typedef long long ac__type_sizeof_;
23671 int
23672 main ()
23673 {
23674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23675 test_array [0] = 0
23676
23677   ;
23678   return 0;
23679 }
23680 _ACEOF
23681 rm -f conftest.$ac_objext
23682 if { (ac_try="$ac_compile"
23683 case "(($ac_try" in
23684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685   *) ac_try_echo=$ac_try;;
23686 esac
23687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688   (eval "$ac_compile") 2>conftest.er1
23689   ac_status=$?
23690   grep -v '^ *+' conftest.er1 >conftest.err
23691   rm -f conftest.er1
23692   cat conftest.err >&5
23693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694   (exit $ac_status); } && {
23695          test -z "$ac_c_werror_flag" ||
23696          test ! -s conftest.err
23697        } && test -s conftest.$ac_objext; then
23698   ac_lo=0 ac_mid=0
23699   while :; do
23700     cat >conftest.$ac_ext <<_ACEOF
23701 /* confdefs.h.  */
23702 _ACEOF
23703 cat confdefs.h >>conftest.$ac_ext
23704 cat >>conftest.$ac_ext <<_ACEOF
23705 /* end confdefs.h.  */
23706 $ac_includes_default
23707    typedef long long ac__type_sizeof_;
23708 int
23709 main ()
23710 {
23711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23712 test_array [0] = 0
23713
23714   ;
23715   return 0;
23716 }
23717 _ACEOF
23718 rm -f conftest.$ac_objext
23719 if { (ac_try="$ac_compile"
23720 case "(($ac_try" in
23721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23722   *) ac_try_echo=$ac_try;;
23723 esac
23724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23725   (eval "$ac_compile") 2>conftest.er1
23726   ac_status=$?
23727   grep -v '^ *+' conftest.er1 >conftest.err
23728   rm -f conftest.er1
23729   cat conftest.err >&5
23730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731   (exit $ac_status); } && {
23732          test -z "$ac_c_werror_flag" ||
23733          test ! -s conftest.err
23734        } && test -s conftest.$ac_objext; then
23735   ac_hi=$ac_mid; break
23736 else
23737   echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23739
23740         ac_lo=`expr $ac_mid + 1`
23741                         if test $ac_lo -le $ac_mid; then
23742                           ac_lo= ac_hi=
23743                           break
23744                         fi
23745                         ac_mid=`expr 2 '*' $ac_mid + 1`
23746 fi
23747
23748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23749   done
23750 else
23751   echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23753
23754         cat >conftest.$ac_ext <<_ACEOF
23755 /* confdefs.h.  */
23756 _ACEOF
23757 cat confdefs.h >>conftest.$ac_ext
23758 cat >>conftest.$ac_ext <<_ACEOF
23759 /* end confdefs.h.  */
23760 $ac_includes_default
23761    typedef long long ac__type_sizeof_;
23762 int
23763 main ()
23764 {
23765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23766 test_array [0] = 0
23767
23768   ;
23769   return 0;
23770 }
23771 _ACEOF
23772 rm -f conftest.$ac_objext
23773 if { (ac_try="$ac_compile"
23774 case "(($ac_try" in
23775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23776   *) ac_try_echo=$ac_try;;
23777 esac
23778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23779   (eval "$ac_compile") 2>conftest.er1
23780   ac_status=$?
23781   grep -v '^ *+' conftest.er1 >conftest.err
23782   rm -f conftest.er1
23783   cat conftest.err >&5
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); } && {
23786          test -z "$ac_c_werror_flag" ||
23787          test ! -s conftest.err
23788        } && test -s conftest.$ac_objext; then
23789   ac_hi=-1 ac_mid=-1
23790   while :; do
23791     cat >conftest.$ac_ext <<_ACEOF
23792 /* confdefs.h.  */
23793 _ACEOF
23794 cat confdefs.h >>conftest.$ac_ext
23795 cat >>conftest.$ac_ext <<_ACEOF
23796 /* end confdefs.h.  */
23797 $ac_includes_default
23798    typedef long long ac__type_sizeof_;
23799 int
23800 main ()
23801 {
23802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23803 test_array [0] = 0
23804
23805   ;
23806   return 0;
23807 }
23808 _ACEOF
23809 rm -f conftest.$ac_objext
23810 if { (ac_try="$ac_compile"
23811 case "(($ac_try" in
23812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23813   *) ac_try_echo=$ac_try;;
23814 esac
23815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23816   (eval "$ac_compile") 2>conftest.er1
23817   ac_status=$?
23818   grep -v '^ *+' conftest.er1 >conftest.err
23819   rm -f conftest.er1
23820   cat conftest.err >&5
23821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822   (exit $ac_status); } && {
23823          test -z "$ac_c_werror_flag" ||
23824          test ! -s conftest.err
23825        } && test -s conftest.$ac_objext; then
23826   ac_lo=$ac_mid; break
23827 else
23828   echo "$as_me: failed program was:" >&5
23829 sed 's/^/| /' conftest.$ac_ext >&5
23830
23831         ac_hi=`expr '(' $ac_mid ')' - 1`
23832                         if test $ac_mid -le $ac_hi; then
23833                           ac_lo= ac_hi=
23834                           break
23835                         fi
23836                         ac_mid=`expr 2 '*' $ac_mid`
23837 fi
23838
23839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23840   done
23841 else
23842   echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23844
23845         ac_lo= ac_hi=
23846 fi
23847
23848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23849 fi
23850
23851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23852 # Binary search between lo and hi bounds.
23853 while test "x$ac_lo" != "x$ac_hi"; do
23854   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23855   cat >conftest.$ac_ext <<_ACEOF
23856 /* confdefs.h.  */
23857 _ACEOF
23858 cat confdefs.h >>conftest.$ac_ext
23859 cat >>conftest.$ac_ext <<_ACEOF
23860 /* end confdefs.h.  */
23861 $ac_includes_default
23862    typedef long long ac__type_sizeof_;
23863 int
23864 main ()
23865 {
23866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23867 test_array [0] = 0
23868
23869   ;
23870   return 0;
23871 }
23872 _ACEOF
23873 rm -f conftest.$ac_objext
23874 if { (ac_try="$ac_compile"
23875 case "(($ac_try" in
23876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23877   *) ac_try_echo=$ac_try;;
23878 esac
23879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23880   (eval "$ac_compile") 2>conftest.er1
23881   ac_status=$?
23882   grep -v '^ *+' conftest.er1 >conftest.err
23883   rm -f conftest.er1
23884   cat conftest.err >&5
23885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886   (exit $ac_status); } && {
23887          test -z "$ac_c_werror_flag" ||
23888          test ! -s conftest.err
23889        } && test -s conftest.$ac_objext; then
23890   ac_hi=$ac_mid
23891 else
23892   echo "$as_me: failed program was:" >&5
23893 sed 's/^/| /' conftest.$ac_ext >&5
23894
23895         ac_lo=`expr '(' $ac_mid ')' + 1`
23896 fi
23897
23898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23899 done
23900 case $ac_lo in
23901 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23902 '') if test "$ac_cv_type_long_long" = yes; then
23903      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23904 See \`config.log' for more details." >&5
23905 echo "$as_me: error: cannot compute sizeof (long long)
23906 See \`config.log' for more details." >&2;}
23907    { (exit 77); exit 77; }; }
23908    else
23909      ac_cv_sizeof_long_long=0
23910    fi ;;
23911 esac
23912 else
23913   cat >conftest.$ac_ext <<_ACEOF
23914 /* confdefs.h.  */
23915 _ACEOF
23916 cat confdefs.h >>conftest.$ac_ext
23917 cat >>conftest.$ac_ext <<_ACEOF
23918 /* end confdefs.h.  */
23919 $ac_includes_default
23920    typedef long long ac__type_sizeof_;
23921 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23922 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23923 #include <stdio.h>
23924 #include <stdlib.h>
23925 int
23926 main ()
23927 {
23928
23929   FILE *f = fopen ("conftest.val", "w");
23930   if (! f)
23931     return 1;
23932   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23933     {
23934       long int i = longval ();
23935       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23936         return 1;
23937       fprintf (f, "%ld\n", i);
23938     }
23939   else
23940     {
23941       unsigned long int i = ulongval ();
23942       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23943         return 1;
23944       fprintf (f, "%lu\n", i);
23945     }
23946   return ferror (f) || fclose (f) != 0;
23947
23948   ;
23949   return 0;
23950 }
23951 _ACEOF
23952 rm -f conftest$ac_exeext
23953 if { (ac_try="$ac_link"
23954 case "(($ac_try" in
23955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23956   *) ac_try_echo=$ac_try;;
23957 esac
23958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23959   (eval "$ac_link") 2>&5
23960   ac_status=$?
23961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23963   { (case "(($ac_try" in
23964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965   *) ac_try_echo=$ac_try;;
23966 esac
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968   (eval "$ac_try") 2>&5
23969   ac_status=$?
23970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971   (exit $ac_status); }; }; then
23972   ac_cv_sizeof_long_long=`cat conftest.val`
23973 else
23974   echo "$as_me: program exited with status $ac_status" >&5
23975 echo "$as_me: failed program was:" >&5
23976 sed 's/^/| /' conftest.$ac_ext >&5
23977
23978 ( exit $ac_status )
23979 if test "$ac_cv_type_long_long" = yes; then
23980      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23981 See \`config.log' for more details." >&5
23982 echo "$as_me: error: cannot compute sizeof (long long)
23983 See \`config.log' for more details." >&2;}
23984    { (exit 77); exit 77; }; }
23985    else
23986      ac_cv_sizeof_long_long=0
23987    fi
23988 fi
23989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23990 fi
23991 rm -f conftest.val
23992 fi
23993 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23994 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23995
23996
23997
23998 cat >>confdefs.h <<_ACEOF
23999 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24000 _ACEOF
24001
24002
24003 esac
24004
24005 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24006 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24007 if test "${ac_cv_type_wchar_t+set}" = set; then
24008   echo $ECHO_N "(cached) $ECHO_C" >&6
24009 else
24010   cat >conftest.$ac_ext <<_ACEOF
24011 /* confdefs.h.  */
24012 _ACEOF
24013 cat confdefs.h >>conftest.$ac_ext
24014 cat >>conftest.$ac_ext <<_ACEOF
24015 /* end confdefs.h.  */
24016
24017         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24018         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24019         #  error "fake wchar_t"
24020         #endif
24021         #ifdef HAVE_WCHAR_H
24022         #  ifdef __CYGWIN__
24023         #    include <stddef.h>
24024         #  endif
24025         #  include <wchar.h>
24026         #endif
24027         #ifdef HAVE_STDLIB_H
24028         #  include <stdlib.h>
24029         #endif
24030         #include <stdio.h>
24031
24032
24033
24034 typedef wchar_t ac__type_new_;
24035 int
24036 main ()
24037 {
24038 if ((ac__type_new_ *) 0)
24039   return 0;
24040 if (sizeof (ac__type_new_))
24041   return 0;
24042   ;
24043   return 0;
24044 }
24045 _ACEOF
24046 rm -f conftest.$ac_objext
24047 if { (ac_try="$ac_compile"
24048 case "(($ac_try" in
24049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050   *) ac_try_echo=$ac_try;;
24051 esac
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053   (eval "$ac_compile") 2>conftest.er1
24054   ac_status=$?
24055   grep -v '^ *+' conftest.er1 >conftest.err
24056   rm -f conftest.er1
24057   cat conftest.err >&5
24058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059   (exit $ac_status); } && {
24060          test -z "$ac_c_werror_flag" ||
24061          test ! -s conftest.err
24062        } && test -s conftest.$ac_objext; then
24063   ac_cv_type_wchar_t=yes
24064 else
24065   echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24067
24068         ac_cv_type_wchar_t=no
24069 fi
24070
24071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24072 fi
24073 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24074 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24075
24076 # The cast to long int works around a bug in the HP C Compiler
24077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24079 # This bug is HP SR number 8606223364.
24080 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24081 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24082 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24083   echo $ECHO_N "(cached) $ECHO_C" >&6
24084 else
24085   if test "$cross_compiling" = yes; then
24086   # Depending upon the size, compute the lo and hi bounds.
24087 cat >conftest.$ac_ext <<_ACEOF
24088 /* confdefs.h.  */
24089 _ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h.  */
24093
24094         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24095         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24096         #  error "fake wchar_t"
24097         #endif
24098         #ifdef HAVE_WCHAR_H
24099         #  ifdef __CYGWIN__
24100         #    include <stddef.h>
24101         #  endif
24102         #  include <wchar.h>
24103         #endif
24104         #ifdef HAVE_STDLIB_H
24105         #  include <stdlib.h>
24106         #endif
24107         #include <stdio.h>
24108
24109
24110
24111    typedef wchar_t ac__type_sizeof_;
24112 int
24113 main ()
24114 {
24115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24116 test_array [0] = 0
24117
24118   ;
24119   return 0;
24120 }
24121 _ACEOF
24122 rm -f conftest.$ac_objext
24123 if { (ac_try="$ac_compile"
24124 case "(($ac_try" in
24125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24126   *) ac_try_echo=$ac_try;;
24127 esac
24128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24129   (eval "$ac_compile") 2>conftest.er1
24130   ac_status=$?
24131   grep -v '^ *+' conftest.er1 >conftest.err
24132   rm -f conftest.er1
24133   cat conftest.err >&5
24134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135   (exit $ac_status); } && {
24136          test -z "$ac_c_werror_flag" ||
24137          test ! -s conftest.err
24138        } && test -s conftest.$ac_objext; then
24139   ac_lo=0 ac_mid=0
24140   while :; do
24141     cat >conftest.$ac_ext <<_ACEOF
24142 /* confdefs.h.  */
24143 _ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h.  */
24147
24148         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24149         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24150         #  error "fake wchar_t"
24151         #endif
24152         #ifdef HAVE_WCHAR_H
24153         #  ifdef __CYGWIN__
24154         #    include <stddef.h>
24155         #  endif
24156         #  include <wchar.h>
24157         #endif
24158         #ifdef HAVE_STDLIB_H
24159         #  include <stdlib.h>
24160         #endif
24161         #include <stdio.h>
24162
24163
24164
24165    typedef wchar_t ac__type_sizeof_;
24166 int
24167 main ()
24168 {
24169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24170 test_array [0] = 0
24171
24172   ;
24173   return 0;
24174 }
24175 _ACEOF
24176 rm -f conftest.$ac_objext
24177 if { (ac_try="$ac_compile"
24178 case "(($ac_try" in
24179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180   *) ac_try_echo=$ac_try;;
24181 esac
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183   (eval "$ac_compile") 2>conftest.er1
24184   ac_status=$?
24185   grep -v '^ *+' conftest.er1 >conftest.err
24186   rm -f conftest.er1
24187   cat conftest.err >&5
24188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189   (exit $ac_status); } && {
24190          test -z "$ac_c_werror_flag" ||
24191          test ! -s conftest.err
24192        } && test -s conftest.$ac_objext; then
24193   ac_hi=$ac_mid; break
24194 else
24195   echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24197
24198         ac_lo=`expr $ac_mid + 1`
24199                         if test $ac_lo -le $ac_mid; then
24200                           ac_lo= ac_hi=
24201                           break
24202                         fi
24203                         ac_mid=`expr 2 '*' $ac_mid + 1`
24204 fi
24205
24206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24207   done
24208 else
24209   echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24211
24212         cat >conftest.$ac_ext <<_ACEOF
24213 /* confdefs.h.  */
24214 _ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h.  */
24218
24219         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24220         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24221         #  error "fake wchar_t"
24222         #endif
24223         #ifdef HAVE_WCHAR_H
24224         #  ifdef __CYGWIN__
24225         #    include <stddef.h>
24226         #  endif
24227         #  include <wchar.h>
24228         #endif
24229         #ifdef HAVE_STDLIB_H
24230         #  include <stdlib.h>
24231         #endif
24232         #include <stdio.h>
24233
24234
24235
24236    typedef wchar_t ac__type_sizeof_;
24237 int
24238 main ()
24239 {
24240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24241 test_array [0] = 0
24242
24243   ;
24244   return 0;
24245 }
24246 _ACEOF
24247 rm -f conftest.$ac_objext
24248 if { (ac_try="$ac_compile"
24249 case "(($ac_try" in
24250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24251   *) ac_try_echo=$ac_try;;
24252 esac
24253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24254   (eval "$ac_compile") 2>conftest.er1
24255   ac_status=$?
24256   grep -v '^ *+' conftest.er1 >conftest.err
24257   rm -f conftest.er1
24258   cat conftest.err >&5
24259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260   (exit $ac_status); } && {
24261          test -z "$ac_c_werror_flag" ||
24262          test ! -s conftest.err
24263        } && test -s conftest.$ac_objext; then
24264   ac_hi=-1 ac_mid=-1
24265   while :; do
24266     cat >conftest.$ac_ext <<_ACEOF
24267 /* confdefs.h.  */
24268 _ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h.  */
24272
24273         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24274         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24275         #  error "fake wchar_t"
24276         #endif
24277         #ifdef HAVE_WCHAR_H
24278         #  ifdef __CYGWIN__
24279         #    include <stddef.h>
24280         #  endif
24281         #  include <wchar.h>
24282         #endif
24283         #ifdef HAVE_STDLIB_H
24284         #  include <stdlib.h>
24285         #endif
24286         #include <stdio.h>
24287
24288
24289
24290    typedef wchar_t ac__type_sizeof_;
24291 int
24292 main ()
24293 {
24294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24295 test_array [0] = 0
24296
24297   ;
24298   return 0;
24299 }
24300 _ACEOF
24301 rm -f conftest.$ac_objext
24302 if { (ac_try="$ac_compile"
24303 case "(($ac_try" in
24304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305   *) ac_try_echo=$ac_try;;
24306 esac
24307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24308   (eval "$ac_compile") 2>conftest.er1
24309   ac_status=$?
24310   grep -v '^ *+' conftest.er1 >conftest.err
24311   rm -f conftest.er1
24312   cat conftest.err >&5
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); } && {
24315          test -z "$ac_c_werror_flag" ||
24316          test ! -s conftest.err
24317        } && test -s conftest.$ac_objext; then
24318   ac_lo=$ac_mid; break
24319 else
24320   echo "$as_me: failed program was:" >&5
24321 sed 's/^/| /' conftest.$ac_ext >&5
24322
24323         ac_hi=`expr '(' $ac_mid ')' - 1`
24324                         if test $ac_mid -le $ac_hi; then
24325                           ac_lo= ac_hi=
24326                           break
24327                         fi
24328                         ac_mid=`expr 2 '*' $ac_mid`
24329 fi
24330
24331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24332   done
24333 else
24334   echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24336
24337         ac_lo= ac_hi=
24338 fi
24339
24340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24341 fi
24342
24343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24344 # Binary search between lo and hi bounds.
24345 while test "x$ac_lo" != "x$ac_hi"; do
24346   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24347   cat >conftest.$ac_ext <<_ACEOF
24348 /* confdefs.h.  */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h.  */
24353
24354         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24355         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24356         #  error "fake wchar_t"
24357         #endif
24358         #ifdef HAVE_WCHAR_H
24359         #  ifdef __CYGWIN__
24360         #    include <stddef.h>
24361         #  endif
24362         #  include <wchar.h>
24363         #endif
24364         #ifdef HAVE_STDLIB_H
24365         #  include <stdlib.h>
24366         #endif
24367         #include <stdio.h>
24368
24369
24370
24371    typedef wchar_t ac__type_sizeof_;
24372 int
24373 main ()
24374 {
24375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24376 test_array [0] = 0
24377
24378   ;
24379   return 0;
24380 }
24381 _ACEOF
24382 rm -f conftest.$ac_objext
24383 if { (ac_try="$ac_compile"
24384 case "(($ac_try" in
24385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24386   *) ac_try_echo=$ac_try;;
24387 esac
24388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24389   (eval "$ac_compile") 2>conftest.er1
24390   ac_status=$?
24391   grep -v '^ *+' conftest.er1 >conftest.err
24392   rm -f conftest.er1
24393   cat conftest.err >&5
24394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395   (exit $ac_status); } && {
24396          test -z "$ac_c_werror_flag" ||
24397          test ! -s conftest.err
24398        } && test -s conftest.$ac_objext; then
24399   ac_hi=$ac_mid
24400 else
24401   echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24403
24404         ac_lo=`expr '(' $ac_mid ')' + 1`
24405 fi
24406
24407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24408 done
24409 case $ac_lo in
24410 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24411 '') if test "$ac_cv_type_wchar_t" = yes; then
24412      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24413 See \`config.log' for more details." >&5
24414 echo "$as_me: error: cannot compute sizeof (wchar_t)
24415 See \`config.log' for more details." >&2;}
24416    { (exit 77); exit 77; }; }
24417    else
24418      ac_cv_sizeof_wchar_t=0
24419    fi ;;
24420 esac
24421 else
24422   cat >conftest.$ac_ext <<_ACEOF
24423 /* confdefs.h.  */
24424 _ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h.  */
24428
24429         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24430         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24431         #  error "fake wchar_t"
24432         #endif
24433         #ifdef HAVE_WCHAR_H
24434         #  ifdef __CYGWIN__
24435         #    include <stddef.h>
24436         #  endif
24437         #  include <wchar.h>
24438         #endif
24439         #ifdef HAVE_STDLIB_H
24440         #  include <stdlib.h>
24441         #endif
24442         #include <stdio.h>
24443
24444
24445
24446    typedef wchar_t ac__type_sizeof_;
24447 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24448 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24449 #include <stdio.h>
24450 #include <stdlib.h>
24451 int
24452 main ()
24453 {
24454
24455   FILE *f = fopen ("conftest.val", "w");
24456   if (! f)
24457     return 1;
24458   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24459     {
24460       long int i = longval ();
24461       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24462         return 1;
24463       fprintf (f, "%ld\n", i);
24464     }
24465   else
24466     {
24467       unsigned long int i = ulongval ();
24468       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24469         return 1;
24470       fprintf (f, "%lu\n", i);
24471     }
24472   return ferror (f) || fclose (f) != 0;
24473
24474   ;
24475   return 0;
24476 }
24477 _ACEOF
24478 rm -f conftest$ac_exeext
24479 if { (ac_try="$ac_link"
24480 case "(($ac_try" in
24481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24482   *) ac_try_echo=$ac_try;;
24483 esac
24484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24485   (eval "$ac_link") 2>&5
24486   ac_status=$?
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24489   { (case "(($ac_try" in
24490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24491   *) ac_try_echo=$ac_try;;
24492 esac
24493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24494   (eval "$ac_try") 2>&5
24495   ac_status=$?
24496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497   (exit $ac_status); }; }; then
24498   ac_cv_sizeof_wchar_t=`cat conftest.val`
24499 else
24500   echo "$as_me: program exited with status $ac_status" >&5
24501 echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504 ( exit $ac_status )
24505 if test "$ac_cv_type_wchar_t" = yes; then
24506      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24507 See \`config.log' for more details." >&5
24508 echo "$as_me: error: cannot compute sizeof (wchar_t)
24509 See \`config.log' for more details." >&2;}
24510    { (exit 77); exit 77; }; }
24511    else
24512      ac_cv_sizeof_wchar_t=0
24513    fi
24514 fi
24515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24516 fi
24517 rm -f conftest.val
24518 fi
24519 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24520 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24521
24522
24523
24524 cat >>confdefs.h <<_ACEOF
24525 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24526 _ACEOF
24527
24528
24529 if test "$ac_cv_sizeof_wchar_t" = 0; then
24530     { { echo "$as_me:$LINENO: error: wxWidgets requires wchar_t support." >&5
24531 echo "$as_me: error: wxWidgets requires wchar_t support." >&2;}
24532    { (exit 1); exit 1; }; }
24533 fi
24534 cat >>confdefs.h <<\_ACEOF
24535 #define wxUSE_WCHAR_T 1
24536 _ACEOF
24537
24538
24539 { echo "$as_me:$LINENO: checking for va_copy" >&5
24540 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24541 if test "${wx_cv_func_va_copy+set}" = set; then
24542   echo $ECHO_N "(cached) $ECHO_C" >&6
24543 else
24544
24545         ac_ext=cpp
24546 ac_cpp='$CXXCPP $CPPFLAGS'
24547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24550
24551         cat >conftest.$ac_ext <<_ACEOF
24552
24553             #include <stdarg.h>
24554             void foo(char *f, ...)
24555             {
24556                 va_list ap1, ap2;
24557                 va_start(ap1, f);
24558                 va_copy(ap2, ap1);
24559                 va_end(ap2);
24560                 va_end(ap1);
24561             }
24562             int main()
24563             {
24564                 foo("hi", 17);
24565                 return 0;
24566             }
24567 _ACEOF
24568 rm -f conftest.$ac_objext conftest$ac_exeext
24569 if { (ac_try="$ac_link"
24570 case "(($ac_try" in
24571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572   *) ac_try_echo=$ac_try;;
24573 esac
24574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24575   (eval "$ac_link") 2>conftest.er1
24576   ac_status=$?
24577   grep -v '^ *+' conftest.er1 >conftest.err
24578   rm -f conftest.er1
24579   cat conftest.err >&5
24580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581   (exit $ac_status); } && {
24582          test -z "$ac_cxx_werror_flag" ||
24583          test ! -s conftest.err
24584        } && test -s conftest$ac_exeext &&
24585        $as_test_x conftest$ac_exeext; then
24586   wx_cv_func_va_copy=yes
24587 else
24588   echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24590
24591         wx_cv_func_va_copy=no
24592
24593 fi
24594
24595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24596       conftest$ac_exeext conftest.$ac_ext
24597         ac_ext=c
24598 ac_cpp='$CPP $CPPFLAGS'
24599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24602
24603
24604
24605 fi
24606 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24607 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24608
24609 if test $wx_cv_func_va_copy = "yes"; then
24610     cat >>confdefs.h <<\_ACEOF
24611 #define HAVE_VA_COPY 1
24612 _ACEOF
24613
24614 else
24615         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24616 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24617 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24618   echo $ECHO_N "(cached) $ECHO_C" >&6
24619 else
24620
24621             if test "$cross_compiling" = yes; then
24622                   wx_cv_type_va_list_lvalue=yes
24623
24624 else
24625   cat >conftest.$ac_ext <<_ACEOF
24626
24627                 #include <stdarg.h>
24628                 int foo(char *f, ...)
24629                 {
24630                     va_list ap1, ap2;
24631                     va_start(ap1, f);
24632                     ap2 = ap1;
24633                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24634                         return 1;
24635                     va_end(ap2);
24636                     va_end(ap1);
24637                     return 0;
24638                 }
24639                 int main()
24640                 {
24641                     return foo("hi", 17);
24642                 }
24643 _ACEOF
24644 rm -f conftest$ac_exeext
24645 if { (ac_try="$ac_link"
24646 case "(($ac_try" in
24647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648   *) ac_try_echo=$ac_try;;
24649 esac
24650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651   (eval "$ac_link") 2>&5
24652   ac_status=$?
24653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24655   { (case "(($ac_try" in
24656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24657   *) ac_try_echo=$ac_try;;
24658 esac
24659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24660   (eval "$ac_try") 2>&5
24661   ac_status=$?
24662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663   (exit $ac_status); }; }; then
24664   wx_cv_type_va_list_lvalue=yes
24665 else
24666   echo "$as_me: program exited with status $ac_status" >&5
24667 echo "$as_me: failed program was:" >&5
24668 sed 's/^/| /' conftest.$ac_ext >&5
24669
24670 ( exit $ac_status )
24671 wx_cv_type_va_list_lvalue=no
24672 fi
24673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24674 fi
24675
24676
24677
24678
24679 fi
24680 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24681 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24682
24683     if test $wx_cv_type_va_list_lvalue != "yes"; then
24684                         cat >>confdefs.h <<\_ACEOF
24685 #define VA_LIST_IS_ARRAY 1
24686 _ACEOF
24687
24688     fi
24689 fi
24690
24691 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24692
24693 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24694 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24695 if test "${wx_cv_have_variadic_macros+set}" = set; then
24696   echo $ECHO_N "(cached) $ECHO_C" >&6
24697 else
24698
24699                         ac_ext=cpp
24700 ac_cpp='$CXXCPP $CPPFLAGS'
24701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24704
24705         cat >conftest.$ac_ext <<_ACEOF
24706 /* confdefs.h.  */
24707 _ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h.  */
24711
24712                     #include <stdio.h>
24713                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24714
24715 int
24716 main ()
24717 {
24718
24719                     test("%s %d %p", "test", 1, 0);
24720
24721
24722   ;
24723   return 0;
24724 }
24725 _ACEOF
24726 rm -f conftest.$ac_objext
24727 if { (ac_try="$ac_compile"
24728 case "(($ac_try" in
24729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24730   *) ac_try_echo=$ac_try;;
24731 esac
24732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24733   (eval "$ac_compile") 2>conftest.er1
24734   ac_status=$?
24735   grep -v '^ *+' conftest.er1 >conftest.err
24736   rm -f conftest.er1
24737   cat conftest.err >&5
24738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739   (exit $ac_status); } && {
24740          test -z "$ac_cxx_werror_flag" ||
24741          test ! -s conftest.err
24742        } && test -s conftest.$ac_objext; then
24743   wx_cv_have_variadic_macros=yes
24744 else
24745   echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.$ac_ext >&5
24747
24748         wx_cv_have_variadic_macros=no
24749
24750 fi
24751
24752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24753         ac_ext=c
24754 ac_cpp='$CPP $CPPFLAGS'
24755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24758
24759
24760
24761 fi
24762 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24763 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24764
24765 if test $wx_cv_have_variadic_macros = "yes"; then
24766     cat >>confdefs.h <<\_ACEOF
24767 #define HAVE_VARIADIC_MACROS 1
24768 _ACEOF
24769
24770 fi
24771
24772 fi
24773
24774 LARGEFILE_CPPFLAGS=
24775 # Check whether --enable-largefile was given.
24776 if test "${enable_largefile+set}" = set; then
24777   enableval=$enable_largefile;
24778 fi
24779
24780 if test "$enable_largefile" != no; then
24781             wx_largefile=no
24782
24783     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24784 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24785 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24786   echo $ECHO_N "(cached) $ECHO_C" >&6
24787 else
24788
24789           cat >conftest.$ac_ext <<_ACEOF
24790 /* confdefs.h.  */
24791 _ACEOF
24792 cat confdefs.h >>conftest.$ac_ext
24793 cat >>conftest.$ac_ext <<_ACEOF
24794 /* end confdefs.h.  */
24795 #define _FILE_OFFSET_BITS 64
24796                           #include <sys/types.h>
24797 int
24798 main ()
24799 {
24800 typedef struct {
24801     unsigned int field: sizeof(off_t) == 8;
24802 } wxlf;
24803
24804   ;
24805   return 0;
24806 }
24807 _ACEOF
24808 rm -f conftest.$ac_objext
24809 if { (ac_try="$ac_compile"
24810 case "(($ac_try" in
24811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24812   *) ac_try_echo=$ac_try;;
24813 esac
24814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24815   (eval "$ac_compile") 2>conftest.er1
24816   ac_status=$?
24817   grep -v '^ *+' conftest.er1 >conftest.err
24818   rm -f conftest.er1
24819   cat conftest.err >&5
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); } && {
24822          test -z "$ac_c_werror_flag" ||
24823          test ! -s conftest.err
24824        } && test -s conftest.$ac_objext; then
24825   ac_cv_sys_file_offset_bits=64
24826 else
24827   echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24829
24830         ac_cv_sys_file_offset_bits=no
24831 fi
24832
24833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24834
24835
24836 fi
24837 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24838 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24839
24840     if test "$ac_cv_sys_file_offset_bits" != no; then
24841         wx_largefile=yes
24842         cat >>confdefs.h <<_ACEOF
24843 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24844 _ACEOF
24845
24846     fi
24847
24848     if test "x$wx_largefile" != "xyes"; then
24849
24850     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24851 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24852 if test "${ac_cv_sys_large_files+set}" = set; then
24853   echo $ECHO_N "(cached) $ECHO_C" >&6
24854 else
24855
24856           cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h.  */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h.  */
24862 #define _LARGE_FILES 1
24863                           #include <sys/types.h>
24864 int
24865 main ()
24866 {
24867 typedef struct {
24868     unsigned int field: sizeof(off_t) == 8;
24869 } wxlf;
24870
24871   ;
24872   return 0;
24873 }
24874 _ACEOF
24875 rm -f conftest.$ac_objext
24876 if { (ac_try="$ac_compile"
24877 case "(($ac_try" in
24878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24879   *) ac_try_echo=$ac_try;;
24880 esac
24881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24882   (eval "$ac_compile") 2>conftest.er1
24883   ac_status=$?
24884   grep -v '^ *+' conftest.er1 >conftest.err
24885   rm -f conftest.er1
24886   cat conftest.err >&5
24887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888   (exit $ac_status); } && {
24889          test -z "$ac_c_werror_flag" ||
24890          test ! -s conftest.err
24891        } && test -s conftest.$ac_objext; then
24892   ac_cv_sys_large_files=1
24893 else
24894   echo "$as_me: failed program was:" >&5
24895 sed 's/^/| /' conftest.$ac_ext >&5
24896
24897         ac_cv_sys_large_files=no
24898 fi
24899
24900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24901
24902
24903 fi
24904 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24905 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24906
24907     if test "$ac_cv_sys_large_files" != no; then
24908         wx_largefile=yes
24909         cat >>confdefs.h <<_ACEOF
24910 #define _LARGE_FILES $ac_cv_sys_large_files
24911 _ACEOF
24912
24913     fi
24914
24915     fi
24916
24917     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24918 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24919     if test "x$wx_largefile" = "xyes"; then
24920         cat >>confdefs.h <<\_ACEOF
24921 #define HAVE_LARGEFILE_SUPPORT 1
24922 _ACEOF
24923
24924     fi
24925     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24926 echo "${ECHO_T}$wx_largefile" >&6; }
24927 fi
24928
24929 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24930     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24931 elif test "$ac_cv_sys_large_files" = 1; then
24932     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24933 fi
24934
24935 if test -n "$LARGEFILE_CPPFLAGS"; then
24936     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
24937
24938                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24939         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24940 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24941 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24942   echo $ECHO_N "(cached) $ECHO_C" >&6
24943 else
24944
24945                 ac_ext=cpp
24946 ac_cpp='$CXXCPP $CPPFLAGS'
24947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24950
24951                 cat >conftest.$ac_ext <<_ACEOF
24952 /* confdefs.h.  */
24953 _ACEOF
24954 cat confdefs.h >>conftest.$ac_ext
24955 cat >>conftest.$ac_ext <<_ACEOF
24956 /* end confdefs.h.  */
24957
24958 int
24959 main ()
24960 {
24961
24962                         #ifndef __STDC_EXT__
24963                             choke me
24964                         #endif
24965
24966   ;
24967   return 0;
24968 }
24969 _ACEOF
24970 rm -f conftest.$ac_objext
24971 if { (ac_try="$ac_compile"
24972 case "(($ac_try" in
24973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24974   *) ac_try_echo=$ac_try;;
24975 esac
24976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24977   (eval "$ac_compile") 2>conftest.er1
24978   ac_status=$?
24979   grep -v '^ *+' conftest.er1 >conftest.err
24980   rm -f conftest.er1
24981   cat conftest.err >&5
24982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983   (exit $ac_status); } && {
24984          test -z "$ac_cxx_werror_flag" ||
24985          test ! -s conftest.err
24986        } && test -s conftest.$ac_objext; then
24987   wx_cv_STDC_EXT_required=no
24988 else
24989   echo "$as_me: failed program was:" >&5
24990 sed 's/^/| /' conftest.$ac_ext >&5
24991
24992         wx_cv_STDC_EXT_required=yes
24993
24994 fi
24995
24996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24997                 ac_ext=c
24998 ac_cpp='$CPP $CPPFLAGS'
24999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25002
25003
25004
25005 fi
25006 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
25007 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
25008         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
25009             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
25010         fi
25011     fi
25012 fi
25013
25014 ac_ext=cpp
25015 ac_cpp='$CXXCPP $CPPFLAGS'
25016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25019
25020 old_CPPFLAGS="$CPPFLAGS"
25021 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
25022 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25023 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
25024 if test "${ac_cv_sys_largefile_source+set}" = set; then
25025   echo $ECHO_N "(cached) $ECHO_C" >&6
25026 else
25027   while :; do
25028   cat >conftest.$ac_ext <<_ACEOF
25029 /* confdefs.h.  */
25030 _ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h.  */
25034 #include <sys/types.h> /* for off_t */
25035      #include <stdio.h>
25036 int
25037 main ()
25038 {
25039 int (*fp) (FILE *, off_t, int) = fseeko;
25040      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25041   ;
25042   return 0;
25043 }
25044 _ACEOF
25045 rm -f conftest.$ac_objext conftest$ac_exeext
25046 if { (ac_try="$ac_link"
25047 case "(($ac_try" in
25048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049   *) ac_try_echo=$ac_try;;
25050 esac
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052   (eval "$ac_link") 2>conftest.er1
25053   ac_status=$?
25054   grep -v '^ *+' conftest.er1 >conftest.err
25055   rm -f conftest.er1
25056   cat conftest.err >&5
25057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); } && {
25059          test -z "$ac_cxx_werror_flag" ||
25060          test ! -s conftest.err
25061        } && test -s conftest$ac_exeext &&
25062        $as_test_x conftest$ac_exeext; then
25063   ac_cv_sys_largefile_source=no; break
25064 else
25065   echo "$as_me: failed program was:" >&5
25066 sed 's/^/| /' conftest.$ac_ext >&5
25067
25068
25069 fi
25070
25071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25072       conftest$ac_exeext conftest.$ac_ext
25073   cat >conftest.$ac_ext <<_ACEOF
25074 /* confdefs.h.  */
25075 _ACEOF
25076 cat confdefs.h >>conftest.$ac_ext
25077 cat >>conftest.$ac_ext <<_ACEOF
25078 /* end confdefs.h.  */
25079 #define _LARGEFILE_SOURCE 1
25080 #include <sys/types.h> /* for off_t */
25081      #include <stdio.h>
25082 int
25083 main ()
25084 {
25085 int (*fp) (FILE *, off_t, int) = fseeko;
25086      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25087   ;
25088   return 0;
25089 }
25090 _ACEOF
25091 rm -f conftest.$ac_objext conftest$ac_exeext
25092 if { (ac_try="$ac_link"
25093 case "(($ac_try" in
25094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095   *) ac_try_echo=$ac_try;;
25096 esac
25097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25098   (eval "$ac_link") 2>conftest.er1
25099   ac_status=$?
25100   grep -v '^ *+' conftest.er1 >conftest.err
25101   rm -f conftest.er1
25102   cat conftest.err >&5
25103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104   (exit $ac_status); } && {
25105          test -z "$ac_cxx_werror_flag" ||
25106          test ! -s conftest.err
25107        } && test -s conftest$ac_exeext &&
25108        $as_test_x conftest$ac_exeext; then
25109   ac_cv_sys_largefile_source=1; break
25110 else
25111   echo "$as_me: failed program was:" >&5
25112 sed 's/^/| /' conftest.$ac_ext >&5
25113
25114
25115 fi
25116
25117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25118       conftest$ac_exeext conftest.$ac_ext
25119   ac_cv_sys_largefile_source=unknown
25120   break
25121 done
25122 fi
25123 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25124 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25125 case $ac_cv_sys_largefile_source in #(
25126   no | unknown) ;;
25127   *)
25128 cat >>confdefs.h <<_ACEOF
25129 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25130 _ACEOF
25131 ;;
25132 esac
25133 rm -f conftest*
25134
25135 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25136 # in glibc 2.1.3, but that breaks too many other things.
25137 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25138 if test $ac_cv_sys_largefile_source != unknown; then
25139
25140 cat >>confdefs.h <<\_ACEOF
25141 #define HAVE_FSEEKO 1
25142 _ACEOF
25143
25144 fi
25145
25146 CPPFLAGS="$old_CPPFLAGS"
25147 ac_ext=c
25148 ac_cpp='$CPP $CPPFLAGS'
25149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25152
25153 if test "$ac_cv_sys_largefile_source" != no; then
25154     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25155 fi
25156
25157 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25158 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25159 if test "${ac_cv_c_bigendian+set}" = set; then
25160   echo $ECHO_N "(cached) $ECHO_C" >&6
25161 else
25162   ac_cv_c_bigendian=unknown
25163 # See if sys/param.h defines the BYTE_ORDER macro.
25164 cat >conftest.$ac_ext <<_ACEOF
25165 /* confdefs.h.  */
25166 _ACEOF
25167 cat confdefs.h >>conftest.$ac_ext
25168 cat >>conftest.$ac_ext <<_ACEOF
25169 /* end confdefs.h.  */
25170 #include <sys/types.h>
25171 #include <sys/param.h>
25172 int
25173 main ()
25174 {
25175
25176 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25177  bogus endian macros
25178 #endif
25179   ;
25180   return 0;
25181 }
25182 _ACEOF
25183 rm -f conftest.$ac_objext
25184 if { (ac_try="$ac_compile"
25185 case "(($ac_try" in
25186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25187   *) ac_try_echo=$ac_try;;
25188 esac
25189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25190   (eval "$ac_compile") 2>conftest.er1
25191   ac_status=$?
25192   grep -v '^ *+' conftest.er1 >conftest.err
25193   rm -f conftest.er1
25194   cat conftest.err >&5
25195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196   (exit $ac_status); } && {
25197          test -z "$ac_c_werror_flag" ||
25198          test ! -s conftest.err
25199        } && test -s conftest.$ac_objext; then
25200   # It does; now see whether it defined to BIG_ENDIAN or not.
25201 cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h.  */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h.  */
25207 #include <sys/types.h>
25208 #include <sys/param.h>
25209 int
25210 main ()
25211 {
25212
25213 #if BYTE_ORDER != BIG_ENDIAN
25214  not big endian
25215 #endif
25216   ;
25217   return 0;
25218 }
25219 _ACEOF
25220 rm -f conftest.$ac_objext
25221 if { (ac_try="$ac_compile"
25222 case "(($ac_try" in
25223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25224   *) ac_try_echo=$ac_try;;
25225 esac
25226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25227   (eval "$ac_compile") 2>conftest.er1
25228   ac_status=$?
25229   grep -v '^ *+' conftest.er1 >conftest.err
25230   rm -f conftest.er1
25231   cat conftest.err >&5
25232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233   (exit $ac_status); } && {
25234          test -z "$ac_c_werror_flag" ||
25235          test ! -s conftest.err
25236        } && test -s conftest.$ac_objext; then
25237   ac_cv_c_bigendian=yes
25238 else
25239   echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25241
25242         ac_cv_c_bigendian=no
25243 fi
25244
25245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25246 else
25247   echo "$as_me: failed program was:" >&5
25248 sed 's/^/| /' conftest.$ac_ext >&5
25249
25250
25251 fi
25252
25253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25254 if test $ac_cv_c_bigendian = unknown; then
25255 if test "$cross_compiling" = yes; then
25256   ac_cv_c_bigendian=unknown
25257 else
25258   cat >conftest.$ac_ext <<_ACEOF
25259 /* confdefs.h.  */
25260 _ACEOF
25261 cat confdefs.h >>conftest.$ac_ext
25262 cat >>conftest.$ac_ext <<_ACEOF
25263 /* end confdefs.h.  */
25264 main () {
25265   /* Are we little or big endian?  From Harbison&Steele.  */
25266   union
25267   {
25268     long l;
25269     char c[sizeof (long)];
25270   } u;
25271   u.l = 1;
25272   exit (u.c[sizeof (long) - 1] == 1);
25273 }
25274 _ACEOF
25275 rm -f conftest$ac_exeext
25276 if { (ac_try="$ac_link"
25277 case "(($ac_try" in
25278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25279   *) ac_try_echo=$ac_try;;
25280 esac
25281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25282   (eval "$ac_link") 2>&5
25283   ac_status=$?
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25286   { (case "(($ac_try" in
25287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25288   *) ac_try_echo=$ac_try;;
25289 esac
25290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25291   (eval "$ac_try") 2>&5
25292   ac_status=$?
25293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); }; }; then
25295   ac_cv_c_bigendian=no
25296 else
25297   echo "$as_me: program exited with status $ac_status" >&5
25298 echo "$as_me: failed program was:" >&5
25299 sed 's/^/| /' conftest.$ac_ext >&5
25300
25301 ( exit $ac_status )
25302 ac_cv_c_bigendian=yes
25303 fi
25304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25305 fi
25306
25307
25308 fi
25309 fi
25310 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25311 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25312 if test $ac_cv_c_bigendian = unknown; then
25313   { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5
25314 echo "$as_me: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
25315 fi
25316 if test $ac_cv_c_bigendian = yes; then
25317   cat >>confdefs.h <<\_ACEOF
25318 #define WORDS_BIGENDIAN 1
25319 _ACEOF
25320
25321 fi
25322
25323
25324
25325
25326     ac_ext=cpp
25327 ac_cpp='$CXXCPP $CPPFLAGS'
25328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25331
25332
25333
25334 for ac_header in iostream
25335 do
25336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25340   echo $ECHO_N "(cached) $ECHO_C" >&6
25341 else
25342   cat >conftest.$ac_ext <<_ACEOF
25343 /* confdefs.h.  */
25344 _ACEOF
25345 cat confdefs.h >>conftest.$ac_ext
25346 cat >>conftest.$ac_ext <<_ACEOF
25347 /* end confdefs.h.  */
25348
25349
25350 #include <$ac_header>
25351 _ACEOF
25352 rm -f conftest.$ac_objext
25353 if { (ac_try="$ac_compile"
25354 case "(($ac_try" in
25355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25356   *) ac_try_echo=$ac_try;;
25357 esac
25358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25359   (eval "$ac_compile") 2>conftest.er1
25360   ac_status=$?
25361   grep -v '^ *+' conftest.er1 >conftest.err
25362   rm -f conftest.er1
25363   cat conftest.err >&5
25364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365   (exit $ac_status); } && {
25366          test -z "$ac_cxx_werror_flag" ||
25367          test ! -s conftest.err
25368        } && test -s conftest.$ac_objext; then
25369   eval "$as_ac_Header=yes"
25370 else
25371   echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25373
25374         eval "$as_ac_Header=no"
25375 fi
25376
25377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25378 fi
25379 ac_res=`eval echo '${'$as_ac_Header'}'`
25380                { echo "$as_me:$LINENO: result: $ac_res" >&5
25381 echo "${ECHO_T}$ac_res" >&6; }
25382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25383   cat >>confdefs.h <<_ACEOF
25384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25385 _ACEOF
25386
25387 fi
25388
25389 done
25390
25391
25392     if test "$ac_cv_header_iostream" = "yes" ; then
25393       :
25394     else
25395       cat >>confdefs.h <<\_ACEOF
25396 #define wxUSE_IOSTREAMH 1
25397 _ACEOF
25398
25399     fi
25400
25401     ac_ext=c
25402 ac_cpp='$CPP $CPPFLAGS'
25403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25406
25407
25408
25409
25410   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25411 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25412 if test "${wx_cv_explicit+set}" = set; then
25413   echo $ECHO_N "(cached) $ECHO_C" >&6
25414 else
25415
25416
25417     ac_ext=cpp
25418 ac_cpp='$CXXCPP $CPPFLAGS'
25419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25422
25423
25424             cat >conftest.$ac_ext <<_ACEOF
25425 /* confdefs.h.  */
25426 _ACEOF
25427 cat confdefs.h >>conftest.$ac_ext
25428 cat >>conftest.$ac_ext <<_ACEOF
25429 /* end confdefs.h.  */
25430
25431         class Foo { public: explicit Foo(int) {} };
25432
25433 int
25434 main ()
25435 {
25436
25437         return 0;
25438
25439   ;
25440   return 0;
25441 }
25442 _ACEOF
25443 rm -f conftest.$ac_objext
25444 if { (ac_try="$ac_compile"
25445 case "(($ac_try" in
25446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447   *) ac_try_echo=$ac_try;;
25448 esac
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450   (eval "$ac_compile") 2>conftest.er1
25451   ac_status=$?
25452   grep -v '^ *+' conftest.er1 >conftest.err
25453   rm -f conftest.er1
25454   cat conftest.err >&5
25455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456   (exit $ac_status); } && {
25457          test -z "$ac_cxx_werror_flag" ||
25458          test ! -s conftest.err
25459        } && test -s conftest.$ac_objext; then
25460
25461         cat >conftest.$ac_ext <<_ACEOF
25462 /* confdefs.h.  */
25463 _ACEOF
25464 cat confdefs.h >>conftest.$ac_ext
25465 cat >>conftest.$ac_ext <<_ACEOF
25466 /* end confdefs.h.  */
25467
25468                 class Foo { public: explicit Foo(int) {} };
25469                 static void TakeFoo(const Foo& foo) { }
25470
25471 int
25472 main ()
25473 {
25474
25475                 TakeFoo(17);
25476                 return 0;
25477
25478   ;
25479   return 0;
25480 }
25481 _ACEOF
25482 rm -f conftest.$ac_objext
25483 if { (ac_try="$ac_compile"
25484 case "(($ac_try" in
25485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25486   *) ac_try_echo=$ac_try;;
25487 esac
25488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25489   (eval "$ac_compile") 2>conftest.er1
25490   ac_status=$?
25491   grep -v '^ *+' conftest.er1 >conftest.err
25492   rm -f conftest.er1
25493   cat conftest.err >&5
25494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495   (exit $ac_status); } && {
25496          test -z "$ac_cxx_werror_flag" ||
25497          test ! -s conftest.err
25498        } && test -s conftest.$ac_objext; then
25499   wx_cv_explicit=no
25500 else
25501   echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25503
25504         wx_cv_explicit=yes
25505
25506 fi
25507
25508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25509
25510 else
25511   echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25513
25514         wx_cv_explicit=no
25515
25516 fi
25517
25518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25519
25520     ac_ext=c
25521 ac_cpp='$CPP $CPPFLAGS'
25522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25525
25526
25527 fi
25528 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25529 echo "${ECHO_T}$wx_cv_explicit" >&6; }
25530
25531   if test "$wx_cv_explicit" = "yes"; then
25532     cat >>confdefs.h <<\_ACEOF
25533 #define HAVE_EXPLICIT 1
25534 _ACEOF
25535
25536   fi
25537
25538
25539 if test "x$SUNCXX" = xyes; then
25540     CXXFLAGS="-features=tmplife $CXXFLAGS"
25541 fi
25542
25543 if test "x$SUNCC" = xyes; then
25544     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25545 fi
25546
25547 if test "x$SGICC" = "xyes"; then
25548     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
25549 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
25550 if test "${wx_cv_prog_sgicc744+set}" = set; then
25551   echo $ECHO_N "(cached) $ECHO_C" >&6
25552 else
25553
25554             cat >conftest.$ac_ext <<_ACEOF
25555 /* confdefs.h.  */
25556 _ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h.  */
25560
25561 int
25562 main ()
25563 {
25564
25565                     #if _SGI_COMPILER_VERSION >= 744
25566                     chock me: mipsPro is 7.4.4 or later
25567                     #endif
25568
25569   ;
25570   return 0;
25571 }
25572 _ACEOF
25573 rm -f conftest.$ac_objext
25574 if { (ac_try="$ac_compile"
25575 case "(($ac_try" in
25576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25577   *) ac_try_echo=$ac_try;;
25578 esac
25579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25580   (eval "$ac_compile") 2>conftest.er1
25581   ac_status=$?
25582   grep -v '^ *+' conftest.er1 >conftest.err
25583   rm -f conftest.er1
25584   cat conftest.err >&5
25585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586   (exit $ac_status); } && {
25587          test -z "$ac_c_werror_flag" ||
25588          test ! -s conftest.err
25589        } && test -s conftest.$ac_objext; then
25590   wx_cv_prog_sgicc744=no
25591 else
25592   echo "$as_me: failed program was:" >&5
25593 sed 's/^/| /' conftest.$ac_ext >&5
25594
25595         wx_cv_prog_sgicc744=yes
25596
25597 fi
25598
25599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25600
25601
25602 fi
25603 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
25604 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
25605
25606     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
25607         CFLAGS="-woff 3970 $CFLAGS"
25608     fi
25609 fi
25610 if test "x$SGICXX" = "xyes"; then
25611     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
25612 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
25613 if test "${wx_cv_prog_sgicxx744+set}" = set; then
25614   echo $ECHO_N "(cached) $ECHO_C" >&6
25615 else
25616
25617             ac_ext=cpp
25618 ac_cpp='$CXXCPP $CPPFLAGS'
25619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25622
25623             cat >conftest.$ac_ext <<_ACEOF
25624 /* confdefs.h.  */
25625 _ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h.  */
25629
25630 int
25631 main ()
25632 {
25633
25634                     #if _SGI_COMPILER_VERSION >= 744
25635                     chock me: mipsPro is 7.4.4 or later
25636                     #endif
25637
25638   ;
25639   return 0;
25640 }
25641 _ACEOF
25642 rm -f conftest.$ac_objext
25643 if { (ac_try="$ac_compile"
25644 case "(($ac_try" in
25645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25646   *) ac_try_echo=$ac_try;;
25647 esac
25648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25649   (eval "$ac_compile") 2>conftest.er1
25650   ac_status=$?
25651   grep -v '^ *+' conftest.er1 >conftest.err
25652   rm -f conftest.er1
25653   cat conftest.err >&5
25654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655   (exit $ac_status); } && {
25656          test -z "$ac_cxx_werror_flag" ||
25657          test ! -s conftest.err
25658        } && test -s conftest.$ac_objext; then
25659   wx_cv_prog_sgicxx744=no
25660 else
25661   echo "$as_me: failed program was:" >&5
25662 sed 's/^/| /' conftest.$ac_ext >&5
25663
25664         wx_cv_prog_sgicxx744=yes
25665
25666 fi
25667
25668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25669             ac_ext=c
25670 ac_cpp='$CPP $CPPFLAGS'
25671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25674
25675
25676
25677 fi
25678 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
25679 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
25680
25681     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
25682         CXXFLAGS="-woff 3970 $CXXFLAGS"
25683     fi
25684 fi
25685
25686 if test "x$HPCC" = "xyes"; then
25687                     CFLAGS="+W 2011,2450 $CFLAGS"
25688 fi
25689 if test "x$HPCXX" = "xyes"; then
25690                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
25691 fi
25692
25693 if test "x$COMPAQCXX" = "xyes"; then
25694                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25695 fi
25696
25697 ac_ext=cpp
25698 ac_cpp='$CXXCPP $CPPFLAGS'
25699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25702
25703
25704 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25705     if test "$wxUSE_UNICODE" = "yes"; then
25706         std_string="std::wstring"
25707         char_type="wchar_t"
25708     else
25709         std_string="std::string"
25710         char_type="char"
25711     fi
25712
25713         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25714 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
25715 if test "${wx_cv_class_stdstring+set}" = set; then
25716   echo $ECHO_N "(cached) $ECHO_C" >&6
25717 else
25718
25719             cat >conftest.$ac_ext <<_ACEOF
25720 /* confdefs.h.  */
25721 _ACEOF
25722 cat confdefs.h >>conftest.$ac_ext
25723 cat >>conftest.$ac_ext <<_ACEOF
25724 /* end confdefs.h.  */
25725 #include <string>
25726 int
25727 main ()
25728 {
25729 $std_string foo;
25730   ;
25731   return 0;
25732 }
25733 _ACEOF
25734 rm -f conftest.$ac_objext
25735 if { (ac_try="$ac_compile"
25736 case "(($ac_try" in
25737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25738   *) ac_try_echo=$ac_try;;
25739 esac
25740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25741   (eval "$ac_compile") 2>conftest.er1
25742   ac_status=$?
25743   grep -v '^ *+' conftest.er1 >conftest.err
25744   rm -f conftest.er1
25745   cat conftest.err >&5
25746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747   (exit $ac_status); } && {
25748          test -z "$ac_cxx_werror_flag" ||
25749          test ! -s conftest.err
25750        } && test -s conftest.$ac_objext; then
25751   wx_cv_class_stdstring=yes
25752 else
25753   echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25755
25756         wx_cv_class_stdstring=no
25757
25758 fi
25759
25760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25761
25762
25763 fi
25764 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25765 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25766
25767     if test "$wx_cv_class_stdstring" = yes; then
25768         if test "$wxUSE_UNICODE" = "yes"; then
25769             cat >>confdefs.h <<\_ACEOF
25770 #define HAVE_STD_WSTRING 1
25771 _ACEOF
25772
25773         fi
25774                     else
25775         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25776 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25777 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25778   echo $ECHO_N "(cached) $ECHO_C" >&6
25779 else
25780
25781                 cat >conftest.$ac_ext <<_ACEOF
25782 /* confdefs.h.  */
25783 _ACEOF
25784 cat confdefs.h >>conftest.$ac_ext
25785 cat >>conftest.$ac_ext <<_ACEOF
25786 /* end confdefs.h.  */
25787
25788                     #ifdef HAVE_WCHAR_H
25789                     #  ifdef __CYGWIN__
25790                     #    include <stddef.h>
25791                     #  endif
25792                     #  include <wchar.h>
25793                     #endif
25794                     #ifdef HAVE_STDLIB_H
25795                     #  include <stdlib.h>
25796                     #endif
25797                     #include <stdio.h>
25798                     #include <string>
25799
25800 int
25801 main ()
25802 {
25803 std::basic_string<$char_type> foo;
25804                      const $char_type* dummy = foo.c_str();
25805   ;
25806   return 0;
25807 }
25808 _ACEOF
25809 rm -f conftest.$ac_objext
25810 if { (ac_try="$ac_compile"
25811 case "(($ac_try" in
25812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813   *) ac_try_echo=$ac_try;;
25814 esac
25815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25816   (eval "$ac_compile") 2>conftest.er1
25817   ac_status=$?
25818   grep -v '^ *+' conftest.er1 >conftest.err
25819   rm -f conftest.er1
25820   cat conftest.err >&5
25821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822   (exit $ac_status); } && {
25823          test -z "$ac_cxx_werror_flag" ||
25824          test ! -s conftest.err
25825        } && test -s conftest.$ac_objext; then
25826   wx_cv_class_stdbasicstring=yes
25827 else
25828   echo "$as_me: failed program was:" >&5
25829 sed 's/^/| /' conftest.$ac_ext >&5
25830
25831         wx_cv_class_stdbasicstring=no
25832
25833 fi
25834
25835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25836
25837
25838 fi
25839 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25840 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25841
25842         if test "$wx_cv_class_stdbasicstring" != yes; then
25843             if test "$wxUSE_STL" = "yes"; then
25844                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25845 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25846    { (exit 1); exit 1; }; }
25847             elif test "$wxUSE_STD_STRING" = "yes"; then
25848                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25849 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25850    { (exit 1); exit 1; }; }
25851             else
25852                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25853 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25854                 wxUSE_STD_STRING=no
25855             fi
25856         fi
25857     fi
25858 fi
25859
25860 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25861     { echo "$as_me:$LINENO: checking for std::istream" >&5
25862 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25863 if test "${ac_cv_type_std__istream+set}" = set; then
25864   echo $ECHO_N "(cached) $ECHO_C" >&6
25865 else
25866   cat >conftest.$ac_ext <<_ACEOF
25867 /* confdefs.h.  */
25868 _ACEOF
25869 cat confdefs.h >>conftest.$ac_ext
25870 cat >>conftest.$ac_ext <<_ACEOF
25871 /* end confdefs.h.  */
25872 #include <iostream>
25873
25874 typedef std::istream ac__type_new_;
25875 int
25876 main ()
25877 {
25878 if ((ac__type_new_ *) 0)
25879   return 0;
25880 if (sizeof (ac__type_new_))
25881   return 0;
25882   ;
25883   return 0;
25884 }
25885 _ACEOF
25886 rm -f conftest.$ac_objext
25887 if { (ac_try="$ac_compile"
25888 case "(($ac_try" in
25889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25890   *) ac_try_echo=$ac_try;;
25891 esac
25892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25893   (eval "$ac_compile") 2>conftest.er1
25894   ac_status=$?
25895   grep -v '^ *+' conftest.er1 >conftest.err
25896   rm -f conftest.er1
25897   cat conftest.err >&5
25898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899   (exit $ac_status); } && {
25900          test -z "$ac_cxx_werror_flag" ||
25901          test ! -s conftest.err
25902        } && test -s conftest.$ac_objext; then
25903   ac_cv_type_std__istream=yes
25904 else
25905   echo "$as_me: failed program was:" >&5
25906 sed 's/^/| /' conftest.$ac_ext >&5
25907
25908         ac_cv_type_std__istream=no
25909 fi
25910
25911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25912 fi
25913 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25914 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25915 if test $ac_cv_type_std__istream = yes; then
25916
25917 cat >>confdefs.h <<_ACEOF
25918 #define HAVE_STD__ISTREAM 1
25919 _ACEOF
25920
25921
25922 else
25923   wxUSE_STD_IOSTREAM=no
25924 fi
25925 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25926 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25927 if test "${ac_cv_type_std__ostream+set}" = set; then
25928   echo $ECHO_N "(cached) $ECHO_C" >&6
25929 else
25930   cat >conftest.$ac_ext <<_ACEOF
25931 /* confdefs.h.  */
25932 _ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h.  */
25936 #include <iostream>
25937
25938 typedef std::ostream ac__type_new_;
25939 int
25940 main ()
25941 {
25942 if ((ac__type_new_ *) 0)
25943   return 0;
25944 if (sizeof (ac__type_new_))
25945   return 0;
25946   ;
25947   return 0;
25948 }
25949 _ACEOF
25950 rm -f conftest.$ac_objext
25951 if { (ac_try="$ac_compile"
25952 case "(($ac_try" in
25953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25954   *) ac_try_echo=$ac_try;;
25955 esac
25956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25957   (eval "$ac_compile") 2>conftest.er1
25958   ac_status=$?
25959   grep -v '^ *+' conftest.er1 >conftest.err
25960   rm -f conftest.er1
25961   cat conftest.err >&5
25962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963   (exit $ac_status); } && {
25964          test -z "$ac_cxx_werror_flag" ||
25965          test ! -s conftest.err
25966        } && test -s conftest.$ac_objext; then
25967   ac_cv_type_std__ostream=yes
25968 else
25969   echo "$as_me: failed program was:" >&5
25970 sed 's/^/| /' conftest.$ac_ext >&5
25971
25972         ac_cv_type_std__ostream=no
25973 fi
25974
25975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25976 fi
25977 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
25978 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
25979 if test $ac_cv_type_std__ostream = yes; then
25980
25981 cat >>confdefs.h <<_ACEOF
25982 #define HAVE_STD__OSTREAM 1
25983 _ACEOF
25984
25985
25986 else
25987   wxUSE_STD_IOSTREAM=no
25988 fi
25989
25990
25991     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
25992         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25993             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
25994 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
25995    { (exit 1); exit 1; }; }
25996         else
25997             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
25998 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
25999         fi
26000     fi
26001 fi
26002
26003 if test "$wxUSE_STL" = "yes"; then
26004         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
26005 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
26006 if test "${wx_cv_lib_stl+set}" = set; then
26007   echo $ECHO_N "(cached) $ECHO_C" >&6
26008 else
26009   cat >conftest.$ac_ext <<_ACEOF
26010 /* confdefs.h.  */
26011 _ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h.  */
26015 #include <string>
26016             #include <functional>
26017             #include <algorithm>
26018             #include <vector>
26019             #include <list>
26020 int
26021 main ()
26022 {
26023 std::vector<int> moo;
26024              std::list<int> foo;
26025              std::vector<int>::iterator it =
26026                  std::find_if(moo.begin(), moo.end(),
26027                               std::bind2nd(std::less<int>(), 3));
26028   ;
26029   return 0;
26030 }
26031 _ACEOF
26032 rm -f conftest.$ac_objext
26033 if { (ac_try="$ac_compile"
26034 case "(($ac_try" in
26035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036   *) ac_try_echo=$ac_try;;
26037 esac
26038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26039   (eval "$ac_compile") 2>conftest.er1
26040   ac_status=$?
26041   grep -v '^ *+' conftest.er1 >conftest.err
26042   rm -f conftest.er1
26043   cat conftest.err >&5
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); } && {
26046          test -z "$ac_cxx_werror_flag" ||
26047          test ! -s conftest.err
26048        } && test -s conftest.$ac_objext; then
26049   wx_cv_lib_stl=yes
26050 else
26051   echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26053
26054         wx_cv_lib_stl=no
26055
26056 fi
26057
26058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26059
26060 fi
26061 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
26062 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
26063
26064     if test "$wx_cv_lib_stl" != yes; then
26065          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
26066 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
26067    { (exit 1); exit 1; }; }
26068     fi
26069
26070         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
26071 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
26072 if test "${wx_cv_func_stdstring_compare+set}" = set; then
26073   echo $ECHO_N "(cached) $ECHO_C" >&6
26074 else
26075   cat >conftest.$ac_ext <<_ACEOF
26076 /* confdefs.h.  */
26077 _ACEOF
26078 cat confdefs.h >>conftest.$ac_ext
26079 cat >>conftest.$ac_ext <<_ACEOF
26080 /* end confdefs.h.  */
26081 #include <string>
26082 int
26083 main ()
26084 {
26085 std::string foo, bar;
26086             foo.compare(bar);
26087             foo.compare(1, 1, bar);
26088             foo.compare(1, 1, bar, 1, 1);
26089             foo.compare("");
26090             foo.compare(1, 1, "");
26091             foo.compare(1, 1, "", 2);
26092   ;
26093   return 0;
26094 }
26095 _ACEOF
26096 rm -f conftest.$ac_objext
26097 if { (ac_try="$ac_compile"
26098 case "(($ac_try" in
26099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26100   *) ac_try_echo=$ac_try;;
26101 esac
26102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26103   (eval "$ac_compile") 2>conftest.er1
26104   ac_status=$?
26105   grep -v '^ *+' conftest.er1 >conftest.err
26106   rm -f conftest.er1
26107   cat conftest.err >&5
26108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109   (exit $ac_status); } && {
26110          test -z "$ac_cxx_werror_flag" ||
26111          test ! -s conftest.err
26112        } && test -s conftest.$ac_objext; then
26113   wx_cv_func_stdstring_compare=yes
26114 else
26115   echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26117
26118         wx_cv_func_stdstring_compare=no
26119
26120 fi
26121
26122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26123
26124 fi
26125 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
26126 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
26127
26128     if test "$wx_cv_func_stdstring_compare" = yes; then
26129         cat >>confdefs.h <<\_ACEOF
26130 #define HAVE_STD_STRING_COMPARE 1
26131 _ACEOF
26132
26133     fi
26134
26135     if test "$wx_cv_class_gnuhashmapset" = yes; then
26136          cat >>confdefs.h <<\_ACEOF
26137 #define HAVE_EXT_HASH_MAP 1
26138 _ACEOF
26139
26140          cat >>confdefs.h <<\_ACEOF
26141 #define HAVE_GNU_CXX_HASH_MAP 1
26142 _ACEOF
26143
26144     fi
26145
26146     { echo "$as_me:$LINENO: checking for unordered_map" >&5
26147 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
26148 if test "${ac_cv_header_unordered_map+set}" = set; then
26149   echo $ECHO_N "(cached) $ECHO_C" >&6
26150 else
26151   cat >conftest.$ac_ext <<_ACEOF
26152 /* confdefs.h.  */
26153 _ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h.  */
26157
26158
26159
26160 #include <unordered_map>
26161 _ACEOF
26162 rm -f conftest.$ac_objext
26163 if { (ac_try="$ac_compile"
26164 case "(($ac_try" in
26165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26166   *) ac_try_echo=$ac_try;;
26167 esac
26168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26169   (eval "$ac_compile") 2>conftest.er1
26170   ac_status=$?
26171   grep -v '^ *+' conftest.er1 >conftest.err
26172   rm -f conftest.er1
26173   cat conftest.err >&5
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); } && {
26176          test -z "$ac_cxx_werror_flag" ||
26177          test ! -s conftest.err
26178        } && test -s conftest.$ac_objext; then
26179   ac_cv_header_unordered_map=yes
26180 else
26181   echo "$as_me: failed program was:" >&5
26182 sed 's/^/| /' conftest.$ac_ext >&5
26183
26184         ac_cv_header_unordered_map=no
26185 fi
26186
26187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26188 fi
26189 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
26190 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
26191 if test $ac_cv_header_unordered_map = yes; then
26192   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
26193 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
26194 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
26195   echo $ECHO_N "(cached) $ECHO_C" >&6
26196 else
26197   cat >conftest.$ac_ext <<_ACEOF
26198 /* confdefs.h.  */
26199 _ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h.  */
26203 #include <unordered_map>
26204                 #include <unordered_set>
26205 int
26206 main ()
26207 {
26208 std::unordered_map<double*, char*> test1;
26209                  std::unordered_set<char*> test2;
26210   ;
26211   return 0;
26212 }
26213 _ACEOF
26214 rm -f conftest.$ac_objext
26215 if { (ac_try="$ac_compile"
26216 case "(($ac_try" in
26217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26218   *) ac_try_echo=$ac_try;;
26219 esac
26220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26221   (eval "$ac_compile") 2>conftest.er1
26222   ac_status=$?
26223   grep -v '^ *+' conftest.er1 >conftest.err
26224   rm -f conftest.er1
26225   cat conftest.err >&5
26226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227   (exit $ac_status); } && {
26228          test -z "$ac_cxx_werror_flag" ||
26229          test ! -s conftest.err
26230        } && test -s conftest.$ac_objext; then
26231   wx_cv_class_stdunorderedmapset=yes
26232 else
26233   echo "$as_me: failed program was:" >&5
26234 sed 's/^/| /' conftest.$ac_ext >&5
26235
26236         wx_cv_class_stdunorderedmapset=no
26237 fi
26238
26239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26240
26241
26242 fi
26243 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
26244 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
26245 fi
26246
26247
26248
26249     if test "$wx_cv_class_stdunorderedmapset" = yes; then
26250          cat >>confdefs.h <<\_ACEOF
26251 #define HAVE_STD_UNORDERED_MAP 1
26252 _ACEOF
26253
26254          cat >>confdefs.h <<\_ACEOF
26255 #define HAVE_STD_UNORDERED_SET 1
26256 _ACEOF
26257
26258     else
26259         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
26260 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
26261 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
26262   echo $ECHO_N "(cached) $ECHO_C" >&6
26263 else
26264   cat >conftest.$ac_ext <<_ACEOF
26265 /* confdefs.h.  */
26266 _ACEOF
26267 cat confdefs.h >>conftest.$ac_ext
26268 cat >>conftest.$ac_ext <<_ACEOF
26269 /* end confdefs.h.  */
26270
26271
26272
26273 #include <tr1/unordered_map>
26274 _ACEOF
26275 rm -f conftest.$ac_objext
26276 if { (ac_try="$ac_compile"
26277 case "(($ac_try" in
26278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26279   *) ac_try_echo=$ac_try;;
26280 esac
26281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26282   (eval "$ac_compile") 2>conftest.er1
26283   ac_status=$?
26284   grep -v '^ *+' conftest.er1 >conftest.err
26285   rm -f conftest.er1
26286   cat conftest.err >&5
26287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288   (exit $ac_status); } && {
26289          test -z "$ac_cxx_werror_flag" ||
26290          test ! -s conftest.err
26291        } && test -s conftest.$ac_objext; then
26292   ac_cv_header_tr1_unordered_map=yes
26293 else
26294   echo "$as_me: failed program was:" >&5
26295 sed 's/^/| /' conftest.$ac_ext >&5
26296
26297         ac_cv_header_tr1_unordered_map=no
26298 fi
26299
26300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26301 fi
26302 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
26303 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
26304 if test $ac_cv_header_tr1_unordered_map = yes; then
26305   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
26306 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
26307 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
26308   echo $ECHO_N "(cached) $ECHO_C" >&6
26309 else
26310   cat >conftest.$ac_ext <<_ACEOF
26311 /* confdefs.h.  */
26312 _ACEOF
26313 cat confdefs.h >>conftest.$ac_ext
26314 cat >>conftest.$ac_ext <<_ACEOF
26315 /* end confdefs.h.  */
26316 #include <tr1/unordered_map>
26317                     #include <tr1/unordered_set>
26318 int
26319 main ()
26320 {
26321 std::tr1::unordered_map<double*, char*> test1;
26322                      std::tr1::unordered_set<char*> test2;
26323             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
26324             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
26325             #endif
26326   ;
26327   return 0;
26328 }
26329 _ACEOF
26330 rm -f conftest.$ac_objext
26331 if { (ac_try="$ac_compile"
26332 case "(($ac_try" in
26333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334   *) ac_try_echo=$ac_try;;
26335 esac
26336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26337   (eval "$ac_compile") 2>conftest.er1
26338   ac_status=$?
26339   grep -v '^ *+' conftest.er1 >conftest.err
26340   rm -f conftest.er1
26341   cat conftest.err >&5
26342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343   (exit $ac_status); } && {
26344          test -z "$ac_cxx_werror_flag" ||
26345          test ! -s conftest.err
26346        } && test -s conftest.$ac_objext; then
26347   wx_cv_class_tr1unorderedmapset=yes
26348 else
26349   echo "$as_me: failed program was:" >&5
26350 sed 's/^/| /' conftest.$ac_ext >&5
26351
26352         wx_cv_class_tr1unorderedmapset=no
26353 fi
26354
26355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26356
26357
26358 fi
26359 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
26360 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
26361 fi
26362
26363
26364
26365         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
26366             cat >>confdefs.h <<\_ACEOF
26367 #define HAVE_TR1_UNORDERED_MAP 1
26368 _ACEOF
26369
26370             cat >>confdefs.h <<\_ACEOF
26371 #define HAVE_TR1_UNORDERED_SET 1
26372 _ACEOF
26373
26374         else
26375                         { echo "$as_me:$LINENO: checking for hash_map" >&5
26376 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26377 if test "${ac_cv_header_hash_map+set}" = set; then
26378   echo $ECHO_N "(cached) $ECHO_C" >&6
26379 else
26380   cat >conftest.$ac_ext <<_ACEOF
26381 /* confdefs.h.  */
26382 _ACEOF
26383 cat confdefs.h >>conftest.$ac_ext
26384 cat >>conftest.$ac_ext <<_ACEOF
26385 /* end confdefs.h.  */
26386
26387
26388
26389 #include <hash_map>
26390 _ACEOF
26391 rm -f conftest.$ac_objext
26392 if { (ac_try="$ac_compile"
26393 case "(($ac_try" in
26394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26395   *) ac_try_echo=$ac_try;;
26396 esac
26397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26398   (eval "$ac_compile") 2>conftest.er1
26399   ac_status=$?
26400   grep -v '^ *+' conftest.er1 >conftest.err
26401   rm -f conftest.er1
26402   cat conftest.err >&5
26403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404   (exit $ac_status); } && {
26405          test -z "$ac_cxx_werror_flag" ||
26406          test ! -s conftest.err
26407        } && test -s conftest.$ac_objext; then
26408   ac_cv_header_hash_map=yes
26409 else
26410   echo "$as_me: failed program was:" >&5
26411 sed 's/^/| /' conftest.$ac_ext >&5
26412
26413         ac_cv_header_hash_map=no
26414 fi
26415
26416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26417 fi
26418 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26419 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26420 if test $ac_cv_header_hash_map = yes; then
26421   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
26422 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
26423 if test "${wx_cv_class_stdhashmapset+set}" = set; then
26424   echo $ECHO_N "(cached) $ECHO_C" >&6
26425 else
26426   cat >conftest.$ac_ext <<_ACEOF
26427 /* confdefs.h.  */
26428 _ACEOF
26429 cat confdefs.h >>conftest.$ac_ext
26430 cat >>conftest.$ac_ext <<_ACEOF
26431 /* end confdefs.h.  */
26432 #include <hash_map>
26433                         #include <hash_set>
26434 int
26435 main ()
26436 {
26437 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
26438                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
26439   ;
26440   return 0;
26441 }
26442 _ACEOF
26443 rm -f conftest.$ac_objext
26444 if { (ac_try="$ac_compile"
26445 case "(($ac_try" in
26446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447   *) ac_try_echo=$ac_try;;
26448 esac
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450   (eval "$ac_compile") 2>conftest.er1
26451   ac_status=$?
26452   grep -v '^ *+' conftest.er1 >conftest.err
26453   rm -f conftest.er1
26454   cat conftest.err >&5
26455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456   (exit $ac_status); } && {
26457          test -z "$ac_cxx_werror_flag" ||
26458          test ! -s conftest.err
26459        } && test -s conftest.$ac_objext; then
26460   wx_cv_class_stdhashmapset=yes
26461 else
26462   echo "$as_me: failed program was:" >&5
26463 sed 's/^/| /' conftest.$ac_ext >&5
26464
26465         wx_cv_class_stdhashmapset=no
26466 fi
26467
26468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26469
26470
26471 fi
26472 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26473 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26474 fi
26475
26476
26477
26478             if test "$wx_cv_class_stdhashmapset" = yes; then
26479                 cat >>confdefs.h <<\_ACEOF
26480 #define HAVE_HASH_MAP 1
26481 _ACEOF
26482
26483                 cat >>confdefs.h <<\_ACEOF
26484 #define HAVE_STD_HASH_MAP 1
26485 _ACEOF
26486
26487             fi
26488
26489             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26490 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26491 if test "${ac_cv_header_ext_hash_map+set}" = set; then
26492   echo $ECHO_N "(cached) $ECHO_C" >&6
26493 else
26494   cat >conftest.$ac_ext <<_ACEOF
26495 /* confdefs.h.  */
26496 _ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h.  */
26500
26501
26502
26503 #include <ext/hash_map>
26504 _ACEOF
26505 rm -f conftest.$ac_objext
26506 if { (ac_try="$ac_compile"
26507 case "(($ac_try" in
26508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26509   *) ac_try_echo=$ac_try;;
26510 esac
26511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26512   (eval "$ac_compile") 2>conftest.er1
26513   ac_status=$?
26514   grep -v '^ *+' conftest.er1 >conftest.err
26515   rm -f conftest.er1
26516   cat conftest.err >&5
26517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518   (exit $ac_status); } && {
26519          test -z "$ac_cxx_werror_flag" ||
26520          test ! -s conftest.err
26521        } && test -s conftest.$ac_objext; then
26522   ac_cv_header_ext_hash_map=yes
26523 else
26524   echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26526
26527         ac_cv_header_ext_hash_map=no
26528 fi
26529
26530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26531 fi
26532 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26533 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26534 if test $ac_cv_header_ext_hash_map = yes; then
26535   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26536 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26537 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
26538   echo $ECHO_N "(cached) $ECHO_C" >&6
26539 else
26540   cat >conftest.$ac_ext <<_ACEOF
26541 /* confdefs.h.  */
26542 _ACEOF
26543 cat confdefs.h >>conftest.$ac_ext
26544 cat >>conftest.$ac_ext <<_ACEOF
26545 /* end confdefs.h.  */
26546 #include <ext/hash_map>
26547                         #include <ext/hash_set>
26548 int
26549 main ()
26550 {
26551 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26552                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26553   ;
26554   return 0;
26555 }
26556 _ACEOF
26557 rm -f conftest.$ac_objext
26558 if { (ac_try="$ac_compile"
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_compile") 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_cxx_werror_flag" ||
26572          test ! -s conftest.err
26573        } && test -s conftest.$ac_objext; then
26574   wx_cv_class_gnuhashmapset=yes
26575 else
26576   echo "$as_me: failed program was:" >&5
26577 sed 's/^/| /' conftest.$ac_ext >&5
26578
26579         wx_cv_class_gnuhashmapset=no
26580 fi
26581
26582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26583
26584
26585 fi
26586 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26587 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26588 fi
26589
26590
26591
26592         fi
26593     fi
26594 fi
26595
26596 ac_ext=cpp
26597 ac_cpp='$CXXCPP $CPPFLAGS'
26598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26601 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
26602 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
26603 if test -z "$CXXCPP"; then
26604   if test "${ac_cv_prog_CXXCPP+set}" = set; then
26605   echo $ECHO_N "(cached) $ECHO_C" >&6
26606 else
26607       # Double quotes because CXXCPP needs to be expanded
26608     for CXXCPP in "$CXX -E" "/lib/cpp"
26609     do
26610       ac_preproc_ok=false
26611 for ac_cxx_preproc_warn_flag in '' yes
26612 do
26613   # Use a header file that comes with gcc, so configuring glibc
26614   # with a fresh cross-compiler works.
26615   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26616   # <limits.h> exists even on freestanding compilers.
26617   # On the NeXT, cc -E runs the code through the compiler's parser,
26618   # not just through cpp. "Syntax error" is here to catch this case.
26619   cat >conftest.$ac_ext <<_ACEOF
26620 /* confdefs.h.  */
26621 _ACEOF
26622 cat confdefs.h >>conftest.$ac_ext
26623 cat >>conftest.$ac_ext <<_ACEOF
26624 /* end confdefs.h.  */
26625 #ifdef __STDC__
26626 # include <limits.h>
26627 #else
26628 # include <assert.h>
26629 #endif
26630                      Syntax error
26631 _ACEOF
26632 if { (ac_try="$ac_cpp conftest.$ac_ext"
26633 case "(($ac_try" in
26634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26635   *) ac_try_echo=$ac_try;;
26636 esac
26637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26639   ac_status=$?
26640   grep -v '^ *+' conftest.er1 >conftest.err
26641   rm -f conftest.er1
26642   cat conftest.err >&5
26643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644   (exit $ac_status); } >/dev/null && {
26645          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26646          test ! -s conftest.err
26647        }; then
26648   :
26649 else
26650   echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26652
26653   # Broken: fails on valid input.
26654 continue
26655 fi
26656
26657 rm -f conftest.err conftest.$ac_ext
26658
26659   # OK, works on sane cases.  Now check whether nonexistent headers
26660   # can be detected and how.
26661   cat >conftest.$ac_ext <<_ACEOF
26662 /* confdefs.h.  */
26663 _ACEOF
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h.  */
26667 #include <ac_nonexistent.h>
26668 _ACEOF
26669 if { (ac_try="$ac_cpp conftest.$ac_ext"
26670 case "(($ac_try" in
26671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26672   *) ac_try_echo=$ac_try;;
26673 esac
26674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26676   ac_status=$?
26677   grep -v '^ *+' conftest.er1 >conftest.err
26678   rm -f conftest.er1
26679   cat conftest.err >&5
26680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681   (exit $ac_status); } >/dev/null && {
26682          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26683          test ! -s conftest.err
26684        }; then
26685   # Broken: success on invalid input.
26686 continue
26687 else
26688   echo "$as_me: failed program was:" >&5
26689 sed 's/^/| /' conftest.$ac_ext >&5
26690
26691   # Passes both tests.
26692 ac_preproc_ok=:
26693 break
26694 fi
26695
26696 rm -f conftest.err conftest.$ac_ext
26697
26698 done
26699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26700 rm -f conftest.err conftest.$ac_ext
26701 if $ac_preproc_ok; then
26702   break
26703 fi
26704
26705     done
26706     ac_cv_prog_CXXCPP=$CXXCPP
26707
26708 fi
26709   CXXCPP=$ac_cv_prog_CXXCPP
26710 else
26711   ac_cv_prog_CXXCPP=$CXXCPP
26712 fi
26713 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
26714 echo "${ECHO_T}$CXXCPP" >&6; }
26715 ac_preproc_ok=false
26716 for ac_cxx_preproc_warn_flag in '' yes
26717 do
26718   # Use a header file that comes with gcc, so configuring glibc
26719   # with a fresh cross-compiler works.
26720   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26721   # <limits.h> exists even on freestanding compilers.
26722   # On the NeXT, cc -E runs the code through the compiler's parser,
26723   # not just through cpp. "Syntax error" is here to catch this case.
26724   cat >conftest.$ac_ext <<_ACEOF
26725 /* confdefs.h.  */
26726 _ACEOF
26727 cat confdefs.h >>conftest.$ac_ext
26728 cat >>conftest.$ac_ext <<_ACEOF
26729 /* end confdefs.h.  */
26730 #ifdef __STDC__
26731 # include <limits.h>
26732 #else
26733 # include <assert.h>
26734 #endif
26735                      Syntax error
26736 _ACEOF
26737 if { (ac_try="$ac_cpp conftest.$ac_ext"
26738 case "(($ac_try" in
26739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26740   *) ac_try_echo=$ac_try;;
26741 esac
26742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26744   ac_status=$?
26745   grep -v '^ *+' conftest.er1 >conftest.err
26746   rm -f conftest.er1
26747   cat conftest.err >&5
26748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749   (exit $ac_status); } >/dev/null && {
26750          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26751          test ! -s conftest.err
26752        }; then
26753   :
26754 else
26755   echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26757
26758   # Broken: fails on valid input.
26759 continue
26760 fi
26761
26762 rm -f conftest.err conftest.$ac_ext
26763
26764   # OK, works on sane cases.  Now check whether nonexistent headers
26765   # can be detected and how.
26766   cat >conftest.$ac_ext <<_ACEOF
26767 /* confdefs.h.  */
26768 _ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h.  */
26772 #include <ac_nonexistent.h>
26773 _ACEOF
26774 if { (ac_try="$ac_cpp conftest.$ac_ext"
26775 case "(($ac_try" in
26776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26777   *) ac_try_echo=$ac_try;;
26778 esac
26779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26781   ac_status=$?
26782   grep -v '^ *+' conftest.er1 >conftest.err
26783   rm -f conftest.er1
26784   cat conftest.err >&5
26785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786   (exit $ac_status); } >/dev/null && {
26787          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26788          test ! -s conftest.err
26789        }; then
26790   # Broken: success on invalid input.
26791 continue
26792 else
26793   echo "$as_me: failed program was:" >&5
26794 sed 's/^/| /' conftest.$ac_ext >&5
26795
26796   # Passes both tests.
26797 ac_preproc_ok=:
26798 break
26799 fi
26800
26801 rm -f conftest.err conftest.$ac_ext
26802
26803 done
26804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26805 rm -f conftest.err conftest.$ac_ext
26806 if $ac_preproc_ok; then
26807   :
26808 else
26809   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26810 See \`config.log' for more details." >&5
26811 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26812 See \`config.log' for more details." >&2;}
26813    { (exit 1); exit 1; }; }
26814 fi
26815
26816 ac_ext=cpp
26817 ac_cpp='$CXXCPP $CPPFLAGS'
26818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26821
26822
26823
26824
26825 for ac_header in type_traits tr1/type_traits
26826 do
26827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26829   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26832   echo $ECHO_N "(cached) $ECHO_C" >&6
26833 fi
26834 ac_res=`eval echo '${'$as_ac_Header'}'`
26835                { echo "$as_me:$LINENO: result: $ac_res" >&5
26836 echo "${ECHO_T}$ac_res" >&6; }
26837 else
26838   # Is the header compilable?
26839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26841 cat >conftest.$ac_ext <<_ACEOF
26842 /* confdefs.h.  */
26843 _ACEOF
26844 cat confdefs.h >>conftest.$ac_ext
26845 cat >>conftest.$ac_ext <<_ACEOF
26846 /* end confdefs.h.  */
26847 $ac_includes_default
26848 #include <$ac_header>
26849 _ACEOF
26850 rm -f conftest.$ac_objext
26851 if { (ac_try="$ac_compile"
26852 case "(($ac_try" in
26853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26854   *) ac_try_echo=$ac_try;;
26855 esac
26856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26857   (eval "$ac_compile") 2>conftest.er1
26858   ac_status=$?
26859   grep -v '^ *+' conftest.er1 >conftest.err
26860   rm -f conftest.er1
26861   cat conftest.err >&5
26862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863   (exit $ac_status); } && {
26864          test -z "$ac_cxx_werror_flag" ||
26865          test ! -s conftest.err
26866        } && test -s conftest.$ac_objext; then
26867   ac_header_compiler=yes
26868 else
26869   echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26871
26872         ac_header_compiler=no
26873 fi
26874
26875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26877 echo "${ECHO_T}$ac_header_compiler" >&6; }
26878
26879 # Is the header present?
26880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26882 cat >conftest.$ac_ext <<_ACEOF
26883 /* confdefs.h.  */
26884 _ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h.  */
26888 #include <$ac_header>
26889 _ACEOF
26890 if { (ac_try="$ac_cpp conftest.$ac_ext"
26891 case "(($ac_try" in
26892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26893   *) ac_try_echo=$ac_try;;
26894 esac
26895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26897   ac_status=$?
26898   grep -v '^ *+' conftest.er1 >conftest.err
26899   rm -f conftest.er1
26900   cat conftest.err >&5
26901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902   (exit $ac_status); } >/dev/null && {
26903          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26904          test ! -s conftest.err
26905        }; then
26906   ac_header_preproc=yes
26907 else
26908   echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26910
26911   ac_header_preproc=no
26912 fi
26913
26914 rm -f conftest.err conftest.$ac_ext
26915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26916 echo "${ECHO_T}$ac_header_preproc" >&6; }
26917
26918 # So?  What about this header?
26919 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26920   yes:no: )
26921     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26925     ac_header_preproc=yes
26926     ;;
26927   no:yes:* )
26928     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26930     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26931 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26932     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26934     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26935 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26938     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26940     ( cat <<\_ASBOX
26941 ## ----------------------------------------- ##
26942 ## Report this to wx-dev@lists.wxwidgets.org ##
26943 ## ----------------------------------------- ##
26944 _ASBOX
26945      ) | sed "s/^/$as_me: WARNING:     /" >&2
26946     ;;
26947 esac
26948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26951   echo $ECHO_N "(cached) $ECHO_C" >&6
26952 else
26953   eval "$as_ac_Header=\$ac_header_preproc"
26954 fi
26955 ac_res=`eval echo '${'$as_ac_Header'}'`
26956                { echo "$as_me:$LINENO: result: $ac_res" >&5
26957 echo "${ECHO_T}$ac_res" >&6; }
26958
26959 fi
26960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26961   cat >>confdefs.h <<_ACEOF
26962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26963 _ACEOF
26964
26965 fi
26966
26967 done
26968
26969
26970
26971
26972   if test -n "$GCC"; then
26973     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
26974 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
26975     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
26976   echo $ECHO_N "(cached) $ECHO_C" >&6
26977 else
26978
26979       cat >conftest.$ac_ext <<_ACEOF
26980 /* confdefs.h.  */
26981 _ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h.  */
26985
26986 int
26987 main ()
26988 {
26989
26990           unsigned int value=0;
26991           /* wxAtomicInc doesn't use return value here */
26992           __sync_fetch_and_add(&value, 2);
26993           __sync_sub_and_fetch(&value, 1);
26994           /* but wxAtomicDec does, so mimic that: */
26995           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
26996
26997   ;
26998   return 0;
26999 }
27000 _ACEOF
27001 rm -f conftest.$ac_objext conftest$ac_exeext
27002 if { (ac_try="$ac_link"
27003 case "(($ac_try" in
27004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27005   *) ac_try_echo=$ac_try;;
27006 esac
27007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27008   (eval "$ac_link") 2>conftest.er1
27009   ac_status=$?
27010   grep -v '^ *+' conftest.er1 >conftest.err
27011   rm -f conftest.er1
27012   cat conftest.err >&5
27013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); } && {
27015          test -z "$ac_cxx_werror_flag" ||
27016          test ! -s conftest.err
27017        } && test -s conftest$ac_exeext &&
27018        $as_test_x conftest$ac_exeext; then
27019   wx_cv_cc_gcc_atomic_builtins=yes
27020 else
27021   echo "$as_me: failed program was:" >&5
27022 sed 's/^/| /' conftest.$ac_ext >&5
27023
27024         wx_cv_cc_gcc_atomic_builtins=no
27025 fi
27026
27027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27028       conftest$ac_exeext conftest.$ac_ext
27029
27030 fi
27031
27032     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
27033 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
27034     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
27035       cat >>confdefs.h <<\_ACEOF
27036 #define HAVE_GCC_ATOMIC_BUILTINS 1
27037 _ACEOF
27038
27039     fi
27040   fi
27041
27042
27043 ac_ext=c
27044 ac_cpp='$CPP $CPPFLAGS'
27045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27048
27049
27050
27051 SEARCH_INCLUDE="\
27052     /usr/local/include        \
27053     /usr/local/X11/include    \
27054     /usr/local/include/X11    \
27055     /usr/local/X11R7/include  \
27056     /usr/local/X11R6/include  \
27057     /usr/local/include/X11R7  \
27058     /usr/local/include/X11R6  \
27059                               \
27060     /usr/Motif-2.1/include    \
27061     /usr/Motif-1.2/include    \
27062     /usr/include/Motif1.2     \
27063                               \
27064     /usr/dt/include           \
27065     /usr/openwin/include      \
27066                               \
27067     /usr/include/Xm           \
27068                               \
27069     /usr/X11R7/include        \
27070     /usr/X11R6/include        \
27071     /usr/X11R6.4/include      \
27072                               \
27073     /usr/include/X11R7        \
27074     /usr/include/X11R6        \
27075                               \
27076     /usr/X11/include          \
27077     /usr/include/X11          \
27078                               \
27079     /usr/XFree86/include/X11  \
27080     /usr/pkg/include          \
27081                               \
27082     /usr/local/X1R5/include  \
27083     /usr/local/include/X11R5  \
27084     /usr/X11R5/include        \
27085     /usr/include/X11R5        \
27086                               \
27087     /usr/local/X11R4/include  \
27088     /usr/local/include/X11R4  \
27089     /usr/X11R4/include        \
27090     /usr/include/X11R4        \
27091                               \
27092     /usr/openwin/share/include"
27093
27094 { echo "$as_me:$LINENO: checking for libraries directories" >&5
27095 echo $ECHO_N "checking for libraries directories... $ECHO_C" >&6; }
27096
27097 case "${host}" in
27098     *-*-irix6* )
27099         if test "${wx_cv_std_libpath+set}" = set; then
27100   echo $ECHO_N "(cached) $ECHO_C" >&6
27101 else
27102
27103                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27104                     for e in a so sl dylib dll.a; do
27105                         libc="$d/libc.$e"
27106                         if test -f $libc; then
27107                             save_LIBS="$LIBS"
27108                             LIBS="$libc"
27109                             cat >conftest.$ac_ext <<_ACEOF
27110 int main() { return 0; }
27111 _ACEOF
27112 rm -f conftest.$ac_objext conftest$ac_exeext
27113 if { (ac_try="$ac_link"
27114 case "(($ac_try" in
27115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27116   *) ac_try_echo=$ac_try;;
27117 esac
27118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27119   (eval "$ac_link") 2>conftest.er1
27120   ac_status=$?
27121   grep -v '^ *+' conftest.er1 >conftest.err
27122   rm -f conftest.er1
27123   cat conftest.err >&5
27124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); } && {
27126          test -z "$ac_c_werror_flag" ||
27127          test ! -s conftest.err
27128        } && test -s conftest$ac_exeext &&
27129        $as_test_x conftest$ac_exeext; then
27130   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27131 else
27132   echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27134
27135
27136 fi
27137
27138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27139       conftest$ac_exeext conftest.$ac_ext
27140                             LIBS="$save_LIBS"
27141                             if test "x$wx_cv_std_libpath" != "x"; then
27142                                 break 2
27143                             fi
27144                         fi
27145                     done
27146                 done
27147
27148
27149 fi
27150
27151         ;;
27152
27153     *-*-solaris2* )
27154                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27155             wx_cv_std_libpath="lib/64"
27156         fi
27157         ;;
27158
27159     *-*-linux* )
27160                                         if test "$ac_cv_sizeof_void_p" = 8; then
27161             if test -d "/usr/lib/`uname -m`-linux-gnu"; then
27162                 wx_cv_std_libfullpath="/usr/lib/`uname -m`-linux-gnu"
27163             elif test -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27164                 wx_cv_std_libpath="lib64"
27165             fi
27166         else
27167             case "${host}" in
27168                 i*86-*-linux* )
27169                     if test -d '/usr/lib/i386-linux-gnu'; then
27170                         wx_cv_std_libfullpath='/usr/lib/i386-linux-gnu'
27171                     fi
27172             esac
27173         fi
27174
27175                                 if test -n "$wx_cv_std_libfullpath" -a -d "/usr/lib"; then
27176             wx_cv_std_libfullpath="$wx_cv_std_libfullpath /usr/lib"
27177         fi
27178         ;;
27179 esac
27180
27181 if test -z "$wx_cv_std_libpath"; then
27182     wx_cv_std_libpath="lib"
27183 fi
27184
27185 if test -z "$wx_cv_std_libfullpath"; then
27186     wx_cv_std_libfullpath="/usr/$wx_cv_std_libpath"
27187 fi
27188
27189
27190 { echo "$as_me:$LINENO: result: $wx_cv_std_libfullpath" >&5
27191 echo "${ECHO_T}$wx_cv_std_libfullpath" >&6; }
27192
27193 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` $wx_cv_std_libfullpath"
27194
27195 if test "$build" != "$host" -a "$GCC" = yes; then
27196                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27197         cross_root=`dirname $cross_root`
27198         cross_root=`dirname $cross_root`
27199
27200                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27201         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27202         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27203
27204                 if test -z "$PKG_CONFIG_PATH"; then
27205             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27206             export PKG_CONFIG_PATH
27207         fi
27208
27209                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27210
27211 ac_find_includes=
27212 for ac_dir in $SEARCH_INCLUDE /usr/include
27213   do
27214     if test -f "$ac_dir/X11/Intrinsic.h"; then
27215       ac_find_includes=$ac_dir
27216       break
27217     fi
27218   done
27219
27220             x_includes=$ac_find_includes
27221         fi
27222         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27223
27224   ac_find_libraries=
27225   for ac_dir in $SEARCH_LIB
27226   do
27227     for ac_extension in a so sl dylib dll.a; do
27228       if test -f "$ac_dir/libXt.$ac_extension"; then
27229         ac_find_libraries=$ac_dir
27230         break 2
27231       fi
27232     done
27233   done
27234
27235             x_libraries=$ac_find_libraries
27236         fi
27237     fi
27238 fi
27239
27240
27241 cat >confcache <<\_ACEOF
27242 # This file is a shell script that caches the results of configure
27243 # tests run on this system so they can be shared between configure
27244 # scripts and configure runs, see configure's option --config-cache.
27245 # It is not useful on other systems.  If it contains results you don't
27246 # want to keep, you may remove or edit it.
27247 #
27248 # config.status only pays attention to the cache file if you give it
27249 # the --recheck option to rerun configure.
27250 #
27251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27253 # following values.
27254
27255 _ACEOF
27256
27257 # The following way of writing the cache mishandles newlines in values,
27258 # but we know of no workaround that is simple, portable, and efficient.
27259 # So, we kill variables containing newlines.
27260 # Ultrix sh set writes to stderr and can't be redirected directly,
27261 # and sets the high bit in the cache file unless we assign to the vars.
27262 (
27263   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27264     eval ac_val=\$$ac_var
27265     case $ac_val in #(
27266     *${as_nl}*)
27267       case $ac_var in #(
27268       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27269 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27270       esac
27271       case $ac_var in #(
27272       _ | IFS | as_nl) ;; #(
27273       *) $as_unset $ac_var ;;
27274       esac ;;
27275     esac
27276   done
27277
27278   (set) 2>&1 |
27279     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27280     *${as_nl}ac_space=\ *)
27281       # `set' does not quote correctly, so add quotes (double-quote
27282       # substitution turns \\\\ into \\, and sed turns \\ into \).
27283       sed -n \
27284         "s/'/'\\\\''/g;
27285           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27286       ;; #(
27287     *)
27288       # `set' quotes correctly as required by POSIX, so do not add quotes.
27289       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27290       ;;
27291     esac |
27292     sort
27293 ) |
27294   sed '
27295      /^ac_cv_env_/b end
27296      t clear
27297      :clear
27298      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27299      t end
27300      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27301      :end' >>confcache
27302 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27303   if test -w "$cache_file"; then
27304     test "x$cache_file" != "x/dev/null" &&
27305       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27306 echo "$as_me: updating cache $cache_file" >&6;}
27307     cat confcache >$cache_file
27308   else
27309     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27310 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27311   fi
27312 fi
27313 rm -f confcache
27314
27315 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27316     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27317 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27318 if test "${wx_cv_lib_glibc21+set}" = set; then
27319   echo $ECHO_N "(cached) $ECHO_C" >&6
27320 else
27321
27322         cat >conftest.$ac_ext <<_ACEOF
27323 /* confdefs.h.  */
27324 _ACEOF
27325 cat confdefs.h >>conftest.$ac_ext
27326 cat >>conftest.$ac_ext <<_ACEOF
27327 /* end confdefs.h.  */
27328 #include <features.h>
27329 int
27330 main ()
27331 {
27332
27333                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27334                 not glibc 2.1
27335                 #endif
27336
27337   ;
27338   return 0;
27339 }
27340 _ACEOF
27341 rm -f conftest.$ac_objext
27342 if { (ac_try="$ac_compile"
27343 case "(($ac_try" in
27344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27345   *) ac_try_echo=$ac_try;;
27346 esac
27347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27348   (eval "$ac_compile") 2>conftest.er1
27349   ac_status=$?
27350   grep -v '^ *+' conftest.er1 >conftest.err
27351   rm -f conftest.er1
27352   cat conftest.err >&5
27353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354   (exit $ac_status); } && {
27355          test -z "$ac_c_werror_flag" ||
27356          test ! -s conftest.err
27357        } && test -s conftest.$ac_objext; then
27358
27359                 wx_cv_lib_glibc21=yes
27360
27361 else
27362   echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27364
27365
27366                 wx_cv_lib_glibc21=no
27367
27368
27369 fi
27370
27371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27372
27373 fi
27374 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27375 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27376     if test "$wx_cv_lib_glibc21" = "yes"; then
27377         cat >>confdefs.h <<\_ACEOF
27378 #define wxHAVE_GLIBC2 1
27379 _ACEOF
27380
27381     fi
27382 fi
27383
27384 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27385     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27386         cat >>confdefs.h <<\_ACEOF
27387 #define _GNU_SOURCE 1
27388 _ACEOF
27389
27390     fi
27391 fi
27392
27393 have_cos=0
27394 have_floor=0
27395
27396 for ac_func in cos
27397 do
27398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27402   echo $ECHO_N "(cached) $ECHO_C" >&6
27403 else
27404   cat >conftest.$ac_ext <<_ACEOF
27405 /* confdefs.h.  */
27406 _ACEOF
27407 cat confdefs.h >>conftest.$ac_ext
27408 cat >>conftest.$ac_ext <<_ACEOF
27409 /* end confdefs.h.  */
27410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27412 #define $ac_func innocuous_$ac_func
27413
27414 /* System header to define __stub macros and hopefully few prototypes,
27415     which can conflict with char $ac_func (); below.
27416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27417     <limits.h> exists even on freestanding compilers.  */
27418
27419 #ifdef __STDC__
27420 # include <limits.h>
27421 #else
27422 # include <assert.h>
27423 #endif
27424
27425 #undef $ac_func
27426
27427 /* Override any GCC internal prototype to avoid an error.
27428    Use char because int might match the return type of a GCC
27429    builtin and then its argument prototype would still apply.  */
27430 #ifdef __cplusplus
27431 extern "C"
27432 #endif
27433 char $ac_func ();
27434 /* The GNU C library defines this for functions which it implements
27435     to always fail with ENOSYS.  Some functions are actually named
27436     something starting with __ and the normal name is an alias.  */
27437 #if defined __stub_$ac_func || defined __stub___$ac_func
27438 choke me
27439 #endif
27440
27441 int
27442 main ()
27443 {
27444 return $ac_func ();
27445   ;
27446   return 0;
27447 }
27448 _ACEOF
27449 rm -f conftest.$ac_objext conftest$ac_exeext
27450 if { (ac_try="$ac_link"
27451 case "(($ac_try" in
27452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27453   *) ac_try_echo=$ac_try;;
27454 esac
27455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27456   (eval "$ac_link") 2>conftest.er1
27457   ac_status=$?
27458   grep -v '^ *+' conftest.er1 >conftest.err
27459   rm -f conftest.er1
27460   cat conftest.err >&5
27461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462   (exit $ac_status); } && {
27463          test -z "$ac_c_werror_flag" ||
27464          test ! -s conftest.err
27465        } && test -s conftest$ac_exeext &&
27466        $as_test_x conftest$ac_exeext; then
27467   eval "$as_ac_var=yes"
27468 else
27469   echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27471
27472         eval "$as_ac_var=no"
27473 fi
27474
27475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27476       conftest$ac_exeext conftest.$ac_ext
27477 fi
27478 ac_res=`eval echo '${'$as_ac_var'}'`
27479                { echo "$as_me:$LINENO: result: $ac_res" >&5
27480 echo "${ECHO_T}$ac_res" >&6; }
27481 if test `eval echo '${'$as_ac_var'}'` = yes; then
27482   cat >>confdefs.h <<_ACEOF
27483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27484 _ACEOF
27485  have_cos=1
27486 fi
27487 done
27488
27489
27490 for ac_func in floor
27491 do
27492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27496   echo $ECHO_N "(cached) $ECHO_C" >&6
27497 else
27498   cat >conftest.$ac_ext <<_ACEOF
27499 /* confdefs.h.  */
27500 _ACEOF
27501 cat confdefs.h >>conftest.$ac_ext
27502 cat >>conftest.$ac_ext <<_ACEOF
27503 /* end confdefs.h.  */
27504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27506 #define $ac_func innocuous_$ac_func
27507
27508 /* System header to define __stub macros and hopefully few prototypes,
27509     which can conflict with char $ac_func (); below.
27510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27511     <limits.h> exists even on freestanding compilers.  */
27512
27513 #ifdef __STDC__
27514 # include <limits.h>
27515 #else
27516 # include <assert.h>
27517 #endif
27518
27519 #undef $ac_func
27520
27521 /* Override any GCC internal prototype to avoid an error.
27522    Use char because int might match the return type of a GCC
27523    builtin and then its argument prototype would still apply.  */
27524 #ifdef __cplusplus
27525 extern "C"
27526 #endif
27527 char $ac_func ();
27528 /* The GNU C library defines this for functions which it implements
27529     to always fail with ENOSYS.  Some functions are actually named
27530     something starting with __ and the normal name is an alias.  */
27531 #if defined __stub_$ac_func || defined __stub___$ac_func
27532 choke me
27533 #endif
27534
27535 int
27536 main ()
27537 {
27538 return $ac_func ();
27539   ;
27540   return 0;
27541 }
27542 _ACEOF
27543 rm -f conftest.$ac_objext conftest$ac_exeext
27544 if { (ac_try="$ac_link"
27545 case "(($ac_try" in
27546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547   *) ac_try_echo=$ac_try;;
27548 esac
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550   (eval "$ac_link") 2>conftest.er1
27551   ac_status=$?
27552   grep -v '^ *+' conftest.er1 >conftest.err
27553   rm -f conftest.er1
27554   cat conftest.err >&5
27555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556   (exit $ac_status); } && {
27557          test -z "$ac_c_werror_flag" ||
27558          test ! -s conftest.err
27559        } && test -s conftest$ac_exeext &&
27560        $as_test_x conftest$ac_exeext; then
27561   eval "$as_ac_var=yes"
27562 else
27563   echo "$as_me: failed program was:" >&5
27564 sed 's/^/| /' conftest.$ac_ext >&5
27565
27566         eval "$as_ac_var=no"
27567 fi
27568
27569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27570       conftest$ac_exeext conftest.$ac_ext
27571 fi
27572 ac_res=`eval echo '${'$as_ac_var'}'`
27573                { echo "$as_me:$LINENO: result: $ac_res" >&5
27574 echo "${ECHO_T}$ac_res" >&6; }
27575 if test `eval echo '${'$as_ac_var'}'` = yes; then
27576   cat >>confdefs.h <<_ACEOF
27577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27578 _ACEOF
27579  have_floor=1
27580 fi
27581 done
27582
27583 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27584 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27585 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27586     { echo "$as_me:$LINENO: result: yes" >&5
27587 echo "${ECHO_T}yes" >&6; }
27588 else
27589     { echo "$as_me:$LINENO: result: no" >&5
27590 echo "${ECHO_T}no" >&6; }
27591     LIBS="$LIBS -lm"
27592     # use different functions to avoid configure caching
27593     have_sin=0
27594     have_ceil=0
27595
27596 for ac_func in sin
27597 do
27598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27602   echo $ECHO_N "(cached) $ECHO_C" >&6
27603 else
27604   cat >conftest.$ac_ext <<_ACEOF
27605 /* confdefs.h.  */
27606 _ACEOF
27607 cat confdefs.h >>conftest.$ac_ext
27608 cat >>conftest.$ac_ext <<_ACEOF
27609 /* end confdefs.h.  */
27610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27612 #define $ac_func innocuous_$ac_func
27613
27614 /* System header to define __stub macros and hopefully few prototypes,
27615     which can conflict with char $ac_func (); below.
27616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27617     <limits.h> exists even on freestanding compilers.  */
27618
27619 #ifdef __STDC__
27620 # include <limits.h>
27621 #else
27622 # include <assert.h>
27623 #endif
27624
27625 #undef $ac_func
27626
27627 /* Override any GCC internal prototype to avoid an error.
27628    Use char because int might match the return type of a GCC
27629    builtin and then its argument prototype would still apply.  */
27630 #ifdef __cplusplus
27631 extern "C"
27632 #endif
27633 char $ac_func ();
27634 /* The GNU C library defines this for functions which it implements
27635     to always fail with ENOSYS.  Some functions are actually named
27636     something starting with __ and the normal name is an alias.  */
27637 #if defined __stub_$ac_func || defined __stub___$ac_func
27638 choke me
27639 #endif
27640
27641 int
27642 main ()
27643 {
27644 return $ac_func ();
27645   ;
27646   return 0;
27647 }
27648 _ACEOF
27649 rm -f conftest.$ac_objext conftest$ac_exeext
27650 if { (ac_try="$ac_link"
27651 case "(($ac_try" in
27652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653   *) ac_try_echo=$ac_try;;
27654 esac
27655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27656   (eval "$ac_link") 2>conftest.er1
27657   ac_status=$?
27658   grep -v '^ *+' conftest.er1 >conftest.err
27659   rm -f conftest.er1
27660   cat conftest.err >&5
27661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662   (exit $ac_status); } && {
27663          test -z "$ac_c_werror_flag" ||
27664          test ! -s conftest.err
27665        } && test -s conftest$ac_exeext &&
27666        $as_test_x conftest$ac_exeext; then
27667   eval "$as_ac_var=yes"
27668 else
27669   echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27671
27672         eval "$as_ac_var=no"
27673 fi
27674
27675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27676       conftest$ac_exeext conftest.$ac_ext
27677 fi
27678 ac_res=`eval echo '${'$as_ac_var'}'`
27679                { echo "$as_me:$LINENO: result: $ac_res" >&5
27680 echo "${ECHO_T}$ac_res" >&6; }
27681 if test `eval echo '${'$as_ac_var'}'` = yes; then
27682   cat >>confdefs.h <<_ACEOF
27683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27684 _ACEOF
27685  have_sin=1
27686 fi
27687 done
27688
27689
27690 for ac_func in ceil
27691 do
27692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27696   echo $ECHO_N "(cached) $ECHO_C" >&6
27697 else
27698   cat >conftest.$ac_ext <<_ACEOF
27699 /* confdefs.h.  */
27700 _ACEOF
27701 cat confdefs.h >>conftest.$ac_ext
27702 cat >>conftest.$ac_ext <<_ACEOF
27703 /* end confdefs.h.  */
27704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27706 #define $ac_func innocuous_$ac_func
27707
27708 /* System header to define __stub macros and hopefully few prototypes,
27709     which can conflict with char $ac_func (); below.
27710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27711     <limits.h> exists even on freestanding compilers.  */
27712
27713 #ifdef __STDC__
27714 # include <limits.h>
27715 #else
27716 # include <assert.h>
27717 #endif
27718
27719 #undef $ac_func
27720
27721 /* Override any GCC internal prototype to avoid an error.
27722    Use char because int might match the return type of a GCC
27723    builtin and then its argument prototype would still apply.  */
27724 #ifdef __cplusplus
27725 extern "C"
27726 #endif
27727 char $ac_func ();
27728 /* The GNU C library defines this for functions which it implements
27729     to always fail with ENOSYS.  Some functions are actually named
27730     something starting with __ and the normal name is an alias.  */
27731 #if defined __stub_$ac_func || defined __stub___$ac_func
27732 choke me
27733 #endif
27734
27735 int
27736 main ()
27737 {
27738 return $ac_func ();
27739   ;
27740   return 0;
27741 }
27742 _ACEOF
27743 rm -f conftest.$ac_objext conftest$ac_exeext
27744 if { (ac_try="$ac_link"
27745 case "(($ac_try" in
27746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27747   *) ac_try_echo=$ac_try;;
27748 esac
27749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750   (eval "$ac_link") 2>conftest.er1
27751   ac_status=$?
27752   grep -v '^ *+' conftest.er1 >conftest.err
27753   rm -f conftest.er1
27754   cat conftest.err >&5
27755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756   (exit $ac_status); } && {
27757          test -z "$ac_c_werror_flag" ||
27758          test ! -s conftest.err
27759        } && test -s conftest$ac_exeext &&
27760        $as_test_x conftest$ac_exeext; then
27761   eval "$as_ac_var=yes"
27762 else
27763   echo "$as_me: failed program was:" >&5
27764 sed 's/^/| /' conftest.$ac_ext >&5
27765
27766         eval "$as_ac_var=no"
27767 fi
27768
27769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27770       conftest$ac_exeext conftest.$ac_ext
27771 fi
27772 ac_res=`eval echo '${'$as_ac_var'}'`
27773                { echo "$as_me:$LINENO: result: $ac_res" >&5
27774 echo "${ECHO_T}$ac_res" >&6; }
27775 if test `eval echo '${'$as_ac_var'}'` = yes; then
27776   cat >>confdefs.h <<_ACEOF
27777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27778 _ACEOF
27779  have_ceil=1
27780 fi
27781 done
27782
27783     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27784 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27785     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27786         { echo "$as_me:$LINENO: result: yes" >&5
27787 echo "${ECHO_T}yes" >&6; }
27788     else
27789         { echo "$as_me:$LINENO: result: no" >&5
27790 echo "${ECHO_T}no" >&6; }
27791         # not sure we should warn the user, crash, etc.
27792     fi
27793 fi
27794
27795 ac_ext=cpp
27796 ac_cpp='$CXXCPP $CPPFLAGS'
27797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27800
27801 if test "wxUSE_UNICODE" = "yes"; then
27802
27803   for wx_func in wcstoull
27804   do
27805     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27806 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27807 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27808   echo $ECHO_N "(cached) $ECHO_C" >&6
27809 else
27810
27811         cat >conftest.$ac_ext <<_ACEOF
27812
27813             /* confdefs.h.  */
27814 _ACEOF
27815 cat confdefs.h >>conftest.$ac_ext
27816 cat >>conftest.$ac_ext <<_ACEOF
27817 /* end confdefs.h.  */
27818
27819
27820                 $ac_includes_default
27821
27822 int
27823 main ()
27824 {
27825
27826                 #ifndef $wx_func
27827                   &$wx_func;
27828                 #endif
27829
27830
27831   ;
27832   return 0;
27833 }
27834
27835 _ACEOF
27836 rm -f conftest.$ac_objext conftest$ac_exeext
27837 if { (ac_try="$ac_link"
27838 case "(($ac_try" in
27839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27840   *) ac_try_echo=$ac_try;;
27841 esac
27842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27843   (eval "$ac_link") 2>conftest.er1
27844   ac_status=$?
27845   grep -v '^ *+' conftest.er1 >conftest.err
27846   rm -f conftest.er1
27847   cat conftest.err >&5
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); } && {
27850          test -z "$ac_cxx_werror_flag" ||
27851          test ! -s conftest.err
27852        } && test -s conftest$ac_exeext &&
27853        $as_test_x conftest$ac_exeext; then
27854   eval wx_cv_func_$wx_func=yes
27855 else
27856   echo "$as_me: failed program was:" >&5
27857 sed 's/^/| /' conftest.$ac_ext >&5
27858
27859         eval wx_cv_func_$wx_func=no
27860 fi
27861
27862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27863       conftest$ac_exeext conftest.$ac_ext
27864
27865 fi
27866 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27867                { echo "$as_me:$LINENO: result: $ac_res" >&5
27868 echo "${ECHO_T}$ac_res" >&6; }
27869
27870     if eval test \$wx_cv_func_$wx_func = yes
27871     then
27872       cat >>confdefs.h <<_ACEOF
27873 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27874 _ACEOF
27875
27876
27877     else
27878       :
27879
27880     fi
27881   done
27882
27883 else
27884
27885   for wx_func in strtoull
27886   do
27887     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27888 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27889 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27890   echo $ECHO_N "(cached) $ECHO_C" >&6
27891 else
27892
27893         cat >conftest.$ac_ext <<_ACEOF
27894
27895             /* confdefs.h.  */
27896 _ACEOF
27897 cat confdefs.h >>conftest.$ac_ext
27898 cat >>conftest.$ac_ext <<_ACEOF
27899 /* end confdefs.h.  */
27900
27901
27902                 $ac_includes_default
27903
27904 int
27905 main ()
27906 {
27907
27908                 #ifndef $wx_func
27909                   &$wx_func;
27910                 #endif
27911
27912
27913   ;
27914   return 0;
27915 }
27916
27917 _ACEOF
27918 rm -f conftest.$ac_objext conftest$ac_exeext
27919 if { (ac_try="$ac_link"
27920 case "(($ac_try" in
27921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27922   *) ac_try_echo=$ac_try;;
27923 esac
27924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27925   (eval "$ac_link") 2>conftest.er1
27926   ac_status=$?
27927   grep -v '^ *+' conftest.er1 >conftest.err
27928   rm -f conftest.er1
27929   cat conftest.err >&5
27930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931   (exit $ac_status); } && {
27932          test -z "$ac_cxx_werror_flag" ||
27933          test ! -s conftest.err
27934        } && test -s conftest$ac_exeext &&
27935        $as_test_x conftest$ac_exeext; then
27936   eval wx_cv_func_$wx_func=yes
27937 else
27938   echo "$as_me: failed program was:" >&5
27939 sed 's/^/| /' conftest.$ac_ext >&5
27940
27941         eval wx_cv_func_$wx_func=no
27942 fi
27943
27944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27945       conftest$ac_exeext conftest.$ac_ext
27946
27947 fi
27948 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27949                { echo "$as_me:$LINENO: result: $ac_res" >&5
27950 echo "${ECHO_T}$ac_res" >&6; }
27951
27952     if eval test \$wx_cv_func_$wx_func = yes
27953     then
27954       cat >>confdefs.h <<_ACEOF
27955 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27956 _ACEOF
27957
27958
27959     else
27960       :
27961
27962     fi
27963   done
27964
27965 fi
27966 ac_ext=c
27967 ac_cpp='$CPP $CPPFLAGS'
27968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27971
27972
27973
27974
27975 if test "$wxUSE_REGEX" != "no"; then
27976     cat >>confdefs.h <<\_ACEOF
27977 #define wxUSE_REGEX 1
27978 _ACEOF
27979
27980
27981     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
27982         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
27983 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
27984         wxUSE_REGEX=builtin
27985     fi
27986
27987     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
27988                         { echo "$as_me:$LINENO: checking for regex.h" >&5
27989 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
27990 if test "${ac_cv_header_regex_h+set}" = set; then
27991   echo $ECHO_N "(cached) $ECHO_C" >&6
27992 else
27993   cat >conftest.$ac_ext <<_ACEOF
27994 /* confdefs.h.  */
27995 _ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h.  */
27999
28000
28001 #include <regex.h>
28002 _ACEOF
28003 rm -f conftest.$ac_objext
28004 if { (ac_try="$ac_compile"
28005 case "(($ac_try" in
28006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28007   *) ac_try_echo=$ac_try;;
28008 esac
28009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28010   (eval "$ac_compile") 2>conftest.er1
28011   ac_status=$?
28012   grep -v '^ *+' conftest.er1 >conftest.err
28013   rm -f conftest.er1
28014   cat conftest.err >&5
28015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016   (exit $ac_status); } && {
28017          test -z "$ac_c_werror_flag" ||
28018          test ! -s conftest.err
28019        } && test -s conftest.$ac_objext; then
28020   ac_cv_header_regex_h=yes
28021 else
28022   echo "$as_me: failed program was:" >&5
28023 sed 's/^/| /' conftest.$ac_ext >&5
28024
28025         ac_cv_header_regex_h=no
28026 fi
28027
28028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28029 fi
28030 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28031 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28032 if test $ac_cv_header_regex_h = yes; then
28033
28034
28035 for ac_func in regcomp re_search
28036 do
28037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28041   echo $ECHO_N "(cached) $ECHO_C" >&6
28042 else
28043   cat >conftest.$ac_ext <<_ACEOF
28044 /* confdefs.h.  */
28045 _ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h.  */
28049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28051 #define $ac_func innocuous_$ac_func
28052
28053 /* System header to define __stub macros and hopefully few prototypes,
28054     which can conflict with char $ac_func (); below.
28055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28056     <limits.h> exists even on freestanding compilers.  */
28057
28058 #ifdef __STDC__
28059 # include <limits.h>
28060 #else
28061 # include <assert.h>
28062 #endif
28063
28064 #undef $ac_func
28065
28066 /* Override any GCC internal prototype to avoid an error.
28067    Use char because int might match the return type of a GCC
28068    builtin and then its argument prototype would still apply.  */
28069 #ifdef __cplusplus
28070 extern "C"
28071 #endif
28072 char $ac_func ();
28073 /* The GNU C library defines this for functions which it implements
28074     to always fail with ENOSYS.  Some functions are actually named
28075     something starting with __ and the normal name is an alias.  */
28076 #if defined __stub_$ac_func || defined __stub___$ac_func
28077 choke me
28078 #endif
28079
28080 int
28081 main ()
28082 {
28083 return $ac_func ();
28084   ;
28085   return 0;
28086 }
28087 _ACEOF
28088 rm -f conftest.$ac_objext conftest$ac_exeext
28089 if { (ac_try="$ac_link"
28090 case "(($ac_try" in
28091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28092   *) ac_try_echo=$ac_try;;
28093 esac
28094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28095   (eval "$ac_link") 2>conftest.er1
28096   ac_status=$?
28097   grep -v '^ *+' conftest.er1 >conftest.err
28098   rm -f conftest.er1
28099   cat conftest.err >&5
28100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101   (exit $ac_status); } && {
28102          test -z "$ac_c_werror_flag" ||
28103          test ! -s conftest.err
28104        } && test -s conftest$ac_exeext &&
28105        $as_test_x conftest$ac_exeext; then
28106   eval "$as_ac_var=yes"
28107 else
28108   echo "$as_me: failed program was:" >&5
28109 sed 's/^/| /' conftest.$ac_ext >&5
28110
28111         eval "$as_ac_var=no"
28112 fi
28113
28114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28115       conftest$ac_exeext conftest.$ac_ext
28116 fi
28117 ac_res=`eval echo '${'$as_ac_var'}'`
28118                { echo "$as_me:$LINENO: result: $ac_res" >&5
28119 echo "${ECHO_T}$ac_res" >&6; }
28120 if test `eval echo '${'$as_ac_var'}'` = yes; then
28121   cat >>confdefs.h <<_ACEOF
28122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28123 _ACEOF
28124
28125 fi
28126 done
28127
28128 fi
28129
28130
28131
28132         if test "x$ac_cv_func_regcomp" != "xyes"; then
28133             if test "$wxUSE_REGEX" = "sys" ; then
28134                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28135 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28136    { (exit 1); exit 1; }; }
28137             else
28138                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28139 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28140                 wxUSE_REGEX=builtin
28141             fi
28142         else
28143                         wxUSE_REGEX=sys
28144                         cat >>confdefs.h <<\_ACEOF
28145 #define WX_NO_REGEX_ADVANCED 1
28146 _ACEOF
28147
28148         fi
28149     fi
28150 fi
28151
28152
28153 ZLIB_LINK=
28154 if test "$wxUSE_ZLIB" != "no" ; then
28155     cat >>confdefs.h <<\_ACEOF
28156 #define wxUSE_ZLIB 1
28157 _ACEOF
28158
28159
28160     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28161                                                 if test "$USE_DARWIN" = 1; then
28162             system_zlib_h_ok="yes"
28163         else
28164                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28165 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28166 if test "${ac_cv_header_zlib_h+set}" = set; then
28167   echo $ECHO_N "(cached) $ECHO_C" >&6
28168 else
28169   if test "$cross_compiling" = yes; then
28170                       unset ac_cv_header_zlib_h
28171
28172 else
28173   cat >conftest.$ac_ext <<_ACEOF
28174 /* confdefs.h.  */
28175 _ACEOF
28176 cat confdefs.h >>conftest.$ac_ext
28177 cat >>conftest.$ac_ext <<_ACEOF
28178 /* end confdefs.h.  */
28179
28180                         #include <zlib.h>
28181                         #include <stdio.h>
28182
28183                         int main()
28184                         {
28185                             FILE *f=fopen("conftestval", "w");
28186                             if (!f) exit(1);
28187                             fprintf(f, "%s",
28188                                     ZLIB_VERSION[0] == '1' &&
28189                                     (ZLIB_VERSION[2] > '1' ||
28190                                     (ZLIB_VERSION[2] == '1' &&
28191                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28192                             exit(0);
28193                         }
28194
28195 _ACEOF
28196 rm -f conftest$ac_exeext
28197 if { (ac_try="$ac_link"
28198 case "(($ac_try" in
28199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28200   *) ac_try_echo=$ac_try;;
28201 esac
28202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28203   (eval "$ac_link") 2>&5
28204   ac_status=$?
28205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28207   { (case "(($ac_try" in
28208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28209   *) ac_try_echo=$ac_try;;
28210 esac
28211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28212   (eval "$ac_try") 2>&5
28213   ac_status=$?
28214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215   (exit $ac_status); }; }; then
28216   ac_cv_header_zlib_h=`cat conftestval`
28217 else
28218   echo "$as_me: program exited with status $ac_status" >&5
28219 echo "$as_me: failed program was:" >&5
28220 sed 's/^/| /' conftest.$ac_ext >&5
28221
28222 ( exit $ac_status )
28223 ac_cv_header_zlib_h=no
28224 fi
28225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28226 fi
28227
28228
28229
28230 fi
28231 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28232 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28233                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28234 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28235 if test "${ac_cv_header_zlib_h+set}" = set; then
28236   echo $ECHO_N "(cached) $ECHO_C" >&6
28237 else
28238   cat >conftest.$ac_ext <<_ACEOF
28239 /* confdefs.h.  */
28240 _ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h.  */
28244
28245
28246 #include <zlib.h>
28247 _ACEOF
28248 rm -f conftest.$ac_objext
28249 if { (ac_try="$ac_compile"
28250 case "(($ac_try" in
28251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28252   *) ac_try_echo=$ac_try;;
28253 esac
28254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28255   (eval "$ac_compile") 2>conftest.er1
28256   ac_status=$?
28257   grep -v '^ *+' conftest.er1 >conftest.err
28258   rm -f conftest.er1
28259   cat conftest.err >&5
28260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261   (exit $ac_status); } && {
28262          test -z "$ac_c_werror_flag" ||
28263          test ! -s conftest.err
28264        } && test -s conftest.$ac_objext; then
28265   ac_cv_header_zlib_h=yes
28266 else
28267   echo "$as_me: failed program was:" >&5
28268 sed 's/^/| /' conftest.$ac_ext >&5
28269
28270         ac_cv_header_zlib_h=no
28271 fi
28272
28273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28274 fi
28275 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28276 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28277
28278
28279
28280             system_zlib_h_ok=$ac_cv_header_zlib_h
28281         fi
28282
28283         if test "$system_zlib_h_ok" = "yes"; then
28284             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28285 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28286 if test "${ac_cv_lib_z_deflate+set}" = set; then
28287   echo $ECHO_N "(cached) $ECHO_C" >&6
28288 else
28289   ac_check_lib_save_LIBS=$LIBS
28290 LIBS="-lz  $LIBS"
28291 cat >conftest.$ac_ext <<_ACEOF
28292 /* confdefs.h.  */
28293 _ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h.  */
28297
28298 /* Override any GCC internal prototype to avoid an error.
28299    Use char because int might match the return type of a GCC
28300    builtin and then its argument prototype would still apply.  */
28301 #ifdef __cplusplus
28302 extern "C"
28303 #endif
28304 char deflate ();
28305 int
28306 main ()
28307 {
28308 return deflate ();
28309   ;
28310   return 0;
28311 }
28312 _ACEOF
28313 rm -f conftest.$ac_objext conftest$ac_exeext
28314 if { (ac_try="$ac_link"
28315 case "(($ac_try" in
28316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28317   *) ac_try_echo=$ac_try;;
28318 esac
28319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28320   (eval "$ac_link") 2>conftest.er1
28321   ac_status=$?
28322   grep -v '^ *+' conftest.er1 >conftest.err
28323   rm -f conftest.er1
28324   cat conftest.err >&5
28325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326   (exit $ac_status); } && {
28327          test -z "$ac_c_werror_flag" ||
28328          test ! -s conftest.err
28329        } && test -s conftest$ac_exeext &&
28330        $as_test_x conftest$ac_exeext; then
28331   ac_cv_lib_z_deflate=yes
28332 else
28333   echo "$as_me: failed program was:" >&5
28334 sed 's/^/| /' conftest.$ac_ext >&5
28335
28336         ac_cv_lib_z_deflate=no
28337 fi
28338
28339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28340       conftest$ac_exeext conftest.$ac_ext
28341 LIBS=$ac_check_lib_save_LIBS
28342 fi
28343 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28344 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28345 if test $ac_cv_lib_z_deflate = yes; then
28346   ZLIB_LINK=" -lz"
28347 fi
28348
28349         fi
28350
28351         if test "x$ZLIB_LINK" = "x" ; then
28352             if test "$wxUSE_ZLIB" = "sys" ; then
28353                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28354 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28355    { (exit 1); exit 1; }; }
28356             else
28357                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28358 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28359                 wxUSE_ZLIB=builtin
28360             fi
28361         else
28362                         wxUSE_ZLIB=sys
28363         fi
28364     fi
28365 fi
28366
28367
28368 PNG_LINK=
28369 if test "$wxUSE_LIBPNG" != "no" ; then
28370     cat >>confdefs.h <<\_ACEOF
28371 #define wxUSE_LIBPNG 1
28372 _ACEOF
28373
28374
28375     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28376         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28377 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28378         wxUSE_LIBPNG=sys
28379     fi
28380
28381                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28382         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28383 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28384         wxUSE_LIBPNG=builtin
28385     fi
28386
28387     if test "$wxUSE_MGL" != 1 ; then
28388                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28389                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28390 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28391 if test "${ac_cv_header_png_h+set}" = set; then
28392   echo $ECHO_N "(cached) $ECHO_C" >&6
28393 else
28394   if test "$cross_compiling" = yes; then
28395                       unset ac_cv_header_png_h
28396
28397 else
28398   cat >conftest.$ac_ext <<_ACEOF
28399 /* confdefs.h.  */
28400 _ACEOF
28401 cat confdefs.h >>conftest.$ac_ext
28402 cat >>conftest.$ac_ext <<_ACEOF
28403 /* end confdefs.h.  */
28404
28405                         #include <png.h>
28406                         #include <stdio.h>
28407
28408                         int main()
28409                         {
28410                             FILE *f=fopen("conftestval", "w");
28411                             if (!f) exit(1);
28412                             fprintf(f, "%s",
28413                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28414                             exit(0);
28415                         }
28416
28417 _ACEOF
28418 rm -f conftest$ac_exeext
28419 if { (ac_try="$ac_link"
28420 case "(($ac_try" in
28421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422   *) ac_try_echo=$ac_try;;
28423 esac
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425   (eval "$ac_link") 2>&5
28426   ac_status=$?
28427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28429   { (case "(($ac_try" in
28430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28431   *) ac_try_echo=$ac_try;;
28432 esac
28433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28434   (eval "$ac_try") 2>&5
28435   ac_status=$?
28436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437   (exit $ac_status); }; }; then
28438   ac_cv_header_png_h=`cat conftestval`
28439 else
28440   echo "$as_me: program exited with status $ac_status" >&5
28441 echo "$as_me: failed program was:" >&5
28442 sed 's/^/| /' conftest.$ac_ext >&5
28443
28444 ( exit $ac_status )
28445 ac_cv_header_png_h=no
28446 fi
28447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28448 fi
28449
28450
28451
28452 fi
28453 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28454 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28455             { echo "$as_me:$LINENO: checking for png.h" >&5
28456 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28457 if test "${ac_cv_header_png_h+set}" = set; then
28458   echo $ECHO_N "(cached) $ECHO_C" >&6
28459 else
28460   cat >conftest.$ac_ext <<_ACEOF
28461 /* confdefs.h.  */
28462 _ACEOF
28463 cat confdefs.h >>conftest.$ac_ext
28464 cat >>conftest.$ac_ext <<_ACEOF
28465 /* end confdefs.h.  */
28466
28467
28468 #include <png.h>
28469 _ACEOF
28470 rm -f conftest.$ac_objext
28471 if { (ac_try="$ac_compile"
28472 case "(($ac_try" in
28473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28474   *) ac_try_echo=$ac_try;;
28475 esac
28476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28477   (eval "$ac_compile") 2>conftest.er1
28478   ac_status=$?
28479   grep -v '^ *+' conftest.er1 >conftest.err
28480   rm -f conftest.er1
28481   cat conftest.err >&5
28482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483   (exit $ac_status); } && {
28484          test -z "$ac_c_werror_flag" ||
28485          test ! -s conftest.err
28486        } && test -s conftest.$ac_objext; then
28487   ac_cv_header_png_h=yes
28488 else
28489   echo "$as_me: failed program was:" >&5
28490 sed 's/^/| /' conftest.$ac_ext >&5
28491
28492         ac_cv_header_png_h=no
28493 fi
28494
28495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28496 fi
28497 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28498 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28499
28500
28501
28502             if test "$ac_cv_header_png_h" = "yes"; then
28503                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
28504 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
28505 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
28506   echo $ECHO_N "(cached) $ECHO_C" >&6
28507 else
28508   ac_check_lib_save_LIBS=$LIBS
28509 LIBS="-lpng -lz -lm $LIBS"
28510 cat >conftest.$ac_ext <<_ACEOF
28511 /* confdefs.h.  */
28512 _ACEOF
28513 cat confdefs.h >>conftest.$ac_ext
28514 cat >>conftest.$ac_ext <<_ACEOF
28515 /* end confdefs.h.  */
28516
28517 /* Override any GCC internal prototype to avoid an error.
28518    Use char because int might match the return type of a GCC
28519    builtin and then its argument prototype would still apply.  */
28520 #ifdef __cplusplus
28521 extern "C"
28522 #endif
28523 char png_sig_cmp ();
28524 int
28525 main ()
28526 {
28527 return png_sig_cmp ();
28528   ;
28529   return 0;
28530 }
28531 _ACEOF
28532 rm -f conftest.$ac_objext conftest$ac_exeext
28533 if { (ac_try="$ac_link"
28534 case "(($ac_try" in
28535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28536   *) ac_try_echo=$ac_try;;
28537 esac
28538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539   (eval "$ac_link") 2>conftest.er1
28540   ac_status=$?
28541   grep -v '^ *+' conftest.er1 >conftest.err
28542   rm -f conftest.er1
28543   cat conftest.err >&5
28544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545   (exit $ac_status); } && {
28546          test -z "$ac_c_werror_flag" ||
28547          test ! -s conftest.err
28548        } && test -s conftest$ac_exeext &&
28549        $as_test_x conftest$ac_exeext; then
28550   ac_cv_lib_png_png_sig_cmp=yes
28551 else
28552   echo "$as_me: failed program was:" >&5
28553 sed 's/^/| /' conftest.$ac_ext >&5
28554
28555         ac_cv_lib_png_png_sig_cmp=no
28556 fi
28557
28558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28559       conftest$ac_exeext conftest.$ac_ext
28560 LIBS=$ac_check_lib_save_LIBS
28561 fi
28562 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
28563 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
28564 if test $ac_cv_lib_png_png_sig_cmp = yes; then
28565   PNG_LINK=" -lpng -lz"
28566 fi
28567
28568             fi
28569
28570             if test "x$PNG_LINK" = "x" ; then
28571                 if test "$wxUSE_LIBPNG" = "sys" ; then
28572                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28573 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28574    { (exit 1); exit 1; }; }
28575                 else
28576                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28577 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28578                     wxUSE_LIBPNG=builtin
28579                 fi
28580             else
28581                                 wxUSE_LIBPNG=sys
28582             fi
28583         fi
28584     fi
28585 fi
28586
28587
28588 JPEG_LINK=
28589 if test "$wxUSE_LIBJPEG" != "no" ; then
28590     cat >>confdefs.h <<\_ACEOF
28591 #define wxUSE_LIBJPEG 1
28592 _ACEOF
28593
28594
28595     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28596         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28597 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28598         wxUSE_LIBJPEG=sys
28599     fi
28600
28601     if test "$wxUSE_MGL" != 1 ; then
28602                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28603                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28604 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28605             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28606   echo $ECHO_N "(cached) $ECHO_C" >&6
28607 else
28608   cat >conftest.$ac_ext <<_ACEOF
28609 /* confdefs.h.  */
28610 _ACEOF
28611 cat confdefs.h >>conftest.$ac_ext
28612 cat >>conftest.$ac_ext <<_ACEOF
28613 /* end confdefs.h.  */
28614
28615                         #undef HAVE_STDLIB_H
28616                         #include <stdio.h>
28617                         #include <jpeglib.h>
28618
28619 int
28620 main ()
28621 {
28622
28623
28624   ;
28625   return 0;
28626 }
28627 _ACEOF
28628 rm -f conftest.$ac_objext
28629 if { (ac_try="$ac_compile"
28630 case "(($ac_try" in
28631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28632   *) ac_try_echo=$ac_try;;
28633 esac
28634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28635   (eval "$ac_compile") 2>conftest.er1
28636   ac_status=$?
28637   grep -v '^ *+' conftest.er1 >conftest.err
28638   rm -f conftest.er1
28639   cat conftest.err >&5
28640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641   (exit $ac_status); } && {
28642          test -z "$ac_c_werror_flag" ||
28643          test ! -s conftest.err
28644        } && test -s conftest.$ac_objext; then
28645   ac_cv_header_jpeglib_h=yes
28646 else
28647   echo "$as_me: failed program was:" >&5
28648 sed 's/^/| /' conftest.$ac_ext >&5
28649
28650         ac_cv_header_jpeglib_h=no
28651
28652 fi
28653
28654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28655
28656 fi
28657
28658             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28659 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28660
28661             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28662                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28663 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28664 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28665   echo $ECHO_N "(cached) $ECHO_C" >&6
28666 else
28667   ac_check_lib_save_LIBS=$LIBS
28668 LIBS="-ljpeg  $LIBS"
28669 cat >conftest.$ac_ext <<_ACEOF
28670 /* confdefs.h.  */
28671 _ACEOF
28672 cat confdefs.h >>conftest.$ac_ext
28673 cat >>conftest.$ac_ext <<_ACEOF
28674 /* end confdefs.h.  */
28675
28676 /* Override any GCC internal prototype to avoid an error.
28677    Use char because int might match the return type of a GCC
28678    builtin and then its argument prototype would still apply.  */
28679 #ifdef __cplusplus
28680 extern "C"
28681 #endif
28682 char jpeg_read_header ();
28683 int
28684 main ()
28685 {
28686 return jpeg_read_header ();
28687   ;
28688   return 0;
28689 }
28690 _ACEOF
28691 rm -f conftest.$ac_objext conftest$ac_exeext
28692 if { (ac_try="$ac_link"
28693 case "(($ac_try" in
28694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28695   *) ac_try_echo=$ac_try;;
28696 esac
28697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28698   (eval "$ac_link") 2>conftest.er1
28699   ac_status=$?
28700   grep -v '^ *+' conftest.er1 >conftest.err
28701   rm -f conftest.er1
28702   cat conftest.err >&5
28703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704   (exit $ac_status); } && {
28705          test -z "$ac_c_werror_flag" ||
28706          test ! -s conftest.err
28707        } && test -s conftest$ac_exeext &&
28708        $as_test_x conftest$ac_exeext; then
28709   ac_cv_lib_jpeg_jpeg_read_header=yes
28710 else
28711   echo "$as_me: failed program was:" >&5
28712 sed 's/^/| /' conftest.$ac_ext >&5
28713
28714         ac_cv_lib_jpeg_jpeg_read_header=no
28715 fi
28716
28717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28718       conftest$ac_exeext conftest.$ac_ext
28719 LIBS=$ac_check_lib_save_LIBS
28720 fi
28721 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28722 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28723 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28724   JPEG_LINK=" -ljpeg"
28725 fi
28726
28727             fi
28728
28729             if test "x$JPEG_LINK" = "x" ; then
28730                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28731                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28732 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28733    { (exit 1); exit 1; }; }
28734                 else
28735                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28736 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28737                     wxUSE_LIBJPEG=builtin
28738                 fi
28739             else
28740                                 wxUSE_LIBJPEG=sys
28741
28742                 if test "$wxUSE_MSW" = 1; then
28743                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28744 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28745 if test "${ac_cv_type_boolean+set}" = set; then
28746   echo $ECHO_N "(cached) $ECHO_C" >&6
28747 else
28748   cat >conftest.$ac_ext <<_ACEOF
28749 /* confdefs.h.  */
28750 _ACEOF
28751 cat confdefs.h >>conftest.$ac_ext
28752 cat >>conftest.$ac_ext <<_ACEOF
28753 /* end confdefs.h.  */
28754 #include <windows.h>
28755
28756 typedef boolean ac__type_new_;
28757 int
28758 main ()
28759 {
28760 if ((ac__type_new_ *) 0)
28761   return 0;
28762 if (sizeof (ac__type_new_))
28763   return 0;
28764   ;
28765   return 0;
28766 }
28767 _ACEOF
28768 rm -f conftest.$ac_objext
28769 if { (ac_try="$ac_compile"
28770 case "(($ac_try" in
28771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28772   *) ac_try_echo=$ac_try;;
28773 esac
28774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28775   (eval "$ac_compile") 2>conftest.er1
28776   ac_status=$?
28777   grep -v '^ *+' conftest.er1 >conftest.err
28778   rm -f conftest.er1
28779   cat conftest.err >&5
28780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781   (exit $ac_status); } && {
28782          test -z "$ac_c_werror_flag" ||
28783          test ! -s conftest.err
28784        } && test -s conftest.$ac_objext; then
28785   ac_cv_type_boolean=yes
28786 else
28787   echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28789
28790         ac_cv_type_boolean=no
28791 fi
28792
28793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28794 fi
28795 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28796 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28797 if test $ac_cv_type_boolean = yes; then
28798
28799 cat >>confdefs.h <<_ACEOF
28800 #define HAVE_BOOLEAN 1
28801 _ACEOF
28802
28803
28804                             { echo "$as_me:$LINENO: checking for boolean" >&5
28805 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28806 if test "${ac_cv_type_boolean+set}" = set; then
28807   echo $ECHO_N "(cached) $ECHO_C" >&6
28808 else
28809   cat >conftest.$ac_ext <<_ACEOF
28810 /* confdefs.h.  */
28811 _ACEOF
28812 cat confdefs.h >>conftest.$ac_ext
28813 cat >>conftest.$ac_ext <<_ACEOF
28814 /* end confdefs.h.  */
28815
28816                                     #undef HAVE_BOOLEAN
28817                                     #include <stdio.h>
28818                                     #include <jpeglib.h>
28819
28820
28821 typedef boolean ac__type_new_;
28822 int
28823 main ()
28824 {
28825 if ((ac__type_new_ *) 0)
28826   return 0;
28827 if (sizeof (ac__type_new_))
28828   return 0;
28829   ;
28830   return 0;
28831 }
28832 _ACEOF
28833 rm -f conftest.$ac_objext
28834 if { (ac_try="$ac_compile"
28835 case "(($ac_try" in
28836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28837   *) ac_try_echo=$ac_try;;
28838 esac
28839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28840   (eval "$ac_compile") 2>conftest.er1
28841   ac_status=$?
28842   grep -v '^ *+' conftest.er1 >conftest.err
28843   rm -f conftest.er1
28844   cat conftest.err >&5
28845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846   (exit $ac_status); } && {
28847          test -z "$ac_c_werror_flag" ||
28848          test ! -s conftest.err
28849        } && test -s conftest.$ac_objext; then
28850   ac_cv_type_boolean=yes
28851 else
28852   echo "$as_me: failed program was:" >&5
28853 sed 's/^/| /' conftest.$ac_ext >&5
28854
28855         ac_cv_type_boolean=no
28856 fi
28857
28858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28859 fi
28860 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28861 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28862
28863 # The cast to long int works around a bug in the HP C Compiler
28864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28866 # This bug is HP SR number 8606223364.
28867 { echo "$as_me:$LINENO: checking size of boolean" >&5
28868 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28869 if test "${ac_cv_sizeof_boolean+set}" = set; then
28870   echo $ECHO_N "(cached) $ECHO_C" >&6
28871 else
28872   if test "$cross_compiling" = yes; then
28873   # Depending upon the size, compute the lo and hi bounds.
28874 cat >conftest.$ac_ext <<_ACEOF
28875 /* confdefs.h.  */
28876 _ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h.  */
28880
28881                                     #undef HAVE_BOOLEAN
28882                                     #include <stdio.h>
28883                                     #include <jpeglib.h>
28884
28885
28886    typedef boolean ac__type_sizeof_;
28887 int
28888 main ()
28889 {
28890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28891 test_array [0] = 0
28892
28893   ;
28894   return 0;
28895 }
28896 _ACEOF
28897 rm -f conftest.$ac_objext
28898 if { (ac_try="$ac_compile"
28899 case "(($ac_try" in
28900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901   *) ac_try_echo=$ac_try;;
28902 esac
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904   (eval "$ac_compile") 2>conftest.er1
28905   ac_status=$?
28906   grep -v '^ *+' conftest.er1 >conftest.err
28907   rm -f conftest.er1
28908   cat conftest.err >&5
28909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910   (exit $ac_status); } && {
28911          test -z "$ac_c_werror_flag" ||
28912          test ! -s conftest.err
28913        } && test -s conftest.$ac_objext; then
28914   ac_lo=0 ac_mid=0
28915   while :; do
28916     cat >conftest.$ac_ext <<_ACEOF
28917 /* confdefs.h.  */
28918 _ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h.  */
28922
28923                                     #undef HAVE_BOOLEAN
28924                                     #include <stdio.h>
28925                                     #include <jpeglib.h>
28926
28927
28928    typedef boolean ac__type_sizeof_;
28929 int
28930 main ()
28931 {
28932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28933 test_array [0] = 0
28934
28935   ;
28936   return 0;
28937 }
28938 _ACEOF
28939 rm -f conftest.$ac_objext
28940 if { (ac_try="$ac_compile"
28941 case "(($ac_try" in
28942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28943   *) ac_try_echo=$ac_try;;
28944 esac
28945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28946   (eval "$ac_compile") 2>conftest.er1
28947   ac_status=$?
28948   grep -v '^ *+' conftest.er1 >conftest.err
28949   rm -f conftest.er1
28950   cat conftest.err >&5
28951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952   (exit $ac_status); } && {
28953          test -z "$ac_c_werror_flag" ||
28954          test ! -s conftest.err
28955        } && test -s conftest.$ac_objext; then
28956   ac_hi=$ac_mid; break
28957 else
28958   echo "$as_me: failed program was:" >&5
28959 sed 's/^/| /' conftest.$ac_ext >&5
28960
28961         ac_lo=`expr $ac_mid + 1`
28962                         if test $ac_lo -le $ac_mid; then
28963                           ac_lo= ac_hi=
28964                           break
28965                         fi
28966                         ac_mid=`expr 2 '*' $ac_mid + 1`
28967 fi
28968
28969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28970   done
28971 else
28972   echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28974
28975         cat >conftest.$ac_ext <<_ACEOF
28976 /* confdefs.h.  */
28977 _ACEOF
28978 cat confdefs.h >>conftest.$ac_ext
28979 cat >>conftest.$ac_ext <<_ACEOF
28980 /* end confdefs.h.  */
28981
28982                                     #undef HAVE_BOOLEAN
28983                                     #include <stdio.h>
28984                                     #include <jpeglib.h>
28985
28986
28987    typedef boolean ac__type_sizeof_;
28988 int
28989 main ()
28990 {
28991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28992 test_array [0] = 0
28993
28994   ;
28995   return 0;
28996 }
28997 _ACEOF
28998 rm -f conftest.$ac_objext
28999 if { (ac_try="$ac_compile"
29000 case "(($ac_try" in
29001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002   *) ac_try_echo=$ac_try;;
29003 esac
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005   (eval "$ac_compile") 2>conftest.er1
29006   ac_status=$?
29007   grep -v '^ *+' conftest.er1 >conftest.err
29008   rm -f conftest.er1
29009   cat conftest.err >&5
29010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011   (exit $ac_status); } && {
29012          test -z "$ac_c_werror_flag" ||
29013          test ! -s conftest.err
29014        } && test -s conftest.$ac_objext; then
29015   ac_hi=-1 ac_mid=-1
29016   while :; do
29017     cat >conftest.$ac_ext <<_ACEOF
29018 /* confdefs.h.  */
29019 _ACEOF
29020 cat confdefs.h >>conftest.$ac_ext
29021 cat >>conftest.$ac_ext <<_ACEOF
29022 /* end confdefs.h.  */
29023
29024                                     #undef HAVE_BOOLEAN
29025                                     #include <stdio.h>
29026                                     #include <jpeglib.h>
29027
29028
29029    typedef boolean ac__type_sizeof_;
29030 int
29031 main ()
29032 {
29033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29034 test_array [0] = 0
29035
29036   ;
29037   return 0;
29038 }
29039 _ACEOF
29040 rm -f conftest.$ac_objext
29041 if { (ac_try="$ac_compile"
29042 case "(($ac_try" in
29043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29044   *) ac_try_echo=$ac_try;;
29045 esac
29046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29047   (eval "$ac_compile") 2>conftest.er1
29048   ac_status=$?
29049   grep -v '^ *+' conftest.er1 >conftest.err
29050   rm -f conftest.er1
29051   cat conftest.err >&5
29052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053   (exit $ac_status); } && {
29054          test -z "$ac_c_werror_flag" ||
29055          test ! -s conftest.err
29056        } && test -s conftest.$ac_objext; then
29057   ac_lo=$ac_mid; break
29058 else
29059   echo "$as_me: failed program was:" >&5
29060 sed 's/^/| /' conftest.$ac_ext >&5
29061
29062         ac_hi=`expr '(' $ac_mid ')' - 1`
29063                         if test $ac_mid -le $ac_hi; then
29064                           ac_lo= ac_hi=
29065                           break
29066                         fi
29067                         ac_mid=`expr 2 '*' $ac_mid`
29068 fi
29069
29070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29071   done
29072 else
29073   echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29075
29076         ac_lo= ac_hi=
29077 fi
29078
29079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29080 fi
29081
29082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29083 # Binary search between lo and hi bounds.
29084 while test "x$ac_lo" != "x$ac_hi"; do
29085   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29086   cat >conftest.$ac_ext <<_ACEOF
29087 /* confdefs.h.  */
29088 _ACEOF
29089 cat confdefs.h >>conftest.$ac_ext
29090 cat >>conftest.$ac_ext <<_ACEOF
29091 /* end confdefs.h.  */
29092
29093                                     #undef HAVE_BOOLEAN
29094                                     #include <stdio.h>
29095                                     #include <jpeglib.h>
29096
29097
29098    typedef boolean ac__type_sizeof_;
29099 int
29100 main ()
29101 {
29102 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29103 test_array [0] = 0
29104
29105   ;
29106   return 0;
29107 }
29108 _ACEOF
29109 rm -f conftest.$ac_objext
29110 if { (ac_try="$ac_compile"
29111 case "(($ac_try" in
29112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29113   *) ac_try_echo=$ac_try;;
29114 esac
29115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29116   (eval "$ac_compile") 2>conftest.er1
29117   ac_status=$?
29118   grep -v '^ *+' conftest.er1 >conftest.err
29119   rm -f conftest.er1
29120   cat conftest.err >&5
29121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122   (exit $ac_status); } && {
29123          test -z "$ac_c_werror_flag" ||
29124          test ! -s conftest.err
29125        } && test -s conftest.$ac_objext; then
29126   ac_hi=$ac_mid
29127 else
29128   echo "$as_me: failed program was:" >&5
29129 sed 's/^/| /' conftest.$ac_ext >&5
29130
29131         ac_lo=`expr '(' $ac_mid ')' + 1`
29132 fi
29133
29134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29135 done
29136 case $ac_lo in
29137 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29138 '') if test "$ac_cv_type_boolean" = yes; then
29139      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29140 See \`config.log' for more details." >&5
29141 echo "$as_me: error: cannot compute sizeof (boolean)
29142 See \`config.log' for more details." >&2;}
29143    { (exit 77); exit 77; }; }
29144    else
29145      ac_cv_sizeof_boolean=0
29146    fi ;;
29147 esac
29148 else
29149   cat >conftest.$ac_ext <<_ACEOF
29150 /* confdefs.h.  */
29151 _ACEOF
29152 cat confdefs.h >>conftest.$ac_ext
29153 cat >>conftest.$ac_ext <<_ACEOF
29154 /* end confdefs.h.  */
29155
29156                                     #undef HAVE_BOOLEAN
29157                                     #include <stdio.h>
29158                                     #include <jpeglib.h>
29159
29160
29161    typedef boolean ac__type_sizeof_;
29162 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29163 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29164 #include <stdio.h>
29165 #include <stdlib.h>
29166 int
29167 main ()
29168 {
29169
29170   FILE *f = fopen ("conftest.val", "w");
29171   if (! f)
29172     return 1;
29173   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29174     {
29175       long int i = longval ();
29176       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29177         return 1;
29178       fprintf (f, "%ld\n", i);
29179     }
29180   else
29181     {
29182       unsigned long int i = ulongval ();
29183       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29184         return 1;
29185       fprintf (f, "%lu\n", i);
29186     }
29187   return ferror (f) || fclose (f) != 0;
29188
29189   ;
29190   return 0;
29191 }
29192 _ACEOF
29193 rm -f conftest$ac_exeext
29194 if { (ac_try="$ac_link"
29195 case "(($ac_try" in
29196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29197   *) ac_try_echo=$ac_try;;
29198 esac
29199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29200   (eval "$ac_link") 2>&5
29201   ac_status=$?
29202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29204   { (case "(($ac_try" in
29205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29206   *) ac_try_echo=$ac_try;;
29207 esac
29208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29209   (eval "$ac_try") 2>&5
29210   ac_status=$?
29211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212   (exit $ac_status); }; }; then
29213   ac_cv_sizeof_boolean=`cat conftest.val`
29214 else
29215   echo "$as_me: program exited with status $ac_status" >&5
29216 echo "$as_me: failed program was:" >&5
29217 sed 's/^/| /' conftest.$ac_ext >&5
29218
29219 ( exit $ac_status )
29220 if test "$ac_cv_type_boolean" = yes; then
29221      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29222 See \`config.log' for more details." >&5
29223 echo "$as_me: error: cannot compute sizeof (boolean)
29224 See \`config.log' for more details." >&2;}
29225    { (exit 77); exit 77; }; }
29226    else
29227      ac_cv_sizeof_boolean=0
29228    fi
29229 fi
29230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29231 fi
29232 rm -f conftest.val
29233 fi
29234 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29235 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29236
29237
29238
29239 cat >>confdefs.h <<_ACEOF
29240 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29241 _ACEOF
29242
29243
29244                             cat >>confdefs.h <<_ACEOF
29245 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29246 _ACEOF
29247
29248
29249 fi
29250
29251                 fi
29252             fi
29253         fi
29254     fi
29255 fi
29256
29257
29258 TIFF_LINK=
29259 TIFF_PREREQ_LINKS=-lm
29260 if test "$wxUSE_LIBTIFF" != "no" ; then
29261     cat >>confdefs.h <<\_ACEOF
29262 #define wxUSE_LIBTIFF 1
29263 _ACEOF
29264
29265
29266     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29267                         if test "$wxUSE_LIBJPEG" = "sys"; then
29268             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29269         fi
29270         if test "$wxUSE_ZLIB" = "sys"; then
29271             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29272         fi
29273         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29274 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29275 if test "${ac_cv_header_tiffio_h+set}" = set; then
29276   echo $ECHO_N "(cached) $ECHO_C" >&6
29277 else
29278   cat >conftest.$ac_ext <<_ACEOF
29279 /* confdefs.h.  */
29280 _ACEOF
29281 cat confdefs.h >>conftest.$ac_ext
29282 cat >>conftest.$ac_ext <<_ACEOF
29283 /* end confdefs.h.  */
29284
29285
29286
29287 #include <tiffio.h>
29288 _ACEOF
29289 rm -f conftest.$ac_objext
29290 if { (ac_try="$ac_compile"
29291 case "(($ac_try" in
29292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293   *) ac_try_echo=$ac_try;;
29294 esac
29295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29296   (eval "$ac_compile") 2>conftest.er1
29297   ac_status=$?
29298   grep -v '^ *+' conftest.er1 >conftest.err
29299   rm -f conftest.er1
29300   cat conftest.err >&5
29301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302   (exit $ac_status); } && {
29303          test -z "$ac_c_werror_flag" ||
29304          test ! -s conftest.err
29305        } && test -s conftest.$ac_objext; then
29306   ac_cv_header_tiffio_h=yes
29307 else
29308   echo "$as_me: failed program was:" >&5
29309 sed 's/^/| /' conftest.$ac_ext >&5
29310
29311         ac_cv_header_tiffio_h=no
29312 fi
29313
29314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29315 fi
29316 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29317 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29318 if test $ac_cv_header_tiffio_h = yes; then
29319
29320                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29321 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29322 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29323   echo $ECHO_N "(cached) $ECHO_C" >&6
29324 else
29325   ac_check_lib_save_LIBS=$LIBS
29326 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29327 cat >conftest.$ac_ext <<_ACEOF
29328 /* confdefs.h.  */
29329 _ACEOF
29330 cat confdefs.h >>conftest.$ac_ext
29331 cat >>conftest.$ac_ext <<_ACEOF
29332 /* end confdefs.h.  */
29333
29334 /* Override any GCC internal prototype to avoid an error.
29335    Use char because int might match the return type of a GCC
29336    builtin and then its argument prototype would still apply.  */
29337 #ifdef __cplusplus
29338 extern "C"
29339 #endif
29340 char TIFFError ();
29341 int
29342 main ()
29343 {
29344 return TIFFError ();
29345   ;
29346   return 0;
29347 }
29348 _ACEOF
29349 rm -f conftest.$ac_objext conftest$ac_exeext
29350 if { (ac_try="$ac_link"
29351 case "(($ac_try" in
29352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353   *) ac_try_echo=$ac_try;;
29354 esac
29355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356   (eval "$ac_link") 2>conftest.er1
29357   ac_status=$?
29358   grep -v '^ *+' conftest.er1 >conftest.err
29359   rm -f conftest.er1
29360   cat conftest.err >&5
29361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362   (exit $ac_status); } && {
29363          test -z "$ac_c_werror_flag" ||
29364          test ! -s conftest.err
29365        } && test -s conftest$ac_exeext &&
29366        $as_test_x conftest$ac_exeext; then
29367   ac_cv_lib_tiff_TIFFError=yes
29368 else
29369   echo "$as_me: failed program was:" >&5
29370 sed 's/^/| /' conftest.$ac_ext >&5
29371
29372         ac_cv_lib_tiff_TIFFError=no
29373 fi
29374
29375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29376       conftest$ac_exeext conftest.$ac_ext
29377 LIBS=$ac_check_lib_save_LIBS
29378 fi
29379 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29380 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29381 if test $ac_cv_lib_tiff_TIFFError = yes; then
29382   TIFF_LINK=" -ltiff"
29383 fi
29384
29385
29386 fi
29387
29388
29389
29390         if test "x$TIFF_LINK" = "x" ; then
29391             if test "$wxUSE_LIBTIFF" = "sys" ; then
29392                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29393 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29394    { (exit 1); exit 1; }; }
29395             else
29396                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29397 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29398                 wxUSE_LIBTIFF=builtin
29399             fi
29400         else
29401                         wxUSE_LIBTIFF=sys
29402         fi
29403     fi
29404     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29405         if test "$wxUSE_LIBJPEG" = "no"; then
29406                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
29407         fi
29408         subdirs="$subdirs src/tiff"
29409
29410     fi
29411 fi
29412
29413
29414 if test "$wxUSE_EXPAT" != "no"; then
29415     wxUSE_XML=yes
29416     cat >>confdefs.h <<\_ACEOF
29417 #define wxUSE_EXPAT 1
29418 _ACEOF
29419
29420     cat >>confdefs.h <<\_ACEOF
29421 #define wxUSE_XML 1
29422 _ACEOF
29423
29424
29425     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29426         { echo "$as_me:$LINENO: checking for expat.h" >&5
29427 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29428 if test "${ac_cv_header_expat_h+set}" = set; then
29429   echo $ECHO_N "(cached) $ECHO_C" >&6
29430 else
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
29439 #include <expat.h>
29440 _ACEOF
29441 rm -f conftest.$ac_objext
29442 if { (ac_try="$ac_compile"
29443 case "(($ac_try" in
29444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29445   *) ac_try_echo=$ac_try;;
29446 esac
29447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29448   (eval "$ac_compile") 2>conftest.er1
29449   ac_status=$?
29450   grep -v '^ *+' conftest.er1 >conftest.err
29451   rm -f conftest.er1
29452   cat conftest.err >&5
29453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454   (exit $ac_status); } && {
29455          test -z "$ac_c_werror_flag" ||
29456          test ! -s conftest.err
29457        } && test -s conftest.$ac_objext; then
29458   ac_cv_header_expat_h=yes
29459 else
29460   echo "$as_me: failed program was:" >&5
29461 sed 's/^/| /' conftest.$ac_ext >&5
29462
29463         ac_cv_header_expat_h=no
29464 fi
29465
29466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29467 fi
29468 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29469 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29470 if test $ac_cv_header_expat_h = yes; then
29471   found_expat_h=1
29472 fi
29473
29474
29475         if test "x$found_expat_h" = "x1"; then
29476                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29477 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29478 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29479   echo $ECHO_N "(cached) $ECHO_C" >&6
29480 else
29481
29482                 ac_ext=cpp
29483 ac_cpp='$CXXCPP $CPPFLAGS'
29484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29487
29488                 cat >conftest.$ac_ext <<_ACEOF
29489 /* confdefs.h.  */
29490 _ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h.  */
29494 #include <expat.h>
29495 int
29496 main ()
29497 {
29498
29499   ;
29500   return 0;
29501 }
29502 _ACEOF
29503 rm -f conftest.$ac_objext
29504 if { (ac_try="$ac_compile"
29505 case "(($ac_try" in
29506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29507   *) ac_try_echo=$ac_try;;
29508 esac
29509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29510   (eval "$ac_compile") 2>conftest.er1
29511   ac_status=$?
29512   grep -v '^ *+' conftest.er1 >conftest.err
29513   rm -f conftest.er1
29514   cat conftest.err >&5
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); } && {
29517          test -z "$ac_cxx_werror_flag" ||
29518          test ! -s conftest.err
29519        } && test -s conftest.$ac_objext; then
29520   wx_cv_expat_is_not_broken=yes
29521 else
29522   echo "$as_me: failed program was:" >&5
29523 sed 's/^/| /' conftest.$ac_ext >&5
29524
29525         wx_cv_expat_is_not_broken=no
29526
29527 fi
29528
29529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29530                 ac_ext=c
29531 ac_cpp='$CPP $CPPFLAGS'
29532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29535
29536
29537
29538 fi
29539 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29540 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29541             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29542                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29543 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29544 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29545   echo $ECHO_N "(cached) $ECHO_C" >&6
29546 else
29547   ac_check_lib_save_LIBS=$LIBS
29548 LIBS="-lexpat  $LIBS"
29549 cat >conftest.$ac_ext <<_ACEOF
29550 /* confdefs.h.  */
29551 _ACEOF
29552 cat confdefs.h >>conftest.$ac_ext
29553 cat >>conftest.$ac_ext <<_ACEOF
29554 /* end confdefs.h.  */
29555
29556 /* Override any GCC internal prototype to avoid an error.
29557    Use char because int might match the return type of a GCC
29558    builtin and then its argument prototype would still apply.  */
29559 #ifdef __cplusplus
29560 extern "C"
29561 #endif
29562 char XML_ParserCreate ();
29563 int
29564 main ()
29565 {
29566 return XML_ParserCreate ();
29567   ;
29568   return 0;
29569 }
29570 _ACEOF
29571 rm -f conftest.$ac_objext conftest$ac_exeext
29572 if { (ac_try="$ac_link"
29573 case "(($ac_try" in
29574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29575   *) ac_try_echo=$ac_try;;
29576 esac
29577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29578   (eval "$ac_link") 2>conftest.er1
29579   ac_status=$?
29580   grep -v '^ *+' conftest.er1 >conftest.err
29581   rm -f conftest.er1
29582   cat conftest.err >&5
29583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584   (exit $ac_status); } && {
29585          test -z "$ac_c_werror_flag" ||
29586          test ! -s conftest.err
29587        } && test -s conftest$ac_exeext &&
29588        $as_test_x conftest$ac_exeext; then
29589   ac_cv_lib_expat_XML_ParserCreate=yes
29590 else
29591   echo "$as_me: failed program was:" >&5
29592 sed 's/^/| /' conftest.$ac_ext >&5
29593
29594         ac_cv_lib_expat_XML_ParserCreate=no
29595 fi
29596
29597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29598       conftest$ac_exeext conftest.$ac_ext
29599 LIBS=$ac_check_lib_save_LIBS
29600 fi
29601 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29602 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29603 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29604   EXPAT_LINK=" -lexpat"
29605 fi
29606
29607             fi
29608         fi
29609         if test "x$EXPAT_LINK" = "x" ; then
29610             if test "$wxUSE_EXPAT" = "sys" ; then
29611                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29612 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29613    { (exit 1); exit 1; }; }
29614             else
29615                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29616 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29617                 wxUSE_EXPAT=builtin
29618             fi
29619         else
29620                         wxUSE_EXPAT=sys
29621         fi
29622     fi
29623     if test "$wxUSE_EXPAT" = "builtin" ; then
29624                 subdirs="$subdirs src/expat"
29625
29626     fi
29627 fi
29628
29629
29630
29631 if test "$wxUSE_LIBMSPACK" != "no"; then
29632     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29633 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29634 if test "${ac_cv_header_mspack_h+set}" = set; then
29635   echo $ECHO_N "(cached) $ECHO_C" >&6
29636 else
29637   cat >conftest.$ac_ext <<_ACEOF
29638 /* confdefs.h.  */
29639 _ACEOF
29640 cat confdefs.h >>conftest.$ac_ext
29641 cat >>conftest.$ac_ext <<_ACEOF
29642 /* end confdefs.h.  */
29643
29644
29645 #include <mspack.h>
29646 _ACEOF
29647 rm -f conftest.$ac_objext
29648 if { (ac_try="$ac_compile"
29649 case "(($ac_try" in
29650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651   *) ac_try_echo=$ac_try;;
29652 esac
29653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654   (eval "$ac_compile") 2>conftest.er1
29655   ac_status=$?
29656   grep -v '^ *+' conftest.er1 >conftest.err
29657   rm -f conftest.er1
29658   cat conftest.err >&5
29659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660   (exit $ac_status); } && {
29661          test -z "$ac_c_werror_flag" ||
29662          test ! -s conftest.err
29663        } && test -s conftest.$ac_objext; then
29664   ac_cv_header_mspack_h=yes
29665 else
29666   echo "$as_me: failed program was:" >&5
29667 sed 's/^/| /' conftest.$ac_ext >&5
29668
29669         ac_cv_header_mspack_h=no
29670 fi
29671
29672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29673 fi
29674 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29675 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29676 if test $ac_cv_header_mspack_h = yes; then
29677   found_mspack_h=1
29678 fi
29679
29680
29681     if test "x$found_mspack_h" = "x1"; then
29682         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29683 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29684 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29685   echo $ECHO_N "(cached) $ECHO_C" >&6
29686 else
29687   ac_check_lib_save_LIBS=$LIBS
29688 LIBS="-lmspack  $LIBS"
29689 cat >conftest.$ac_ext <<_ACEOF
29690 /* confdefs.h.  */
29691 _ACEOF
29692 cat confdefs.h >>conftest.$ac_ext
29693 cat >>conftest.$ac_ext <<_ACEOF
29694 /* end confdefs.h.  */
29695
29696 /* Override any GCC internal prototype to avoid an error.
29697    Use char because int might match the return type of a GCC
29698    builtin and then its argument prototype would still apply.  */
29699 #ifdef __cplusplus
29700 extern "C"
29701 #endif
29702 char mspack_create_chm_decompressor ();
29703 int
29704 main ()
29705 {
29706 return mspack_create_chm_decompressor ();
29707   ;
29708   return 0;
29709 }
29710 _ACEOF
29711 rm -f conftest.$ac_objext conftest$ac_exeext
29712 if { (ac_try="$ac_link"
29713 case "(($ac_try" in
29714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29715   *) ac_try_echo=$ac_try;;
29716 esac
29717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29718   (eval "$ac_link") 2>conftest.er1
29719   ac_status=$?
29720   grep -v '^ *+' conftest.er1 >conftest.err
29721   rm -f conftest.er1
29722   cat conftest.err >&5
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); } && {
29725          test -z "$ac_c_werror_flag" ||
29726          test ! -s conftest.err
29727        } && test -s conftest$ac_exeext &&
29728        $as_test_x conftest$ac_exeext; then
29729   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29730 else
29731   echo "$as_me: failed program was:" >&5
29732 sed 's/^/| /' conftest.$ac_ext >&5
29733
29734         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29735 fi
29736
29737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29738       conftest$ac_exeext conftest.$ac_ext
29739 LIBS=$ac_check_lib_save_LIBS
29740 fi
29741 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29742 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29743 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29744   MSPACK_LINK=" -lmspack"
29745 fi
29746
29747     fi
29748     if test "x$MSPACK_LINK" = "x" ; then
29749         wxUSE_LIBMSPACK=no
29750     fi
29751 fi
29752
29753 if test "$wxUSE_LIBMSPACK" != "no"; then
29754     cat >>confdefs.h <<\_ACEOF
29755 #define wxUSE_LIBMSPACK 1
29756 _ACEOF
29757
29758 fi
29759
29760
29761
29762 AFMINSTALL=
29763 WIN32INSTALL=
29764
29765 TOOLKIT=
29766 TOOLKIT_INCLUDE=
29767 WIDGET_SET=
29768
29769 if test "$USE_WIN32" = 1 ; then
29770
29771 for ac_header in w32api.h
29772 do
29773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29777   echo $ECHO_N "(cached) $ECHO_C" >&6
29778 else
29779   cat >conftest.$ac_ext <<_ACEOF
29780 /* confdefs.h.  */
29781 _ACEOF
29782 cat confdefs.h >>conftest.$ac_ext
29783 cat >>conftest.$ac_ext <<_ACEOF
29784 /* end confdefs.h.  */
29785
29786
29787 #include <$ac_header>
29788 _ACEOF
29789 rm -f conftest.$ac_objext
29790 if { (ac_try="$ac_compile"
29791 case "(($ac_try" in
29792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29793   *) ac_try_echo=$ac_try;;
29794 esac
29795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29796   (eval "$ac_compile") 2>conftest.er1
29797   ac_status=$?
29798   grep -v '^ *+' conftest.er1 >conftest.err
29799   rm -f conftest.er1
29800   cat conftest.err >&5
29801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802   (exit $ac_status); } && {
29803          test -z "$ac_c_werror_flag" ||
29804          test ! -s conftest.err
29805        } && test -s conftest.$ac_objext; then
29806   eval "$as_ac_Header=yes"
29807 else
29808   echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.$ac_ext >&5
29810
29811         eval "$as_ac_Header=no"
29812 fi
29813
29814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29815 fi
29816 ac_res=`eval echo '${'$as_ac_Header'}'`
29817                { echo "$as_me:$LINENO: result: $ac_res" >&5
29818 echo "${ECHO_T}$ac_res" >&6; }
29819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29820   cat >>confdefs.h <<_ACEOF
29821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29822 _ACEOF
29823
29824 fi
29825
29826 done
29827
29828     { echo "$as_me:$LINENO: checking for windows.h" >&5
29829 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29830 if test "${ac_cv_header_windows_h+set}" = set; then
29831   echo $ECHO_N "(cached) $ECHO_C" >&6
29832 else
29833   cat >conftest.$ac_ext <<_ACEOF
29834 /* confdefs.h.  */
29835 _ACEOF
29836 cat confdefs.h >>conftest.$ac_ext
29837 cat >>conftest.$ac_ext <<_ACEOF
29838 /* end confdefs.h.  */
29839
29840
29841 #include <windows.h>
29842 _ACEOF
29843 rm -f conftest.$ac_objext
29844 if { (ac_try="$ac_compile"
29845 case "(($ac_try" in
29846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29847   *) ac_try_echo=$ac_try;;
29848 esac
29849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29850   (eval "$ac_compile") 2>conftest.er1
29851   ac_status=$?
29852   grep -v '^ *+' conftest.er1 >conftest.err
29853   rm -f conftest.er1
29854   cat conftest.err >&5
29855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856   (exit $ac_status); } && {
29857          test -z "$ac_c_werror_flag" ||
29858          test ! -s conftest.err
29859        } && test -s conftest.$ac_objext; then
29860   ac_cv_header_windows_h=yes
29861 else
29862   echo "$as_me: failed program was:" >&5
29863 sed 's/^/| /' conftest.$ac_ext >&5
29864
29865         ac_cv_header_windows_h=no
29866 fi
29867
29868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29869 fi
29870 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29871 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29872 if test $ac_cv_header_windows_h = yes; then
29873   :
29874 else
29875
29876         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29877 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29878    { (exit 1); exit 1; }; }
29879
29880 fi
29881
29882
29883
29884     LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32"
29885     case "${host}" in
29886         x86_64-*-mingw32* )
29887                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
29888         ;;
29889     esac
29890     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29891         LIBS="$LIBS -loleacc"
29892     fi
29893
29894     case "${host}" in
29895         *-*-cygwin* )
29896                         LIBS="$LIBS -lkernel32 -luser32"
29897     esac
29898
29899         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29900     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29901
29902                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29903
29904         WIN32INSTALL=win32install
29905
29906         { echo "$as_me:$LINENO: checking for pbt.h" >&5
29907 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
29908 if test "${ac_cv_header_pbt_h+set}" = set; then
29909   echo $ECHO_N "(cached) $ECHO_C" >&6
29910 else
29911   cat >conftest.$ac_ext <<_ACEOF
29912 /* confdefs.h.  */
29913 _ACEOF
29914 cat confdefs.h >>conftest.$ac_ext
29915 cat >>conftest.$ac_ext <<_ACEOF
29916 /* end confdefs.h.  */
29917
29918
29919 #include <pbt.h>
29920 _ACEOF
29921 rm -f conftest.$ac_objext
29922 if { (ac_try="$ac_compile"
29923 case "(($ac_try" in
29924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925   *) ac_try_echo=$ac_try;;
29926 esac
29927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928   (eval "$ac_compile") 2>conftest.er1
29929   ac_status=$?
29930   grep -v '^ *+' conftest.er1 >conftest.err
29931   rm -f conftest.er1
29932   cat conftest.err >&5
29933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934   (exit $ac_status); } && {
29935          test -z "$ac_c_werror_flag" ||
29936          test ! -s conftest.err
29937        } && test -s conftest.$ac_objext; then
29938   ac_cv_header_pbt_h=yes
29939 else
29940   echo "$as_me: failed program was:" >&5
29941 sed 's/^/| /' conftest.$ac_ext >&5
29942
29943         ac_cv_header_pbt_h=no
29944 fi
29945
29946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29947 fi
29948 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
29949 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
29950 if test $ac_cv_header_pbt_h = yes; then
29951   :
29952 else
29953   cat >>confdefs.h <<\_ACEOF
29954 #define NEED_PBT_H 1
29955 _ACEOF
29956
29957 fi
29958
29959
29960 fi
29961
29962 if test "$wxUSE_GUI" = "yes"; then
29963     USE_GUI=1
29964
29965     GUI_TK_LIBRARY=
29966
29967     WXGTK127=
29968     WXGTK2=
29969     WXGPE=
29970
29971     if test "$wxUSE_OLD_COCOA" = 1 ; then
29972         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
29973             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
29974 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
29975             wxUSE_PRINTING_ARCHITECTURE=no
29976         fi
29977         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
29978             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
29979 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
29980             wxUSE_DRAG_AND_DROP=no
29981         fi
29982         if test "$wxUSE_DRAGIMAGE" = "yes"; then
29983             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
29984 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
29985             wxUSE_DRAGIMAGE=no
29986         fi
29987     fi
29988
29989     if test "$wxUSE_MSW" = 1 ; then
29990         TOOLKIT=MSW
29991         GUIDIST=MSW_DIST
29992
29993                 case "${host}" in
29994             *-*-mingw32* )
29995                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
29996         esac
29997     fi
29998
29999     if test "$wxUSE_GTK" = 1; then
30000                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
30001 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
30002
30003         gtk_version_cached=1
30004         if test "${wx_cv_lib_gtk+set}" = set; then
30005   echo $ECHO_N "(cached) $ECHO_C" >&6
30006 else
30007
30008                                                 gtk_version_cached=0
30009                 { echo "$as_me:$LINENO: result: " >&5
30010 echo "${ECHO_T}" >&6; }
30011
30012                                                 GTK_MODULES=
30013                 if test "$wxUSE_THREADS" = "yes"; then
30014                     GTK_MODULES=gthread
30015                 fi
30016
30017                                 wx_cv_lib_gtk=
30018                 if test "x$wxGTK_VERSION" != "x1"
30019                 then
30020                                                                                 case "${host}" in
30021                         *-*-solaris2* )
30022                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
30023                                 enable_gtktest=no
30024                             fi
30025                     esac
30026
30027                     # Check whether --enable-gtktest was given.
30028 if test "${enable_gtktest+set}" = set; then
30029   enableval=$enable_gtktest;
30030 else
30031   enable_gtktest=yes
30032 fi
30033
30034
30035   pkg_config_args=gtk+-2.0
30036   for module in . $GTK_MODULES
30037   do
30038       case "$module" in
30039          gthread)
30040              pkg_config_args="$pkg_config_args gthread-2.0"
30041          ;;
30042       esac
30043   done
30044
30045   no_gtk=""
30046
30047   # Extract the first word of "pkg-config", so it can be a program name with args.
30048 set dummy pkg-config; ac_word=$2
30049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30051 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30052   echo $ECHO_N "(cached) $ECHO_C" >&6
30053 else
30054   case $PKG_CONFIG in
30055   [\\/]* | ?:[\\/]*)
30056   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30057   ;;
30058   *)
30059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30060 for as_dir in $PATH
30061 do
30062   IFS=$as_save_IFS
30063   test -z "$as_dir" && as_dir=.
30064   for ac_exec_ext in '' $ac_executable_extensions; do
30065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30066     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30068     break 2
30069   fi
30070 done
30071 done
30072 IFS=$as_save_IFS
30073
30074   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30075   ;;
30076 esac
30077 fi
30078 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30079 if test -n "$PKG_CONFIG"; then
30080   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30081 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30082 else
30083   { echo "$as_me:$LINENO: result: no" >&5
30084 echo "${ECHO_T}no" >&6; }
30085 fi
30086
30087
30088
30089   if test x$PKG_CONFIG != xno ; then
30090     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30091       :
30092     else
30093       echo "*** pkg-config too old; version 0.7 or better required."
30094       no_gtk=yes
30095       PKG_CONFIG=no
30096     fi
30097   else
30098     no_gtk=yes
30099   fi
30100
30101   min_gtk_version=2.4.0
30102   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30103 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30104
30105   if test x$PKG_CONFIG != xno ; then
30106     ## don't try to run the test against uninstalled libtool libs
30107     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30108           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30109           enable_gtktest=no
30110     fi
30111
30112     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30113           :
30114     else
30115           no_gtk=yes
30116     fi
30117   fi
30118
30119   if test x"$no_gtk" = x ; then
30120     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30121     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30122     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30123            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30124     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30125            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30126     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30127            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30128     if test "x$enable_gtktest" = "xyes" ; then
30129       ac_save_CFLAGS="$CFLAGS"
30130       ac_save_LIBS="$LIBS"
30131       CFLAGS="$CFLAGS $GTK_CFLAGS"
30132       LIBS="$GTK_LIBS $LIBS"
30133       rm -f conf.gtktest
30134       if test "$cross_compiling" = yes; then
30135   echo $ac_n "cross compiling; assumed OK... $ac_c"
30136 else
30137   cat >conftest.$ac_ext <<_ACEOF
30138 /* confdefs.h.  */
30139 _ACEOF
30140 cat confdefs.h >>conftest.$ac_ext
30141 cat >>conftest.$ac_ext <<_ACEOF
30142 /* end confdefs.h.  */
30143
30144 #include <gtk/gtk.h>
30145 #include <stdio.h>
30146 #include <stdlib.h>
30147
30148 int
30149 main ()
30150 {
30151   int major, minor, micro;
30152   char *tmp_version;
30153
30154   system ("touch conf.gtktest");
30155
30156   /* HP/UX 9 (%@#!) writes to sscanf strings */
30157   tmp_version = g_strdup("$min_gtk_version");
30158   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30159      printf("%s, bad version string\n", "$min_gtk_version");
30160      exit(1);
30161    }
30162
30163   if ((gtk_major_version != $gtk_config_major_version) ||
30164       (gtk_minor_version != $gtk_config_minor_version) ||
30165       (gtk_micro_version != $gtk_config_micro_version))
30166     {
30167       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30168              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30169              gtk_major_version, gtk_minor_version, gtk_micro_version);
30170       printf ("*** was found! If pkg-config was correct, then it is best\n");
30171       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30172       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30173       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30174       printf("*** required on your system.\n");
30175       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30176       printf("*** to point to the correct configuration files\n");
30177     }
30178   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30179            (gtk_minor_version != GTK_MINOR_VERSION) ||
30180            (gtk_micro_version != GTK_MICRO_VERSION))
30181     {
30182       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30183              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30184       printf("*** library (version %d.%d.%d)\n",
30185              gtk_major_version, gtk_minor_version, gtk_micro_version);
30186     }
30187   else
30188     {
30189       if ((gtk_major_version > major) ||
30190         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30191         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30192       {
30193         return 0;
30194        }
30195      else
30196       {
30197         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30198                gtk_major_version, gtk_minor_version, gtk_micro_version);
30199         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30200                major, minor, micro);
30201         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30202         printf("***\n");
30203         printf("*** If you have already installed a sufficiently new version, this error\n");
30204         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30205         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30206         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30207         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30208         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30209         printf("*** so that the correct libraries are found at run-time))\n");
30210       }
30211     }
30212   return 1;
30213 }
30214
30215 _ACEOF
30216 rm -f conftest$ac_exeext
30217 if { (ac_try="$ac_link"
30218 case "(($ac_try" in
30219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30220   *) ac_try_echo=$ac_try;;
30221 esac
30222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30223   (eval "$ac_link") 2>&5
30224   ac_status=$?
30225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30227   { (case "(($ac_try" in
30228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30229   *) ac_try_echo=$ac_try;;
30230 esac
30231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30232   (eval "$ac_try") 2>&5
30233   ac_status=$?
30234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235   (exit $ac_status); }; }; then
30236   :
30237 else
30238   echo "$as_me: program exited with status $ac_status" >&5
30239 echo "$as_me: failed program was:" >&5
30240 sed 's/^/| /' conftest.$ac_ext >&5
30241
30242 ( exit $ac_status )
30243 no_gtk=yes
30244 fi
30245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30246 fi
30247
30248
30249        CFLAGS="$ac_save_CFLAGS"
30250        LIBS="$ac_save_LIBS"
30251      fi
30252   fi
30253   if test "x$no_gtk" = x ; then
30254      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30255 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30256      wx_cv_lib_gtk=2.0
30257   else
30258      { echo "$as_me:$LINENO: result: no" >&5
30259 echo "${ECHO_T}no" >&6; }
30260      if test "$PKG_CONFIG" = "no" ; then
30261        echo "*** A new enough version of pkg-config was not found."
30262        echo "*** See http://pkgconfig.sourceforge.net"
30263      else
30264        if test -f conf.gtktest ; then
30265         :
30266        else
30267           echo "*** Could not run GTK+ test program, checking why..."
30268           ac_save_CFLAGS="$CFLAGS"
30269           ac_save_LIBS="$LIBS"
30270           CFLAGS="$CFLAGS $GTK_CFLAGS"
30271           LIBS="$LIBS $GTK_LIBS"
30272           cat >conftest.$ac_ext <<_ACEOF
30273 /* confdefs.h.  */
30274 _ACEOF
30275 cat confdefs.h >>conftest.$ac_ext
30276 cat >>conftest.$ac_ext <<_ACEOF
30277 /* end confdefs.h.  */
30278
30279 #include <gtk/gtk.h>
30280 #include <stdio.h>
30281
30282 int
30283 main ()
30284 {
30285  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30286   ;
30287   return 0;
30288 }
30289 _ACEOF
30290 rm -f conftest.$ac_objext conftest$ac_exeext
30291 if { (ac_try="$ac_link"
30292 case "(($ac_try" in
30293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294   *) ac_try_echo=$ac_try;;
30295 esac
30296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30297   (eval "$ac_link") 2>conftest.er1
30298   ac_status=$?
30299   grep -v '^ *+' conftest.er1 >conftest.err
30300   rm -f conftest.er1
30301   cat conftest.err >&5
30302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303   (exit $ac_status); } && {
30304          test -z "$ac_c_werror_flag" ||
30305          test ! -s conftest.err
30306        } && test -s conftest$ac_exeext &&
30307        $as_test_x conftest$ac_exeext; then
30308    echo "*** The test program compiled, but did not run. This usually means"
30309           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30310           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30311           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30312           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30313           echo "*** is required on your system"
30314           echo "***"
30315           echo "*** If you have an old version installed, it is best to remove it, although"
30316           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30317 else
30318   echo "$as_me: failed program was:" >&5
30319 sed 's/^/| /' conftest.$ac_ext >&5
30320
30321          echo "*** The test program failed to compile or link. See the file config.log for the"
30322           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30323 fi
30324
30325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30326       conftest$ac_exeext conftest.$ac_ext
30327           CFLAGS="$ac_save_CFLAGS"
30328           LIBS="$ac_save_LIBS"
30329        fi
30330      fi
30331      GTK_CFLAGS=""
30332      GTK_LIBS=""
30333      :
30334   fi
30335
30336
30337   rm -f conf.gtktest
30338
30339                 fi
30340
30341                                 if test -z "$wx_cv_lib_gtk"; then
30342                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30343
30344 # Check whether --with-gtk-prefix was given.
30345 if test "${with_gtk_prefix+set}" = set; then
30346   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30347 else
30348   gtk_config_prefix=""
30349 fi
30350
30351
30352 # Check whether --with-gtk-exec-prefix was given.
30353 if test "${with_gtk_exec_prefix+set}" = set; then
30354   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30355 else
30356   gtk_config_exec_prefix=""
30357 fi
30358
30359 # Check whether --enable-gtktest was given.
30360 if test "${enable_gtktest+set}" = set; then
30361   enableval=$enable_gtktest;
30362 else
30363   enable_gtktest=yes
30364 fi
30365
30366
30367   for module in . $GTK_MODULES
30368   do
30369       case "$module" in
30370          gthread)
30371              gtk_config_args="$gtk_config_args gthread"
30372          ;;
30373       esac
30374   done
30375
30376   if test x$gtk_config_exec_prefix != x ; then
30377      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30378      if test x${GTK_CONFIG+set} != xset ; then
30379         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30380      fi
30381   fi
30382   if test x$gtk_config_prefix != x ; then
30383      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30384      if test x${GTK_CONFIG+set} != xset ; then
30385         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30386      fi
30387   fi
30388
30389   # Extract the first word of "gtk-config", so it can be a program name with args.
30390 set dummy gtk-config; ac_word=$2
30391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30393 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30394   echo $ECHO_N "(cached) $ECHO_C" >&6
30395 else
30396   case $GTK_CONFIG in
30397   [\\/]* | ?:[\\/]*)
30398   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30399   ;;
30400   *)
30401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30402 for as_dir in $PATH
30403 do
30404   IFS=$as_save_IFS
30405   test -z "$as_dir" && as_dir=.
30406   for ac_exec_ext in '' $ac_executable_extensions; do
30407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30408     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30410     break 2
30411   fi
30412 done
30413 done
30414 IFS=$as_save_IFS
30415
30416   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30417   ;;
30418 esac
30419 fi
30420 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30421 if test -n "$GTK_CONFIG"; then
30422   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30423 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30424 else
30425   { echo "$as_me:$LINENO: result: no" >&5
30426 echo "${ECHO_T}no" >&6; }
30427 fi
30428
30429
30430   min_gtk_version=1.2.7
30431   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30432 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30433   no_gtk=""
30434   if test "$GTK_CONFIG" = "no" ; then
30435     no_gtk=yes
30436   else
30437     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30438     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30439     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30440            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30441     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30442            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30443     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30444            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30445     if test "x$enable_gtktest" = "xyes" ; then
30446       ac_save_CFLAGS="$CFLAGS"
30447       ac_save_LIBS="$LIBS"
30448       CFLAGS="$CFLAGS $GTK_CFLAGS"
30449       LIBS="$GTK_LIBS $LIBS"
30450       rm -f conf.gtktest
30451       if test "$cross_compiling" = yes; then
30452   echo $ac_n "cross compiling; assumed OK... $ac_c"
30453 else
30454   cat >conftest.$ac_ext <<_ACEOF
30455 /* confdefs.h.  */
30456 _ACEOF
30457 cat confdefs.h >>conftest.$ac_ext
30458 cat >>conftest.$ac_ext <<_ACEOF
30459 /* end confdefs.h.  */
30460
30461 #include <gtk/gtk.h>
30462 #include <stdio.h>
30463 #include <stdlib.h>
30464
30465 int
30466 main ()
30467 {
30468   int major, minor, micro;
30469   char *tmp_version;
30470
30471   system ("touch conf.gtktest");
30472
30473   /* HP/UX 9 (%@#!) writes to sscanf strings */
30474   tmp_version = g_strdup("$min_gtk_version");
30475   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30476      printf("%s, bad version string\n", "$min_gtk_version");
30477      exit(1);
30478    }
30479
30480   if ((gtk_major_version != $gtk_config_major_version) ||
30481       (gtk_minor_version != $gtk_config_minor_version) ||
30482       (gtk_micro_version != $gtk_config_micro_version))
30483     {
30484       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30485              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30486              gtk_major_version, gtk_minor_version, gtk_micro_version);
30487       printf ("*** was found! If gtk-config was correct, then it is best\n");
30488       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30489       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30490       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30491       printf("*** required on your system.\n");
30492       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30493       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30494       printf("*** before re-running configure\n");
30495     }
30496 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30497   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30498            (gtk_minor_version != GTK_MINOR_VERSION) ||
30499            (gtk_micro_version != GTK_MICRO_VERSION))
30500     {
30501       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30502              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30503       printf("*** library (version %d.%d.%d)\n",
30504              gtk_major_version, gtk_minor_version, gtk_micro_version);
30505     }
30506 #endif /* defined (GTK_MAJOR_VERSION) ... */
30507   else
30508     {
30509       if ((gtk_major_version > major) ||
30510         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30511         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30512       {
30513         return 0;
30514        }
30515      else
30516       {
30517         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30518                gtk_major_version, gtk_minor_version, gtk_micro_version);
30519         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30520                major, minor, micro);
30521         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30522         printf("***\n");
30523         printf("*** If you have already installed a sufficiently new version, this error\n");
30524         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30525         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30526         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30527         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30528         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30529         printf("*** so that the correct libraries are found at run-time))\n");
30530       }
30531     }
30532   return 1;
30533 }
30534
30535 _ACEOF
30536 rm -f conftest$ac_exeext
30537 if { (ac_try="$ac_link"
30538 case "(($ac_try" in
30539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540   *) ac_try_echo=$ac_try;;
30541 esac
30542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543   (eval "$ac_link") 2>&5
30544   ac_status=$?
30545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30547   { (case "(($ac_try" in
30548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30549   *) ac_try_echo=$ac_try;;
30550 esac
30551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30552   (eval "$ac_try") 2>&5
30553   ac_status=$?
30554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555   (exit $ac_status); }; }; then
30556   :
30557 else
30558   echo "$as_me: program exited with status $ac_status" >&5
30559 echo "$as_me: failed program was:" >&5
30560 sed 's/^/| /' conftest.$ac_ext >&5
30561
30562 ( exit $ac_status )
30563 no_gtk=yes
30564 fi
30565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30566 fi
30567
30568
30569        CFLAGS="$ac_save_CFLAGS"
30570        LIBS="$ac_save_LIBS"
30571      fi
30572   fi
30573   if test "x$no_gtk" = x ; then
30574      { echo "$as_me:$LINENO: result: yes" >&5
30575 echo "${ECHO_T}yes" >&6; }
30576      wx_cv_lib_gtk=1.2.7
30577   else
30578      { echo "$as_me:$LINENO: result: no" >&5
30579 echo "${ECHO_T}no" >&6; }
30580      if test "$GTK_CONFIG" = "no" ; then
30581        echo "*** The gtk-config script installed by GTK could not be found"
30582        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30583        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30584        echo "*** full path to gtk-config."
30585      else
30586        if test -f conf.gtktest ; then
30587         :
30588        else
30589           echo "*** Could not run GTK test program, checking why..."
30590           CFLAGS="$CFLAGS $GTK_CFLAGS"
30591           LIBS="$LIBS $GTK_LIBS"
30592           cat >conftest.$ac_ext <<_ACEOF
30593 /* confdefs.h.  */
30594 _ACEOF
30595 cat confdefs.h >>conftest.$ac_ext
30596 cat >>conftest.$ac_ext <<_ACEOF
30597 /* end confdefs.h.  */
30598
30599 #include <gtk/gtk.h>
30600 #include <stdio.h>
30601
30602 int
30603 main ()
30604 {
30605  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30606   ;
30607   return 0;
30608 }
30609 _ACEOF
30610 rm -f conftest.$ac_objext conftest$ac_exeext
30611 if { (ac_try="$ac_link"
30612 case "(($ac_try" in
30613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30614   *) ac_try_echo=$ac_try;;
30615 esac
30616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30617   (eval "$ac_link") 2>conftest.er1
30618   ac_status=$?
30619   grep -v '^ *+' conftest.er1 >conftest.err
30620   rm -f conftest.er1
30621   cat conftest.err >&5
30622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623   (exit $ac_status); } && {
30624          test -z "$ac_c_werror_flag" ||
30625          test ! -s conftest.err
30626        } && test -s conftest$ac_exeext &&
30627        $as_test_x conftest$ac_exeext; then
30628    echo "*** The test program compiled, but did not run. This usually means"
30629           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30630           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30631           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30632           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30633           echo "*** is required on your system"
30634           echo "***"
30635           echo "*** If you have an old version installed, it is best to remove it, although"
30636           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30637           echo "***"
30638           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30639           echo "*** came with the system with the command"
30640           echo "***"
30641           echo "***    rpm --erase --nodeps gtk gtk-devel"
30642 else
30643   echo "$as_me: failed program was:" >&5
30644 sed 's/^/| /' conftest.$ac_ext >&5
30645
30646          echo "*** The test program failed to compile or link. See the file config.log for the"
30647           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30648           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30649           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30650 fi
30651
30652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30653       conftest$ac_exeext conftest.$ac_ext
30654           CFLAGS="$ac_save_CFLAGS"
30655           LIBS="$ac_save_LIBS"
30656        fi
30657      fi
30658      GTK_CFLAGS=""
30659      GTK_LIBS=""
30660      :
30661   fi
30662
30663
30664   rm -f conf.gtktest
30665
30666
30667                         if test -z "$wx_cv_lib_gtk"; then
30668
30669 # Check whether --with-gtk-prefix was given.
30670 if test "${with_gtk_prefix+set}" = set; then
30671   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30672 else
30673   gtk_config_prefix=""
30674 fi
30675
30676
30677 # Check whether --with-gtk-exec-prefix was given.
30678 if test "${with_gtk_exec_prefix+set}" = set; then
30679   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30680 else
30681   gtk_config_exec_prefix=""
30682 fi
30683
30684 # Check whether --enable-gtktest was given.
30685 if test "${enable_gtktest+set}" = set; then
30686   enableval=$enable_gtktest;
30687 else
30688   enable_gtktest=yes
30689 fi
30690
30691
30692   for module in . $GTK_MODULES
30693   do
30694       case "$module" in
30695          gthread)
30696              gtk_config_args="$gtk_config_args gthread"
30697          ;;
30698       esac
30699   done
30700
30701   if test x$gtk_config_exec_prefix != x ; then
30702      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30703      if test x${GTK_CONFIG+set} != xset ; then
30704         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30705      fi
30706   fi
30707   if test x$gtk_config_prefix != x ; then
30708      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30709      if test x${GTK_CONFIG+set} != xset ; then
30710         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30711      fi
30712   fi
30713
30714   # Extract the first word of "gtk-config", so it can be a program name with args.
30715 set dummy gtk-config; ac_word=$2
30716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30718 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30719   echo $ECHO_N "(cached) $ECHO_C" >&6
30720 else
30721   case $GTK_CONFIG in
30722   [\\/]* | ?:[\\/]*)
30723   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30724   ;;
30725   *)
30726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30727 for as_dir in $PATH
30728 do
30729   IFS=$as_save_IFS
30730   test -z "$as_dir" && as_dir=.
30731   for ac_exec_ext in '' $ac_executable_extensions; do
30732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30733     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30735     break 2
30736   fi
30737 done
30738 done
30739 IFS=$as_save_IFS
30740
30741   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30742   ;;
30743 esac
30744 fi
30745 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30746 if test -n "$GTK_CONFIG"; then
30747   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30748 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30749 else
30750   { echo "$as_me:$LINENO: result: no" >&5
30751 echo "${ECHO_T}no" >&6; }
30752 fi
30753
30754
30755   min_gtk_version=1.2.3
30756   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30757 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30758   no_gtk=""
30759   if test "$GTK_CONFIG" = "no" ; then
30760     no_gtk=yes
30761   else
30762     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30763     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30764     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30765            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30766     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30767            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30768     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30769            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30770     if test "x$enable_gtktest" = "xyes" ; then
30771       ac_save_CFLAGS="$CFLAGS"
30772       ac_save_LIBS="$LIBS"
30773       CFLAGS="$CFLAGS $GTK_CFLAGS"
30774       LIBS="$GTK_LIBS $LIBS"
30775       rm -f conf.gtktest
30776       if test "$cross_compiling" = yes; then
30777   echo $ac_n "cross compiling; assumed OK... $ac_c"
30778 else
30779   cat >conftest.$ac_ext <<_ACEOF
30780 /* confdefs.h.  */
30781 _ACEOF
30782 cat confdefs.h >>conftest.$ac_ext
30783 cat >>conftest.$ac_ext <<_ACEOF
30784 /* end confdefs.h.  */
30785
30786 #include <gtk/gtk.h>
30787 #include <stdio.h>
30788 #include <stdlib.h>
30789
30790 int
30791 main ()
30792 {
30793   int major, minor, micro;
30794   char *tmp_version;
30795
30796   system ("touch conf.gtktest");
30797
30798   /* HP/UX 9 (%@#!) writes to sscanf strings */
30799   tmp_version = g_strdup("$min_gtk_version");
30800   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30801      printf("%s, bad version string\n", "$min_gtk_version");
30802      exit(1);
30803    }
30804
30805   if ((gtk_major_version != $gtk_config_major_version) ||
30806       (gtk_minor_version != $gtk_config_minor_version) ||
30807       (gtk_micro_version != $gtk_config_micro_version))
30808     {
30809       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30810              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30811              gtk_major_version, gtk_minor_version, gtk_micro_version);
30812       printf ("*** was found! If gtk-config was correct, then it is best\n");
30813       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30814       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30815       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30816       printf("*** required on your system.\n");
30817       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30818       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30819       printf("*** before re-running configure\n");
30820     }
30821 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30822   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30823            (gtk_minor_version != GTK_MINOR_VERSION) ||
30824            (gtk_micro_version != GTK_MICRO_VERSION))
30825     {
30826       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30827              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30828       printf("*** library (version %d.%d.%d)\n",
30829              gtk_major_version, gtk_minor_version, gtk_micro_version);
30830     }
30831 #endif /* defined (GTK_MAJOR_VERSION) ... */
30832   else
30833     {
30834       if ((gtk_major_version > major) ||
30835         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30836         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30837       {
30838         return 0;
30839        }
30840      else
30841       {
30842         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30843                gtk_major_version, gtk_minor_version, gtk_micro_version);
30844         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30845                major, minor, micro);
30846         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30847         printf("***\n");
30848         printf("*** If you have already installed a sufficiently new version, this error\n");
30849         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30850         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30851         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30852         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30853         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30854         printf("*** so that the correct libraries are found at run-time))\n");
30855       }
30856     }
30857   return 1;
30858 }
30859
30860 _ACEOF
30861 rm -f conftest$ac_exeext
30862 if { (ac_try="$ac_link"
30863 case "(($ac_try" in
30864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30865   *) ac_try_echo=$ac_try;;
30866 esac
30867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30868   (eval "$ac_link") 2>&5
30869   ac_status=$?
30870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30872   { (case "(($ac_try" in
30873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30874   *) ac_try_echo=$ac_try;;
30875 esac
30876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30877   (eval "$ac_try") 2>&5
30878   ac_status=$?
30879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880   (exit $ac_status); }; }; then
30881   :
30882 else
30883   echo "$as_me: program exited with status $ac_status" >&5
30884 echo "$as_me: failed program was:" >&5
30885 sed 's/^/| /' conftest.$ac_ext >&5
30886
30887 ( exit $ac_status )
30888 no_gtk=yes
30889 fi
30890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30891 fi
30892
30893
30894        CFLAGS="$ac_save_CFLAGS"
30895        LIBS="$ac_save_LIBS"
30896      fi
30897   fi
30898   if test "x$no_gtk" = x ; then
30899      { echo "$as_me:$LINENO: result: yes" >&5
30900 echo "${ECHO_T}yes" >&6; }
30901      wx_cv_lib_gtk=1.2.3
30902   else
30903      { echo "$as_me:$LINENO: result: no" >&5
30904 echo "${ECHO_T}no" >&6; }
30905      if test "$GTK_CONFIG" = "no" ; then
30906        echo "*** The gtk-config script installed by GTK could not be found"
30907        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30908        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30909        echo "*** full path to gtk-config."
30910      else
30911        if test -f conf.gtktest ; then
30912         :
30913        else
30914           echo "*** Could not run GTK test program, checking why..."
30915           CFLAGS="$CFLAGS $GTK_CFLAGS"
30916           LIBS="$LIBS $GTK_LIBS"
30917           cat >conftest.$ac_ext <<_ACEOF
30918 /* confdefs.h.  */
30919 _ACEOF
30920 cat confdefs.h >>conftest.$ac_ext
30921 cat >>conftest.$ac_ext <<_ACEOF
30922 /* end confdefs.h.  */
30923
30924 #include <gtk/gtk.h>
30925 #include <stdio.h>
30926
30927 int
30928 main ()
30929 {
30930  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30931   ;
30932   return 0;
30933 }
30934 _ACEOF
30935 rm -f conftest.$ac_objext conftest$ac_exeext
30936 if { (ac_try="$ac_link"
30937 case "(($ac_try" in
30938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30939   *) ac_try_echo=$ac_try;;
30940 esac
30941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30942   (eval "$ac_link") 2>conftest.er1
30943   ac_status=$?
30944   grep -v '^ *+' conftest.er1 >conftest.err
30945   rm -f conftest.er1
30946   cat conftest.err >&5
30947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948   (exit $ac_status); } && {
30949          test -z "$ac_c_werror_flag" ||
30950          test ! -s conftest.err
30951        } && test -s conftest$ac_exeext &&
30952        $as_test_x conftest$ac_exeext; then
30953    echo "*** The test program compiled, but did not run. This usually means"
30954           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30955           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30956           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30957           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30958           echo "*** is required on your system"
30959           echo "***"
30960           echo "*** If you have an old version installed, it is best to remove it, although"
30961           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30962           echo "***"
30963           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30964           echo "*** came with the system with the command"
30965           echo "***"
30966           echo "***    rpm --erase --nodeps gtk gtk-devel"
30967 else
30968   echo "$as_me: failed program was:" >&5
30969 sed 's/^/| /' conftest.$ac_ext >&5
30970
30971          echo "*** The test program failed to compile or link. See the file config.log for the"
30972           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30973           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30974           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30975 fi
30976
30977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30978       conftest$ac_exeext conftest.$ac_ext
30979           CFLAGS="$ac_save_CFLAGS"
30980           LIBS="$ac_save_LIBS"
30981        fi
30982      fi
30983      GTK_CFLAGS=""
30984      GTK_LIBS=""
30985      :
30986   fi
30987
30988
30989   rm -f conf.gtktest
30990
30991                         fi
30992                     fi
30993                 fi
30994
30995                 if test -z "$wx_cv_lib_gtk"; then
30996                                         wx_cv_lib_gtk=none
30997                 else
30998                                         GTK_LIBS="$GTK_LIBS -lX11"
30999
31000                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
31001                     wx_cv_libs_gtk=$GTK_LIBS
31002                 fi
31003
31004
31005 fi
31006
31007
31008                         if test "$gtk_version_cached" = 1; then
31009             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
31010 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
31011         fi
31012
31013         case "$wx_cv_lib_gtk" in
31014             2.0)    WXGTK2=1
31015                     TOOLKIT_VERSION=2
31016                     ;;
31017             1.2.7)  WXGTK127=1
31018                     ;;
31019             1.2*) ;;
31020             *)      { { echo "$as_me:$LINENO: error:
31021 The development files for GTK+ were not found. For GTK+ 2, please
31022 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31023 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31024 and that the version is 1.2.3 or above. Also check that the
31025 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31026 --libs' are in the LD_LIBRARY_PATH or equivalent.
31027                             " >&5
31028 echo "$as_me: error:
31029 The development files for GTK+ were not found. For GTK+ 2, please
31030 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31031 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31032 and that the version is 1.2.3 or above. Also check that the
31033 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31034 --libs' are in the LD_LIBRARY_PATH or equivalent.
31035                             " >&2;}
31036    { (exit 1); exit 1; }; }
31037                     ;;
31038         esac
31039
31040         if test "$WXGTK2" = 1; then
31041             save_CFLAGS="$CFLAGS"
31042             save_LIBS="$LIBS"
31043             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
31044             LIBS="$LIBS $wx_cv_libs_gtk"
31045
31046                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
31047 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
31048             cat >conftest.$ac_ext <<_ACEOF
31049 /* confdefs.h.  */
31050 _ACEOF
31051 cat confdefs.h >>conftest.$ac_ext
31052 cat >>conftest.$ac_ext <<_ACEOF
31053 /* end confdefs.h.  */
31054
31055                             #include <gtk/gtk.h>
31056
31057 int
31058 main ()
31059 {
31060
31061                             #if !GTK_CHECK_VERSION(2,18,0)
31062                             Not GTK+ 2.18
31063                             #endif
31064
31065   ;
31066   return 0;
31067 }
31068 _ACEOF
31069 rm -f conftest.$ac_objext
31070 if { (ac_try="$ac_compile"
31071 case "(($ac_try" in
31072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073   *) ac_try_echo=$ac_try;;
31074 esac
31075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076   (eval "$ac_compile") 2>conftest.er1
31077   ac_status=$?
31078   grep -v '^ *+' conftest.er1 >conftest.err
31079   rm -f conftest.er1
31080   cat conftest.err >&5
31081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082   (exit $ac_status); } && {
31083          test -z "$ac_c_werror_flag" ||
31084          test ! -s conftest.err
31085        } && test -s conftest.$ac_objext; then
31086
31087                             cat >>confdefs.h <<\_ACEOF
31088 #define __WXGTK218__ 1
31089 _ACEOF
31090
31091                             cat >>confdefs.h <<\_ACEOF
31092 #define __WXGTK210__ 1
31093 _ACEOF
31094
31095                             cat >>confdefs.h <<\_ACEOF
31096 #define __WXGTK26__ 1
31097 _ACEOF
31098
31099                             { echo "$as_me:$LINENO: result: yes" >&5
31100 echo "${ECHO_T}yes" >&6; }
31101                             ac_wxgtk218=1
31102
31103 else
31104   echo "$as_me: failed program was:" >&5
31105 sed 's/^/| /' conftest.$ac_ext >&5
31106
31107
31108                             { echo "$as_me:$LINENO: result: no" >&5
31109 echo "${ECHO_T}no" >&6; }
31110                             ac_wxgtk218=0
31111
31112 fi
31113
31114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31115
31116             if test "$ac_wxgtk218" = 0; then
31117                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31118 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
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                                 #include <gtk/gtk.h>
31127
31128 int
31129 main ()
31130 {
31131
31132                                 #if !GTK_CHECK_VERSION(2,10,0)
31133                                 Not GTK+ 2.10
31134                                 #endif
31135
31136   ;
31137   return 0;
31138 }
31139 _ACEOF
31140 rm -f conftest.$ac_objext
31141 if { (ac_try="$ac_compile"
31142 case "(($ac_try" in
31143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31144   *) ac_try_echo=$ac_try;;
31145 esac
31146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31147   (eval "$ac_compile") 2>conftest.er1
31148   ac_status=$?
31149   grep -v '^ *+' conftest.er1 >conftest.err
31150   rm -f conftest.er1
31151   cat conftest.err >&5
31152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153   (exit $ac_status); } && {
31154          test -z "$ac_c_werror_flag" ||
31155          test ! -s conftest.err
31156        } && test -s conftest.$ac_objext; then
31157
31158                                 cat >>confdefs.h <<\_ACEOF
31159 #define __WXGTK210__ 1
31160 _ACEOF
31161
31162                                 cat >>confdefs.h <<\_ACEOF
31163 #define __WXGTK26__ 1
31164 _ACEOF
31165
31166                                 { echo "$as_me:$LINENO: result: yes" >&5
31167 echo "${ECHO_T}yes" >&6; }
31168                                 ac_wxgtk210=1
31169
31170 else
31171   echo "$as_me: failed program was:" >&5
31172 sed 's/^/| /' conftest.$ac_ext >&5
31173
31174
31175                                 { echo "$as_me:$LINENO: result: no" >&5
31176 echo "${ECHO_T}no" >&6; }
31177                                 ac_wxgtk210=0
31178
31179 fi
31180
31181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31182
31183                 if test "$ac_wxgtk210" = 0; then
31184                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31185 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31186                     cat >conftest.$ac_ext <<_ACEOF
31187 /* confdefs.h.  */
31188 _ACEOF
31189 cat confdefs.h >>conftest.$ac_ext
31190 cat >>conftest.$ac_ext <<_ACEOF
31191 /* end confdefs.h.  */
31192
31193                                     #include <gtk/gtk.h>
31194
31195 int
31196 main ()
31197 {
31198
31199                                     #if !GTK_CHECK_VERSION(2,6,0)
31200                                     Not GTK+ 2.6
31201                                     #endif
31202
31203   ;
31204   return 0;
31205 }
31206 _ACEOF
31207 rm -f conftest.$ac_objext
31208 if { (ac_try="$ac_compile"
31209 case "(($ac_try" in
31210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211   *) ac_try_echo=$ac_try;;
31212 esac
31213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214   (eval "$ac_compile") 2>conftest.er1
31215   ac_status=$?
31216   grep -v '^ *+' conftest.er1 >conftest.err
31217   rm -f conftest.er1
31218   cat conftest.err >&5
31219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220   (exit $ac_status); } && {
31221          test -z "$ac_c_werror_flag" ||
31222          test ! -s conftest.err
31223        } && test -s conftest.$ac_objext; then
31224
31225                                     cat >>confdefs.h <<\_ACEOF
31226 #define __WXGTK26__ 1
31227 _ACEOF
31228
31229                                     { echo "$as_me:$LINENO: result: yes" >&5
31230 echo "${ECHO_T}yes" >&6; }
31231                                     ac_wxgtk26=1
31232
31233 else
31234   echo "$as_me: failed program was:" >&5
31235 sed 's/^/| /' conftest.$ac_ext >&5
31236
31237
31238                                     { echo "$as_me:$LINENO: result: no" >&5
31239 echo "${ECHO_T}no" >&6; }
31240                                     ac_wxgtk26=0
31241
31242 fi
31243
31244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31245                 fi
31246             fi
31247
31248             CFLAGS="$save_CFLAGS"
31249             LIBS="$save_LIBS"
31250         else
31251             if test "$wxUSE_UNICODE" = "yes"; then
31252                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31253 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31254                 wxUSE_UNICODE=no
31255             fi
31256
31257                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31258 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31259 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31260   echo $ECHO_N "(cached) $ECHO_C" >&6
31261 else
31262   ac_check_lib_save_LIBS=$LIBS
31263 LIBS="-lgdk  $LIBS"
31264 cat >conftest.$ac_ext <<_ACEOF
31265 /* confdefs.h.  */
31266 _ACEOF
31267 cat confdefs.h >>conftest.$ac_ext
31268 cat >>conftest.$ac_ext <<_ACEOF
31269 /* end confdefs.h.  */
31270
31271 /* Override any GCC internal prototype to avoid an error.
31272    Use char because int might match the return type of a GCC
31273    builtin and then its argument prototype would still apply.  */
31274 #ifdef __cplusplus
31275 extern "C"
31276 #endif
31277 char gdk_im_open ();
31278 int
31279 main ()
31280 {
31281 return gdk_im_open ();
31282   ;
31283   return 0;
31284 }
31285 _ACEOF
31286 rm -f conftest.$ac_objext conftest$ac_exeext
31287 if { (ac_try="$ac_link"
31288 case "(($ac_try" in
31289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290   *) ac_try_echo=$ac_try;;
31291 esac
31292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293   (eval "$ac_link") 2>conftest.er1
31294   ac_status=$?
31295   grep -v '^ *+' conftest.er1 >conftest.err
31296   rm -f conftest.er1
31297   cat conftest.err >&5
31298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299   (exit $ac_status); } && {
31300          test -z "$ac_c_werror_flag" ||
31301          test ! -s conftest.err
31302        } && test -s conftest$ac_exeext &&
31303        $as_test_x conftest$ac_exeext; then
31304   ac_cv_lib_gdk_gdk_im_open=yes
31305 else
31306   echo "$as_me: failed program was:" >&5
31307 sed 's/^/| /' conftest.$ac_ext >&5
31308
31309         ac_cv_lib_gdk_gdk_im_open=no
31310 fi
31311
31312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31313       conftest$ac_exeext conftest.$ac_ext
31314 LIBS=$ac_check_lib_save_LIBS
31315 fi
31316 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31317 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31318 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31319   cat >>confdefs.h <<\_ACEOF
31320 #define HAVE_XIM 1
31321 _ACEOF
31322
31323 fi
31324
31325
31326                                     if test "$USE_DARWIN" != 1; then
31327
31328 for ac_func in poll
31329 do
31330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31331 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31333 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31334   echo $ECHO_N "(cached) $ECHO_C" >&6
31335 else
31336   cat >conftest.$ac_ext <<_ACEOF
31337 /* confdefs.h.  */
31338 _ACEOF
31339 cat confdefs.h >>conftest.$ac_ext
31340 cat >>conftest.$ac_ext <<_ACEOF
31341 /* end confdefs.h.  */
31342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31344 #define $ac_func innocuous_$ac_func
31345
31346 /* System header to define __stub macros and hopefully few prototypes,
31347     which can conflict with char $ac_func (); below.
31348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31349     <limits.h> exists even on freestanding compilers.  */
31350
31351 #ifdef __STDC__
31352 # include <limits.h>
31353 #else
31354 # include <assert.h>
31355 #endif
31356
31357 #undef $ac_func
31358
31359 /* Override any GCC internal prototype to avoid an error.
31360    Use char because int might match the return type of a GCC
31361    builtin and then its argument prototype would still apply.  */
31362 #ifdef __cplusplus
31363 extern "C"
31364 #endif
31365 char $ac_func ();
31366 /* The GNU C library defines this for functions which it implements
31367     to always fail with ENOSYS.  Some functions are actually named
31368     something starting with __ and the normal name is an alias.  */
31369 #if defined __stub_$ac_func || defined __stub___$ac_func
31370 choke me
31371 #endif
31372
31373 int
31374 main ()
31375 {
31376 return $ac_func ();
31377   ;
31378   return 0;
31379 }
31380 _ACEOF
31381 rm -f conftest.$ac_objext conftest$ac_exeext
31382 if { (ac_try="$ac_link"
31383 case "(($ac_try" in
31384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385   *) ac_try_echo=$ac_try;;
31386 esac
31387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388   (eval "$ac_link") 2>conftest.er1
31389   ac_status=$?
31390   grep -v '^ *+' conftest.er1 >conftest.err
31391   rm -f conftest.er1
31392   cat conftest.err >&5
31393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394   (exit $ac_status); } && {
31395          test -z "$ac_c_werror_flag" ||
31396          test ! -s conftest.err
31397        } && test -s conftest$ac_exeext &&
31398        $as_test_x conftest$ac_exeext; then
31399   eval "$as_ac_var=yes"
31400 else
31401   echo "$as_me: failed program was:" >&5
31402 sed 's/^/| /' conftest.$ac_ext >&5
31403
31404         eval "$as_ac_var=no"
31405 fi
31406
31407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31408       conftest$ac_exeext conftest.$ac_ext
31409 fi
31410 ac_res=`eval echo '${'$as_ac_var'}'`
31411                { echo "$as_me:$LINENO: result: $ac_res" >&5
31412 echo "${ECHO_T}$ac_res" >&6; }
31413 if test `eval echo '${'$as_ac_var'}'` = yes; then
31414   cat >>confdefs.h <<_ACEOF
31415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31416 _ACEOF
31417
31418 fi
31419 done
31420
31421             fi
31422         fi
31423
31424         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31425         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31426         AFMINSTALL=afminstall
31427         TOOLKIT=GTK
31428         GUIDIST=GTK_DIST
31429
31430                 if test "$wxUSE_GPE" = "yes"; then
31431             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31432 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31433
31434   ac_find_libraries=
31435   for ac_dir in $SEARCH_LIB
31436   do
31437     for ac_extension in a so sl dylib dll.a; do
31438       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31439         ac_find_libraries=$ac_dir
31440         break 2
31441       fi
31442     done
31443   done
31444
31445             if test "$ac_find_libraries" != "" ; then
31446
31447     if test "$ac_find_libraries" = "default location"; then
31448     ac_path_to_link=""
31449   else
31450     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31451     result=$?
31452     if test $result = 0; then
31453       ac_path_to_link=""
31454     else
31455       ac_path_to_link=" -L$ac_find_libraries"
31456     fi
31457   fi
31458
31459                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31460                 WXGPE=1
31461                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31462 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31463             else
31464                 { echo "$as_me:$LINENO: result: not found" >&5
31465 echo "${ECHO_T}not found" >&6; }
31466             fi
31467
31468                                                                                                                     fi
31469     fi
31470
31471     if test "$wxUSE_MGL" = 1; then
31472        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31473 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31474         if test "x$MGL_ROOT" = x ; then
31475             { echo "$as_me:$LINENO: result: not found" >&5
31476 echo "${ECHO_T}not found" >&6; }
31477             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31478 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31479    { (exit 1); exit 1; }; }
31480         else
31481             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31482 echo "${ECHO_T}$MGL_ROOT" >&6; }
31483         fi
31484
31485         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31486 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31487                                 case "${host}" in
31488             *-*-linux* )
31489                                           if test "x$wxUSE_SHARED" = xyes ; then
31490                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31491               else
31492                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31493               fi
31494               ;;
31495             *-pc-msdosdjgpp )
31496               mgl_os_candidates="dos32/dj2"
31497               ;;
31498             *)
31499               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31500 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31501    { (exit 1); exit 1; }; }
31502         esac
31503
31504         mgl_lib_type=""
31505         mgl_os=""
31506
31507         for mgl_os_i in $mgl_os_candidates ; do
31508             if test "x$mgl_os" = x ; then
31509                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31510                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31511                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31512                         mgl_lib_type=debug
31513                         mgl_os=$mgl_os_i
31514                     fi
31515                 fi
31516                 if test "x$mgl_lib_type" = x ; then
31517                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31518                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31519                         mgl_lib_type=release
31520                         mgl_os=$mgl_os_i
31521                     fi
31522                 fi
31523             fi
31524         done
31525
31526         if test "x$mgl_os" = x ; then
31527             { echo "$as_me:$LINENO: result: not found" >&5
31528 echo "${ECHO_T}not found" >&6; }
31529             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31530 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31531    { (exit 1); exit 1; }; }
31532         fi
31533         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31534 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31535
31536         wxUSE_UNIVERSAL="yes"
31537
31538         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31539         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31540
31541         AFMINSTALL=afminstall
31542         TOOLKIT=MGL
31543         GUIDIST=MGL_DIST
31544     fi
31545
31546     if test "$wxUSE_DFB" = 1; then
31547
31548
31549 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31550         if test -n "$ac_tool_prefix"; then
31551   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31552 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31555 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31556   echo $ECHO_N "(cached) $ECHO_C" >&6
31557 else
31558   case $PKG_CONFIG in
31559   [\\/]* | ?:[\\/]*)
31560   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31561   ;;
31562   *)
31563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31564 for as_dir in $PATH
31565 do
31566   IFS=$as_save_IFS
31567   test -z "$as_dir" && as_dir=.
31568   for ac_exec_ext in '' $ac_executable_extensions; do
31569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31570     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31572     break 2
31573   fi
31574 done
31575 done
31576 IFS=$as_save_IFS
31577
31578   ;;
31579 esac
31580 fi
31581 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31582 if test -n "$PKG_CONFIG"; then
31583   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31584 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31585 else
31586   { echo "$as_me:$LINENO: result: no" >&5
31587 echo "${ECHO_T}no" >&6; }
31588 fi
31589
31590
31591 fi
31592 if test -z "$ac_cv_path_PKG_CONFIG"; then
31593   ac_pt_PKG_CONFIG=$PKG_CONFIG
31594   # Extract the first word of "pkg-config", so it can be a program name with args.
31595 set dummy pkg-config; ac_word=$2
31596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31598 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31599   echo $ECHO_N "(cached) $ECHO_C" >&6
31600 else
31601   case $ac_pt_PKG_CONFIG in
31602   [\\/]* | ?:[\\/]*)
31603   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31604   ;;
31605   *)
31606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31607 for as_dir in $PATH
31608 do
31609   IFS=$as_save_IFS
31610   test -z "$as_dir" && as_dir=.
31611   for ac_exec_ext in '' $ac_executable_extensions; do
31612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31613     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31615     break 2
31616   fi
31617 done
31618 done
31619 IFS=$as_save_IFS
31620
31621   ;;
31622 esac
31623 fi
31624 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31625 if test -n "$ac_pt_PKG_CONFIG"; then
31626   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31627 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31628 else
31629   { echo "$as_me:$LINENO: result: no" >&5
31630 echo "${ECHO_T}no" >&6; }
31631 fi
31632
31633   if test "x$ac_pt_PKG_CONFIG" = x; then
31634     PKG_CONFIG=""
31635   else
31636     case $cross_compiling:$ac_tool_warned in
31637 yes:)
31638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31639 whose name does not start with the host triplet.  If you think this
31640 configuration is useful to you, please write to autoconf@gnu.org." >&5
31641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31642 whose name does not start with the host triplet.  If you think this
31643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31644 ac_tool_warned=yes ;;
31645 esac
31646     PKG_CONFIG=$ac_pt_PKG_CONFIG
31647   fi
31648 else
31649   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31650 fi
31651
31652 fi
31653 if test -n "$PKG_CONFIG"; then
31654         _pkg_min_version=0.9.0
31655         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31656 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31657         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31658                 { echo "$as_me:$LINENO: result: yes" >&5
31659 echo "${ECHO_T}yes" >&6; }
31660         else
31661                 { echo "$as_me:$LINENO: result: no" >&5
31662 echo "${ECHO_T}no" >&6; }
31663                 PKG_CONFIG=""
31664         fi
31665
31666 fi
31667
31668
31669 pkg_failed=no
31670 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31671 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31672
31673 if test -n "$PKG_CONFIG"; then
31674     if test -n "$DIRECTFB_CFLAGS"; then
31675         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31676     else
31677         if test -n "$PKG_CONFIG" && \
31678     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31679   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31680   ac_status=$?
31681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31682   (exit $ac_status); }; then
31683   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31684 else
31685   pkg_failed=yes
31686 fi
31687     fi
31688 else
31689         pkg_failed=untried
31690 fi
31691 if test -n "$PKG_CONFIG"; then
31692     if test -n "$DIRECTFB_LIBS"; then
31693         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31694     else
31695         if test -n "$PKG_CONFIG" && \
31696     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31697   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31698   ac_status=$?
31699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700   (exit $ac_status); }; then
31701   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31702 else
31703   pkg_failed=yes
31704 fi
31705     fi
31706 else
31707         pkg_failed=untried
31708 fi
31709
31710
31711
31712 if test $pkg_failed = yes; then
31713
31714 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31715         _pkg_short_errors_supported=yes
31716 else
31717         _pkg_short_errors_supported=no
31718 fi
31719         if test $_pkg_short_errors_supported = yes; then
31720                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31721         else
31722                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31723         fi
31724         # Put the nasty error message in config.log where it belongs
31725         echo "$DIRECTFB_PKG_ERRORS" >&5
31726
31727
31728                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31729 echo "$as_me: error: DirectFB not found." >&2;}
31730    { (exit 1); exit 1; }; }
31731
31732
31733 elif test $pkg_failed = untried; then
31734
31735                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31736 echo "$as_me: error: DirectFB not found." >&2;}
31737    { (exit 1); exit 1; }; }
31738
31739
31740 else
31741         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31742         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31743         { echo "$as_me:$LINENO: result: yes" >&5
31744 echo "${ECHO_T}yes" >&6; }
31745
31746                            wxUSE_UNIVERSAL="yes"
31747                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31748                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31749                            TOOLKIT=DFB
31750                            GUIDIST=DFB_DIST
31751
31752 fi
31753     fi
31754
31755     if test "$wxUSE_MICROWIN" = 1; then
31756         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31757 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31758         if test "x$MICROWINDOWS" = x ; then
31759             { echo "$as_me:$LINENO: result: not found" >&5
31760 echo "${ECHO_T}not found" >&6; }
31761             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31762 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31763    { (exit 1); exit 1; }; }
31764         else
31765             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31766 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31767         fi
31768
31769         if test -f $MICROWINDOWS/lib/libmwin.a; then
31770             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31771 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31772         else
31773             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31774 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31775    { (exit 1); exit 1; }; }
31776         fi
31777
31778         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31779         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31780
31781         wxUSE_UNIVERSAL="yes"
31782
31783         AFMINSTALL=afminstall
31784         TOOLKIT=MICROWIN
31785         GUIDIST=MICROWIN_DIST
31786
31787         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31788     fi
31789
31790         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31791                                 { echo "$as_me:$LINENO: checking for X" >&5
31792 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31793
31794
31795 # Check whether --with-x was given.
31796 if test "${with_x+set}" = set; then
31797   withval=$with_x;
31798 fi
31799
31800 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31801 if test "x$with_x" = xno; then
31802   # The user explicitly disabled X.
31803   have_x=disabled
31804 else
31805   case $x_includes,$x_libraries in #(
31806     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31807 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31808    { (exit 1); exit 1; }; };; #(
31809     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31810   echo $ECHO_N "(cached) $ECHO_C" >&6
31811 else
31812   # One or both of the vars are not set, and there is no cached value.
31813 ac_x_includes=no ac_x_libraries=no
31814 rm -f -r conftest.dir
31815 if mkdir conftest.dir; then
31816   cd conftest.dir
31817   cat >Imakefile <<'_ACEOF'
31818 incroot:
31819         @echo incroot='${INCROOT}'
31820 usrlibdir:
31821         @echo usrlibdir='${USRLIBDIR}'
31822 libdir:
31823         @echo libdir='${LIBDIR}'
31824 _ACEOF
31825   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31826     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31827     for ac_var in incroot usrlibdir libdir; do
31828       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31829     done
31830     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31831     for ac_extension in a so sl; do
31832       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31833          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31834         ac_im_usrlibdir=$ac_im_libdir; break
31835       fi
31836     done
31837     # Screen out bogus values from the imake configuration.  They are
31838     # bogus both because they are the default anyway, and because
31839     # using them would break gcc on systems where it needs fixed includes.
31840     case $ac_im_incroot in
31841         /usr/include) ac_x_includes= ;;
31842         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31843     esac
31844     case $ac_im_usrlibdir in
31845         /usr/lib | /lib) ;;
31846         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31847     esac
31848   fi
31849   cd ..
31850   rm -f -r conftest.dir
31851 fi
31852
31853 # Standard set of common directories for X headers.
31854 # Check X11 before X11Rn because it is often a symlink to the current release.
31855 ac_x_header_dirs='
31856 /usr/X11/include
31857 /usr/X11R6/include
31858 /usr/X11R5/include
31859 /usr/X11R4/include
31860
31861 /usr/include/X11
31862 /usr/include/X11R6
31863 /usr/include/X11R5
31864 /usr/include/X11R4
31865
31866 /usr/local/X11/include
31867 /usr/local/X11R6/include
31868 /usr/local/X11R5/include
31869 /usr/local/X11R4/include
31870
31871 /usr/local/include/X11
31872 /usr/local/include/X11R6
31873 /usr/local/include/X11R5
31874 /usr/local/include/X11R4
31875
31876 /usr/X386/include
31877 /usr/x386/include
31878 /usr/XFree86/include/X11
31879
31880 /usr/include
31881 /usr/local/include
31882 /usr/unsupported/include
31883 /usr/athena/include
31884 /usr/local/x11r5/include
31885 /usr/lpp/Xamples/include
31886
31887 /usr/openwin/include
31888 /usr/openwin/share/include'
31889
31890 if test "$ac_x_includes" = no; then
31891   # Guess where to find include files, by looking for Xlib.h.
31892   # First, try using that file with no special directory specified.
31893   cat >conftest.$ac_ext <<_ACEOF
31894 /* confdefs.h.  */
31895 _ACEOF
31896 cat confdefs.h >>conftest.$ac_ext
31897 cat >>conftest.$ac_ext <<_ACEOF
31898 /* end confdefs.h.  */
31899 #include <X11/Xlib.h>
31900 _ACEOF
31901 if { (ac_try="$ac_cpp conftest.$ac_ext"
31902 case "(($ac_try" in
31903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904   *) ac_try_echo=$ac_try;;
31905 esac
31906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31908   ac_status=$?
31909   grep -v '^ *+' conftest.er1 >conftest.err
31910   rm -f conftest.er1
31911   cat conftest.err >&5
31912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913   (exit $ac_status); } >/dev/null && {
31914          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31915          test ! -s conftest.err
31916        }; then
31917   # We can compile using X headers with no special include directory.
31918 ac_x_includes=
31919 else
31920   echo "$as_me: failed program was:" >&5
31921 sed 's/^/| /' conftest.$ac_ext >&5
31922
31923   for ac_dir in $ac_x_header_dirs; do
31924   if test -r "$ac_dir/X11/Xlib.h"; then
31925     ac_x_includes=$ac_dir
31926     break
31927   fi
31928 done
31929 fi
31930
31931 rm -f conftest.err conftest.$ac_ext
31932 fi # $ac_x_includes = no
31933
31934 if test "$ac_x_libraries" = no; then
31935   # Check for the libraries.
31936   # See if we find them without any special options.
31937   # Don't add to $LIBS permanently.
31938   ac_save_LIBS=$LIBS
31939   LIBS="-lX11 $LIBS"
31940   cat >conftest.$ac_ext <<_ACEOF
31941 /* confdefs.h.  */
31942 _ACEOF
31943 cat confdefs.h >>conftest.$ac_ext
31944 cat >>conftest.$ac_ext <<_ACEOF
31945 /* end confdefs.h.  */
31946 #include <X11/Xlib.h>
31947 int
31948 main ()
31949 {
31950 XrmInitialize ()
31951   ;
31952   return 0;
31953 }
31954 _ACEOF
31955 rm -f conftest.$ac_objext conftest$ac_exeext
31956 if { (ac_try="$ac_link"
31957 case "(($ac_try" in
31958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31959   *) ac_try_echo=$ac_try;;
31960 esac
31961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31962   (eval "$ac_link") 2>conftest.er1
31963   ac_status=$?
31964   grep -v '^ *+' conftest.er1 >conftest.err
31965   rm -f conftest.er1
31966   cat conftest.err >&5
31967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968   (exit $ac_status); } && {
31969          test -z "$ac_c_werror_flag" ||
31970          test ! -s conftest.err
31971        } && test -s conftest$ac_exeext &&
31972        $as_test_x conftest$ac_exeext; then
31973   LIBS=$ac_save_LIBS
31974 # We can link X programs with no special library path.
31975 ac_x_libraries=
31976 else
31977   echo "$as_me: failed program was:" >&5
31978 sed 's/^/| /' conftest.$ac_ext >&5
31979
31980         LIBS=$ac_save_LIBS
31981 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31982 do
31983   # Don't even attempt the hair of trying to link an X program!
31984   for ac_extension in a so sl; do
31985     if test -r "$ac_dir/libX11.$ac_extension"; then
31986       ac_x_libraries=$ac_dir
31987       break 2
31988     fi
31989   done
31990 done
31991 fi
31992
31993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31994       conftest$ac_exeext conftest.$ac_ext
31995 fi # $ac_x_libraries = no
31996
31997 case $ac_x_includes,$ac_x_libraries in #(
31998   no,* | *,no | *\'*)
31999     # Didn't find X, or a directory has "'" in its name.
32000     ac_cv_have_x="have_x=no";; #(
32001   *)
32002     # Record where we found X for the cache.
32003     ac_cv_have_x="have_x=yes\
32004         ac_x_includes='$ac_x_includes'\
32005         ac_x_libraries='$ac_x_libraries'"
32006 esac
32007 fi
32008 ;; #(
32009     *) have_x=yes;;
32010   esac
32011   eval "$ac_cv_have_x"
32012 fi # $with_x != no
32013
32014 if test "$have_x" != yes; then
32015   { echo "$as_me:$LINENO: result: $have_x" >&5
32016 echo "${ECHO_T}$have_x" >&6; }
32017   no_x=yes
32018 else
32019   # If each of the values was on the command line, it overrides each guess.
32020   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32021   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32022   # Update the cache value to reflect the command line values.
32023   ac_cv_have_x="have_x=yes\
32024         ac_x_includes='$x_includes'\
32025         ac_x_libraries='$x_libraries'"
32026   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32027 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
32028 fi
32029
32030 if test "$no_x" = yes; then
32031   # Not all programs may use this symbol, but it does not hurt to define it.
32032
32033 cat >>confdefs.h <<\_ACEOF
32034 #define X_DISPLAY_MISSING 1
32035 _ACEOF
32036
32037   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32038 else
32039   if test -n "$x_includes"; then
32040     X_CFLAGS="$X_CFLAGS -I$x_includes"
32041   fi
32042
32043   # It would also be nice to do this for all -L options, not just this one.
32044   if test -n "$x_libraries"; then
32045     X_LIBS="$X_LIBS -L$x_libraries"
32046     # For Solaris; some versions of Sun CC require a space after -R and
32047     # others require no space.  Words are not sufficient . . . .
32048     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32049 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32050     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32051     ac_xsave_c_werror_flag=$ac_c_werror_flag
32052     ac_c_werror_flag=yes
32053     cat >conftest.$ac_ext <<_ACEOF
32054 /* confdefs.h.  */
32055 _ACEOF
32056 cat confdefs.h >>conftest.$ac_ext
32057 cat >>conftest.$ac_ext <<_ACEOF
32058 /* end confdefs.h.  */
32059
32060 int
32061 main ()
32062 {
32063
32064   ;
32065   return 0;
32066 }
32067 _ACEOF
32068 rm -f conftest.$ac_objext conftest$ac_exeext
32069 if { (ac_try="$ac_link"
32070 case "(($ac_try" in
32071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072   *) ac_try_echo=$ac_try;;
32073 esac
32074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075   (eval "$ac_link") 2>conftest.er1
32076   ac_status=$?
32077   grep -v '^ *+' conftest.er1 >conftest.err
32078   rm -f conftest.er1
32079   cat conftest.err >&5
32080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081   (exit $ac_status); } && {
32082          test -z "$ac_c_werror_flag" ||
32083          test ! -s conftest.err
32084        } && test -s conftest$ac_exeext &&
32085        $as_test_x conftest$ac_exeext; then
32086   { echo "$as_me:$LINENO: result: no" >&5
32087 echo "${ECHO_T}no" >&6; }
32088        X_LIBS="$X_LIBS -R$x_libraries"
32089 else
32090   echo "$as_me: failed program was:" >&5
32091 sed 's/^/| /' conftest.$ac_ext >&5
32092
32093         LIBS="$ac_xsave_LIBS -R $x_libraries"
32094        cat >conftest.$ac_ext <<_ACEOF
32095 /* confdefs.h.  */
32096 _ACEOF
32097 cat confdefs.h >>conftest.$ac_ext
32098 cat >>conftest.$ac_ext <<_ACEOF
32099 /* end confdefs.h.  */
32100
32101 int
32102 main ()
32103 {
32104
32105   ;
32106   return 0;
32107 }
32108 _ACEOF
32109 rm -f conftest.$ac_objext conftest$ac_exeext
32110 if { (ac_try="$ac_link"
32111 case "(($ac_try" in
32112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113   *) ac_try_echo=$ac_try;;
32114 esac
32115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116   (eval "$ac_link") 2>conftest.er1
32117   ac_status=$?
32118   grep -v '^ *+' conftest.er1 >conftest.err
32119   rm -f conftest.er1
32120   cat conftest.err >&5
32121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122   (exit $ac_status); } && {
32123          test -z "$ac_c_werror_flag" ||
32124          test ! -s conftest.err
32125        } && test -s conftest$ac_exeext &&
32126        $as_test_x conftest$ac_exeext; then
32127   { echo "$as_me:$LINENO: result: yes" >&5
32128 echo "${ECHO_T}yes" >&6; }
32129           X_LIBS="$X_LIBS -R $x_libraries"
32130 else
32131   echo "$as_me: failed program was:" >&5
32132 sed 's/^/| /' conftest.$ac_ext >&5
32133
32134         { echo "$as_me:$LINENO: result: neither works" >&5
32135 echo "${ECHO_T}neither works" >&6; }
32136 fi
32137
32138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32139       conftest$ac_exeext conftest.$ac_ext
32140 fi
32141
32142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32143       conftest$ac_exeext conftest.$ac_ext
32144     ac_c_werror_flag=$ac_xsave_c_werror_flag
32145     LIBS=$ac_xsave_LIBS
32146   fi
32147
32148   # Check for system-dependent libraries X programs must link with.
32149   # Do this before checking for the system-independent R6 libraries
32150   # (-lICE), since we may need -lsocket or whatever for X linking.
32151
32152   if test "$ISC" = yes; then
32153     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32154   else
32155     # Martyn Johnson says this is needed for Ultrix, if the X
32156     # libraries were built with DECnet support.  And Karl Berry says
32157     # the Alpha needs dnet_stub (dnet does not exist).
32158     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32159     cat >conftest.$ac_ext <<_ACEOF
32160 /* confdefs.h.  */
32161 _ACEOF
32162 cat confdefs.h >>conftest.$ac_ext
32163 cat >>conftest.$ac_ext <<_ACEOF
32164 /* end confdefs.h.  */
32165
32166 /* Override any GCC internal prototype to avoid an error.
32167    Use char because int might match the return type of a GCC
32168    builtin and then its argument prototype would still apply.  */
32169 #ifdef __cplusplus
32170 extern "C"
32171 #endif
32172 char XOpenDisplay ();
32173 int
32174 main ()
32175 {
32176 return XOpenDisplay ();
32177   ;
32178   return 0;
32179 }
32180 _ACEOF
32181 rm -f conftest.$ac_objext conftest$ac_exeext
32182 if { (ac_try="$ac_link"
32183 case "(($ac_try" in
32184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32185   *) ac_try_echo=$ac_try;;
32186 esac
32187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32188   (eval "$ac_link") 2>conftest.er1
32189   ac_status=$?
32190   grep -v '^ *+' conftest.er1 >conftest.err
32191   rm -f conftest.er1
32192   cat conftest.err >&5
32193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194   (exit $ac_status); } && {
32195          test -z "$ac_c_werror_flag" ||
32196          test ! -s conftest.err
32197        } && test -s conftest$ac_exeext &&
32198        $as_test_x conftest$ac_exeext; then
32199   :
32200 else
32201   echo "$as_me: failed program was:" >&5
32202 sed 's/^/| /' conftest.$ac_ext >&5
32203
32204         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32205 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32206 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32207   echo $ECHO_N "(cached) $ECHO_C" >&6
32208 else
32209   ac_check_lib_save_LIBS=$LIBS
32210 LIBS="-ldnet  $LIBS"
32211 cat >conftest.$ac_ext <<_ACEOF
32212 /* confdefs.h.  */
32213 _ACEOF
32214 cat confdefs.h >>conftest.$ac_ext
32215 cat >>conftest.$ac_ext <<_ACEOF
32216 /* end confdefs.h.  */
32217
32218 /* Override any GCC internal prototype to avoid an error.
32219    Use char because int might match the return type of a GCC
32220    builtin and then its argument prototype would still apply.  */
32221 #ifdef __cplusplus
32222 extern "C"
32223 #endif
32224 char dnet_ntoa ();
32225 int
32226 main ()
32227 {
32228 return dnet_ntoa ();
32229   ;
32230   return 0;
32231 }
32232 _ACEOF
32233 rm -f conftest.$ac_objext conftest$ac_exeext
32234 if { (ac_try="$ac_link"
32235 case "(($ac_try" in
32236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32237   *) ac_try_echo=$ac_try;;
32238 esac
32239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32240   (eval "$ac_link") 2>conftest.er1
32241   ac_status=$?
32242   grep -v '^ *+' conftest.er1 >conftest.err
32243   rm -f conftest.er1
32244   cat conftest.err >&5
32245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246   (exit $ac_status); } && {
32247          test -z "$ac_c_werror_flag" ||
32248          test ! -s conftest.err
32249        } && test -s conftest$ac_exeext &&
32250        $as_test_x conftest$ac_exeext; then
32251   ac_cv_lib_dnet_dnet_ntoa=yes
32252 else
32253   echo "$as_me: failed program was:" >&5
32254 sed 's/^/| /' conftest.$ac_ext >&5
32255
32256         ac_cv_lib_dnet_dnet_ntoa=no
32257 fi
32258
32259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32260       conftest$ac_exeext conftest.$ac_ext
32261 LIBS=$ac_check_lib_save_LIBS
32262 fi
32263 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32264 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32265 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32266   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32267 fi
32268
32269     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32270       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32271 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32272 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32273   echo $ECHO_N "(cached) $ECHO_C" >&6
32274 else
32275   ac_check_lib_save_LIBS=$LIBS
32276 LIBS="-ldnet_stub  $LIBS"
32277 cat >conftest.$ac_ext <<_ACEOF
32278 /* confdefs.h.  */
32279 _ACEOF
32280 cat confdefs.h >>conftest.$ac_ext
32281 cat >>conftest.$ac_ext <<_ACEOF
32282 /* end confdefs.h.  */
32283
32284 /* Override any GCC internal prototype to avoid an error.
32285    Use char because int might match the return type of a GCC
32286    builtin and then its argument prototype would still apply.  */
32287 #ifdef __cplusplus
32288 extern "C"
32289 #endif
32290 char dnet_ntoa ();
32291 int
32292 main ()
32293 {
32294 return dnet_ntoa ();
32295   ;
32296   return 0;
32297 }
32298 _ACEOF
32299 rm -f conftest.$ac_objext conftest$ac_exeext
32300 if { (ac_try="$ac_link"
32301 case "(($ac_try" in
32302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303   *) ac_try_echo=$ac_try;;
32304 esac
32305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306   (eval "$ac_link") 2>conftest.er1
32307   ac_status=$?
32308   grep -v '^ *+' conftest.er1 >conftest.err
32309   rm -f conftest.er1
32310   cat conftest.err >&5
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); } && {
32313          test -z "$ac_c_werror_flag" ||
32314          test ! -s conftest.err
32315        } && test -s conftest$ac_exeext &&
32316        $as_test_x conftest$ac_exeext; then
32317   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32318 else
32319   echo "$as_me: failed program was:" >&5
32320 sed 's/^/| /' conftest.$ac_ext >&5
32321
32322         ac_cv_lib_dnet_stub_dnet_ntoa=no
32323 fi
32324
32325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32326       conftest$ac_exeext conftest.$ac_ext
32327 LIBS=$ac_check_lib_save_LIBS
32328 fi
32329 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32330 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32331 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32332   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32333 fi
32334
32335     fi
32336 fi
32337
32338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32339       conftest$ac_exeext conftest.$ac_ext
32340     LIBS="$ac_xsave_LIBS"
32341
32342     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32343     # to get the SysV transport functions.
32344     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32345     # needs -lnsl.
32346     # The nsl library prevents programs from opening the X display
32347     # on Irix 5.2, according to T.E. Dickey.
32348     # The functions gethostbyname, getservbyname, and inet_addr are
32349     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32350     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32351 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32352 if test "${ac_cv_func_gethostbyname+set}" = set; then
32353   echo $ECHO_N "(cached) $ECHO_C" >&6
32354 else
32355   cat >conftest.$ac_ext <<_ACEOF
32356 /* confdefs.h.  */
32357 _ACEOF
32358 cat confdefs.h >>conftest.$ac_ext
32359 cat >>conftest.$ac_ext <<_ACEOF
32360 /* end confdefs.h.  */
32361 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32363 #define gethostbyname innocuous_gethostbyname
32364
32365 /* System header to define __stub macros and hopefully few prototypes,
32366     which can conflict with char gethostbyname (); below.
32367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32368     <limits.h> exists even on freestanding compilers.  */
32369
32370 #ifdef __STDC__
32371 # include <limits.h>
32372 #else
32373 # include <assert.h>
32374 #endif
32375
32376 #undef gethostbyname
32377
32378 /* Override any GCC internal prototype to avoid an error.
32379    Use char because int might match the return type of a GCC
32380    builtin and then its argument prototype would still apply.  */
32381 #ifdef __cplusplus
32382 extern "C"
32383 #endif
32384 char gethostbyname ();
32385 /* The GNU C library defines this for functions which it implements
32386     to always fail with ENOSYS.  Some functions are actually named
32387     something starting with __ and the normal name is an alias.  */
32388 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32389 choke me
32390 #endif
32391
32392 int
32393 main ()
32394 {
32395 return gethostbyname ();
32396   ;
32397   return 0;
32398 }
32399 _ACEOF
32400 rm -f conftest.$ac_objext conftest$ac_exeext
32401 if { (ac_try="$ac_link"
32402 case "(($ac_try" in
32403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32404   *) ac_try_echo=$ac_try;;
32405 esac
32406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32407   (eval "$ac_link") 2>conftest.er1
32408   ac_status=$?
32409   grep -v '^ *+' conftest.er1 >conftest.err
32410   rm -f conftest.er1
32411   cat conftest.err >&5
32412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413   (exit $ac_status); } && {
32414          test -z "$ac_c_werror_flag" ||
32415          test ! -s conftest.err
32416        } && test -s conftest$ac_exeext &&
32417        $as_test_x conftest$ac_exeext; then
32418   ac_cv_func_gethostbyname=yes
32419 else
32420   echo "$as_me: failed program was:" >&5
32421 sed 's/^/| /' conftest.$ac_ext >&5
32422
32423         ac_cv_func_gethostbyname=no
32424 fi
32425
32426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32427       conftest$ac_exeext conftest.$ac_ext
32428 fi
32429 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32430 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32431
32432     if test $ac_cv_func_gethostbyname = no; then
32433       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32434 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32435 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32436   echo $ECHO_N "(cached) $ECHO_C" >&6
32437 else
32438   ac_check_lib_save_LIBS=$LIBS
32439 LIBS="-lnsl  $LIBS"
32440 cat >conftest.$ac_ext <<_ACEOF
32441 /* confdefs.h.  */
32442 _ACEOF
32443 cat confdefs.h >>conftest.$ac_ext
32444 cat >>conftest.$ac_ext <<_ACEOF
32445 /* end confdefs.h.  */
32446
32447 /* Override any GCC internal prototype to avoid an error.
32448    Use char because int might match the return type of a GCC
32449    builtin and then its argument prototype would still apply.  */
32450 #ifdef __cplusplus
32451 extern "C"
32452 #endif
32453 char gethostbyname ();
32454 int
32455 main ()
32456 {
32457 return gethostbyname ();
32458   ;
32459   return 0;
32460 }
32461 _ACEOF
32462 rm -f conftest.$ac_objext conftest$ac_exeext
32463 if { (ac_try="$ac_link"
32464 case "(($ac_try" in
32465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32466   *) ac_try_echo=$ac_try;;
32467 esac
32468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32469   (eval "$ac_link") 2>conftest.er1
32470   ac_status=$?
32471   grep -v '^ *+' conftest.er1 >conftest.err
32472   rm -f conftest.er1
32473   cat conftest.err >&5
32474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475   (exit $ac_status); } && {
32476          test -z "$ac_c_werror_flag" ||
32477          test ! -s conftest.err
32478        } && test -s conftest$ac_exeext &&
32479        $as_test_x conftest$ac_exeext; then
32480   ac_cv_lib_nsl_gethostbyname=yes
32481 else
32482   echo "$as_me: failed program was:" >&5
32483 sed 's/^/| /' conftest.$ac_ext >&5
32484
32485         ac_cv_lib_nsl_gethostbyname=no
32486 fi
32487
32488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32489       conftest$ac_exeext conftest.$ac_ext
32490 LIBS=$ac_check_lib_save_LIBS
32491 fi
32492 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32493 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32494 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32495   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32496 fi
32497
32498       if test $ac_cv_lib_nsl_gethostbyname = no; then
32499         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32500 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32501 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32502   echo $ECHO_N "(cached) $ECHO_C" >&6
32503 else
32504   ac_check_lib_save_LIBS=$LIBS
32505 LIBS="-lbsd  $LIBS"
32506 cat >conftest.$ac_ext <<_ACEOF
32507 /* confdefs.h.  */
32508 _ACEOF
32509 cat confdefs.h >>conftest.$ac_ext
32510 cat >>conftest.$ac_ext <<_ACEOF
32511 /* end confdefs.h.  */
32512
32513 /* Override any GCC internal prototype to avoid an error.
32514    Use char because int might match the return type of a GCC
32515    builtin and then its argument prototype would still apply.  */
32516 #ifdef __cplusplus
32517 extern "C"
32518 #endif
32519 char gethostbyname ();
32520 int
32521 main ()
32522 {
32523 return gethostbyname ();
32524   ;
32525   return 0;
32526 }
32527 _ACEOF
32528 rm -f conftest.$ac_objext conftest$ac_exeext
32529 if { (ac_try="$ac_link"
32530 case "(($ac_try" in
32531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32532   *) ac_try_echo=$ac_try;;
32533 esac
32534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32535   (eval "$ac_link") 2>conftest.er1
32536   ac_status=$?
32537   grep -v '^ *+' conftest.er1 >conftest.err
32538   rm -f conftest.er1
32539   cat conftest.err >&5
32540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541   (exit $ac_status); } && {
32542          test -z "$ac_c_werror_flag" ||
32543          test ! -s conftest.err
32544        } && test -s conftest$ac_exeext &&
32545        $as_test_x conftest$ac_exeext; then
32546   ac_cv_lib_bsd_gethostbyname=yes
32547 else
32548   echo "$as_me: failed program was:" >&5
32549 sed 's/^/| /' conftest.$ac_ext >&5
32550
32551         ac_cv_lib_bsd_gethostbyname=no
32552 fi
32553
32554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32555       conftest$ac_exeext conftest.$ac_ext
32556 LIBS=$ac_check_lib_save_LIBS
32557 fi
32558 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32559 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32560 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32561   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32562 fi
32563
32564       fi
32565     fi
32566
32567     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32568     # socket/setsockopt and other routines are undefined under SCO ODT
32569     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32570     # on later versions), says Simon Leinen: it contains gethostby*
32571     # variants that don't use the name server (or something).  -lsocket
32572     # must be given before -lnsl if both are needed.  We assume that
32573     # if connect needs -lnsl, so does gethostbyname.
32574     { echo "$as_me:$LINENO: checking for connect" >&5
32575 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32576 if test "${ac_cv_func_connect+set}" = set; then
32577   echo $ECHO_N "(cached) $ECHO_C" >&6
32578 else
32579   cat >conftest.$ac_ext <<_ACEOF
32580 /* confdefs.h.  */
32581 _ACEOF
32582 cat confdefs.h >>conftest.$ac_ext
32583 cat >>conftest.$ac_ext <<_ACEOF
32584 /* end confdefs.h.  */
32585 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32587 #define connect innocuous_connect
32588
32589 /* System header to define __stub macros and hopefully few prototypes,
32590     which can conflict with char connect (); below.
32591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32592     <limits.h> exists even on freestanding compilers.  */
32593
32594 #ifdef __STDC__
32595 # include <limits.h>
32596 #else
32597 # include <assert.h>
32598 #endif
32599
32600 #undef connect
32601
32602 /* Override any GCC internal prototype to avoid an error.
32603    Use char because int might match the return type of a GCC
32604    builtin and then its argument prototype would still apply.  */
32605 #ifdef __cplusplus
32606 extern "C"
32607 #endif
32608 char connect ();
32609 /* The GNU C library defines this for functions which it implements
32610     to always fail with ENOSYS.  Some functions are actually named
32611     something starting with __ and the normal name is an alias.  */
32612 #if defined __stub_connect || defined __stub___connect
32613 choke me
32614 #endif
32615
32616 int
32617 main ()
32618 {
32619 return connect ();
32620   ;
32621   return 0;
32622 }
32623 _ACEOF
32624 rm -f conftest.$ac_objext conftest$ac_exeext
32625 if { (ac_try="$ac_link"
32626 case "(($ac_try" in
32627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32628   *) ac_try_echo=$ac_try;;
32629 esac
32630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32631   (eval "$ac_link") 2>conftest.er1
32632   ac_status=$?
32633   grep -v '^ *+' conftest.er1 >conftest.err
32634   rm -f conftest.er1
32635   cat conftest.err >&5
32636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637   (exit $ac_status); } && {
32638          test -z "$ac_c_werror_flag" ||
32639          test ! -s conftest.err
32640        } && test -s conftest$ac_exeext &&
32641        $as_test_x conftest$ac_exeext; then
32642   ac_cv_func_connect=yes
32643 else
32644   echo "$as_me: failed program was:" >&5
32645 sed 's/^/| /' conftest.$ac_ext >&5
32646
32647         ac_cv_func_connect=no
32648 fi
32649
32650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32651       conftest$ac_exeext conftest.$ac_ext
32652 fi
32653 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32654 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32655
32656     if test $ac_cv_func_connect = no; then
32657       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32658 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32659 if test "${ac_cv_lib_socket_connect+set}" = set; then
32660   echo $ECHO_N "(cached) $ECHO_C" >&6
32661 else
32662   ac_check_lib_save_LIBS=$LIBS
32663 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32664 cat >conftest.$ac_ext <<_ACEOF
32665 /* confdefs.h.  */
32666 _ACEOF
32667 cat confdefs.h >>conftest.$ac_ext
32668 cat >>conftest.$ac_ext <<_ACEOF
32669 /* end confdefs.h.  */
32670
32671 /* Override any GCC internal prototype to avoid an error.
32672    Use char because int might match the return type of a GCC
32673    builtin and then its argument prototype would still apply.  */
32674 #ifdef __cplusplus
32675 extern "C"
32676 #endif
32677 char connect ();
32678 int
32679 main ()
32680 {
32681 return connect ();
32682   ;
32683   return 0;
32684 }
32685 _ACEOF
32686 rm -f conftest.$ac_objext conftest$ac_exeext
32687 if { (ac_try="$ac_link"
32688 case "(($ac_try" in
32689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32690   *) ac_try_echo=$ac_try;;
32691 esac
32692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32693   (eval "$ac_link") 2>conftest.er1
32694   ac_status=$?
32695   grep -v '^ *+' conftest.er1 >conftest.err
32696   rm -f conftest.er1
32697   cat conftest.err >&5
32698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699   (exit $ac_status); } && {
32700          test -z "$ac_c_werror_flag" ||
32701          test ! -s conftest.err
32702        } && test -s conftest$ac_exeext &&
32703        $as_test_x conftest$ac_exeext; then
32704   ac_cv_lib_socket_connect=yes
32705 else
32706   echo "$as_me: failed program was:" >&5
32707 sed 's/^/| /' conftest.$ac_ext >&5
32708
32709         ac_cv_lib_socket_connect=no
32710 fi
32711
32712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32713       conftest$ac_exeext conftest.$ac_ext
32714 LIBS=$ac_check_lib_save_LIBS
32715 fi
32716 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32717 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32718 if test $ac_cv_lib_socket_connect = yes; then
32719   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32720 fi
32721
32722     fi
32723
32724     # Guillermo Gomez says -lposix is necessary on A/UX.
32725     { echo "$as_me:$LINENO: checking for remove" >&5
32726 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32727 if test "${ac_cv_func_remove+set}" = set; then
32728   echo $ECHO_N "(cached) $ECHO_C" >&6
32729 else
32730   cat >conftest.$ac_ext <<_ACEOF
32731 /* confdefs.h.  */
32732 _ACEOF
32733 cat confdefs.h >>conftest.$ac_ext
32734 cat >>conftest.$ac_ext <<_ACEOF
32735 /* end confdefs.h.  */
32736 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32738 #define remove innocuous_remove
32739
32740 /* System header to define __stub macros and hopefully few prototypes,
32741     which can conflict with char remove (); below.
32742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32743     <limits.h> exists even on freestanding compilers.  */
32744
32745 #ifdef __STDC__
32746 # include <limits.h>
32747 #else
32748 # include <assert.h>
32749 #endif
32750
32751 #undef remove
32752
32753 /* Override any GCC internal prototype to avoid an error.
32754    Use char because int might match the return type of a GCC
32755    builtin and then its argument prototype would still apply.  */
32756 #ifdef __cplusplus
32757 extern "C"
32758 #endif
32759 char remove ();
32760 /* The GNU C library defines this for functions which it implements
32761     to always fail with ENOSYS.  Some functions are actually named
32762     something starting with __ and the normal name is an alias.  */
32763 #if defined __stub_remove || defined __stub___remove
32764 choke me
32765 #endif
32766
32767 int
32768 main ()
32769 {
32770 return remove ();
32771   ;
32772   return 0;
32773 }
32774 _ACEOF
32775 rm -f conftest.$ac_objext conftest$ac_exeext
32776 if { (ac_try="$ac_link"
32777 case "(($ac_try" in
32778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779   *) ac_try_echo=$ac_try;;
32780 esac
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782   (eval "$ac_link") 2>conftest.er1
32783   ac_status=$?
32784   grep -v '^ *+' conftest.er1 >conftest.err
32785   rm -f conftest.er1
32786   cat conftest.err >&5
32787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788   (exit $ac_status); } && {
32789          test -z "$ac_c_werror_flag" ||
32790          test ! -s conftest.err
32791        } && test -s conftest$ac_exeext &&
32792        $as_test_x conftest$ac_exeext; then
32793   ac_cv_func_remove=yes
32794 else
32795   echo "$as_me: failed program was:" >&5
32796 sed 's/^/| /' conftest.$ac_ext >&5
32797
32798         ac_cv_func_remove=no
32799 fi
32800
32801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32802       conftest$ac_exeext conftest.$ac_ext
32803 fi
32804 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32805 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32806
32807     if test $ac_cv_func_remove = no; then
32808       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32809 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32810 if test "${ac_cv_lib_posix_remove+set}" = set; then
32811   echo $ECHO_N "(cached) $ECHO_C" >&6
32812 else
32813   ac_check_lib_save_LIBS=$LIBS
32814 LIBS="-lposix  $LIBS"
32815 cat >conftest.$ac_ext <<_ACEOF
32816 /* confdefs.h.  */
32817 _ACEOF
32818 cat confdefs.h >>conftest.$ac_ext
32819 cat >>conftest.$ac_ext <<_ACEOF
32820 /* end confdefs.h.  */
32821
32822 /* Override any GCC internal prototype to avoid an error.
32823    Use char because int might match the return type of a GCC
32824    builtin and then its argument prototype would still apply.  */
32825 #ifdef __cplusplus
32826 extern "C"
32827 #endif
32828 char remove ();
32829 int
32830 main ()
32831 {
32832 return remove ();
32833   ;
32834   return 0;
32835 }
32836 _ACEOF
32837 rm -f conftest.$ac_objext conftest$ac_exeext
32838 if { (ac_try="$ac_link"
32839 case "(($ac_try" in
32840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32841   *) ac_try_echo=$ac_try;;
32842 esac
32843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32844   (eval "$ac_link") 2>conftest.er1
32845   ac_status=$?
32846   grep -v '^ *+' conftest.er1 >conftest.err
32847   rm -f conftest.er1
32848   cat conftest.err >&5
32849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850   (exit $ac_status); } && {
32851          test -z "$ac_c_werror_flag" ||
32852          test ! -s conftest.err
32853        } && test -s conftest$ac_exeext &&
32854        $as_test_x conftest$ac_exeext; then
32855   ac_cv_lib_posix_remove=yes
32856 else
32857   echo "$as_me: failed program was:" >&5
32858 sed 's/^/| /' conftest.$ac_ext >&5
32859
32860         ac_cv_lib_posix_remove=no
32861 fi
32862
32863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32864       conftest$ac_exeext conftest.$ac_ext
32865 LIBS=$ac_check_lib_save_LIBS
32866 fi
32867 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32868 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32869 if test $ac_cv_lib_posix_remove = yes; then
32870   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32871 fi
32872
32873     fi
32874
32875     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32876     { echo "$as_me:$LINENO: checking for shmat" >&5
32877 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32878 if test "${ac_cv_func_shmat+set}" = set; then
32879   echo $ECHO_N "(cached) $ECHO_C" >&6
32880 else
32881   cat >conftest.$ac_ext <<_ACEOF
32882 /* confdefs.h.  */
32883 _ACEOF
32884 cat confdefs.h >>conftest.$ac_ext
32885 cat >>conftest.$ac_ext <<_ACEOF
32886 /* end confdefs.h.  */
32887 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32889 #define shmat innocuous_shmat
32890
32891 /* System header to define __stub macros and hopefully few prototypes,
32892     which can conflict with char shmat (); below.
32893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32894     <limits.h> exists even on freestanding compilers.  */
32895
32896 #ifdef __STDC__
32897 # include <limits.h>
32898 #else
32899 # include <assert.h>
32900 #endif
32901
32902 #undef shmat
32903
32904 /* Override any GCC internal prototype to avoid an error.
32905    Use char because int might match the return type of a GCC
32906    builtin and then its argument prototype would still apply.  */
32907 #ifdef __cplusplus
32908 extern "C"
32909 #endif
32910 char shmat ();
32911 /* The GNU C library defines this for functions which it implements
32912     to always fail with ENOSYS.  Some functions are actually named
32913     something starting with __ and the normal name is an alias.  */
32914 #if defined __stub_shmat || defined __stub___shmat
32915 choke me
32916 #endif
32917
32918 int
32919 main ()
32920 {
32921 return shmat ();
32922   ;
32923   return 0;
32924 }
32925 _ACEOF
32926 rm -f conftest.$ac_objext conftest$ac_exeext
32927 if { (ac_try="$ac_link"
32928 case "(($ac_try" in
32929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32930   *) ac_try_echo=$ac_try;;
32931 esac
32932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933   (eval "$ac_link") 2>conftest.er1
32934   ac_status=$?
32935   grep -v '^ *+' conftest.er1 >conftest.err
32936   rm -f conftest.er1
32937   cat conftest.err >&5
32938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939   (exit $ac_status); } && {
32940          test -z "$ac_c_werror_flag" ||
32941          test ! -s conftest.err
32942        } && test -s conftest$ac_exeext &&
32943        $as_test_x conftest$ac_exeext; then
32944   ac_cv_func_shmat=yes
32945 else
32946   echo "$as_me: failed program was:" >&5
32947 sed 's/^/| /' conftest.$ac_ext >&5
32948
32949         ac_cv_func_shmat=no
32950 fi
32951
32952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32953       conftest$ac_exeext conftest.$ac_ext
32954 fi
32955 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32956 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
32957
32958     if test $ac_cv_func_shmat = no; then
32959       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32960 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
32961 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32962   echo $ECHO_N "(cached) $ECHO_C" >&6
32963 else
32964   ac_check_lib_save_LIBS=$LIBS
32965 LIBS="-lipc  $LIBS"
32966 cat >conftest.$ac_ext <<_ACEOF
32967 /* confdefs.h.  */
32968 _ACEOF
32969 cat confdefs.h >>conftest.$ac_ext
32970 cat >>conftest.$ac_ext <<_ACEOF
32971 /* end confdefs.h.  */
32972
32973 /* Override any GCC internal prototype to avoid an error.
32974    Use char because int might match the return type of a GCC
32975    builtin and then its argument prototype would still apply.  */
32976 #ifdef __cplusplus
32977 extern "C"
32978 #endif
32979 char shmat ();
32980 int
32981 main ()
32982 {
32983 return shmat ();
32984   ;
32985   return 0;
32986 }
32987 _ACEOF
32988 rm -f conftest.$ac_objext conftest$ac_exeext
32989 if { (ac_try="$ac_link"
32990 case "(($ac_try" in
32991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32992   *) ac_try_echo=$ac_try;;
32993 esac
32994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32995   (eval "$ac_link") 2>conftest.er1
32996   ac_status=$?
32997   grep -v '^ *+' conftest.er1 >conftest.err
32998   rm -f conftest.er1
32999   cat conftest.err >&5
33000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001   (exit $ac_status); } && {
33002          test -z "$ac_c_werror_flag" ||
33003          test ! -s conftest.err
33004        } && test -s conftest$ac_exeext &&
33005        $as_test_x conftest$ac_exeext; then
33006   ac_cv_lib_ipc_shmat=yes
33007 else
33008   echo "$as_me: failed program was:" >&5
33009 sed 's/^/| /' conftest.$ac_ext >&5
33010
33011         ac_cv_lib_ipc_shmat=no
33012 fi
33013
33014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33015       conftest$ac_exeext conftest.$ac_ext
33016 LIBS=$ac_check_lib_save_LIBS
33017 fi
33018 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33019 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
33020 if test $ac_cv_lib_ipc_shmat = yes; then
33021   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33022 fi
33023
33024     fi
33025   fi
33026
33027   # Check for libraries that X11R6 Xt/Xaw programs need.
33028   ac_save_LDFLAGS=$LDFLAGS
33029   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33030   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33031   # check for ICE first), but we must link in the order -lSM -lICE or
33032   # we get undefined symbols.  So assume we have SM if we have ICE.
33033   # These have to be linked with before -lX11, unlike the other
33034   # libraries we check for below, so use a different variable.
33035   # John Interrante, Karl Berry
33036   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33037 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
33038 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33039   echo $ECHO_N "(cached) $ECHO_C" >&6
33040 else
33041   ac_check_lib_save_LIBS=$LIBS
33042 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33043 cat >conftest.$ac_ext <<_ACEOF
33044 /* confdefs.h.  */
33045 _ACEOF
33046 cat confdefs.h >>conftest.$ac_ext
33047 cat >>conftest.$ac_ext <<_ACEOF
33048 /* end confdefs.h.  */
33049
33050 /* Override any GCC internal prototype to avoid an error.
33051    Use char because int might match the return type of a GCC
33052    builtin and then its argument prototype would still apply.  */
33053 #ifdef __cplusplus
33054 extern "C"
33055 #endif
33056 char IceConnectionNumber ();
33057 int
33058 main ()
33059 {
33060 return IceConnectionNumber ();
33061   ;
33062   return 0;
33063 }
33064 _ACEOF
33065 rm -f conftest.$ac_objext conftest$ac_exeext
33066 if { (ac_try="$ac_link"
33067 case "(($ac_try" in
33068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33069   *) ac_try_echo=$ac_try;;
33070 esac
33071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33072   (eval "$ac_link") 2>conftest.er1
33073   ac_status=$?
33074   grep -v '^ *+' conftest.er1 >conftest.err
33075   rm -f conftest.er1
33076   cat conftest.err >&5
33077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078   (exit $ac_status); } && {
33079          test -z "$ac_c_werror_flag" ||
33080          test ! -s conftest.err
33081        } && test -s conftest$ac_exeext &&
33082        $as_test_x conftest$ac_exeext; then
33083   ac_cv_lib_ICE_IceConnectionNumber=yes
33084 else
33085   echo "$as_me: failed program was:" >&5
33086 sed 's/^/| /' conftest.$ac_ext >&5
33087
33088         ac_cv_lib_ICE_IceConnectionNumber=no
33089 fi
33090
33091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33092       conftest$ac_exeext conftest.$ac_ext
33093 LIBS=$ac_check_lib_save_LIBS
33094 fi
33095 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33096 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33097 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33098   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33099 fi
33100
33101   LDFLAGS=$ac_save_LDFLAGS
33102
33103 fi
33104
33105
33106         if test "$no_x" = "yes"; then
33107           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33108 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33109    { (exit 1); exit 1; }; }
33110         fi
33111
33112                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33113         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33114         AFMINSTALL=afminstall
33115         COMPILED_X_PROGRAM=0
33116
33117     fi
33118
33119     if test "$wxUSE_X11" = 1; then
33120         if test "$wxUSE_NANOX" = "yes"; then
33121             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33122 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33123             if test "x$MICROWIN" = x ; then
33124                 { echo "$as_me:$LINENO: result: not found" >&5
33125 echo "${ECHO_T}not found" >&6; }
33126                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33127 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33128    { (exit 1); exit 1; }; }
33129             else
33130                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33131 echo "${ECHO_T}$MICROWIN" >&6; }
33132                 cat >>confdefs.h <<\_ACEOF
33133 #define wxUSE_NANOX 1
33134 _ACEOF
33135
33136             fi
33137         fi
33138
33139         if test "$wxUSE_UNICODE" = "yes"; then
33140
33141
33142 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33143         if test -n "$ac_tool_prefix"; then
33144   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33145 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33148 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33149   echo $ECHO_N "(cached) $ECHO_C" >&6
33150 else
33151   case $PKG_CONFIG in
33152   [\\/]* | ?:[\\/]*)
33153   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33154   ;;
33155   *)
33156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33157 for as_dir in $PATH
33158 do
33159   IFS=$as_save_IFS
33160   test -z "$as_dir" && as_dir=.
33161   for ac_exec_ext in '' $ac_executable_extensions; do
33162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33163     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33165     break 2
33166   fi
33167 done
33168 done
33169 IFS=$as_save_IFS
33170
33171   ;;
33172 esac
33173 fi
33174 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33175 if test -n "$PKG_CONFIG"; then
33176   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33177 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33178 else
33179   { echo "$as_me:$LINENO: result: no" >&5
33180 echo "${ECHO_T}no" >&6; }
33181 fi
33182
33183
33184 fi
33185 if test -z "$ac_cv_path_PKG_CONFIG"; then
33186   ac_pt_PKG_CONFIG=$PKG_CONFIG
33187   # Extract the first word of "pkg-config", so it can be a program name with args.
33188 set dummy pkg-config; ac_word=$2
33189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33191 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33192   echo $ECHO_N "(cached) $ECHO_C" >&6
33193 else
33194   case $ac_pt_PKG_CONFIG in
33195   [\\/]* | ?:[\\/]*)
33196   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33197   ;;
33198   *)
33199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33200 for as_dir in $PATH
33201 do
33202   IFS=$as_save_IFS
33203   test -z "$as_dir" && as_dir=.
33204   for ac_exec_ext in '' $ac_executable_extensions; do
33205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33206     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33208     break 2
33209   fi
33210 done
33211 done
33212 IFS=$as_save_IFS
33213
33214   ;;
33215 esac
33216 fi
33217 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33218 if test -n "$ac_pt_PKG_CONFIG"; then
33219   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33220 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33221 else
33222   { echo "$as_me:$LINENO: result: no" >&5
33223 echo "${ECHO_T}no" >&6; }
33224 fi
33225
33226   if test "x$ac_pt_PKG_CONFIG" = x; then
33227     PKG_CONFIG=""
33228   else
33229     case $cross_compiling:$ac_tool_warned in
33230 yes:)
33231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33232 whose name does not start with the host triplet.  If you think this
33233 configuration is useful to you, please write to autoconf@gnu.org." >&5
33234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33235 whose name does not start with the host triplet.  If you think this
33236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33237 ac_tool_warned=yes ;;
33238 esac
33239     PKG_CONFIG=$ac_pt_PKG_CONFIG
33240   fi
33241 else
33242   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33243 fi
33244
33245 fi
33246 if test -n "$PKG_CONFIG"; then
33247         _pkg_min_version=0.9.0
33248         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33249 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33250         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33251                 { echo "$as_me:$LINENO: result: yes" >&5
33252 echo "${ECHO_T}yes" >&6; }
33253         else
33254                 { echo "$as_me:$LINENO: result: no" >&5
33255 echo "${ECHO_T}no" >&6; }
33256                 PKG_CONFIG=""
33257         fi
33258
33259 fi
33260
33261
33262 pkg_failed=no
33263 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33264 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33265
33266 if test -n "$PKG_CONFIG"; then
33267     if test -n "$PANGOX_CFLAGS"; then
33268         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33269     else
33270         if test -n "$PKG_CONFIG" && \
33271     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33272   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33273   ac_status=$?
33274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33275   (exit $ac_status); }; then
33276   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33277 else
33278   pkg_failed=yes
33279 fi
33280     fi
33281 else
33282         pkg_failed=untried
33283 fi
33284 if test -n "$PKG_CONFIG"; then
33285     if test -n "$PANGOX_LIBS"; then
33286         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33287     else
33288         if test -n "$PKG_CONFIG" && \
33289     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33290   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33291   ac_status=$?
33292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293   (exit $ac_status); }; then
33294   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33295 else
33296   pkg_failed=yes
33297 fi
33298     fi
33299 else
33300         pkg_failed=untried
33301 fi
33302
33303
33304
33305 if test $pkg_failed = yes; then
33306
33307 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33308         _pkg_short_errors_supported=yes
33309 else
33310         _pkg_short_errors_supported=no
33311 fi
33312         if test $_pkg_short_errors_supported = yes; then
33313                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33314         else
33315                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33316         fi
33317         # Put the nasty error message in config.log where it belongs
33318         echo "$PANGOX_PKG_ERRORS" >&5
33319
33320
33321                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33322 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33323    { (exit 1); exit 1; }; }
33324
33325
33326 elif test $pkg_failed = untried; then
33327
33328                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33329 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33330    { (exit 1); exit 1; }; }
33331
33332
33333 else
33334         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33335         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33336         { echo "$as_me:$LINENO: result: yes" >&5
33337 echo "${ECHO_T}yes" >&6; }
33338
33339                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33340                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33341                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33342
33343 fi
33344
33345 pkg_failed=no
33346 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33347 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33348
33349 if test -n "$PKG_CONFIG"; then
33350     if test -n "$PANGOFT2_CFLAGS"; then
33351         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33352     else
33353         if test -n "$PKG_CONFIG" && \
33354     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33355   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33356   ac_status=$?
33357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358   (exit $ac_status); }; then
33359   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33360 else
33361   pkg_failed=yes
33362 fi
33363     fi
33364 else
33365         pkg_failed=untried
33366 fi
33367 if test -n "$PKG_CONFIG"; then
33368     if test -n "$PANGOFT2_LIBS"; then
33369         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33370     else
33371         if test -n "$PKG_CONFIG" && \
33372     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33373   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33374   ac_status=$?
33375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376   (exit $ac_status); }; then
33377   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33378 else
33379   pkg_failed=yes
33380 fi
33381     fi
33382 else
33383         pkg_failed=untried
33384 fi
33385
33386
33387
33388 if test $pkg_failed = yes; then
33389
33390 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33391         _pkg_short_errors_supported=yes
33392 else
33393         _pkg_short_errors_supported=no
33394 fi
33395         if test $_pkg_short_errors_supported = yes; then
33396                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33397         else
33398                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33399         fi
33400         # Put the nasty error message in config.log where it belongs
33401         echo "$PANGOFT2_PKG_ERRORS" >&5
33402
33403
33404                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33405 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33406                     wxUSE_PRINTING_ARCHITECTURE="no"
33407
33408
33409 elif test $pkg_failed = untried; then
33410
33411                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33412 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33413                     wxUSE_PRINTING_ARCHITECTURE="no"
33414
33415
33416 else
33417         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33418         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33419         { echo "$as_me:$LINENO: result: yes" >&5
33420 echo "${ECHO_T}yes" >&6; }
33421
33422                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33423                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33424                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33425
33426 fi
33427
33428 pkg_failed=no
33429 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33430 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33431
33432 if test -n "$PKG_CONFIG"; then
33433     if test -n "$PANGOXFT_CFLAGS"; then
33434         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33435     else
33436         if test -n "$PKG_CONFIG" && \
33437     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33438   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33439   ac_status=$?
33440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441   (exit $ac_status); }; then
33442   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33443 else
33444   pkg_failed=yes
33445 fi
33446     fi
33447 else
33448         pkg_failed=untried
33449 fi
33450 if test -n "$PKG_CONFIG"; then
33451     if test -n "$PANGOXFT_LIBS"; then
33452         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33453     else
33454         if test -n "$PKG_CONFIG" && \
33455     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33456   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33457   ac_status=$?
33458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459   (exit $ac_status); }; then
33460   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33461 else
33462   pkg_failed=yes
33463 fi
33464     fi
33465 else
33466         pkg_failed=untried
33467 fi
33468
33469
33470
33471 if test $pkg_failed = yes; then
33472
33473 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33474         _pkg_short_errors_supported=yes
33475 else
33476         _pkg_short_errors_supported=no
33477 fi
33478         if test $_pkg_short_errors_supported = yes; then
33479                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33480         else
33481                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33482         fi
33483         # Put the nasty error message in config.log where it belongs
33484         echo "$PANGOXFT_PKG_ERRORS" >&5
33485
33486
33487                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33488 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33489
33490
33491 elif test $pkg_failed = untried; then
33492
33493                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33494 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33495
33496
33497 else
33498         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33499         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33500         { echo "$as_me:$LINENO: result: yes" >&5
33501 echo "${ECHO_T}yes" >&6; }
33502
33503                     cat >>confdefs.h <<\_ACEOF
33504 #define HAVE_PANGO_XFT 1
33505 _ACEOF
33506
33507                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33508                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33509                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33510
33511 fi
33512             save_LIBS="$LIBS"
33513             LIBS="$LIBS $PANGOX_LIBS"
33514
33515 for ac_func in pango_font_family_is_monospace
33516 do
33517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33521   echo $ECHO_N "(cached) $ECHO_C" >&6
33522 else
33523   cat >conftest.$ac_ext <<_ACEOF
33524 /* confdefs.h.  */
33525 _ACEOF
33526 cat confdefs.h >>conftest.$ac_ext
33527 cat >>conftest.$ac_ext <<_ACEOF
33528 /* end confdefs.h.  */
33529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33531 #define $ac_func innocuous_$ac_func
33532
33533 /* System header to define __stub macros and hopefully few prototypes,
33534     which can conflict with char $ac_func (); below.
33535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33536     <limits.h> exists even on freestanding compilers.  */
33537
33538 #ifdef __STDC__
33539 # include <limits.h>
33540 #else
33541 # include <assert.h>
33542 #endif
33543
33544 #undef $ac_func
33545
33546 /* Override any GCC internal prototype to avoid an error.
33547    Use char because int might match the return type of a GCC
33548    builtin and then its argument prototype would still apply.  */
33549 #ifdef __cplusplus
33550 extern "C"
33551 #endif
33552 char $ac_func ();
33553 /* The GNU C library defines this for functions which it implements
33554     to always fail with ENOSYS.  Some functions are actually named
33555     something starting with __ and the normal name is an alias.  */
33556 #if defined __stub_$ac_func || defined __stub___$ac_func
33557 choke me
33558 #endif
33559
33560 int
33561 main ()
33562 {
33563 return $ac_func ();
33564   ;
33565   return 0;
33566 }
33567 _ACEOF
33568 rm -f conftest.$ac_objext conftest$ac_exeext
33569 if { (ac_try="$ac_link"
33570 case "(($ac_try" in
33571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33572   *) ac_try_echo=$ac_try;;
33573 esac
33574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33575   (eval "$ac_link") 2>conftest.er1
33576   ac_status=$?
33577   grep -v '^ *+' conftest.er1 >conftest.err
33578   rm -f conftest.er1
33579   cat conftest.err >&5
33580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581   (exit $ac_status); } && {
33582          test -z "$ac_c_werror_flag" ||
33583          test ! -s conftest.err
33584        } && test -s conftest$ac_exeext &&
33585        $as_test_x conftest$ac_exeext; then
33586   eval "$as_ac_var=yes"
33587 else
33588   echo "$as_me: failed program was:" >&5
33589 sed 's/^/| /' conftest.$ac_ext >&5
33590
33591         eval "$as_ac_var=no"
33592 fi
33593
33594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33595       conftest$ac_exeext conftest.$ac_ext
33596 fi
33597 ac_res=`eval echo '${'$as_ac_var'}'`
33598                { echo "$as_me:$LINENO: result: $ac_res" >&5
33599 echo "${ECHO_T}$ac_res" >&6; }
33600 if test `eval echo '${'$as_ac_var'}'` = yes; then
33601   cat >>confdefs.h <<_ACEOF
33602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33603 _ACEOF
33604
33605 fi
33606 done
33607
33608             LIBS="$save_LIBS"
33609         fi
33610
33611         wxUSE_UNIVERSAL="yes"
33612
33613         if test "$wxUSE_NANOX" = "yes"; then
33614             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33615             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"
33616             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33617         else
33618             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33619         fi
33620
33621         TOOLKIT=X11
33622         GUIDIST=X11_DIST
33623     fi
33624
33625     if test "$wxUSE_MOTIF" = 1; then
33626         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33627 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33628
33629 ac_find_includes=
33630 for ac_dir in $SEARCH_INCLUDE /usr/include
33631   do
33632     if test -f "$ac_dir/Xm/Xm.h"; then
33633       ac_find_includes=$ac_dir
33634       break
33635     fi
33636   done
33637
33638         if test "$ac_find_includes" != "" ; then
33639             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33640 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33641
33642     if test "x$ac_find_includes" = "x/usr/include"; then
33643     ac_path_to_include=""
33644   else
33645     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33646     result=$?
33647     if test $result = 0; then
33648       ac_path_to_include=""
33649     else
33650       ac_path_to_include=" -I$ac_find_includes"
33651     fi
33652   fi
33653
33654             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33655         else
33656             save_CFLAGS=$CFLAGS
33657             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33658
33659             cat >conftest.$ac_ext <<_ACEOF
33660 /* confdefs.h.  */
33661 _ACEOF
33662 cat confdefs.h >>conftest.$ac_ext
33663 cat >>conftest.$ac_ext <<_ACEOF
33664 /* end confdefs.h.  */
33665
33666                     #include <Xm/Xm.h>
33667
33668 int
33669 main ()
33670 {
33671
33672                     int version;
33673                     version = xmUseVersion;
33674
33675   ;
33676   return 0;
33677 }
33678 _ACEOF
33679 rm -f conftest.$ac_objext
33680 if { (ac_try="$ac_compile"
33681 case "(($ac_try" in
33682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33683   *) ac_try_echo=$ac_try;;
33684 esac
33685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33686   (eval "$ac_compile") 2>conftest.er1
33687   ac_status=$?
33688   grep -v '^ *+' conftest.er1 >conftest.err
33689   rm -f conftest.er1
33690   cat conftest.err >&5
33691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692   (exit $ac_status); } && {
33693          test -z "$ac_c_werror_flag" ||
33694          test ! -s conftest.err
33695        } && test -s conftest.$ac_objext; then
33696
33697                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33698 echo "${ECHO_T}found in default search path" >&6; }
33699                     COMPILED_X_PROGRAM=1
33700
33701 else
33702   echo "$as_me: failed program was:" >&5
33703 sed 's/^/| /' conftest.$ac_ext >&5
33704
33705
33706                     { echo "$as_me:$LINENO: result: no" >&5
33707 echo "${ECHO_T}no" >&6; }
33708                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33709 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33710    { (exit 1); exit 1; }; }
33711
33712
33713 fi
33714
33715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33716
33717             CFLAGS=$save_CFLAGS
33718         fi
33719
33720
33721         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33722 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33723
33724   ac_find_libraries=
33725   for ac_dir in $SEARCH_LIB
33726   do
33727     for ac_extension in a so sl dylib dll.a; do
33728       if test -f "$ac_dir/libXm.$ac_extension"; then
33729         ac_find_libraries=$ac_dir
33730         break 2
33731       fi
33732     done
33733   done
33734
33735
33736         if test "x$ac_find_libraries" != "x" ; then
33737             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33738 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33739
33740
33741     if test "$ac_find_libraries" = "default location"; then
33742     ac_path_to_link=""
33743   else
33744     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33745     result=$?
33746     if test $result = 0; then
33747       ac_path_to_link=""
33748     else
33749       ac_path_to_link=" -L$ac_find_libraries"
33750     fi
33751   fi
33752
33753             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33754         else
33755                                                 save_CFLAGS=$CFLAGS
33756             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33757             save_LIBS="$LIBS"
33758             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33759
33760             cat >conftest.$ac_ext <<_ACEOF
33761 /* confdefs.h.  */
33762 _ACEOF
33763 cat confdefs.h >>conftest.$ac_ext
33764 cat >>conftest.$ac_ext <<_ACEOF
33765 /* end confdefs.h.  */
33766
33767                     #include <Xm/Xm.h>
33768
33769 int
33770 main ()
33771 {
33772
33773                     int version;
33774                     version = xmUseVersion;
33775
33776   ;
33777   return 0;
33778 }
33779 _ACEOF
33780 rm -f conftest.$ac_objext conftest$ac_exeext
33781 if { (ac_try="$ac_link"
33782 case "(($ac_try" in
33783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784   *) ac_try_echo=$ac_try;;
33785 esac
33786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33787   (eval "$ac_link") 2>conftest.er1
33788   ac_status=$?
33789   grep -v '^ *+' conftest.er1 >conftest.err
33790   rm -f conftest.er1
33791   cat conftest.err >&5
33792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33793   (exit $ac_status); } && {
33794          test -z "$ac_c_werror_flag" ||
33795          test ! -s conftest.err
33796        } && test -s conftest$ac_exeext &&
33797        $as_test_x conftest$ac_exeext; then
33798
33799                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33800 echo "${ECHO_T}found in default search path" >&6; }
33801                     COMPILED_X_PROGRAM=1
33802
33803 else
33804   echo "$as_me: failed program was:" >&5
33805 sed 's/^/| /' conftest.$ac_ext >&5
33806
33807
33808                     { echo "$as_me:$LINENO: result: no" >&5
33809 echo "${ECHO_T}no" >&6; }
33810                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33811 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33812    { (exit 1); exit 1; }; }
33813
33814
33815 fi
33816
33817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33818       conftest$ac_exeext conftest.$ac_ext
33819
33820             CFLAGS=$save_CFLAGS
33821             LIBS="$save_LIBS"
33822         fi
33823
33824         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33825 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33826         libp_link=""
33827         libsm_ice_link=""
33828         libs_found=0
33829         for libp in "" " -lXp"; do
33830             if test "$libs_found" = 0; then
33831                 for libsm_ice in "" " -lSM -lICE"; do
33832                     if test "$libs_found" = 0; then
33833                         save_LIBS="$LIBS"
33834                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33835                         save_CFLAGS=$CFLAGS
33836                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33837
33838                         cat >conftest.$ac_ext <<_ACEOF
33839 /* confdefs.h.  */
33840 _ACEOF
33841 cat confdefs.h >>conftest.$ac_ext
33842 cat >>conftest.$ac_ext <<_ACEOF
33843 /* end confdefs.h.  */
33844
33845                                 #include <Xm/Xm.h>
33846                                 #include <Xm/List.h>
33847
33848 int
33849 main ()
33850 {
33851
33852                                 XmString string = NULL;
33853                                 Widget w = NULL;
33854                                 int position = 0;
33855                                 XmListAddItem(w, string, position);
33856
33857   ;
33858   return 0;
33859 }
33860 _ACEOF
33861 rm -f conftest.$ac_objext conftest$ac_exeext
33862 if { (ac_try="$ac_link"
33863 case "(($ac_try" in
33864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33865   *) ac_try_echo=$ac_try;;
33866 esac
33867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33868   (eval "$ac_link") 2>conftest.er1
33869   ac_status=$?
33870   grep -v '^ *+' conftest.er1 >conftest.err
33871   rm -f conftest.er1
33872   cat conftest.err >&5
33873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874   (exit $ac_status); } && {
33875          test -z "$ac_c_werror_flag" ||
33876          test ! -s conftest.err
33877        } && test -s conftest$ac_exeext &&
33878        $as_test_x conftest$ac_exeext; then
33879
33880                                 libp_link="$libp"
33881                                 libsm_ice_link="$libsm_ice"
33882                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33883 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33884                                 libs_found=1
33885
33886 else
33887   echo "$as_me: failed program was:" >&5
33888 sed 's/^/| /' conftest.$ac_ext >&5
33889
33890
33891
33892 fi
33893
33894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33895       conftest$ac_exeext conftest.$ac_ext
33896
33897                         LIBS="$save_LIBS"
33898                         CFLAGS=$save_CFLAGS
33899                     fi
33900                 done
33901             fi
33902         done
33903
33904         if test "$libs_found" = 0; then
33905             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33906 echo "${ECHO_T}can't find the right libraries" >&6; }
33907             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33908 echo "$as_me: error: can't link a simple motif program" >&2;}
33909    { (exit 1); exit 1; }; }
33910         fi
33911
33912                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33913 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33914 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33915   echo $ECHO_N "(cached) $ECHO_C" >&6
33916 else
33917   ac_check_lib_save_LIBS=$LIBS
33918 LIBS="-lSgm  $LIBS"
33919 cat >conftest.$ac_ext <<_ACEOF
33920 /* confdefs.h.  */
33921 _ACEOF
33922 cat confdefs.h >>conftest.$ac_ext
33923 cat >>conftest.$ac_ext <<_ACEOF
33924 /* end confdefs.h.  */
33925
33926 /* Override any GCC internal prototype to avoid an error.
33927    Use char because int might match the return type of a GCC
33928    builtin and then its argument prototype would still apply.  */
33929 #ifdef __cplusplus
33930 extern "C"
33931 #endif
33932 char SgCreateList ();
33933 int
33934 main ()
33935 {
33936 return SgCreateList ();
33937   ;
33938   return 0;
33939 }
33940 _ACEOF
33941 rm -f conftest.$ac_objext conftest$ac_exeext
33942 if { (ac_try="$ac_link"
33943 case "(($ac_try" in
33944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945   *) ac_try_echo=$ac_try;;
33946 esac
33947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948   (eval "$ac_link") 2>conftest.er1
33949   ac_status=$?
33950   grep -v '^ *+' conftest.er1 >conftest.err
33951   rm -f conftest.er1
33952   cat conftest.err >&5
33953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954   (exit $ac_status); } && {
33955          test -z "$ac_c_werror_flag" ||
33956          test ! -s conftest.err
33957        } && test -s conftest$ac_exeext &&
33958        $as_test_x conftest$ac_exeext; then
33959   ac_cv_lib_Sgm_SgCreateList=yes
33960 else
33961   echo "$as_me: failed program was:" >&5
33962 sed 's/^/| /' conftest.$ac_ext >&5
33963
33964         ac_cv_lib_Sgm_SgCreateList=no
33965 fi
33966
33967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33968       conftest$ac_exeext conftest.$ac_ext
33969 LIBS=$ac_check_lib_save_LIBS
33970 fi
33971 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
33972 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
33973 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
33974   libsgm_link=" -lSgm"
33975 fi
33976
33977
33978         save_CFLAGS=$CFLAGS
33979         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33980
33981         { echo "$as_me:$LINENO: checking for Motif 2" >&5
33982 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
33983 if test "${wx_cv_lib_motif2+set}" = set; then
33984   echo $ECHO_N "(cached) $ECHO_C" >&6
33985 else
33986   cat >conftest.$ac_ext <<_ACEOF
33987 /* confdefs.h.  */
33988 _ACEOF
33989 cat confdefs.h >>conftest.$ac_ext
33990 cat >>conftest.$ac_ext <<_ACEOF
33991 /* end confdefs.h.  */
33992
33993                             #include <Xm/Xm.h>
33994
33995 int
33996 main ()
33997 {
33998
33999                             #if XmVersion < 2000
34000                             Not Motif 2
34001                             #endif
34002
34003   ;
34004   return 0;
34005 }
34006 _ACEOF
34007 rm -f conftest.$ac_objext
34008 if { (ac_try="$ac_compile"
34009 case "(($ac_try" in
34010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34011   *) ac_try_echo=$ac_try;;
34012 esac
34013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34014   (eval "$ac_compile") 2>conftest.er1
34015   ac_status=$?
34016   grep -v '^ *+' conftest.er1 >conftest.err
34017   rm -f conftest.er1
34018   cat conftest.err >&5
34019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020   (exit $ac_status); } && {
34021          test -z "$ac_c_werror_flag" ||
34022          test ! -s conftest.err
34023        } && test -s conftest.$ac_objext; then
34024   wx_cv_lib_motif2="yes"
34025 else
34026   echo "$as_me: failed program was:" >&5
34027 sed 's/^/| /' conftest.$ac_ext >&5
34028
34029         wx_cv_lib_motif2="no"
34030 fi
34031
34032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34033 fi
34034 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34035 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
34036         if test "$wx_cv_lib_motif2" = "yes"; then
34037             cat >>confdefs.h <<\_ACEOF
34038 #define __WXMOTIF20__ 1
34039 _ACEOF
34040
34041         else
34042             cat >>confdefs.h <<\_ACEOF
34043 #define __WXMOTIF20__ 0
34044 _ACEOF
34045
34046         fi
34047
34048         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34049 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34050 if test "${wx_cv_lib_lesstif+set}" = set; then
34051   echo $ECHO_N "(cached) $ECHO_C" >&6
34052 else
34053   cat >conftest.$ac_ext <<_ACEOF
34054 /* confdefs.h.  */
34055 _ACEOF
34056 cat confdefs.h >>conftest.$ac_ext
34057 cat >>conftest.$ac_ext <<_ACEOF
34058 /* end confdefs.h.  */
34059
34060                             #include <Xm/Xm.h>
34061
34062 int
34063 main ()
34064 {
34065
34066                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34067                             Not Lesstif
34068                             #endif
34069
34070   ;
34071   return 0;
34072 }
34073 _ACEOF
34074 rm -f conftest.$ac_objext
34075 if { (ac_try="$ac_compile"
34076 case "(($ac_try" in
34077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34078   *) ac_try_echo=$ac_try;;
34079 esac
34080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34081   (eval "$ac_compile") 2>conftest.er1
34082   ac_status=$?
34083   grep -v '^ *+' conftest.er1 >conftest.err
34084   rm -f conftest.er1
34085   cat conftest.err >&5
34086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34087   (exit $ac_status); } && {
34088          test -z "$ac_c_werror_flag" ||
34089          test ! -s conftest.err
34090        } && test -s conftest.$ac_objext; then
34091   wx_cv_lib_lesstif="yes"
34092 else
34093   echo "$as_me: failed program was:" >&5
34094 sed 's/^/| /' conftest.$ac_ext >&5
34095
34096         wx_cv_lib_lesstif="no"
34097 fi
34098
34099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34100
34101 fi
34102 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34103 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34104         if test "$wx_cv_lib_lesstif" = "yes"; then
34105             cat >>confdefs.h <<\_ACEOF
34106 #define __WXLESSTIF__ 1
34107 _ACEOF
34108
34109         else
34110             cat >>confdefs.h <<\_ACEOF
34111 #define __WXLESSTIF__ 0
34112 _ACEOF
34113
34114         fi
34115
34116         CFLAGS=$save_CFLAGS
34117
34118         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34119         TOOLKIT=MOTIF
34120         GUIDIST=MOTIF_DIST
34121     fi
34122
34123         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34124                 if test "$wxUSE_LIBXPM" = "sys"; then
34125             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34126 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34127
34128   ac_find_libraries=
34129   for ac_dir in $SEARCH_LIB
34130   do
34131     for ac_extension in a so sl dylib dll.a; do
34132       if test -f "$ac_dir/libXpm.$ac_extension"; then
34133         ac_find_libraries=$ac_dir
34134         break 2
34135       fi
34136     done
34137   done
34138
34139             if test "$ac_find_libraries" != "" ; then
34140
34141     if test "$ac_find_libraries" = "default location"; then
34142     ac_path_to_link=""
34143   else
34144     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34145     result=$?
34146     if test $result = 0; then
34147       ac_path_to_link=""
34148     else
34149       ac_path_to_link=" -L$ac_find_libraries"
34150     fi
34151   fi
34152
34153                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34154                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34155 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34156
34157                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34158 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34159 if test "${wx_cv_x11_xpm_h+set}" = set; then
34160   echo $ECHO_N "(cached) $ECHO_C" >&6
34161 else
34162
34163                         save_CFLAGS=$CFLAGS
34164                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34165
34166                         cat >conftest.$ac_ext <<_ACEOF
34167 /* confdefs.h.  */
34168 _ACEOF
34169 cat confdefs.h >>conftest.$ac_ext
34170 cat >>conftest.$ac_ext <<_ACEOF
34171 /* end confdefs.h.  */
34172
34173                                 #include <X11/xpm.h>
34174
34175 int
34176 main ()
34177 {
34178
34179                                 int version;
34180                                 version = XpmLibraryVersion();
34181
34182   ;
34183   return 0;
34184 }
34185 _ACEOF
34186 rm -f conftest.$ac_objext
34187 if { (ac_try="$ac_compile"
34188 case "(($ac_try" in
34189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34190   *) ac_try_echo=$ac_try;;
34191 esac
34192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34193   (eval "$ac_compile") 2>conftest.er1
34194   ac_status=$?
34195   grep -v '^ *+' conftest.er1 >conftest.err
34196   rm -f conftest.er1
34197   cat conftest.err >&5
34198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199   (exit $ac_status); } && {
34200          test -z "$ac_c_werror_flag" ||
34201          test ! -s conftest.err
34202        } && test -s conftest.$ac_objext; then
34203   wx_cv_x11_xpm_h=yes
34204 else
34205   echo "$as_me: failed program was:" >&5
34206 sed 's/^/| /' conftest.$ac_ext >&5
34207
34208         wx_cv_x11_xpm_h=no
34209
34210 fi
34211
34212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34213
34214                         CFLAGS=$save_CFLAGS
34215
34216
34217 fi
34218 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34219 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34220
34221                 if test $wx_cv_x11_xpm_h = "yes"; then
34222                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34223                     cat >>confdefs.h <<\_ACEOF
34224 #define wxHAVE_LIB_XPM 1
34225 _ACEOF
34226
34227                 else
34228                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34229 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34230                 fi
34231             fi
34232
34233         fi
34234
34235                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34236 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34237 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34238   echo $ECHO_N "(cached) $ECHO_C" >&6
34239 else
34240   ac_check_lib_save_LIBS=$LIBS
34241 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34242 cat >conftest.$ac_ext <<_ACEOF
34243 /* confdefs.h.  */
34244 _ACEOF
34245 cat confdefs.h >>conftest.$ac_ext
34246 cat >>conftest.$ac_ext <<_ACEOF
34247 /* end confdefs.h.  */
34248
34249 /* Override any GCC internal prototype to avoid an error.
34250    Use char because int might match the return type of a GCC
34251    builtin and then its argument prototype would still apply.  */
34252 #ifdef __cplusplus
34253 extern "C"
34254 #endif
34255 char XShapeQueryExtension ();
34256 int
34257 main ()
34258 {
34259 return XShapeQueryExtension ();
34260   ;
34261   return 0;
34262 }
34263 _ACEOF
34264 rm -f conftest.$ac_objext conftest$ac_exeext
34265 if { (ac_try="$ac_link"
34266 case "(($ac_try" in
34267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34268   *) ac_try_echo=$ac_try;;
34269 esac
34270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34271   (eval "$ac_link") 2>conftest.er1
34272   ac_status=$?
34273   grep -v '^ *+' conftest.er1 >conftest.err
34274   rm -f conftest.er1
34275   cat conftest.err >&5
34276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277   (exit $ac_status); } && {
34278          test -z "$ac_c_werror_flag" ||
34279          test ! -s conftest.err
34280        } && test -s conftest$ac_exeext &&
34281        $as_test_x conftest$ac_exeext; then
34282   ac_cv_lib_Xext_XShapeQueryExtension=yes
34283 else
34284   echo "$as_me: failed program was:" >&5
34285 sed 's/^/| /' conftest.$ac_ext >&5
34286
34287         ac_cv_lib_Xext_XShapeQueryExtension=no
34288 fi
34289
34290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34291       conftest$ac_exeext conftest.$ac_ext
34292 LIBS=$ac_check_lib_save_LIBS
34293 fi
34294 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34295 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34296 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34297
34298                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34299                       wxHAVE_XEXT_LIB=1
34300
34301 fi
34302
34303
34304         if test "$wxHAVE_XEXT_LIB" = 1; then
34305             save_CFLAGS="$CFLAGS"
34306             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34307
34308             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34309 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34310             cat >conftest.$ac_ext <<_ACEOF
34311 /* confdefs.h.  */
34312 _ACEOF
34313 cat confdefs.h >>conftest.$ac_ext
34314 cat >>conftest.$ac_ext <<_ACEOF
34315 /* end confdefs.h.  */
34316
34317                             #include <X11/Xlib.h>
34318                             #include <X11/extensions/shape.h>
34319
34320 int
34321 main ()
34322 {
34323
34324                             int dummy1, dummy2;
34325                             XShapeQueryExtension((Display*)NULL,
34326                                                  (int*)NULL, (int*)NULL);
34327
34328   ;
34329   return 0;
34330 }
34331 _ACEOF
34332 rm -f conftest.$ac_objext
34333 if { (ac_try="$ac_compile"
34334 case "(($ac_try" in
34335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34336   *) ac_try_echo=$ac_try;;
34337 esac
34338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34339   (eval "$ac_compile") 2>conftest.er1
34340   ac_status=$?
34341   grep -v '^ *+' conftest.er1 >conftest.err
34342   rm -f conftest.er1
34343   cat conftest.err >&5
34344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345   (exit $ac_status); } && {
34346          test -z "$ac_c_werror_flag" ||
34347          test ! -s conftest.err
34348        } && test -s conftest.$ac_objext; then
34349
34350                             cat >>confdefs.h <<\_ACEOF
34351 #define HAVE_XSHAPE 1
34352 _ACEOF
34353
34354                             { echo "$as_me:$LINENO: result: found" >&5
34355 echo "${ECHO_T}found" >&6; }
34356
34357 else
34358   echo "$as_me: failed program was:" >&5
34359 sed 's/^/| /' conftest.$ac_ext >&5
34360
34361
34362                             { echo "$as_me:$LINENO: result: not found" >&5
34363 echo "${ECHO_T}not found" >&6; }
34364
34365 fi
34366
34367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34368             CFLAGS="$save_CFLAGS"
34369
34370         fi
34371     fi
34372
34373     if test "$wxUSE_OSX_CARBON" = 1; then
34374         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34375 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34376         if test "$GCC" = yes; then
34377             { echo "$as_me:$LINENO: result: gcc" >&5
34378 echo "${ECHO_T}gcc" >&6; }
34379             CPPFLAGS_PASCAL="-fpascal-strings"
34380         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34381             { echo "$as_me:$LINENO: result: xlc" >&5
34382 echo "${ECHO_T}xlc" >&6; }
34383             CPPFLAGS_PASCAL="-qmacpstr"
34384         else
34385             { echo "$as_me:$LINENO: result: none" >&5
34386 echo "${ECHO_T}none" >&6; }
34387         fi
34388
34389         if test "x$wxUSE_UNIX" = "xyes"; then
34390             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34391         else
34392                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
34393         fi
34394
34395         TOOLKIT=OSX_CARBON
34396                 GUIDIST=OSX_CARBON_DIST
34397                         WXBASEPORT="_carbon"
34398
34399                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34400     fi
34401
34402     if test "$wxUSE_OSX_COCOA" = 1; then
34403         TOOLKIT=OSX_COCOA
34404         GUIDIST=OSX_COCOA_DIST
34405
34406                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34407     fi
34408
34409     if test "$wxUSE_OSX_IPHONE" = 1; then
34410         TOOLKIT=OSX_IPHONE
34411     fi
34412
34413     if test "$wxUSE_OLD_COCOA" = 1; then
34414         TOOLKIT=COCOA
34415         GUIDIST=COCOA_DIST
34416     fi
34417
34418     if test "$wxUSE_PM" = 1; then
34419         TOOLKIT=PM
34420         GUIDIST=PM_DIST
34421         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34422 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34423 if test "${wx_cv_spbcdata+set}" = set; then
34424   echo $ECHO_N "(cached) $ECHO_C" >&6
34425 else
34426
34427                 cat >conftest.$ac_ext <<_ACEOF
34428 /* confdefs.h.  */
34429 _ACEOF
34430 cat confdefs.h >>conftest.$ac_ext
34431 cat >>conftest.$ac_ext <<_ACEOF
34432 /* end confdefs.h.  */
34433
34434                         #define INCL_PM
34435                         #include <os2.h>
34436
34437 int
34438 main ()
34439 {
34440
34441                         SPBCDATA test;
34442
34443   ;
34444   return 0;
34445 }
34446 _ACEOF
34447 rm -f conftest.$ac_objext
34448 if { (ac_try="$ac_compile"
34449 case "(($ac_try" in
34450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34451   *) ac_try_echo=$ac_try;;
34452 esac
34453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34454   (eval "$ac_compile") 2>conftest.er1
34455   ac_status=$?
34456   grep -v '^ *+' conftest.er1 >conftest.err
34457   rm -f conftest.er1
34458   cat conftest.err >&5
34459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460   (exit $ac_status); } && {
34461          test -z "$ac_c_werror_flag" ||
34462          test ! -s conftest.err
34463        } && test -s conftest.$ac_objext; then
34464   wx_cv_spbcdata=yes
34465 else
34466   echo "$as_me: failed program was:" >&5
34467 sed 's/^/| /' conftest.$ac_ext >&5
34468
34469         wx_cv_spbcdata=no
34470
34471 fi
34472
34473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34474
34475
34476 fi
34477 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34478 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34479
34480         if test $wx_cv_spbcdata = "yes"; then
34481             cat >>confdefs.h <<\_ACEOF
34482 #define HAVE_SPBCDATA 1
34483 _ACEOF
34484
34485         fi
34486     fi
34487
34488         if test "$TOOLKIT" = "PM" ; then
34489         TOOLKIT_DIR="os2"
34490     else
34491         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
34492     fi
34493
34494     if test "$wxUSE_UNIVERSAL" = "yes"; then
34495         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34496         WIDGET_SET=univ
34497     fi
34498
34499         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34500     DISTDIR="wx\$(TOOLKIT)"
34501 else
34502     USE_GUI=0
34503
34504             TOOLKIT_DIR="base"
34505
34506         if test "$USE_WIN32" = 1 ; then
34507                         TOOLKIT="MSW"
34508     fi
34509
34510         GUIDIST="BASE_DIST"
34511     DISTDIR="wxBase"
34512 fi
34513
34514
34515
34516 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34517     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
34518         wxUSE_UNICODE_UTF8=yes
34519     elif test "$USE_OS2" = 1 ; then
34520                                 wxUSE_UNICODE_UTF8=yes
34521     else
34522         wxUSE_UNICODE_UTF8=no
34523     fi
34524 fi
34525
34526
34527 if test "$wxUSE_GUI" = "yes"; then
34528     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34529
34530 for ac_header in X11/Xlib.h
34531 do
34532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34536   echo $ECHO_N "(cached) $ECHO_C" >&6
34537 else
34538   cat >conftest.$ac_ext <<_ACEOF
34539 /* confdefs.h.  */
34540 _ACEOF
34541 cat confdefs.h >>conftest.$ac_ext
34542 cat >>conftest.$ac_ext <<_ACEOF
34543 /* end confdefs.h.  */
34544
34545
34546 #include <$ac_header>
34547 _ACEOF
34548 rm -f conftest.$ac_objext
34549 if { (ac_try="$ac_compile"
34550 case "(($ac_try" in
34551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34552   *) ac_try_echo=$ac_try;;
34553 esac
34554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34555   (eval "$ac_compile") 2>conftest.er1
34556   ac_status=$?
34557   grep -v '^ *+' conftest.er1 >conftest.err
34558   rm -f conftest.er1
34559   cat conftest.err >&5
34560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561   (exit $ac_status); } && {
34562          test -z "$ac_c_werror_flag" ||
34563          test ! -s conftest.err
34564        } && test -s conftest.$ac_objext; then
34565   eval "$as_ac_Header=yes"
34566 else
34567   echo "$as_me: failed program was:" >&5
34568 sed 's/^/| /' conftest.$ac_ext >&5
34569
34570         eval "$as_ac_Header=no"
34571 fi
34572
34573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34574 fi
34575 ac_res=`eval echo '${'$as_ac_Header'}'`
34576                { echo "$as_me:$LINENO: result: $ac_res" >&5
34577 echo "${ECHO_T}$ac_res" >&6; }
34578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34579   cat >>confdefs.h <<_ACEOF
34580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34581 _ACEOF
34582
34583 fi
34584
34585 done
34586
34587
34588 for ac_header in X11/XKBlib.h
34589 do
34590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34594   echo $ECHO_N "(cached) $ECHO_C" >&6
34595 else
34596   cat >conftest.$ac_ext <<_ACEOF
34597 /* confdefs.h.  */
34598 _ACEOF
34599 cat confdefs.h >>conftest.$ac_ext
34600 cat >>conftest.$ac_ext <<_ACEOF
34601 /* end confdefs.h.  */
34602
34603                           #if HAVE_X11_XLIB_H
34604                             #include <X11/Xlib.h>
34605                           #endif
34606
34607
34608 #include <$ac_header>
34609 _ACEOF
34610 rm -f conftest.$ac_objext
34611 if { (ac_try="$ac_compile"
34612 case "(($ac_try" in
34613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34614   *) ac_try_echo=$ac_try;;
34615 esac
34616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34617   (eval "$ac_compile") 2>conftest.er1
34618   ac_status=$?
34619   grep -v '^ *+' conftest.er1 >conftest.err
34620   rm -f conftest.er1
34621   cat conftest.err >&5
34622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623   (exit $ac_status); } && {
34624          test -z "$ac_c_werror_flag" ||
34625          test ! -s conftest.err
34626        } && test -s conftest.$ac_objext; then
34627   eval "$as_ac_Header=yes"
34628 else
34629   echo "$as_me: failed program was:" >&5
34630 sed 's/^/| /' conftest.$ac_ext >&5
34631
34632         eval "$as_ac_Header=no"
34633 fi
34634
34635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34636 fi
34637 ac_res=`eval echo '${'$as_ac_Header'}'`
34638                { echo "$as_me:$LINENO: result: $ac_res" >&5
34639 echo "${ECHO_T}$ac_res" >&6; }
34640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34641   cat >>confdefs.h <<_ACEOF
34642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34643 _ACEOF
34644
34645 fi
34646
34647 done
34648
34649     fi
34650 fi
34651
34652
34653
34654 USE_XINERAMA=0
34655 if test "$wxUSE_DISPLAY" = "yes"; then
34656         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
34657         { echo "$as_me:$LINENO: checking for Xinerama" >&5
34658 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34659
34660   ac_find_libraries=
34661   for ac_dir in $SEARCH_LIB
34662   do
34663     for ac_extension in a so sl dylib dll.a; do
34664       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34665         ac_find_libraries=$ac_dir
34666         break 2
34667       fi
34668     done
34669   done
34670
34671         if test "$ac_find_libraries" != "" ; then
34672
34673     if test "$ac_find_libraries" = "default location"; then
34674     ac_path_to_link=""
34675   else
34676     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34677     result=$?
34678     if test $result = 0; then
34679       ac_path_to_link=""
34680     else
34681       ac_path_to_link=" -L$ac_find_libraries"
34682     fi
34683   fi
34684
34685             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34686                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34687             fi
34688             USE_XINERAMA=1
34689             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
34690             { echo "$as_me:$LINENO: result: yes" >&5
34691 echo "${ECHO_T}yes" >&6; }
34692         else
34693             { echo "$as_me:$LINENO: result: no" >&5
34694 echo "${ECHO_T}no" >&6; }
34695             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
34696 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
34697             wxUSE_DISPLAY="no"
34698         fi
34699     elif test "$wxUSE_MSW" = 1; then
34700                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
34701 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
34702 if test "${ac_cv_header_ddraw_h+set}" = set; then
34703   echo $ECHO_N "(cached) $ECHO_C" >&6
34704 else
34705   cat >conftest.$ac_ext <<_ACEOF
34706 /* confdefs.h.  */
34707 _ACEOF
34708 cat confdefs.h >>conftest.$ac_ext
34709 cat >>conftest.$ac_ext <<_ACEOF
34710 /* end confdefs.h.  */
34711 #include <windows.h>
34712
34713 #include <ddraw.h>
34714 _ACEOF
34715 rm -f conftest.$ac_objext
34716 if { (ac_try="$ac_compile"
34717 case "(($ac_try" in
34718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34719   *) ac_try_echo=$ac_try;;
34720 esac
34721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34722   (eval "$ac_compile") 2>conftest.er1
34723   ac_status=$?
34724   grep -v '^ *+' conftest.er1 >conftest.err
34725   rm -f conftest.er1
34726   cat conftest.err >&5
34727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728   (exit $ac_status); } && {
34729          test -z "$ac_c_werror_flag" ||
34730          test ! -s conftest.err
34731        } && test -s conftest.$ac_objext; then
34732   ac_cv_header_ddraw_h=yes
34733 else
34734   echo "$as_me: failed program was:" >&5
34735 sed 's/^/| /' conftest.$ac_ext >&5
34736
34737         ac_cv_header_ddraw_h=no
34738 fi
34739
34740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34741 fi
34742 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
34743 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
34744
34745
34746     fi
34747 fi
34748
34749 if test "$wxUSE_DISPLAY" = "yes"; then
34750         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
34751         { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
34752 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
34753
34754   ac_find_libraries=
34755   for ac_dir in $SEARCH_LIB
34756   do
34757     for ac_extension in a so sl dylib dll.a; do
34758       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
34759         ac_find_libraries=$ac_dir
34760         break 2
34761       fi
34762     done
34763   done
34764
34765         if test "$ac_find_libraries" != "" ; then
34766             { echo "$as_me:$LINENO: result: yes" >&5
34767 echo "${ECHO_T}yes" >&6; }
34768
34769 for ac_header in X11/extensions/xf86vmode.h
34770 do
34771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34775   echo $ECHO_N "(cached) $ECHO_C" >&6
34776 else
34777   cat >conftest.$ac_ext <<_ACEOF
34778 /* confdefs.h.  */
34779 _ACEOF
34780 cat confdefs.h >>conftest.$ac_ext
34781 cat >>conftest.$ac_ext <<_ACEOF
34782 /* end confdefs.h.  */
34783
34784                                   #if HAVE_X11_XLIB_H
34785                                     #include <X11/Xlib.h>
34786                                   #endif
34787
34788
34789 #include <$ac_header>
34790 _ACEOF
34791 rm -f conftest.$ac_objext
34792 if { (ac_try="$ac_compile"
34793 case "(($ac_try" in
34794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34795   *) ac_try_echo=$ac_try;;
34796 esac
34797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34798   (eval "$ac_compile") 2>conftest.er1
34799   ac_status=$?
34800   grep -v '^ *+' conftest.er1 >conftest.err
34801   rm -f conftest.er1
34802   cat conftest.err >&5
34803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804   (exit $ac_status); } && {
34805          test -z "$ac_c_werror_flag" ||
34806          test ! -s conftest.err
34807        } && test -s conftest.$ac_objext; then
34808   eval "$as_ac_Header=yes"
34809 else
34810   echo "$as_me: failed program was:" >&5
34811 sed 's/^/| /' conftest.$ac_ext >&5
34812
34813         eval "$as_ac_Header=no"
34814 fi
34815
34816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34817 fi
34818 ac_res=`eval echo '${'$as_ac_Header'}'`
34819                { echo "$as_me:$LINENO: result: $ac_res" >&5
34820 echo "${ECHO_T}$ac_res" >&6; }
34821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34822   cat >>confdefs.h <<_ACEOF
34823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34824 _ACEOF
34825
34826                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
34827
34828 fi
34829
34830 done
34831
34832         else
34833             { echo "$as_me:$LINENO: result: no" >&5
34834 echo "${ECHO_T}no" >&6; }
34835         fi
34836     fi
34837 fi
34838
34839 if test "$wxUSE_DETECT_SM" = "yes"; then
34840     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
34841         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
34842 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
34843
34844   ac_find_libraries=
34845   for ac_dir in $SEARCH_LIB
34846   do
34847     for ac_extension in a so sl dylib dll.a; do
34848       if test -f "$ac_dir/libSM.$ac_extension"; then
34849         ac_find_libraries=$ac_dir
34850         break 2
34851       fi
34852     done
34853   done
34854
34855         if test "$ac_find_libraries" != "" ; then
34856
34857     if test "$ac_find_libraries" = "default location"; then
34858     ac_path_to_link=""
34859   else
34860     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34861     result=$?
34862     if test $result = 0; then
34863       ac_path_to_link=""
34864     else
34865       ac_path_to_link=" -L$ac_find_libraries"
34866     fi
34867   fi
34868
34869             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34870                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34871             fi
34872             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
34873             { echo "$as_me:$LINENO: result: yes" >&5
34874 echo "${ECHO_T}yes" >&6; }
34875         else
34876             { echo "$as_me:$LINENO: result: no" >&5
34877 echo "${ECHO_T}no" >&6; }
34878             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
34879 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
34880             wxUSE_DETECT_SM="no"
34881         fi
34882     else
34883         wxUSE_DETECT_SM="no"
34884     fi
34885 fi
34886
34887
34888
34889 USE_OPENGL=0
34890 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
34891
34892
34893     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
34894         OPENGL_LIBS="-framework OpenGL -framework AGL"
34895     elif test "$wxUSE_MSW" = 1; then
34896         OPENGL_LIBS="-lopengl32 -lglu32"
34897     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
34898
34899                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
34900 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
34901
34902 ac_find_includes=
34903 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include
34904   do
34905     if test -f "$ac_dir/GL/gl.h"; then
34906       ac_find_includes=$ac_dir
34907       break
34908     fi
34909   done
34910
34911         if test "$ac_find_includes" != "" ; then
34912             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34913 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34914
34915     if test "x$ac_find_includes" = "x/usr/include"; then
34916     ac_path_to_include=""
34917   else
34918     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
34919     result=$?
34920     if test $result = 0; then
34921       ac_path_to_include=""
34922     else
34923       ac_path_to_include=" -I$ac_find_includes"
34924     fi
34925   fi
34926
34927             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
34928         else
34929             { echo "$as_me:$LINENO: result: not found" >&5
34930 echo "${ECHO_T}not found" >&6; }
34931         fi
34932
34933         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
34934 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
34935 if test "${ac_cv_header_GL_gl_h+set}" = set; then
34936   echo $ECHO_N "(cached) $ECHO_C" >&6
34937 else
34938   cat >conftest.$ac_ext <<_ACEOF
34939 /* confdefs.h.  */
34940 _ACEOF
34941 cat confdefs.h >>conftest.$ac_ext
34942 cat >>conftest.$ac_ext <<_ACEOF
34943 /* end confdefs.h.  */
34944
34945
34946 #include <GL/gl.h>
34947 _ACEOF
34948 rm -f conftest.$ac_objext
34949 if { (ac_try="$ac_compile"
34950 case "(($ac_try" in
34951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34952   *) ac_try_echo=$ac_try;;
34953 esac
34954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34955   (eval "$ac_compile") 2>conftest.er1
34956   ac_status=$?
34957   grep -v '^ *+' conftest.er1 >conftest.err
34958   rm -f conftest.er1
34959   cat conftest.err >&5
34960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34961   (exit $ac_status); } && {
34962          test -z "$ac_c_werror_flag" ||
34963          test ! -s conftest.err
34964        } && test -s conftest.$ac_objext; then
34965   ac_cv_header_GL_gl_h=yes
34966 else
34967   echo "$as_me: failed program was:" >&5
34968 sed 's/^/| /' conftest.$ac_ext >&5
34969
34970         ac_cv_header_GL_gl_h=no
34971 fi
34972
34973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34974 fi
34975 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
34976 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
34977 if test $ac_cv_header_GL_gl_h = yes; then
34978
34979             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
34980 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
34981 if test "${ac_cv_header_GL_glu_h+set}" = set; then
34982   echo $ECHO_N "(cached) $ECHO_C" >&6
34983 else
34984   cat >conftest.$ac_ext <<_ACEOF
34985 /* confdefs.h.  */
34986 _ACEOF
34987 cat confdefs.h >>conftest.$ac_ext
34988 cat >>conftest.$ac_ext <<_ACEOF
34989 /* end confdefs.h.  */
34990
34991
34992 #include <GL/glu.h>
34993 _ACEOF
34994 rm -f conftest.$ac_objext
34995 if { (ac_try="$ac_compile"
34996 case "(($ac_try" in
34997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34998   *) ac_try_echo=$ac_try;;
34999 esac
35000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35001   (eval "$ac_compile") 2>conftest.er1
35002   ac_status=$?
35003   grep -v '^ *+' conftest.er1 >conftest.err
35004   rm -f conftest.er1
35005   cat conftest.err >&5
35006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007   (exit $ac_status); } && {
35008          test -z "$ac_c_werror_flag" ||
35009          test ! -s conftest.err
35010        } && test -s conftest.$ac_objext; then
35011   ac_cv_header_GL_glu_h=yes
35012 else
35013   echo "$as_me: failed program was:" >&5
35014 sed 's/^/| /' conftest.$ac_ext >&5
35015
35016         ac_cv_header_GL_glu_h=no
35017 fi
35018
35019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35020 fi
35021 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35022 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35023 if test $ac_cv_header_GL_glu_h = yes; then
35024
35025                 found_gl=0
35026
35027                 { echo "$as_me:$LINENO: checking for -lGL" >&5
35028 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
35029
35030   ac_find_libraries=
35031   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib
35032   do
35033     for ac_extension in a so sl dylib dll.a; do
35034       if test -f "$ac_dir/libGL.$ac_extension"; then
35035         ac_find_libraries=$ac_dir
35036         break 2
35037       fi
35038     done
35039   done
35040
35041                 if test "$ac_find_libraries" != "" ; then
35042                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
35043 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
35044
35045
35046     if test "$ac_find_libraries" = "default location"; then
35047     ac_path_to_link=""
35048   else
35049     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35050     result=$?
35051     if test $result = 0; then
35052       ac_path_to_link=""
35053     else
35054       ac_path_to_link=" -L$ac_find_libraries"
35055     fi
35056   fi
35057
35058                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
35059                         LDFLAGS_GL="$ac_path_to_link"
35060                     fi
35061
35062                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
35063 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
35064
35065   ac_find_libraries=
35066   for ac_dir in $SEARCH_LIB
35067   do
35068     for ac_extension in a so sl dylib dll.a; do
35069       if test -f "$ac_dir/libGLU.$ac_extension"; then
35070         ac_find_libraries=$ac_dir
35071         break 2
35072       fi
35073     done
35074   done
35075
35076                     if test "$ac_find_libraries" != "" ; then
35077
35078     if test "$ac_find_libraries" = "default location"; then
35079     ac_path_to_link=""
35080   else
35081     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35082     result=$?
35083     if test $result = 0; then
35084       ac_path_to_link=""
35085     else
35086       ac_path_to_link=" -L$ac_find_libraries"
35087     fi
35088   fi
35089
35090                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
35091                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
35092                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
35093                         fi
35094
35095                         found_gl=1
35096                         OPENGL_LIBS="-lGL -lGLU"
35097                         { echo "$as_me:$LINENO: result: yes" >&5
35098 echo "${ECHO_T}yes" >&6; }
35099                     else
35100                         { echo "$as_me:$LINENO: result: no" >&5
35101 echo "${ECHO_T}no" >&6; }
35102                     fi
35103                 else
35104                     { echo "$as_me:$LINENO: result: no" >&5
35105 echo "${ECHO_T}no" >&6; }
35106                 fi
35107
35108                 if test "$found_gl" != 1; then
35109                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
35110 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
35111
35112   ac_find_libraries=
35113   for ac_dir in $SEARCH_LIB
35114   do
35115     for ac_extension in a so sl dylib dll.a; do
35116       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
35117         ac_find_libraries=$ac_dir
35118         break 2
35119       fi
35120     done
35121   done
35122
35123                     if test "$ac_find_libraries" != "" ; then
35124
35125     if test "$ac_find_libraries" = "default location"; then
35126     ac_path_to_link=""
35127   else
35128     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35129     result=$?
35130     if test $result = 0; then
35131       ac_path_to_link=""
35132     else
35133       ac_path_to_link=" -L$ac_find_libraries"
35134     fi
35135   fi
35136
35137                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
35138                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
35139                         { echo "$as_me:$LINENO: result: yes" >&5
35140 echo "${ECHO_T}yes" >&6; }
35141                     else
35142                         { echo "$as_me:$LINENO: result: no" >&5
35143 echo "${ECHO_T}no" >&6; }
35144                     fi
35145                 fi
35146
35147 fi
35148
35149
35150
35151 fi
35152
35153
35154
35155         if test "x$OPENGL_LIBS" = "x"; then
35156             if test "$wxUSE_OPENGL" = "yes"; then
35157                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
35158 echo "$as_me: error: OpenGL libraries not available" >&2;}
35159    { (exit 1); exit 1; }; }
35160             else
35161                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
35162 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
35163                 wxUSE_OPENGL=no
35164                 USE_OPENGL=0
35165             fi
35166         fi
35167     else
35168         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35169 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35170         wxUSE_OPENGL="no"
35171     fi
35172
35173     if test "$wxUSE_OPENGL" = "auto"; then
35174                                 wxUSE_OPENGL=yes
35175     fi
35176
35177     if test "$wxUSE_OPENGL" = "yes"; then
35178         USE_OPENGL=1
35179         cat >>confdefs.h <<\_ACEOF
35180 #define wxUSE_OPENGL 1
35181 _ACEOF
35182
35183         cat >>confdefs.h <<\_ACEOF
35184 #define wxUSE_GLCANVAS 1
35185 _ACEOF
35186
35187         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
35188     fi
35189 fi
35190
35191
35192 if test -n "$TOOLKIT" ; then
35193     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
35194 fi
35195
35196
35197
35198 if test "$wxUSE_SHARED" = "yes"; then
35199     case "${host}" in
35200       *-pc-msdosdjgpp )
35201                 wxUSE_SHARED=no
35202         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
35203 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
35204       ;;
35205     esac
35206 fi
35207
35208 if test "$wxUSE_SHARED" = "yes"; then
35209
35210
35211     case "${host}" in
35212         *-*-cygwin* | *-*-mingw* )
35213                                                                                                 wx_cv_version_script=no
35214             ;;
35215
35216         *)
35217             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
35218 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
35219 if test "${wx_cv_version_script+set}" = set; then
35220   echo $ECHO_N "(cached) $ECHO_C" >&6
35221 else
35222
35223                 echo "VER_1 { *; };" >conftest.sym
35224                 echo "int main() { return 0; }" >conftest.cpp
35225
35226                 if { ac_try='
35227                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35228                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
35229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35230   (eval $ac_try) 2>&5
35231   ac_status=$?
35232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35233   (exit $ac_status); }; } ; then
35234                   if test -s conftest.stderr ; then
35235                       wx_cv_version_script=no
35236                   else
35237                       wx_cv_version_script=yes
35238                   fi
35239                 else
35240                   wx_cv_version_script=no
35241                 fi
35242
35243                                                                                                                                                                                                 if test $wx_cv_version_script = yes
35244                 then
35245                   echo "struct B { virtual ~B() { } }; \
35246                         struct D : public B { }; \
35247                         void F() { D d; }" > conftest.cpp
35248
35249                   if { ac_try='
35250                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35251                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
35252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35253   (eval $ac_try) 2>&5
35254   ac_status=$?
35255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256   (exit $ac_status); }; } &&
35257                      { ac_try='
35258                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35259                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
35260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35261   (eval $ac_try) 2>&5
35262   ac_status=$?
35263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35264   (exit $ac_status); }; }
35265                   then
35266                     if { ac_try='
35267                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35268                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
35269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35270   (eval $ac_try) 2>&5
35271   ac_status=$?
35272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273   (exit $ac_status); }; }
35274                     then
35275                       wx_cv_version_script=yes
35276                     else
35277                       wx_cv_version_script=no
35278                     fi
35279                   fi
35280                 fi
35281
35282                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
35283                 rm -f conftest1.output conftest2.output conftest3.output
35284
35285 fi
35286 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
35287 echo "${ECHO_T}$wx_cv_version_script" >&6; }
35288
35289             if test $wx_cv_version_script = yes ; then
35290                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
35291             fi
35292             ;;
35293     esac
35294
35295
35296             if test "$wxUSE_VISIBILITY" != "no"; then
35297
35298
35299   if test -n "$GCC"; then
35300     CFLAGS_VISIBILITY="-fvisibility=hidden"
35301     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
35302     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
35303 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
35304     if test "${wx_cv_cc_visibility+set}" = set; then
35305   echo $ECHO_N "(cached) $ECHO_C" >&6
35306 else
35307
35308       wx_save_CXXFLAGS="$CXXFLAGS"
35309       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35310       ac_ext=cpp
35311 ac_cpp='$CXXCPP $CPPFLAGS'
35312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35315
35316       cat >conftest.$ac_ext <<_ACEOF
35317 /* confdefs.h.  */
35318 _ACEOF
35319 cat confdefs.h >>conftest.$ac_ext
35320 cat >>conftest.$ac_ext <<_ACEOF
35321 /* end confdefs.h.  */
35322
35323          /* we need gcc >= 4.0, older versions with visibility support
35324             didn't have class visibility: */
35325          #if defined(__GNUC__) && __GNUC__ < 4
35326          error this gcc is too old;
35327          #endif
35328
35329          /* visibility only makes sense for ELF shared libs: */
35330          #if !defined(__ELF__) && !defined(__APPLE__)
35331          error this platform has no visibility;
35332          #endif
35333
35334          /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */
35335          #if defined(__clang__)
35336          clang compiler is still broken w.r.t. visibility;
35337          #endif
35338
35339          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
35340          extern __attribute__((__visibility__("default"))) int exportedvar;
35341          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
35342          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
35343          class __attribute__((__visibility__("default"))) Foo {
35344            Foo() {}
35345          };
35346
35347 int
35348 main ()
35349 {
35350
35351   ;
35352   return 0;
35353 }
35354 _ACEOF
35355 rm -f conftest.$ac_objext
35356 if { (ac_try="$ac_compile"
35357 case "(($ac_try" in
35358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35359   *) ac_try_echo=$ac_try;;
35360 esac
35361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35362   (eval "$ac_compile") 2>conftest.er1
35363   ac_status=$?
35364   grep -v '^ *+' conftest.er1 >conftest.err
35365   rm -f conftest.er1
35366   cat conftest.err >&5
35367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368   (exit $ac_status); } && {
35369          test -z "$ac_cxx_werror_flag" ||
35370          test ! -s conftest.err
35371        } && test -s conftest.$ac_objext; then
35372   wx_cv_cc_visibility=yes
35373 else
35374   echo "$as_me: failed program was:" >&5
35375 sed 's/^/| /' conftest.$ac_ext >&5
35376
35377         wx_cv_cc_visibility=no
35378 fi
35379
35380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35381       ac_ext=c
35382 ac_cpp='$CPP $CPPFLAGS'
35383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35386
35387       CXXFLAGS="$wx_save_CXXFLAGS"
35388 fi
35389
35390     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
35391 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
35392     if test $wx_cv_cc_visibility = yes; then
35393                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
35394 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
35395       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
35396   echo $ECHO_N "(cached) $ECHO_C" >&6
35397 else
35398
35399         wx_save_CXXFLAGS="$CXXFLAGS"
35400         wx_save_LDFLAGS="$LDFLAGS"
35401         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35402         LDFLAGS="$LDFLAGS -shared -fPIC"
35403         ac_ext=cpp
35404 ac_cpp='$CXXCPP $CPPFLAGS'
35405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35408
35409         cat >conftest.$ac_ext <<_ACEOF
35410 /* confdefs.h.  */
35411 _ACEOF
35412 cat confdefs.h >>conftest.$ac_ext
35413 cat >>conftest.$ac_ext <<_ACEOF
35414 /* end confdefs.h.  */
35415
35416             #include <string>
35417
35418 int
35419 main ()
35420 {
35421
35422             std::string s("hello");
35423             return s.length();
35424
35425   ;
35426   return 0;
35427 }
35428 _ACEOF
35429 rm -f conftest.$ac_objext conftest$ac_exeext
35430 if { (ac_try="$ac_link"
35431 case "(($ac_try" in
35432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35433   *) ac_try_echo=$ac_try;;
35434 esac
35435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35436   (eval "$ac_link") 2>conftest.er1
35437   ac_status=$?
35438   grep -v '^ *+' conftest.er1 >conftest.err
35439   rm -f conftest.er1
35440   cat conftest.err >&5
35441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35442   (exit $ac_status); } && {
35443          test -z "$ac_cxx_werror_flag" ||
35444          test ! -s conftest.err
35445        } && test -s conftest$ac_exeext &&
35446        $as_test_x conftest$ac_exeext; then
35447   wx_cv_cc_broken_libstdcxx_visibility=no
35448 else
35449   echo "$as_me: failed program was:" >&5
35450 sed 's/^/| /' conftest.$ac_ext >&5
35451
35452         wx_cv_cc_broken_libstdcxx_visibility=yes
35453 fi
35454
35455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35456       conftest$ac_exeext conftest.$ac_ext
35457         ac_ext=c
35458 ac_cpp='$CPP $CPPFLAGS'
35459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35462
35463         CXXFLAGS="$wx_save_CXXFLAGS"
35464         LDFLAGS="$wx_save_LDFLAGS"
35465 fi
35466
35467       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
35468 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
35469
35470       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35471         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
35472 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
35473         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
35474   echo $ECHO_N "(cached) $ECHO_C" >&6
35475 else
35476
35477           ac_ext=cpp
35478 ac_cpp='$CXXCPP $CPPFLAGS'
35479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35482
35483           cat >conftest.$ac_ext <<_ACEOF
35484 /* confdefs.h.  */
35485 _ACEOF
35486 cat confdefs.h >>conftest.$ac_ext
35487 cat >>conftest.$ac_ext <<_ACEOF
35488 /* end confdefs.h.  */
35489
35490               #pragma GCC visibility push(default)
35491               #include <string>
35492               #pragma GCC visibility pop
35493
35494 int
35495 main ()
35496 {
35497
35498               std::string s("hello");
35499               return s.length();
35500
35501   ;
35502   return 0;
35503 }
35504 _ACEOF
35505 rm -f conftest.$ac_objext conftest$ac_exeext
35506 if { (ac_try="$ac_link"
35507 case "(($ac_try" in
35508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35509   *) ac_try_echo=$ac_try;;
35510 esac
35511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35512   (eval "$ac_link") 2>conftest.er1
35513   ac_status=$?
35514   grep -v '^ *+' conftest.er1 >conftest.err
35515   rm -f conftest.er1
35516   cat conftest.err >&5
35517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518   (exit $ac_status); } && {
35519          test -z "$ac_cxx_werror_flag" ||
35520          test ! -s conftest.err
35521        } && test -s conftest$ac_exeext &&
35522        $as_test_x conftest$ac_exeext; then
35523   wx_cv_cc_visibility_workaround=no
35524 else
35525   echo "$as_me: failed program was:" >&5
35526 sed 's/^/| /' conftest.$ac_ext >&5
35527
35528         wx_cv_cc_visibility_workaround=yes
35529 fi
35530
35531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35532       conftest$ac_exeext conftest.$ac_ext
35533           ac_ext=c
35534 ac_cpp='$CPP $CPPFLAGS'
35535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35538
35539
35540 fi
35541
35542         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
35543 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
35544
35545         if test $wx_cv_cc_visibility_workaround = no; then
35546                     wx_cv_cc_visibility=no
35547         fi
35548       fi
35549     fi
35550
35551     if test $wx_cv_cc_visibility = yes; then
35552       cat >>confdefs.h <<\_ACEOF
35553 #define HAVE_VISIBILITY 1
35554 _ACEOF
35555
35556       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35557         cat >>confdefs.h <<\_ACEOF
35558 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
35559 _ACEOF
35560
35561       fi
35562     else
35563       CFLAGS_VISIBILITY=""
35564       CXXFLAGS_VISIBILITY=""
35565     fi
35566
35567
35568   fi
35569
35570     fi
35571
35572         if test "x$SUNCXX" = xyes; then
35573         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
35574         WXCONFIG_RPATH="-R\$libdir"
35575     else
35576     case "${host}" in
35577       *-*-linux* | *-*-gnu* )
35578         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35579         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35580         ;;
35581
35582       *-*-solaris2* )
35583
35584                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
35585
35586                         saveLdflags="$LDFLAGS"
35587         LDFLAGS="$saveLdflags -Wl,-rpath,/"
35588         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
35589 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
35590         cat >conftest.$ac_ext <<_ACEOF
35591 /* confdefs.h.  */
35592 _ACEOF
35593 cat confdefs.h >>conftest.$ac_ext
35594 cat >>conftest.$ac_ext <<_ACEOF
35595 /* end confdefs.h.  */
35596
35597 int
35598 main ()
35599 {
35600
35601   ;
35602   return 0;
35603 }
35604 _ACEOF
35605 rm -f conftest.$ac_objext conftest$ac_exeext
35606 if { (ac_try="$ac_link"
35607 case "(($ac_try" in
35608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35609   *) ac_try_echo=$ac_try;;
35610 esac
35611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35612   (eval "$ac_link") 2>conftest.er1
35613   ac_status=$?
35614   grep -v '^ *+' conftest.er1 >conftest.err
35615   rm -f conftest.er1
35616   cat conftest.err >&5
35617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618   (exit $ac_status); } && {
35619          test -z "$ac_c_werror_flag" ||
35620          test ! -s conftest.err
35621        } && test -s conftest$ac_exeext &&
35622        $as_test_x conftest$ac_exeext; then
35623
35624                 { echo "$as_me:$LINENO: result: yes" >&5
35625 echo "${ECHO_T}yes" >&6; }
35626                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35627                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35628
35629 else
35630   echo "$as_me: failed program was:" >&5
35631 sed 's/^/| /' conftest.$ac_ext >&5
35632
35633
35634                 { echo "$as_me:$LINENO: result: no" >&5
35635 echo "${ECHO_T}no" >&6; }
35636                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
35637 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
35638                 LDFLAGS="$saveLdflags -Wl,-R,/"
35639                 cat >conftest.$ac_ext <<_ACEOF
35640 /* confdefs.h.  */
35641 _ACEOF
35642 cat confdefs.h >>conftest.$ac_ext
35643 cat >>conftest.$ac_ext <<_ACEOF
35644 /* end confdefs.h.  */
35645
35646 int
35647 main ()
35648 {
35649
35650   ;
35651   return 0;
35652 }
35653 _ACEOF
35654 rm -f conftest.$ac_objext conftest$ac_exeext
35655 if { (ac_try="$ac_link"
35656 case "(($ac_try" in
35657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35658   *) ac_try_echo=$ac_try;;
35659 esac
35660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35661   (eval "$ac_link") 2>conftest.er1
35662   ac_status=$?
35663   grep -v '^ *+' conftest.er1 >conftest.err
35664   rm -f conftest.er1
35665   cat conftest.err >&5
35666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667   (exit $ac_status); } && {
35668          test -z "$ac_c_werror_flag" ||
35669          test ! -s conftest.err
35670        } && test -s conftest$ac_exeext &&
35671        $as_test_x conftest$ac_exeext; then
35672
35673                         { echo "$as_me:$LINENO: result: yes" >&5
35674 echo "${ECHO_T}yes" >&6; }
35675                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
35676                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
35677
35678 else
35679   echo "$as_me: failed program was:" >&5
35680 sed 's/^/| /' conftest.$ac_ext >&5
35681
35682
35683                         { echo "$as_me:$LINENO: result: no" >&5
35684 echo "${ECHO_T}no" >&6; }
35685
35686 fi
35687
35688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35689       conftest$ac_exeext conftest.$ac_ext
35690
35691 fi
35692
35693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35694       conftest$ac_exeext conftest.$ac_ext
35695         LDFLAGS="$saveLdflags"
35696       ;;
35697
35698       *-*-darwin* )
35699         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
35700         if test "$install_name_tool" -a -x "$install_name_tool"; then
35701             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
35702             cat <<EOF >change-install-names
35703 #!/bin/sh
35704 libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
35705 for i in \${libnames} ; do
35706     ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i}
35707     for dep in \${libnames} ; do
35708         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i}
35709     done
35710 done
35711 EOF
35712             chmod +x change-install-names
35713             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}"
35714         fi
35715
35716                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
35717       ;;
35718
35719       *-*-cygwin* | *-*-mingw32* )
35720         ;;
35721
35722       *-*-hpux* )
35723         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
35724         WXCONFIG_RPATH="-Wl,+b,\$libdir"
35725         ;;
35726
35727     esac
35728     fi
35729
35730             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
35731
35732     if test $wxUSE_RPATH = "no"; then
35733         SAMPLES_RPATH_FLAG=''
35734         DYLIB_PATH_POSTLINK=''
35735         WXCONFIG_RPATH=''
35736     fi
35737
35738     SHARED=1
35739
35740 else
35741
35742     config_linkage_component="-static"
35743     SHARED=0
35744
35745 fi
35746
35747
35748 UNICODE=0
35749 lib_unicode_suffix=
35750 WX_CHARTYPE="ansi"
35751 if test "$wxUSE_UNICODE" = "yes"; then
35752     lib_unicode_suffix=u
35753     WX_CHARTYPE="unicode"
35754     UNICODE=1
35755 fi
35756
35757 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
35758 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
35759
35760 DEBUG_INFO=0
35761 if test "$wxUSE_DEBUG_INFO" = "yes"; then
35762     DEBUG_INFO=1
35763 fi
35764
35765 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
35766
35767 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
35768
35769 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
35770
35771
35772 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
35773     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35774 else
35775     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35776 fi
35777 if test "${TOOLKIT_DIR}" = "os2"; then
35778     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35779 else
35780     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35781 fi
35782
35783
35784
35785 if test "$wxUSE_OLD_COCOA" = 1; then
35786
35787     ac_ext=c
35788 ac_cpp='$CPP $CPPFLAGS'
35789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35792
35793 ac_ext=m
35794
35795     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
35796 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
35797     cat >conftest.$ac_ext <<_ACEOF
35798 /* confdefs.h.  */
35799 _ACEOF
35800 cat confdefs.h >>conftest.$ac_ext
35801 cat >>conftest.$ac_ext <<_ACEOF
35802 /* end confdefs.h.  */
35803 #include <AppKit/NSEvent.h>
35804 #include <CoreFoundation/CoreFoundation.h>
35805
35806 int
35807 main ()
35808 {
35809
35810   ;
35811   return 0;
35812 }
35813 _ACEOF
35814 rm -f conftest.$ac_objext
35815 if { (ac_try="$ac_compile"
35816 case "(($ac_try" in
35817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35818   *) ac_try_echo=$ac_try;;
35819 esac
35820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35821   (eval "$ac_compile") 2>conftest.er1
35822   ac_status=$?
35823   grep -v '^ *+' conftest.er1 >conftest.err
35824   rm -f conftest.er1
35825   cat conftest.err >&5
35826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827   (exit $ac_status); } && {
35828          test -z "$ac_c_werror_flag" ||
35829          test ! -s conftest.err
35830        } && test -s conftest.$ac_objext; then
35831   { echo "$as_me:$LINENO: result: no" >&5
35832 echo "${ECHO_T}no" >&6; }
35833 else
35834   echo "$as_me: failed program was:" >&5
35835 sed 's/^/| /' conftest.$ac_ext >&5
35836
35837         { echo "$as_me:$LINENO: result: yes" >&5
35838 echo "${ECHO_T}yes" >&6; }
35839         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
35840 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
35841         cat >conftest.$ac_ext <<_ACEOF
35842 /* confdefs.h.  */
35843 _ACEOF
35844 cat confdefs.h >>conftest.$ac_ext
35845 cat >>conftest.$ac_ext <<_ACEOF
35846 /* end confdefs.h.  */
35847 #define __Point__ 1
35848 #include <AppKit/NSEvent.h>
35849 #include <CoreFoundation/CoreFoundation.h>
35850
35851 int
35852 main ()
35853 {
35854
35855   ;
35856   return 0;
35857 }
35858 _ACEOF
35859 rm -f conftest.$ac_objext
35860 if { (ac_try="$ac_compile"
35861 case "(($ac_try" in
35862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35863   *) ac_try_echo=$ac_try;;
35864 esac
35865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35866   (eval "$ac_compile") 2>conftest.er1
35867   ac_status=$?
35868   grep -v '^ *+' conftest.er1 >conftest.err
35869   rm -f conftest.er1
35870   cat conftest.err >&5
35871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872   (exit $ac_status); } && {
35873          test -z "$ac_c_werror_flag" ||
35874          test ! -s conftest.err
35875        } && test -s conftest.$ac_objext; then
35876   { echo "$as_me:$LINENO: result: yes" >&5
35877 echo "${ECHO_T}yes" >&6; }
35878             cat >>confdefs.h <<\_ACEOF
35879 #define __Point__ 1
35880 _ACEOF
35881
35882
35883 else
35884   echo "$as_me: failed program was:" >&5
35885 sed 's/^/| /' conftest.$ac_ext >&5
35886
35887         { { echo "$as_me:$LINENO: error: no
35888 See \`config.log' for more details." >&5
35889 echo "$as_me: error: no
35890 See \`config.log' for more details." >&2;}
35891    { (exit 1); exit 1; }; }
35892
35893 fi
35894
35895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35896
35897 fi
35898
35899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35900     ac_ext=c
35901 ac_cpp='$CPP $CPPFLAGS'
35902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35905
35906 fi
35907
35908
35909 { echo "$as_me:$LINENO: checking for mode_t" >&5
35910 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
35911 if test "${ac_cv_type_mode_t+set}" = set; then
35912   echo $ECHO_N "(cached) $ECHO_C" >&6
35913 else
35914   cat >conftest.$ac_ext <<_ACEOF
35915 /* confdefs.h.  */
35916 _ACEOF
35917 cat confdefs.h >>conftest.$ac_ext
35918 cat >>conftest.$ac_ext <<_ACEOF
35919 /* end confdefs.h.  */
35920 $ac_includes_default
35921 typedef mode_t ac__type_new_;
35922 int
35923 main ()
35924 {
35925 if ((ac__type_new_ *) 0)
35926   return 0;
35927 if (sizeof (ac__type_new_))
35928   return 0;
35929   ;
35930   return 0;
35931 }
35932 _ACEOF
35933 rm -f conftest.$ac_objext
35934 if { (ac_try="$ac_compile"
35935 case "(($ac_try" in
35936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35937   *) ac_try_echo=$ac_try;;
35938 esac
35939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35940   (eval "$ac_compile") 2>conftest.er1
35941   ac_status=$?
35942   grep -v '^ *+' conftest.er1 >conftest.err
35943   rm -f conftest.er1
35944   cat conftest.err >&5
35945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946   (exit $ac_status); } && {
35947          test -z "$ac_c_werror_flag" ||
35948          test ! -s conftest.err
35949        } && test -s conftest.$ac_objext; then
35950   ac_cv_type_mode_t=yes
35951 else
35952   echo "$as_me: failed program was:" >&5
35953 sed 's/^/| /' conftest.$ac_ext >&5
35954
35955         ac_cv_type_mode_t=no
35956 fi
35957
35958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35959 fi
35960 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
35961 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
35962 if test $ac_cv_type_mode_t = yes; then
35963   :
35964 else
35965
35966 cat >>confdefs.h <<_ACEOF
35967 #define mode_t int
35968 _ACEOF
35969
35970 fi
35971
35972 { echo "$as_me:$LINENO: checking for off_t" >&5
35973 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
35974 if test "${ac_cv_type_off_t+set}" = set; then
35975   echo $ECHO_N "(cached) $ECHO_C" >&6
35976 else
35977   cat >conftest.$ac_ext <<_ACEOF
35978 /* confdefs.h.  */
35979 _ACEOF
35980 cat confdefs.h >>conftest.$ac_ext
35981 cat >>conftest.$ac_ext <<_ACEOF
35982 /* end confdefs.h.  */
35983 $ac_includes_default
35984 typedef off_t ac__type_new_;
35985 int
35986 main ()
35987 {
35988 if ((ac__type_new_ *) 0)
35989   return 0;
35990 if (sizeof (ac__type_new_))
35991   return 0;
35992   ;
35993   return 0;
35994 }
35995 _ACEOF
35996 rm -f conftest.$ac_objext
35997 if { (ac_try="$ac_compile"
35998 case "(($ac_try" in
35999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36000   *) ac_try_echo=$ac_try;;
36001 esac
36002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36003   (eval "$ac_compile") 2>conftest.er1
36004   ac_status=$?
36005   grep -v '^ *+' conftest.er1 >conftest.err
36006   rm -f conftest.er1
36007   cat conftest.err >&5
36008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36009   (exit $ac_status); } && {
36010          test -z "$ac_c_werror_flag" ||
36011          test ! -s conftest.err
36012        } && test -s conftest.$ac_objext; then
36013   ac_cv_type_off_t=yes
36014 else
36015   echo "$as_me: failed program was:" >&5
36016 sed 's/^/| /' conftest.$ac_ext >&5
36017
36018         ac_cv_type_off_t=no
36019 fi
36020
36021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36022 fi
36023 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36024 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
36025 if test $ac_cv_type_off_t = yes; then
36026   :
36027 else
36028
36029 cat >>confdefs.h <<_ACEOF
36030 #define off_t long int
36031 _ACEOF
36032
36033 fi
36034
36035 { echo "$as_me:$LINENO: checking for pid_t" >&5
36036 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
36037 if test "${ac_cv_type_pid_t+set}" = set; then
36038   echo $ECHO_N "(cached) $ECHO_C" >&6
36039 else
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 $ac_includes_default
36047 typedef pid_t ac__type_new_;
36048 int
36049 main ()
36050 {
36051 if ((ac__type_new_ *) 0)
36052   return 0;
36053 if (sizeof (ac__type_new_))
36054   return 0;
36055   ;
36056   return 0;
36057 }
36058 _ACEOF
36059 rm -f conftest.$ac_objext
36060 if { (ac_try="$ac_compile"
36061 case "(($ac_try" in
36062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36063   *) ac_try_echo=$ac_try;;
36064 esac
36065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36066   (eval "$ac_compile") 2>conftest.er1
36067   ac_status=$?
36068   grep -v '^ *+' conftest.er1 >conftest.err
36069   rm -f conftest.er1
36070   cat conftest.err >&5
36071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072   (exit $ac_status); } && {
36073          test -z "$ac_c_werror_flag" ||
36074          test ! -s conftest.err
36075        } && test -s conftest.$ac_objext; then
36076   ac_cv_type_pid_t=yes
36077 else
36078   echo "$as_me: failed program was:" >&5
36079 sed 's/^/| /' conftest.$ac_ext >&5
36080
36081         ac_cv_type_pid_t=no
36082 fi
36083
36084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36085 fi
36086 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
36087 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
36088 if test $ac_cv_type_pid_t = yes; then
36089   :
36090 else
36091
36092 cat >>confdefs.h <<_ACEOF
36093 #define pid_t int
36094 _ACEOF
36095
36096 fi
36097
36098 { echo "$as_me:$LINENO: checking for size_t" >&5
36099 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
36100 if test "${ac_cv_type_size_t+set}" = set; then
36101   echo $ECHO_N "(cached) $ECHO_C" >&6
36102 else
36103   cat >conftest.$ac_ext <<_ACEOF
36104 /* confdefs.h.  */
36105 _ACEOF
36106 cat confdefs.h >>conftest.$ac_ext
36107 cat >>conftest.$ac_ext <<_ACEOF
36108 /* end confdefs.h.  */
36109 $ac_includes_default
36110 typedef size_t ac__type_new_;
36111 int
36112 main ()
36113 {
36114 if ((ac__type_new_ *) 0)
36115   return 0;
36116 if (sizeof (ac__type_new_))
36117   return 0;
36118   ;
36119   return 0;
36120 }
36121 _ACEOF
36122 rm -f conftest.$ac_objext
36123 if { (ac_try="$ac_compile"
36124 case "(($ac_try" in
36125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36126   *) ac_try_echo=$ac_try;;
36127 esac
36128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36129   (eval "$ac_compile") 2>conftest.er1
36130   ac_status=$?
36131   grep -v '^ *+' conftest.er1 >conftest.err
36132   rm -f conftest.er1
36133   cat conftest.err >&5
36134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36135   (exit $ac_status); } && {
36136          test -z "$ac_c_werror_flag" ||
36137          test ! -s conftest.err
36138        } && test -s conftest.$ac_objext; then
36139   ac_cv_type_size_t=yes
36140 else
36141   echo "$as_me: failed program was:" >&5
36142 sed 's/^/| /' conftest.$ac_ext >&5
36143
36144         ac_cv_type_size_t=no
36145 fi
36146
36147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36148 fi
36149 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
36150 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
36151 if test $ac_cv_type_size_t = yes; then
36152   :
36153 else
36154
36155 cat >>confdefs.h <<_ACEOF
36156 #define size_t unsigned int
36157 _ACEOF
36158
36159 fi
36160
36161
36162 { echo "$as_me:$LINENO: checking for ssize_t" >&5
36163 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
36164 if test "${ac_cv_type_ssize_t+set}" = set; then
36165   echo $ECHO_N "(cached) $ECHO_C" >&6
36166 else
36167   cat >conftest.$ac_ext <<_ACEOF
36168 /* confdefs.h.  */
36169 _ACEOF
36170 cat confdefs.h >>conftest.$ac_ext
36171 cat >>conftest.$ac_ext <<_ACEOF
36172 /* end confdefs.h.  */
36173 $ac_includes_default
36174 typedef ssize_t ac__type_new_;
36175 int
36176 main ()
36177 {
36178 if ((ac__type_new_ *) 0)
36179   return 0;
36180 if (sizeof (ac__type_new_))
36181   return 0;
36182   ;
36183   return 0;
36184 }
36185 _ACEOF
36186 rm -f conftest.$ac_objext
36187 if { (ac_try="$ac_compile"
36188 case "(($ac_try" in
36189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36190   *) ac_try_echo=$ac_try;;
36191 esac
36192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36193   (eval "$ac_compile") 2>conftest.er1
36194   ac_status=$?
36195   grep -v '^ *+' conftest.er1 >conftest.err
36196   rm -f conftest.er1
36197   cat conftest.err >&5
36198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36199   (exit $ac_status); } && {
36200          test -z "$ac_c_werror_flag" ||
36201          test ! -s conftest.err
36202        } && test -s conftest.$ac_objext; then
36203   ac_cv_type_ssize_t=yes
36204 else
36205   echo "$as_me: failed program was:" >&5
36206 sed 's/^/| /' conftest.$ac_ext >&5
36207
36208         ac_cv_type_ssize_t=no
36209 fi
36210
36211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36212 fi
36213 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36214 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
36215 if test $ac_cv_type_ssize_t = yes; then
36216
36217 cat >>confdefs.h <<_ACEOF
36218 #define HAVE_SSIZE_T 1
36219 _ACEOF
36220
36221
36222 fi
36223
36224
36225 ac_ext=cpp
36226 ac_cpp='$CXXCPP $CPPFLAGS'
36227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36230  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
36231 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
36232 if test "${wx_cv_size_t_is_uint+set}" = set; then
36233   echo $ECHO_N "(cached) $ECHO_C" >&6
36234 else
36235
36236                             cat >conftest.$ac_ext <<_ACEOF
36237 /* confdefs.h.  */
36238 _ACEOF
36239 cat confdefs.h >>conftest.$ac_ext
36240 cat >>conftest.$ac_ext <<_ACEOF
36241 /* end confdefs.h.  */
36242 #include <stddef.h>
36243 int
36244 main ()
36245 {
36246
36247             return 0; }
36248
36249             struct Foo { void foo(size_t); void foo(unsigned int); };
36250
36251             int bar() {
36252
36253   ;
36254   return 0;
36255 }
36256 _ACEOF
36257 rm -f conftest.$ac_objext
36258 if { (ac_try="$ac_compile"
36259 case "(($ac_try" in
36260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36261   *) ac_try_echo=$ac_try;;
36262 esac
36263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36264   (eval "$ac_compile") 2>conftest.er1
36265   ac_status=$?
36266   grep -v '^ *+' conftest.er1 >conftest.err
36267   rm -f conftest.er1
36268   cat conftest.err >&5
36269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270   (exit $ac_status); } && {
36271          test -z "$ac_cxx_werror_flag" ||
36272          test ! -s conftest.err
36273        } && test -s conftest.$ac_objext; then
36274   wx_cv_size_t_is_uint=no
36275 else
36276   echo "$as_me: failed program was:" >&5
36277 sed 's/^/| /' conftest.$ac_ext >&5
36278
36279         wx_cv_size_t_is_uint=yes
36280
36281 fi
36282
36283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36284
36285
36286 fi
36287 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
36288 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
36289
36290 if test "$wx_cv_size_t_is_uint" = "yes"; then
36291     cat >>confdefs.h <<\_ACEOF
36292 #define wxSIZE_T_IS_UINT 1
36293 _ACEOF
36294
36295 else
36296     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
36297 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
36298 if test "${wx_cv_size_t_is_ulong+set}" = set; then
36299   echo $ECHO_N "(cached) $ECHO_C" >&6
36300 else
36301   cat >conftest.$ac_ext <<_ACEOF
36302 /* confdefs.h.  */
36303 _ACEOF
36304 cat confdefs.h >>conftest.$ac_ext
36305 cat >>conftest.$ac_ext <<_ACEOF
36306 /* end confdefs.h.  */
36307 #include <stddef.h>
36308 int
36309 main ()
36310 {
36311
36312                 return 0; }
36313
36314                 struct Foo { void foo(size_t); void foo(unsigned long); };
36315
36316                 int bar() {
36317
36318   ;
36319   return 0;
36320 }
36321 _ACEOF
36322 rm -f conftest.$ac_objext
36323 if { (ac_try="$ac_compile"
36324 case "(($ac_try" in
36325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36326   *) ac_try_echo=$ac_try;;
36327 esac
36328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36329   (eval "$ac_compile") 2>conftest.er1
36330   ac_status=$?
36331   grep -v '^ *+' conftest.er1 >conftest.err
36332   rm -f conftest.er1
36333   cat conftest.err >&5
36334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36335   (exit $ac_status); } && {
36336          test -z "$ac_cxx_werror_flag" ||
36337          test ! -s conftest.err
36338        } && test -s conftest.$ac_objext; then
36339   wx_cv_size_t_is_ulong=no
36340 else
36341   echo "$as_me: failed program was:" >&5
36342 sed 's/^/| /' conftest.$ac_ext >&5
36343
36344         wx_cv_size_t_is_ulong=yes
36345
36346 fi
36347
36348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36349
36350 fi
36351 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
36352 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
36353
36354     if test "$wx_cv_size_t_is_ulong" = "yes"; then
36355         cat >>confdefs.h <<\_ACEOF
36356 #define wxSIZE_T_IS_ULONG 1
36357 _ACEOF
36358
36359     fi
36360 fi
36361
36362 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
36363 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
36364 if test "${wx_cv_wchar_t_is_separate_type+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 #include <wchar.h>
36374 int
36375 main ()
36376 {
36377
36378             return 0; }
36379
36380             struct Foo { void foo(wchar_t);
36381                          void foo(unsigned short);
36382                          void foo(unsigned int);
36383                          void foo(unsigned long); };
36384
36385             int bar() {
36386
36387   ;
36388   return 0;
36389 }
36390 _ACEOF
36391 rm -f conftest.$ac_objext
36392 if { (ac_try="$ac_compile"
36393 case "(($ac_try" in
36394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36395   *) ac_try_echo=$ac_try;;
36396 esac
36397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36398   (eval "$ac_compile") 2>conftest.er1
36399   ac_status=$?
36400   grep -v '^ *+' conftest.er1 >conftest.err
36401   rm -f conftest.er1
36402   cat conftest.err >&5
36403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404   (exit $ac_status); } && {
36405          test -z "$ac_cxx_werror_flag" ||
36406          test ! -s conftest.err
36407        } && test -s conftest.$ac_objext; then
36408   wx_cv_wchar_t_is_separate_type=yes
36409 else
36410   echo "$as_me: failed program was:" >&5
36411 sed 's/^/| /' conftest.$ac_ext >&5
36412
36413         wx_cv_wchar_t_is_separate_type=no
36414
36415 fi
36416
36417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36418
36419 fi
36420 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
36421 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
36422
36423 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
36424     cat >>confdefs.h <<\_ACEOF
36425 #define wxWCHAR_T_IS_REAL_TYPE 1
36426 _ACEOF
36427
36428 else
36429     cat >>confdefs.h <<\_ACEOF
36430 #define wxWCHAR_T_IS_REAL_TYPE 0
36431 _ACEOF
36432
36433 fi
36434
36435 ac_ext=c
36436 ac_cpp='$CPP $CPPFLAGS'
36437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36440
36441
36442 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
36443 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
36444 if test "${wx_cv_struct_pw_gecos+set}" = set; then
36445   echo $ECHO_N "(cached) $ECHO_C" >&6
36446 else
36447
36448         cat >conftest.$ac_ext <<_ACEOF
36449 /* confdefs.h.  */
36450 _ACEOF
36451 cat confdefs.h >>conftest.$ac_ext
36452 cat >>conftest.$ac_ext <<_ACEOF
36453 /* end confdefs.h.  */
36454 #include <pwd.h>
36455 int
36456 main ()
36457 {
36458
36459                 char *p;
36460                 struct passwd *pw;
36461                 p = pw->pw_gecos;
36462
36463   ;
36464   return 0;
36465 }
36466 _ACEOF
36467 rm -f conftest.$ac_objext
36468 if { (ac_try="$ac_compile"
36469 case "(($ac_try" in
36470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36471   *) ac_try_echo=$ac_try;;
36472 esac
36473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36474   (eval "$ac_compile") 2>conftest.er1
36475   ac_status=$?
36476   grep -v '^ *+' conftest.er1 >conftest.err
36477   rm -f conftest.er1
36478   cat conftest.err >&5
36479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480   (exit $ac_status); } && {
36481          test -z "$ac_c_werror_flag" ||
36482          test ! -s conftest.err
36483        } && test -s conftest.$ac_objext; then
36484
36485                 wx_cv_struct_pw_gecos=yes
36486
36487 else
36488   echo "$as_me: failed program was:" >&5
36489 sed 's/^/| /' conftest.$ac_ext >&5
36490
36491
36492                 wx_cv_struct_pw_gecos=no
36493
36494
36495 fi
36496
36497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36498
36499
36500 fi
36501 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
36502 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
36503
36504 if test "$wx_cv_struct_pw_gecos" = "yes"; then
36505     cat >>confdefs.h <<\_ACEOF
36506 #define HAVE_PW_GECOS 1
36507 _ACEOF
36508
36509 fi
36510
36511
36512 WCSLEN_FOUND=0
36513 WCHAR_LINK=
36514
36515 for ac_func in wcslen
36516 do
36517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36521   echo $ECHO_N "(cached) $ECHO_C" >&6
36522 else
36523   cat >conftest.$ac_ext <<_ACEOF
36524 /* confdefs.h.  */
36525 _ACEOF
36526 cat confdefs.h >>conftest.$ac_ext
36527 cat >>conftest.$ac_ext <<_ACEOF
36528 /* end confdefs.h.  */
36529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36531 #define $ac_func innocuous_$ac_func
36532
36533 /* System header to define __stub macros and hopefully few prototypes,
36534     which can conflict with char $ac_func (); below.
36535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36536     <limits.h> exists even on freestanding compilers.  */
36537
36538 #ifdef __STDC__
36539 # include <limits.h>
36540 #else
36541 # include <assert.h>
36542 #endif
36543
36544 #undef $ac_func
36545
36546 /* Override any GCC internal prototype to avoid an error.
36547    Use char because int might match the return type of a GCC
36548    builtin and then its argument prototype would still apply.  */
36549 #ifdef __cplusplus
36550 extern "C"
36551 #endif
36552 char $ac_func ();
36553 /* The GNU C library defines this for functions which it implements
36554     to always fail with ENOSYS.  Some functions are actually named
36555     something starting with __ and the normal name is an alias.  */
36556 #if defined __stub_$ac_func || defined __stub___$ac_func
36557 choke me
36558 #endif
36559
36560 int
36561 main ()
36562 {
36563 return $ac_func ();
36564   ;
36565   return 0;
36566 }
36567 _ACEOF
36568 rm -f conftest.$ac_objext conftest$ac_exeext
36569 if { (ac_try="$ac_link"
36570 case "(($ac_try" in
36571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36572   *) ac_try_echo=$ac_try;;
36573 esac
36574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36575   (eval "$ac_link") 2>conftest.er1
36576   ac_status=$?
36577   grep -v '^ *+' conftest.er1 >conftest.err
36578   rm -f conftest.er1
36579   cat conftest.err >&5
36580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36581   (exit $ac_status); } && {
36582          test -z "$ac_c_werror_flag" ||
36583          test ! -s conftest.err
36584        } && test -s conftest$ac_exeext &&
36585        $as_test_x conftest$ac_exeext; then
36586   eval "$as_ac_var=yes"
36587 else
36588   echo "$as_me: failed program was:" >&5
36589 sed 's/^/| /' conftest.$ac_ext >&5
36590
36591         eval "$as_ac_var=no"
36592 fi
36593
36594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36595       conftest$ac_exeext conftest.$ac_ext
36596 fi
36597 ac_res=`eval echo '${'$as_ac_var'}'`
36598                { echo "$as_me:$LINENO: result: $ac_res" >&5
36599 echo "${ECHO_T}$ac_res" >&6; }
36600 if test `eval echo '${'$as_ac_var'}'` = yes; then
36601   cat >>confdefs.h <<_ACEOF
36602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36603 _ACEOF
36604  WCSLEN_FOUND=1
36605 fi
36606 done
36607
36608
36609 if test "$WCSLEN_FOUND" = 0; then
36610     if test "$TOOLKIT" = "MSW"; then
36611         { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
36612 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
36613 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
36614   echo $ECHO_N "(cached) $ECHO_C" >&6
36615 else
36616   ac_check_lib_save_LIBS=$LIBS
36617 LIBS="-lmsvcrt  $LIBS"
36618 cat >conftest.$ac_ext <<_ACEOF
36619 /* confdefs.h.  */
36620 _ACEOF
36621 cat confdefs.h >>conftest.$ac_ext
36622 cat >>conftest.$ac_ext <<_ACEOF
36623 /* end confdefs.h.  */
36624
36625 /* Override any GCC internal prototype to avoid an error.
36626    Use char because int might match the return type of a GCC
36627    builtin and then its argument prototype would still apply.  */
36628 #ifdef __cplusplus
36629 extern "C"
36630 #endif
36631 char wcslen ();
36632 int
36633 main ()
36634 {
36635 return wcslen ();
36636   ;
36637   return 0;
36638 }
36639 _ACEOF
36640 rm -f conftest.$ac_objext conftest$ac_exeext
36641 if { (ac_try="$ac_link"
36642 case "(($ac_try" in
36643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36644   *) ac_try_echo=$ac_try;;
36645 esac
36646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36647   (eval "$ac_link") 2>conftest.er1
36648   ac_status=$?
36649   grep -v '^ *+' conftest.er1 >conftest.err
36650   rm -f conftest.er1
36651   cat conftest.err >&5
36652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36653   (exit $ac_status); } && {
36654          test -z "$ac_c_werror_flag" ||
36655          test ! -s conftest.err
36656        } && test -s conftest$ac_exeext &&
36657        $as_test_x conftest$ac_exeext; then
36658   ac_cv_lib_msvcrt_wcslen=yes
36659 else
36660   echo "$as_me: failed program was:" >&5
36661 sed 's/^/| /' conftest.$ac_ext >&5
36662
36663         ac_cv_lib_msvcrt_wcslen=no
36664 fi
36665
36666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36667       conftest$ac_exeext conftest.$ac_ext
36668 LIBS=$ac_check_lib_save_LIBS
36669 fi
36670 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
36671 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
36672 if test $ac_cv_lib_msvcrt_wcslen = yes; then
36673   WCHAR_OK=1
36674 fi
36675
36676     else
36677         { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
36678 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
36679 if test "${ac_cv_lib_w_wcslen+set}" = set; then
36680   echo $ECHO_N "(cached) $ECHO_C" >&6
36681 else
36682   ac_check_lib_save_LIBS=$LIBS
36683 LIBS="-lw  $LIBS"
36684 cat >conftest.$ac_ext <<_ACEOF
36685 /* confdefs.h.  */
36686 _ACEOF
36687 cat confdefs.h >>conftest.$ac_ext
36688 cat >>conftest.$ac_ext <<_ACEOF
36689 /* end confdefs.h.  */
36690
36691 /* Override any GCC internal prototype to avoid an error.
36692    Use char because int might match the return type of a GCC
36693    builtin and then its argument prototype would still apply.  */
36694 #ifdef __cplusplus
36695 extern "C"
36696 #endif
36697 char wcslen ();
36698 int
36699 main ()
36700 {
36701 return wcslen ();
36702   ;
36703   return 0;
36704 }
36705 _ACEOF
36706 rm -f conftest.$ac_objext conftest$ac_exeext
36707 if { (ac_try="$ac_link"
36708 case "(($ac_try" in
36709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36710   *) ac_try_echo=$ac_try;;
36711 esac
36712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36713   (eval "$ac_link") 2>conftest.er1
36714   ac_status=$?
36715   grep -v '^ *+' conftest.er1 >conftest.err
36716   rm -f conftest.er1
36717   cat conftest.err >&5
36718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719   (exit $ac_status); } && {
36720          test -z "$ac_c_werror_flag" ||
36721          test ! -s conftest.err
36722        } && test -s conftest$ac_exeext &&
36723        $as_test_x conftest$ac_exeext; then
36724   ac_cv_lib_w_wcslen=yes
36725 else
36726   echo "$as_me: failed program was:" >&5
36727 sed 's/^/| /' conftest.$ac_ext >&5
36728
36729         ac_cv_lib_w_wcslen=no
36730 fi
36731
36732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36733       conftest$ac_exeext conftest.$ac_ext
36734 LIBS=$ac_check_lib_save_LIBS
36735 fi
36736 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
36737 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
36738 if test $ac_cv_lib_w_wcslen = yes; then
36739
36740                         WCHAR_LINK=" -lw"
36741                         WCSLEN_FOUND=1
36742
36743 fi
36744
36745     fi
36746 fi
36747
36748 if test "$WCSLEN_FOUND" = 1; then
36749     cat >>confdefs.h <<\_ACEOF
36750 #define HAVE_WCSLEN 1
36751 _ACEOF
36752
36753 fi
36754
36755
36756
36757
36758
36759
36760
36761 for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
36762 do
36763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36767   echo $ECHO_N "(cached) $ECHO_C" >&6
36768 else
36769   cat >conftest.$ac_ext <<_ACEOF
36770 /* confdefs.h.  */
36771 _ACEOF
36772 cat confdefs.h >>conftest.$ac_ext
36773 cat >>conftest.$ac_ext <<_ACEOF
36774 /* end confdefs.h.  */
36775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36777 #define $ac_func innocuous_$ac_func
36778
36779 /* System header to define __stub macros and hopefully few prototypes,
36780     which can conflict with char $ac_func (); below.
36781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36782     <limits.h> exists even on freestanding compilers.  */
36783
36784 #ifdef __STDC__
36785 # include <limits.h>
36786 #else
36787 # include <assert.h>
36788 #endif
36789
36790 #undef $ac_func
36791
36792 /* Override any GCC internal prototype to avoid an error.
36793    Use char because int might match the return type of a GCC
36794    builtin and then its argument prototype would still apply.  */
36795 #ifdef __cplusplus
36796 extern "C"
36797 #endif
36798 char $ac_func ();
36799 /* The GNU C library defines this for functions which it implements
36800     to always fail with ENOSYS.  Some functions are actually named
36801     something starting with __ and the normal name is an alias.  */
36802 #if defined __stub_$ac_func || defined __stub___$ac_func
36803 choke me
36804 #endif
36805
36806 int
36807 main ()
36808 {
36809 return $ac_func ();
36810   ;
36811   return 0;
36812 }
36813 _ACEOF
36814 rm -f conftest.$ac_objext conftest$ac_exeext
36815 if { (ac_try="$ac_link"
36816 case "(($ac_try" in
36817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36818   *) ac_try_echo=$ac_try;;
36819 esac
36820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36821   (eval "$ac_link") 2>conftest.er1
36822   ac_status=$?
36823   grep -v '^ *+' conftest.er1 >conftest.err
36824   rm -f conftest.er1
36825   cat conftest.err >&5
36826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36827   (exit $ac_status); } && {
36828          test -z "$ac_c_werror_flag" ||
36829          test ! -s conftest.err
36830        } && test -s conftest$ac_exeext &&
36831        $as_test_x conftest$ac_exeext; then
36832   eval "$as_ac_var=yes"
36833 else
36834   echo "$as_me: failed program was:" >&5
36835 sed 's/^/| /' conftest.$ac_ext >&5
36836
36837         eval "$as_ac_var=no"
36838 fi
36839
36840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36841       conftest$ac_exeext conftest.$ac_ext
36842 fi
36843 ac_res=`eval echo '${'$as_ac_var'}'`
36844                { echo "$as_me:$LINENO: result: $ac_res" >&5
36845 echo "${ECHO_T}$ac_res" >&6; }
36846 if test `eval echo '${'$as_ac_var'}'` = yes; then
36847   cat >>confdefs.h <<_ACEOF
36848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36849 _ACEOF
36850
36851 fi
36852 done
36853
36854
36855 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
36856     CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
36857 fi
36858
36859 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
36860 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
36861 if test "${ac_cv_type_mbstate_t+set}" = set; then
36862   echo $ECHO_N "(cached) $ECHO_C" >&6
36863 else
36864   cat >conftest.$ac_ext <<_ACEOF
36865 /* confdefs.h.  */
36866 _ACEOF
36867 cat confdefs.h >>conftest.$ac_ext
36868 cat >>conftest.$ac_ext <<_ACEOF
36869 /* end confdefs.h.  */
36870 #include <wchar.h>
36871
36872 typedef mbstate_t ac__type_new_;
36873 int
36874 main ()
36875 {
36876 if ((ac__type_new_ *) 0)
36877   return 0;
36878 if (sizeof (ac__type_new_))
36879   return 0;
36880   ;
36881   return 0;
36882 }
36883 _ACEOF
36884 rm -f conftest.$ac_objext
36885 if { (ac_try="$ac_compile"
36886 case "(($ac_try" in
36887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36888   *) ac_try_echo=$ac_try;;
36889 esac
36890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36891   (eval "$ac_compile") 2>conftest.er1
36892   ac_status=$?
36893   grep -v '^ *+' conftest.er1 >conftest.err
36894   rm -f conftest.er1
36895   cat conftest.err >&5
36896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36897   (exit $ac_status); } && {
36898          test -z "$ac_c_werror_flag" ||
36899          test ! -s conftest.err
36900        } && test -s conftest.$ac_objext; then
36901   ac_cv_type_mbstate_t=yes
36902 else
36903   echo "$as_me: failed program was:" >&5
36904 sed 's/^/| /' conftest.$ac_ext >&5
36905
36906         ac_cv_type_mbstate_t=no
36907 fi
36908
36909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36910 fi
36911 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
36912 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
36913 if test $ac_cv_type_mbstate_t = yes; then
36914
36915 cat >>confdefs.h <<_ACEOF
36916 #define HAVE_MBSTATE_T 1
36917 _ACEOF
36918
36919
36920 for ac_func in wcsrtombs
36921 do
36922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36926   echo $ECHO_N "(cached) $ECHO_C" >&6
36927 else
36928   cat >conftest.$ac_ext <<_ACEOF
36929 /* confdefs.h.  */
36930 _ACEOF
36931 cat confdefs.h >>conftest.$ac_ext
36932 cat >>conftest.$ac_ext <<_ACEOF
36933 /* end confdefs.h.  */
36934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36936 #define $ac_func innocuous_$ac_func
36937
36938 /* System header to define __stub macros and hopefully few prototypes,
36939     which can conflict with char $ac_func (); below.
36940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36941     <limits.h> exists even on freestanding compilers.  */
36942
36943 #ifdef __STDC__
36944 # include <limits.h>
36945 #else
36946 # include <assert.h>
36947 #endif
36948
36949 #undef $ac_func
36950
36951 /* Override any GCC internal prototype to avoid an error.
36952    Use char because int might match the return type of a GCC
36953    builtin and then its argument prototype would still apply.  */
36954 #ifdef __cplusplus
36955 extern "C"
36956 #endif
36957 char $ac_func ();
36958 /* The GNU C library defines this for functions which it implements
36959     to always fail with ENOSYS.  Some functions are actually named
36960     something starting with __ and the normal name is an alias.  */
36961 #if defined __stub_$ac_func || defined __stub___$ac_func
36962 choke me
36963 #endif
36964
36965 int
36966 main ()
36967 {
36968 return $ac_func ();
36969   ;
36970   return 0;
36971 }
36972 _ACEOF
36973 rm -f conftest.$ac_objext conftest$ac_exeext
36974 if { (ac_try="$ac_link"
36975 case "(($ac_try" in
36976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36977   *) ac_try_echo=$ac_try;;
36978 esac
36979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36980   (eval "$ac_link") 2>conftest.er1
36981   ac_status=$?
36982   grep -v '^ *+' conftest.er1 >conftest.err
36983   rm -f conftest.er1
36984   cat conftest.err >&5
36985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36986   (exit $ac_status); } && {
36987          test -z "$ac_c_werror_flag" ||
36988          test ! -s conftest.err
36989        } && test -s conftest$ac_exeext &&
36990        $as_test_x conftest$ac_exeext; then
36991   eval "$as_ac_var=yes"
36992 else
36993   echo "$as_me: failed program was:" >&5
36994 sed 's/^/| /' conftest.$ac_ext >&5
36995
36996         eval "$as_ac_var=no"
36997 fi
36998
36999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37000       conftest$ac_exeext conftest.$ac_ext
37001 fi
37002 ac_res=`eval echo '${'$as_ac_var'}'`
37003                { echo "$as_me:$LINENO: result: $ac_res" >&5
37004 echo "${ECHO_T}$ac_res" >&6; }
37005 if test `eval echo '${'$as_ac_var'}'` = yes; then
37006   cat >>confdefs.h <<_ACEOF
37007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37008 _ACEOF
37009
37010 fi
37011 done
37012
37013 fi
37014
37015
37016
37017
37018
37019 for ac_func in snprintf vsnprintf vsscanf
37020 do
37021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37025   echo $ECHO_N "(cached) $ECHO_C" >&6
37026 else
37027   cat >conftest.$ac_ext <<_ACEOF
37028 /* confdefs.h.  */
37029 _ACEOF
37030 cat confdefs.h >>conftest.$ac_ext
37031 cat >>conftest.$ac_ext <<_ACEOF
37032 /* end confdefs.h.  */
37033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37035 #define $ac_func innocuous_$ac_func
37036
37037 /* System header to define __stub macros and hopefully few prototypes,
37038     which can conflict with char $ac_func (); below.
37039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37040     <limits.h> exists even on freestanding compilers.  */
37041
37042 #ifdef __STDC__
37043 # include <limits.h>
37044 #else
37045 # include <assert.h>
37046 #endif
37047
37048 #undef $ac_func
37049
37050 /* Override any GCC internal prototype to avoid an error.
37051    Use char because int might match the return type of a GCC
37052    builtin and then its argument prototype would still apply.  */
37053 #ifdef __cplusplus
37054 extern "C"
37055 #endif
37056 char $ac_func ();
37057 /* The GNU C library defines this for functions which it implements
37058     to always fail with ENOSYS.  Some functions are actually named
37059     something starting with __ and the normal name is an alias.  */
37060 #if defined __stub_$ac_func || defined __stub___$ac_func
37061 choke me
37062 #endif
37063
37064 int
37065 main ()
37066 {
37067 return $ac_func ();
37068   ;
37069   return 0;
37070 }
37071 _ACEOF
37072 rm -f conftest.$ac_objext conftest$ac_exeext
37073 if { (ac_try="$ac_link"
37074 case "(($ac_try" in
37075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37076   *) ac_try_echo=$ac_try;;
37077 esac
37078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37079   (eval "$ac_link") 2>conftest.er1
37080   ac_status=$?
37081   grep -v '^ *+' conftest.er1 >conftest.err
37082   rm -f conftest.er1
37083   cat conftest.err >&5
37084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37085   (exit $ac_status); } && {
37086          test -z "$ac_c_werror_flag" ||
37087          test ! -s conftest.err
37088        } && test -s conftest$ac_exeext &&
37089        $as_test_x conftest$ac_exeext; then
37090   eval "$as_ac_var=yes"
37091 else
37092   echo "$as_me: failed program was:" >&5
37093 sed 's/^/| /' conftest.$ac_ext >&5
37094
37095         eval "$as_ac_var=no"
37096 fi
37097
37098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37099       conftest$ac_exeext conftest.$ac_ext
37100 fi
37101 ac_res=`eval echo '${'$as_ac_var'}'`
37102                { echo "$as_me:$LINENO: result: $ac_res" >&5
37103 echo "${ECHO_T}$ac_res" >&6; }
37104 if test `eval echo '${'$as_ac_var'}'` = yes; then
37105   cat >>confdefs.h <<_ACEOF
37106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37107 _ACEOF
37108
37109 fi
37110 done
37111
37112
37113 ac_ext=cpp
37114 ac_cpp='$CXXCPP $CPPFLAGS'
37115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37118
37119 if test "$ac_cv_func_vsnprintf" = "yes"; then
37120         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
37121 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
37122 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
37123   echo $ECHO_N "(cached) $ECHO_C" >&6
37124 else
37125
37126                                                             cat >conftest.$ac_ext <<_ACEOF
37127 /* confdefs.h.  */
37128 _ACEOF
37129 cat confdefs.h >>conftest.$ac_ext
37130 cat >>conftest.$ac_ext <<_ACEOF
37131 /* end confdefs.h.  */
37132
37133                     #include <stdio.h>
37134                     #include <stdarg.h>
37135                     #ifdef __MSL__
37136                     #if __MSL__ >= 0x6000
37137                     namespace std {}
37138                     using namespace std;
37139                     #endif
37140                     #endif
37141
37142 int
37143 main ()
37144 {
37145
37146                     char *buf;
37147                     va_list ap;
37148                     vsnprintf(buf, 10u, "%s", ap);
37149
37150   ;
37151   return 0;
37152 }
37153 _ACEOF
37154 rm -f conftest.$ac_objext
37155 if { (ac_try="$ac_compile"
37156 case "(($ac_try" in
37157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37158   *) ac_try_echo=$ac_try;;
37159 esac
37160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37161   (eval "$ac_compile") 2>conftest.er1
37162   ac_status=$?
37163   grep -v '^ *+' conftest.er1 >conftest.err
37164   rm -f conftest.er1
37165   cat conftest.err >&5
37166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167   (exit $ac_status); } && {
37168          test -z "$ac_cxx_werror_flag" ||
37169          test ! -s conftest.err
37170        } && test -s conftest.$ac_objext; then
37171   wx_cv_func_vsnprintf_decl=yes
37172 else
37173   echo "$as_me: failed program was:" >&5
37174 sed 's/^/| /' conftest.$ac_ext >&5
37175
37176         wx_cv_func_vsnprintf_decl=no
37177
37178 fi
37179
37180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37181
37182
37183 fi
37184 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
37185 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
37186
37187     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
37188         cat >>confdefs.h <<\_ACEOF
37189 #define HAVE_VSNPRINTF_DECL 1
37190 _ACEOF
37191
37192
37193                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
37194 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
37195 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
37196   echo $ECHO_N "(cached) $ECHO_C" >&6
37197 else
37198
37199                 cat >conftest.$ac_ext <<_ACEOF
37200 /* confdefs.h.  */
37201 _ACEOF
37202 cat confdefs.h >>conftest.$ac_ext
37203 cat >>conftest.$ac_ext <<_ACEOF
37204 /* end confdefs.h.  */
37205
37206                         #include <stdio.h>
37207                         #include <stdarg.h>
37208                         #ifdef __MSL__
37209                         #if __MSL__ >= 0x6000
37210                         namespace std {}
37211                         using namespace std;
37212                         #endif
37213                         #endif
37214
37215 int
37216 main ()
37217 {
37218
37219                         char *buf;
37220                         va_list ap;
37221                         const char *fmt = "%s";
37222                         vsnprintf(buf, 10u, fmt, ap);
37223
37224   ;
37225   return 0;
37226 }
37227 _ACEOF
37228 rm -f conftest.$ac_objext
37229 if { (ac_try="$ac_compile"
37230 case "(($ac_try" in
37231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37232   *) ac_try_echo=$ac_try;;
37233 esac
37234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37235   (eval "$ac_compile") 2>conftest.er1
37236   ac_status=$?
37237   grep -v '^ *+' conftest.er1 >conftest.err
37238   rm -f conftest.er1
37239   cat conftest.err >&5
37240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241   (exit $ac_status); } && {
37242          test -z "$ac_cxx_werror_flag" ||
37243          test ! -s conftest.err
37244        } && test -s conftest.$ac_objext; then
37245   wx_cv_func_broken_vsnprintf_decl=no
37246 else
37247   echo "$as_me: failed program was:" >&5
37248 sed 's/^/| /' conftest.$ac_ext >&5
37249
37250         wx_cv_func_broken_vsnprintf_decl=yes
37251
37252 fi
37253
37254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37255
37256
37257 fi
37258 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
37259 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
37260
37261         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
37262             cat >>confdefs.h <<\_ACEOF
37263 #define HAVE_BROKEN_VSNPRINTF_DECL 1
37264 _ACEOF
37265
37266         fi
37267     fi
37268 fi
37269
37270 if test "$ac_cv_func_snprintf" = "yes"; then
37271     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
37272 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
37273 if test "${wx_cv_func_snprintf_decl+set}" = set; then
37274   echo $ECHO_N "(cached) $ECHO_C" >&6
37275 else
37276
37277             cat >conftest.$ac_ext <<_ACEOF
37278 /* confdefs.h.  */
37279 _ACEOF
37280 cat confdefs.h >>conftest.$ac_ext
37281 cat >>conftest.$ac_ext <<_ACEOF
37282 /* end confdefs.h.  */
37283
37284                     #include <stdio.h>
37285                     #include <stdarg.h>
37286                     #ifdef __MSL__
37287                     #if __MSL__ >= 0x6000
37288                     namespace std {}
37289                     using namespace std;
37290                     #endif
37291                     #endif
37292
37293 int
37294 main ()
37295 {
37296
37297                     char *buf;
37298                     snprintf(buf, 10u, "%s", "wx");
37299
37300   ;
37301   return 0;
37302 }
37303 _ACEOF
37304 rm -f conftest.$ac_objext
37305 if { (ac_try="$ac_compile"
37306 case "(($ac_try" in
37307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37308   *) ac_try_echo=$ac_try;;
37309 esac
37310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37311   (eval "$ac_compile") 2>conftest.er1
37312   ac_status=$?
37313   grep -v '^ *+' conftest.er1 >conftest.err
37314   rm -f conftest.er1
37315   cat conftest.err >&5
37316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37317   (exit $ac_status); } && {
37318          test -z "$ac_cxx_werror_flag" ||
37319          test ! -s conftest.err
37320        } && test -s conftest.$ac_objext; then
37321   wx_cv_func_snprintf_decl=yes
37322 else
37323   echo "$as_me: failed program was:" >&5
37324 sed 's/^/| /' conftest.$ac_ext >&5
37325
37326         wx_cv_func_snprintf_decl=no
37327
37328 fi
37329
37330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37331
37332
37333 fi
37334 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
37335 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
37336
37337     if test "$wx_cv_func_snprintf_decl" = "yes"; then
37338         cat >>confdefs.h <<\_ACEOF
37339 #define HAVE_SNPRINTF_DECL 1
37340 _ACEOF
37341
37342     fi
37343
37344     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
37345
37346                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
37347 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
37348 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
37349   echo $ECHO_N "(cached) $ECHO_C" >&6
37350 else
37351
37352                 if test "$cross_compiling" = yes; then
37353
37354                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
37355 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
37356 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
37357 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
37358                         wx_cv_func_snprintf_pos_params=no
37359
37360
37361 else
37362   cat >conftest.$ac_ext <<_ACEOF
37363 /* confdefs.h.  */
37364 _ACEOF
37365 cat confdefs.h >>conftest.$ac_ext
37366 cat >>conftest.$ac_ext <<_ACEOF
37367 /* end confdefs.h.  */
37368
37369                         #include <stdio.h>
37370
37371                         int main (void)
37372                         {
37373                             char buffer[128];
37374                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
37375                             if (strcmp ("2 3 1", buffer) == 0)
37376                                 exit (0);
37377                             exit (1);
37378                         }
37379
37380 _ACEOF
37381 rm -f conftest$ac_exeext
37382 if { (ac_try="$ac_link"
37383 case "(($ac_try" in
37384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37385   *) ac_try_echo=$ac_try;;
37386 esac
37387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37388   (eval "$ac_link") 2>&5
37389   ac_status=$?
37390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37392   { (case "(($ac_try" in
37393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37394   *) ac_try_echo=$ac_try;;
37395 esac
37396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37397   (eval "$ac_try") 2>&5
37398   ac_status=$?
37399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37400   (exit $ac_status); }; }; then
37401   wx_cv_func_snprintf_pos_params=no
37402 else
37403   echo "$as_me: program exited with status $ac_status" >&5
37404 echo "$as_me: failed program was:" >&5
37405 sed 's/^/| /' conftest.$ac_ext >&5
37406
37407 ( exit $ac_status )
37408 wx_cv_func_snprintf_pos_params=yes
37409 fi
37410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37411 fi
37412
37413
37414
37415
37416 fi
37417 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
37418 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
37419
37420         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
37421             cat >>confdefs.h <<\_ACEOF
37422 #define HAVE_UNIX98_PRINTF 1
37423 _ACEOF
37424
37425         fi
37426     fi
37427 fi
37428
37429 if test "$ac_cv_func_vsscanf" = "yes"; then
37430     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
37431 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
37432 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
37433   echo $ECHO_N "(cached) $ECHO_C" >&6
37434 else
37435
37436             cat >conftest.$ac_ext <<_ACEOF
37437 /* confdefs.h.  */
37438 _ACEOF
37439 cat confdefs.h >>conftest.$ac_ext
37440 cat >>conftest.$ac_ext <<_ACEOF
37441 /* end confdefs.h.  */
37442
37443                     #include <stdio.h>
37444                     #include <stdarg.h>
37445                     #ifdef __MSL__
37446                     #if __MSL__ >= 0x6000
37447                     namespace std {}
37448                     using namespace std;
37449                     #endif
37450                     #endif
37451
37452 int
37453 main ()
37454 {
37455
37456                     char *buf;
37457                     va_list args;
37458                     vsscanf(buf, "%s", args);
37459
37460   ;
37461   return 0;
37462 }
37463 _ACEOF
37464 rm -f conftest.$ac_objext
37465 if { (ac_try="$ac_compile"
37466 case "(($ac_try" in
37467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37468   *) ac_try_echo=$ac_try;;
37469 esac
37470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37471   (eval "$ac_compile") 2>conftest.er1
37472   ac_status=$?
37473   grep -v '^ *+' conftest.er1 >conftest.err
37474   rm -f conftest.er1
37475   cat conftest.err >&5
37476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37477   (exit $ac_status); } && {
37478          test -z "$ac_cxx_werror_flag" ||
37479          test ! -s conftest.err
37480        } && test -s conftest.$ac_objext; then
37481   wx_cv_func_vsscanf_decl=yes
37482 else
37483   echo "$as_me: failed program was:" >&5
37484 sed 's/^/| /' conftest.$ac_ext >&5
37485
37486         wx_cv_func_vsscanf_decl=no
37487
37488 fi
37489
37490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37491
37492
37493 fi
37494 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
37495 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
37496
37497     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
37498         cat >>confdefs.h <<\_ACEOF
37499 #define HAVE_VSSCANF_DECL 1
37500 _ACEOF
37501
37502     fi
37503 fi
37504 ac_ext=c
37505 ac_cpp='$CPP $CPPFLAGS'
37506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37509
37510
37511 if test "$wxUSE_UNICODE" = yes; then
37512
37513             wchar_headers="#include <stdio.h>
37514 #include <wchar.h>"
37515     case "${host}" in
37516         *-*-solaris2* )
37517
37518 for ac_header in widec.h
37519 do
37520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37524   echo $ECHO_N "(cached) $ECHO_C" >&6
37525 else
37526   cat >conftest.$ac_ext <<_ACEOF
37527 /* confdefs.h.  */
37528 _ACEOF
37529 cat confdefs.h >>conftest.$ac_ext
37530 cat >>conftest.$ac_ext <<_ACEOF
37531 /* end confdefs.h.  */
37532 $ac_includes_default
37533
37534 #include <$ac_header>
37535 _ACEOF
37536 rm -f conftest.$ac_objext
37537 if { (ac_try="$ac_compile"
37538 case "(($ac_try" in
37539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37540   *) ac_try_echo=$ac_try;;
37541 esac
37542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37543   (eval "$ac_compile") 2>conftest.er1
37544   ac_status=$?
37545   grep -v '^ *+' conftest.er1 >conftest.err
37546   rm -f conftest.er1
37547   cat conftest.err >&5
37548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549   (exit $ac_status); } && {
37550          test -z "$ac_c_werror_flag" ||
37551          test ! -s conftest.err
37552        } && test -s conftest.$ac_objext; then
37553   eval "$as_ac_Header=yes"
37554 else
37555   echo "$as_me: failed program was:" >&5
37556 sed 's/^/| /' conftest.$ac_ext >&5
37557
37558         eval "$as_ac_Header=no"
37559 fi
37560
37561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37562 fi
37563 ac_res=`eval echo '${'$as_ac_Header'}'`
37564                { echo "$as_me:$LINENO: result: $ac_res" >&5
37565 echo "${ECHO_T}$ac_res" >&6; }
37566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37567   cat >>confdefs.h <<_ACEOF
37568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37569 _ACEOF
37570
37571 fi
37572
37573 done
37574
37575             if test "$ac_cv_header_widec_h" = "yes"; then
37576                 wchar_headers="$wchar_headers
37577 #include <widec.h>"
37578             fi
37579     esac
37580
37581
37582   for wx_func in putws fputws wprintf vswprintf vswscanf
37583   do
37584     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37585 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37586 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37587   echo $ECHO_N "(cached) $ECHO_C" >&6
37588 else
37589
37590         cat >conftest.$ac_ext <<_ACEOF
37591
37592             /* confdefs.h.  */
37593 _ACEOF
37594 cat confdefs.h >>conftest.$ac_ext
37595 cat >>conftest.$ac_ext <<_ACEOF
37596 /* end confdefs.h.  */
37597
37598                 $wchar_headers
37599                 $ac_includes_default
37600
37601 int
37602 main ()
37603 {
37604
37605                 #ifndef $wx_func
37606                   &$wx_func;
37607                 #endif
37608
37609
37610   ;
37611   return 0;
37612 }
37613
37614 _ACEOF
37615 rm -f conftest.$ac_objext conftest$ac_exeext
37616 if { (ac_try="$ac_link"
37617 case "(($ac_try" in
37618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37619   *) ac_try_echo=$ac_try;;
37620 esac
37621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37622   (eval "$ac_link") 2>conftest.er1
37623   ac_status=$?
37624   grep -v '^ *+' conftest.er1 >conftest.err
37625   rm -f conftest.er1
37626   cat conftest.err >&5
37627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37628   (exit $ac_status); } && {
37629          test -z "$ac_c_werror_flag" ||
37630          test ! -s conftest.err
37631        } && test -s conftest$ac_exeext &&
37632        $as_test_x conftest$ac_exeext; then
37633   eval wx_cv_func_$wx_func=yes
37634 else
37635   echo "$as_me: failed program was:" >&5
37636 sed 's/^/| /' conftest.$ac_ext >&5
37637
37638         eval wx_cv_func_$wx_func=no
37639 fi
37640
37641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37642       conftest$ac_exeext conftest.$ac_ext
37643
37644 fi
37645 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37646                { echo "$as_me:$LINENO: result: $ac_res" >&5
37647 echo "${ECHO_T}$ac_res" >&6; }
37648
37649     if eval test \$wx_cv_func_$wx_func = yes
37650     then
37651       cat >>confdefs.h <<_ACEOF
37652 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37653 _ACEOF
37654
37655
37656     else
37657       :
37658
37659     fi
37660   done
37661
37662
37663                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
37664 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
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 #include <wchar.h>
37672 int
37673 main ()
37674 {
37675 &_vsnwprintf;
37676   ;
37677   return 0;
37678 }
37679 _ACEOF
37680 rm -f conftest.$ac_objext
37681 if { (ac_try="$ac_compile"
37682 case "(($ac_try" in
37683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37684   *) ac_try_echo=$ac_try;;
37685 esac
37686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37687   (eval "$ac_compile") 2>conftest.er1
37688   ac_status=$?
37689   grep -v '^ *+' conftest.er1 >conftest.err
37690   rm -f conftest.er1
37691   cat conftest.err >&5
37692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37693   (exit $ac_status); } && {
37694          test -z "$ac_c_werror_flag" ||
37695          test ! -s conftest.err
37696        } && test -s conftest.$ac_objext; then
37697   { echo "$as_me:$LINENO: result: yes" >&5
37698 echo "${ECHO_T}yes" >&6; }
37699                     cat >>confdefs.h <<\_ACEOF
37700 #define HAVE__VSNWPRINTF 1
37701 _ACEOF
37702
37703 else
37704   echo "$as_me: failed program was:" >&5
37705 sed 's/^/| /' conftest.$ac_ext >&5
37706
37707         { echo "$as_me:$LINENO: result: no" >&5
37708 echo "${ECHO_T}no" >&6; }
37709 fi
37710
37711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
37712 fi
37713
37714 if test "$wxUSE_FILE" = "yes"; then
37715
37716   for wx_func in fsync
37717   do
37718     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37719 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37720 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37721   echo $ECHO_N "(cached) $ECHO_C" >&6
37722 else
37723
37724         cat >conftest.$ac_ext <<_ACEOF
37725
37726             /* confdefs.h.  */
37727 _ACEOF
37728 cat confdefs.h >>conftest.$ac_ext
37729 cat >>conftest.$ac_ext <<_ACEOF
37730 /* end confdefs.h.  */
37731
37732
37733                 $ac_includes_default
37734
37735 int
37736 main ()
37737 {
37738
37739                 #ifndef $wx_func
37740                   &$wx_func;
37741                 #endif
37742
37743
37744   ;
37745   return 0;
37746 }
37747
37748 _ACEOF
37749 rm -f conftest.$ac_objext conftest$ac_exeext
37750 if { (ac_try="$ac_link"
37751 case "(($ac_try" in
37752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37753   *) ac_try_echo=$ac_try;;
37754 esac
37755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37756   (eval "$ac_link") 2>conftest.er1
37757   ac_status=$?
37758   grep -v '^ *+' conftest.er1 >conftest.err
37759   rm -f conftest.er1
37760   cat conftest.err >&5
37761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762   (exit $ac_status); } && {
37763          test -z "$ac_c_werror_flag" ||
37764          test ! -s conftest.err
37765        } && test -s conftest$ac_exeext &&
37766        $as_test_x conftest$ac_exeext; then
37767   eval wx_cv_func_$wx_func=yes
37768 else
37769   echo "$as_me: failed program was:" >&5
37770 sed 's/^/| /' conftest.$ac_ext >&5
37771
37772         eval wx_cv_func_$wx_func=no
37773 fi
37774
37775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37776       conftest$ac_exeext conftest.$ac_ext
37777
37778 fi
37779 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37780                { echo "$as_me:$LINENO: result: $ac_res" >&5
37781 echo "${ECHO_T}$ac_res" >&6; }
37782
37783     if eval test \$wx_cv_func_$wx_func = yes
37784     then
37785       cat >>confdefs.h <<_ACEOF
37786 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37787 _ACEOF
37788
37789
37790     else
37791       :
37792
37793     fi
37794   done
37795
37796 fi
37797
37798 ac_ext=cpp
37799 ac_cpp='$CXXCPP $CPPFLAGS'
37800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37803
37804
37805   for wx_func in round
37806   do
37807     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37808 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37809 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37810   echo $ECHO_N "(cached) $ECHO_C" >&6
37811 else
37812
37813         cat >conftest.$ac_ext <<_ACEOF
37814
37815             /* confdefs.h.  */
37816 _ACEOF
37817 cat confdefs.h >>conftest.$ac_ext
37818 cat >>conftest.$ac_ext <<_ACEOF
37819 /* end confdefs.h.  */
37820
37821                 #include <math.h>
37822                 $ac_includes_default
37823
37824 int
37825 main ()
37826 {
37827
37828                 #ifndef $wx_func
37829                   &$wx_func;
37830                 #endif
37831
37832
37833   ;
37834   return 0;
37835 }
37836
37837 _ACEOF
37838 rm -f conftest.$ac_objext conftest$ac_exeext
37839 if { (ac_try="$ac_link"
37840 case "(($ac_try" in
37841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37842   *) ac_try_echo=$ac_try;;
37843 esac
37844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37845   (eval "$ac_link") 2>conftest.er1
37846   ac_status=$?
37847   grep -v '^ *+' conftest.er1 >conftest.err
37848   rm -f conftest.er1
37849   cat conftest.err >&5
37850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37851   (exit $ac_status); } && {
37852          test -z "$ac_cxx_werror_flag" ||
37853          test ! -s conftest.err
37854        } && test -s conftest$ac_exeext &&
37855        $as_test_x conftest$ac_exeext; then
37856   eval wx_cv_func_$wx_func=yes
37857 else
37858   echo "$as_me: failed program was:" >&5
37859 sed 's/^/| /' conftest.$ac_ext >&5
37860
37861         eval wx_cv_func_$wx_func=no
37862 fi
37863
37864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37865       conftest$ac_exeext conftest.$ac_ext
37866
37867 fi
37868 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37869                { echo "$as_me:$LINENO: result: $ac_res" >&5
37870 echo "${ECHO_T}$ac_res" >&6; }
37871
37872     if eval test \$wx_cv_func_$wx_func = yes
37873     then
37874       cat >>confdefs.h <<_ACEOF
37875 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37876 _ACEOF
37877
37878
37879     else
37880       :
37881
37882     fi
37883   done
37884
37885 ac_ext=c
37886 ac_cpp='$CPP $CPPFLAGS'
37887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37890
37891
37892 if test "$TOOLKIT" != "MSW"; then
37893
37894 if test "$wxUSE_LIBICONV" != "no" ; then
37895
37896
37897
37898 # Check whether --with-libiconv-prefix was given.
37899 if test "${with_libiconv_prefix+set}" = set; then
37900   withval=$with_libiconv_prefix;
37901     for dir in `echo "$withval" | tr : ' '`; do
37902       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
37903       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
37904     done
37905
37906 fi
37907
37908
37909   { echo "$as_me:$LINENO: checking for iconv" >&5
37910 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
37911 if test "${am_cv_func_iconv+set}" = set; then
37912   echo $ECHO_N "(cached) $ECHO_C" >&6
37913 else
37914
37915     am_cv_func_iconv="no, consider installing GNU libiconv"
37916     am_cv_lib_iconv=no
37917     cat >conftest.$ac_ext <<_ACEOF
37918 /* confdefs.h.  */
37919 _ACEOF
37920 cat confdefs.h >>conftest.$ac_ext
37921 cat >>conftest.$ac_ext <<_ACEOF
37922 /* end confdefs.h.  */
37923 #include <stdlib.h>
37924 #include <iconv.h>
37925 int
37926 main ()
37927 {
37928 iconv_t cd = iconv_open("","");
37929        iconv(cd,NULL,NULL,NULL,NULL);
37930        iconv_close(cd);
37931   ;
37932   return 0;
37933 }
37934 _ACEOF
37935 rm -f conftest.$ac_objext conftest$ac_exeext
37936 if { (ac_try="$ac_link"
37937 case "(($ac_try" in
37938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37939   *) ac_try_echo=$ac_try;;
37940 esac
37941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37942   (eval "$ac_link") 2>conftest.er1
37943   ac_status=$?
37944   grep -v '^ *+' conftest.er1 >conftest.err
37945   rm -f conftest.er1
37946   cat conftest.err >&5
37947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37948   (exit $ac_status); } && {
37949          test -z "$ac_c_werror_flag" ||
37950          test ! -s conftest.err
37951        } && test -s conftest$ac_exeext &&
37952        $as_test_x conftest$ac_exeext; then
37953   am_cv_func_iconv=yes
37954 else
37955   echo "$as_me: failed program was:" >&5
37956 sed 's/^/| /' conftest.$ac_ext >&5
37957
37958
37959 fi
37960
37961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37962       conftest$ac_exeext conftest.$ac_ext
37963     if test "$am_cv_func_iconv" != yes; then
37964       am_save_LIBS="$LIBS"
37965       LIBS="$LIBS -liconv"
37966       cat >conftest.$ac_ext <<_ACEOF
37967 /* confdefs.h.  */
37968 _ACEOF
37969 cat confdefs.h >>conftest.$ac_ext
37970 cat >>conftest.$ac_ext <<_ACEOF
37971 /* end confdefs.h.  */
37972 #include <stdlib.h>
37973 #include <iconv.h>
37974 int
37975 main ()
37976 {
37977 iconv_t cd = iconv_open("","");
37978          iconv(cd,NULL,NULL,NULL,NULL);
37979          iconv_close(cd);
37980   ;
37981   return 0;
37982 }
37983 _ACEOF
37984 rm -f conftest.$ac_objext conftest$ac_exeext
37985 if { (ac_try="$ac_link"
37986 case "(($ac_try" in
37987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37988   *) ac_try_echo=$ac_try;;
37989 esac
37990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37991   (eval "$ac_link") 2>conftest.er1
37992   ac_status=$?
37993   grep -v '^ *+' conftest.er1 >conftest.err
37994   rm -f conftest.er1
37995   cat conftest.err >&5
37996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997   (exit $ac_status); } && {
37998          test -z "$ac_c_werror_flag" ||
37999          test ! -s conftest.err
38000        } && test -s conftest$ac_exeext &&
38001        $as_test_x conftest$ac_exeext; then
38002   am_cv_lib_iconv=yes
38003         am_cv_func_iconv=yes
38004 else
38005   echo "$as_me: failed program was:" >&5
38006 sed 's/^/| /' conftest.$ac_ext >&5
38007
38008
38009 fi
38010
38011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38012       conftest$ac_exeext conftest.$ac_ext
38013       LIBS="$am_save_LIBS"
38014     fi
38015
38016 fi
38017 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38018 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
38019   if test "$am_cv_func_iconv" = yes; then
38020
38021 cat >>confdefs.h <<\_ACEOF
38022 #define HAVE_ICONV 1
38023 _ACEOF
38024
38025     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
38026 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
38027 if test "${wx_cv_func_iconv_const+set}" = set; then
38028   echo $ECHO_N "(cached) $ECHO_C" >&6
38029 else
38030   cat >conftest.$ac_ext <<_ACEOF
38031 /* confdefs.h.  */
38032 _ACEOF
38033 cat confdefs.h >>conftest.$ac_ext
38034 cat >>conftest.$ac_ext <<_ACEOF
38035 /* end confdefs.h.  */
38036
38037 #include <stdlib.h>
38038 #include <iconv.h>
38039 extern
38040 #ifdef __cplusplus
38041 "C"
38042 #endif
38043 #if defined(__STDC__) || defined(__cplusplus)
38044 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
38045 #else
38046 size_t iconv();
38047 #endif
38048
38049 int
38050 main ()
38051 {
38052
38053   ;
38054   return 0;
38055 }
38056 _ACEOF
38057 rm -f conftest.$ac_objext
38058 if { (ac_try="$ac_compile"
38059 case "(($ac_try" in
38060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38061   *) ac_try_echo=$ac_try;;
38062 esac
38063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38064   (eval "$ac_compile") 2>conftest.er1
38065   ac_status=$?
38066   grep -v '^ *+' conftest.er1 >conftest.err
38067   rm -f conftest.er1
38068   cat conftest.err >&5
38069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38070   (exit $ac_status); } && {
38071          test -z "$ac_c_werror_flag" ||
38072          test ! -s conftest.err
38073        } && test -s conftest.$ac_objext; then
38074   wx_cv_func_iconv_const="no"
38075 else
38076   echo "$as_me: failed program was:" >&5
38077 sed 's/^/| /' conftest.$ac_ext >&5
38078
38079         wx_cv_func_iconv_const="yes"
38080
38081 fi
38082
38083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38084
38085 fi
38086 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
38087 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
38088
38089     iconv_const=
38090     if test "x$wx_cv_func_iconv_const" = "xyes"; then
38091         iconv_const="const"
38092     fi
38093
38094
38095 cat >>confdefs.h <<_ACEOF
38096 #define ICONV_CONST $iconv_const
38097 _ACEOF
38098
38099   fi
38100   LIBICONV=
38101   if test "$am_cv_lib_iconv" = yes; then
38102     LIBICONV="-liconv"
38103   fi
38104
38105
38106     LIBS="$LIBICONV $LIBS"
38107 fi
38108
38109 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38110
38111 for ac_func in sigaction
38112 do
38113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38117   echo $ECHO_N "(cached) $ECHO_C" >&6
38118 else
38119   cat >conftest.$ac_ext <<_ACEOF
38120 /* confdefs.h.  */
38121 _ACEOF
38122 cat confdefs.h >>conftest.$ac_ext
38123 cat >>conftest.$ac_ext <<_ACEOF
38124 /* end confdefs.h.  */
38125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38127 #define $ac_func innocuous_$ac_func
38128
38129 /* System header to define __stub macros and hopefully few prototypes,
38130     which can conflict with char $ac_func (); below.
38131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38132     <limits.h> exists even on freestanding compilers.  */
38133
38134 #ifdef __STDC__
38135 # include <limits.h>
38136 #else
38137 # include <assert.h>
38138 #endif
38139
38140 #undef $ac_func
38141
38142 /* Override any GCC internal prototype to avoid an error.
38143    Use char because int might match the return type of a GCC
38144    builtin and then its argument prototype would still apply.  */
38145 #ifdef __cplusplus
38146 extern "C"
38147 #endif
38148 char $ac_func ();
38149 /* The GNU C library defines this for functions which it implements
38150     to always fail with ENOSYS.  Some functions are actually named
38151     something starting with __ and the normal name is an alias.  */
38152 #if defined __stub_$ac_func || defined __stub___$ac_func
38153 choke me
38154 #endif
38155
38156 int
38157 main ()
38158 {
38159 return $ac_func ();
38160   ;
38161   return 0;
38162 }
38163 _ACEOF
38164 rm -f conftest.$ac_objext conftest$ac_exeext
38165 if { (ac_try="$ac_link"
38166 case "(($ac_try" in
38167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38168   *) ac_try_echo=$ac_try;;
38169 esac
38170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38171   (eval "$ac_link") 2>conftest.er1
38172   ac_status=$?
38173   grep -v '^ *+' conftest.er1 >conftest.err
38174   rm -f conftest.er1
38175   cat conftest.err >&5
38176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177   (exit $ac_status); } && {
38178          test -z "$ac_c_werror_flag" ||
38179          test ! -s conftest.err
38180        } && test -s conftest$ac_exeext &&
38181        $as_test_x conftest$ac_exeext; then
38182   eval "$as_ac_var=yes"
38183 else
38184   echo "$as_me: failed program was:" >&5
38185 sed 's/^/| /' conftest.$ac_ext >&5
38186
38187         eval "$as_ac_var=no"
38188 fi
38189
38190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38191       conftest$ac_exeext conftest.$ac_ext
38192 fi
38193 ac_res=`eval echo '${'$as_ac_var'}'`
38194                { echo "$as_me:$LINENO: result: $ac_res" >&5
38195 echo "${ECHO_T}$ac_res" >&6; }
38196 if test `eval echo '${'$as_ac_var'}'` = yes; then
38197   cat >>confdefs.h <<_ACEOF
38198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38199 _ACEOF
38200
38201 fi
38202 done
38203
38204
38205     if test "$ac_cv_func_sigaction" = "no"; then
38206         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
38207 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
38208         wxUSE_ON_FATAL_EXCEPTION=no
38209     fi
38210
38211     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38212       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
38213 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
38214 if test "${wx_cv_type_sa_handler+set}" = set; then
38215   echo $ECHO_N "(cached) $ECHO_C" >&6
38216 else
38217
38218                 ac_ext=cpp
38219 ac_cpp='$CXXCPP $CPPFLAGS'
38220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38223
38224         cat >conftest.$ac_ext <<_ACEOF
38225 /* confdefs.h.  */
38226 _ACEOF
38227 cat confdefs.h >>conftest.$ac_ext
38228 cat >>conftest.$ac_ext <<_ACEOF
38229 /* end confdefs.h.  */
38230 #include <signal.h>
38231 int
38232 main ()
38233 {
38234
38235                         extern void testSigHandler(int);
38236
38237                         struct sigaction sa;
38238                         sa.sa_handler = testSigHandler;
38239
38240   ;
38241   return 0;
38242 }
38243 _ACEOF
38244 rm -f conftest.$ac_objext
38245 if { (ac_try="$ac_compile"
38246 case "(($ac_try" in
38247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38248   *) ac_try_echo=$ac_try;;
38249 esac
38250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38251   (eval "$ac_compile") 2>conftest.er1
38252   ac_status=$?
38253   grep -v '^ *+' conftest.er1 >conftest.err
38254   rm -f conftest.er1
38255   cat conftest.err >&5
38256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38257   (exit $ac_status); } && {
38258          test -z "$ac_cxx_werror_flag" ||
38259          test ! -s conftest.err
38260        } && test -s conftest.$ac_objext; then
38261
38262                         wx_cv_type_sa_handler=int
38263
38264 else
38265   echo "$as_me: failed program was:" >&5
38266 sed 's/^/| /' conftest.$ac_ext >&5
38267
38268
38269                         wx_cv_type_sa_handler=void
38270
38271 fi
38272
38273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38274         ac_ext=c
38275 ac_cpp='$CPP $CPPFLAGS'
38276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38279
38280
38281 fi
38282 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
38283 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
38284
38285       cat >>confdefs.h <<_ACEOF
38286 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
38287 _ACEOF
38288
38289     fi
38290 fi
38291
38292 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38293     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
38294 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
38295 if test "${wx_cv_func_backtrace+set}" = set; then
38296   echo $ECHO_N "(cached) $ECHO_C" >&6
38297 else
38298
38299             ac_ext=cpp
38300 ac_cpp='$CXXCPP $CPPFLAGS'
38301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38304
38305             cat >conftest.$ac_ext <<_ACEOF
38306 /* confdefs.h.  */
38307 _ACEOF
38308 cat confdefs.h >>conftest.$ac_ext
38309 cat >>conftest.$ac_ext <<_ACEOF
38310 /* end confdefs.h.  */
38311 #include <execinfo.h>
38312 int
38313 main ()
38314 {
38315
38316                     void *trace[1];
38317                     char **messages;
38318
38319                     backtrace(trace, 1);
38320                     messages = backtrace_symbols(trace, 1);
38321
38322   ;
38323   return 0;
38324 }
38325 _ACEOF
38326 rm -f conftest.$ac_objext
38327 if { (ac_try="$ac_compile"
38328 case "(($ac_try" in
38329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38330   *) ac_try_echo=$ac_try;;
38331 esac
38332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38333   (eval "$ac_compile") 2>conftest.er1
38334   ac_status=$?
38335   grep -v '^ *+' conftest.er1 >conftest.err
38336   rm -f conftest.er1
38337   cat conftest.err >&5
38338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339   (exit $ac_status); } && {
38340          test -z "$ac_cxx_werror_flag" ||
38341          test ! -s conftest.err
38342        } && test -s conftest.$ac_objext; then
38343   wx_cv_func_backtrace=yes
38344 else
38345   echo "$as_me: failed program was:" >&5
38346 sed 's/^/| /' conftest.$ac_ext >&5
38347
38348         wx_cv_func_backtrace=no
38349
38350 fi
38351
38352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38353             ac_ext=c
38354 ac_cpp='$CPP $CPPFLAGS'
38355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38358
38359
38360
38361 fi
38362 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
38363 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
38364
38365
38366     if test "$wx_cv_func_backtrace" = "no"; then
38367         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
38368 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
38369         wxUSE_STACKWALKER=no
38370     else
38371         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
38372 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
38373 if test "${wx_cv_func_cxa_demangle+set}" = set; then
38374   echo $ECHO_N "(cached) $ECHO_C" >&6
38375 else
38376
38377                 ac_ext=cpp
38378 ac_cpp='$CXXCPP $CPPFLAGS'
38379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38382
38383                 cat >conftest.$ac_ext <<_ACEOF
38384 /* confdefs.h.  */
38385 _ACEOF
38386 cat confdefs.h >>conftest.$ac_ext
38387 cat >>conftest.$ac_ext <<_ACEOF
38388 /* end confdefs.h.  */
38389 #include <cxxabi.h>
38390 int
38391 main ()
38392 {
38393
38394                         int rc;
38395                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
38396
38397   ;
38398   return 0;
38399 }
38400 _ACEOF
38401 rm -f conftest.$ac_objext conftest$ac_exeext
38402 if { (ac_try="$ac_link"
38403 case "(($ac_try" in
38404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38405   *) ac_try_echo=$ac_try;;
38406 esac
38407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38408   (eval "$ac_link") 2>conftest.er1
38409   ac_status=$?
38410   grep -v '^ *+' conftest.er1 >conftest.err
38411   rm -f conftest.er1
38412   cat conftest.err >&5
38413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38414   (exit $ac_status); } && {
38415          test -z "$ac_cxx_werror_flag" ||
38416          test ! -s conftest.err
38417        } && test -s conftest$ac_exeext &&
38418        $as_test_x conftest$ac_exeext; then
38419   wx_cv_func_cxa_demangle=yes
38420 else
38421   echo "$as_me: failed program was:" >&5
38422 sed 's/^/| /' conftest.$ac_ext >&5
38423
38424         wx_cv_func_cxa_demangle=no
38425
38426 fi
38427
38428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38429       conftest$ac_exeext conftest.$ac_ext
38430                 ac_ext=c
38431 ac_cpp='$CPP $CPPFLAGS'
38432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38435
38436
38437
38438 fi
38439 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
38440 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
38441
38442         if test "$wx_cv_func_cxa_demangle" = "yes"; then
38443             cat >>confdefs.h <<\_ACEOF
38444 #define HAVE_CXA_DEMANGLE 1
38445 _ACEOF
38446
38447         fi
38448     fi
38449 fi
38450
38451 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
38452     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
38453 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
38454     wxUSE_STACKWALKER=no
38455 fi
38456
38457
38458
38459
38460 for ac_func in mkstemp mktemp
38461 do
38462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38466   echo $ECHO_N "(cached) $ECHO_C" >&6
38467 else
38468   cat >conftest.$ac_ext <<_ACEOF
38469 /* confdefs.h.  */
38470 _ACEOF
38471 cat confdefs.h >>conftest.$ac_ext
38472 cat >>conftest.$ac_ext <<_ACEOF
38473 /* end confdefs.h.  */
38474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38476 #define $ac_func innocuous_$ac_func
38477
38478 /* System header to define __stub macros and hopefully few prototypes,
38479     which can conflict with char $ac_func (); below.
38480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38481     <limits.h> exists even on freestanding compilers.  */
38482
38483 #ifdef __STDC__
38484 # include <limits.h>
38485 #else
38486 # include <assert.h>
38487 #endif
38488
38489 #undef $ac_func
38490
38491 /* Override any GCC internal prototype to avoid an error.
38492    Use char because int might match the return type of a GCC
38493    builtin and then its argument prototype would still apply.  */
38494 #ifdef __cplusplus
38495 extern "C"
38496 #endif
38497 char $ac_func ();
38498 /* The GNU C library defines this for functions which it implements
38499     to always fail with ENOSYS.  Some functions are actually named
38500     something starting with __ and the normal name is an alias.  */
38501 #if defined __stub_$ac_func || defined __stub___$ac_func
38502 choke me
38503 #endif
38504
38505 int
38506 main ()
38507 {
38508 return $ac_func ();
38509   ;
38510   return 0;
38511 }
38512 _ACEOF
38513 rm -f conftest.$ac_objext conftest$ac_exeext
38514 if { (ac_try="$ac_link"
38515 case "(($ac_try" in
38516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38517   *) ac_try_echo=$ac_try;;
38518 esac
38519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38520   (eval "$ac_link") 2>conftest.er1
38521   ac_status=$?
38522   grep -v '^ *+' conftest.er1 >conftest.err
38523   rm -f conftest.er1
38524   cat conftest.err >&5
38525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38526   (exit $ac_status); } && {
38527          test -z "$ac_c_werror_flag" ||
38528          test ! -s conftest.err
38529        } && test -s conftest$ac_exeext &&
38530        $as_test_x conftest$ac_exeext; then
38531   eval "$as_ac_var=yes"
38532 else
38533   echo "$as_me: failed program was:" >&5
38534 sed 's/^/| /' conftest.$ac_ext >&5
38535
38536         eval "$as_ac_var=no"
38537 fi
38538
38539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38540       conftest$ac_exeext conftest.$ac_ext
38541 fi
38542 ac_res=`eval echo '${'$as_ac_var'}'`
38543                { echo "$as_me:$LINENO: result: $ac_res" >&5
38544 echo "${ECHO_T}$ac_res" >&6; }
38545 if test `eval echo '${'$as_ac_var'}'` = yes; then
38546   cat >>confdefs.h <<_ACEOF
38547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38548 _ACEOF
38549  break
38550 fi
38551 done
38552
38553
38554 { echo "$as_me:$LINENO: checking for statfs" >&5
38555 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
38556 if test "${wx_cv_func_statfs+set}" = set; then
38557   echo $ECHO_N "(cached) $ECHO_C" >&6
38558 else
38559   cat >conftest.$ac_ext <<_ACEOF
38560 /* confdefs.h.  */
38561 _ACEOF
38562 cat confdefs.h >>conftest.$ac_ext
38563 cat >>conftest.$ac_ext <<_ACEOF
38564 /* end confdefs.h.  */
38565
38566              #if defined(__BSD__)
38567              #include <sys/param.h>
38568              #include <sys/mount.h>
38569              #else
38570              #include <sys/vfs.h>
38571              #endif
38572
38573 int
38574 main ()
38575 {
38576
38577              long l;
38578              struct statfs fs;
38579              statfs("/", &fs);
38580              l = fs.f_bsize;
38581              l += fs.f_blocks;
38582              l += fs.f_bavail;
38583
38584   ;
38585   return 0;
38586 }
38587 _ACEOF
38588 rm -f conftest.$ac_objext
38589 if { (ac_try="$ac_compile"
38590 case "(($ac_try" in
38591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38592   *) ac_try_echo=$ac_try;;
38593 esac
38594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38595   (eval "$ac_compile") 2>conftest.er1
38596   ac_status=$?
38597   grep -v '^ *+' conftest.er1 >conftest.err
38598   rm -f conftest.er1
38599   cat conftest.err >&5
38600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601   (exit $ac_status); } && {
38602          test -z "$ac_c_werror_flag" ||
38603          test ! -s conftest.err
38604        } && test -s conftest.$ac_objext; then
38605   wx_cv_func_statfs=yes
38606 else
38607   echo "$as_me: failed program was:" >&5
38608 sed 's/^/| /' conftest.$ac_ext >&5
38609
38610         wx_cv_func_statfs=no
38611
38612 fi
38613
38614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38615
38616 fi
38617 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
38618 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
38619
38620 if test "$wx_cv_func_statfs" = "yes"; then
38621         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
38622 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
38623 if test "${wx_cv_func_statfs_decl+set}" = set; then
38624   echo $ECHO_N "(cached) $ECHO_C" >&6
38625 else
38626   ac_ext=cpp
38627 ac_cpp='$CXXCPP $CPPFLAGS'
38628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38631
38632         cat >conftest.$ac_ext <<_ACEOF
38633 /* confdefs.h.  */
38634 _ACEOF
38635 cat confdefs.h >>conftest.$ac_ext
38636 cat >>conftest.$ac_ext <<_ACEOF
38637 /* end confdefs.h.  */
38638
38639                  #if defined(__BSD__)
38640                  #include <sys/param.h>
38641                  #include <sys/mount.h>
38642                  #else
38643                  #include <sys/vfs.h>
38644                  #endif
38645
38646 int
38647 main ()
38648 {
38649
38650                 struct statfs fs;
38651                 statfs("", &fs);
38652
38653   ;
38654   return 0;
38655 }
38656 _ACEOF
38657 rm -f conftest.$ac_objext
38658 if { (ac_try="$ac_compile"
38659 case "(($ac_try" in
38660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38661   *) ac_try_echo=$ac_try;;
38662 esac
38663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38664   (eval "$ac_compile") 2>conftest.er1
38665   ac_status=$?
38666   grep -v '^ *+' conftest.er1 >conftest.err
38667   rm -f conftest.er1
38668   cat conftest.err >&5
38669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38670   (exit $ac_status); } && {
38671          test -z "$ac_cxx_werror_flag" ||
38672          test ! -s conftest.err
38673        } && test -s conftest.$ac_objext; then
38674   wx_cv_func_statfs_decl=yes
38675 else
38676   echo "$as_me: failed program was:" >&5
38677 sed 's/^/| /' conftest.$ac_ext >&5
38678
38679         wx_cv_func_statfs_decl=no
38680
38681 fi
38682
38683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38684         ac_ext=c
38685 ac_cpp='$CPP $CPPFLAGS'
38686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38689
38690
38691 fi
38692 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
38693 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
38694
38695     if test "$wx_cv_func_statfs_decl" = "yes"; then
38696         cat >>confdefs.h <<\_ACEOF
38697 #define HAVE_STATFS_DECL 1
38698 _ACEOF
38699
38700     fi
38701
38702     wx_cv_type_statvfs_t="struct statfs"
38703     cat >>confdefs.h <<\_ACEOF
38704 #define HAVE_STATFS 1
38705 _ACEOF
38706
38707 else
38708     { echo "$as_me:$LINENO: checking for statvfs" >&5
38709 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
38710 if test "${wx_cv_func_statvfs+set}" = set; then
38711   echo $ECHO_N "(cached) $ECHO_C" >&6
38712 else
38713   cat >conftest.$ac_ext <<_ACEOF
38714 /* confdefs.h.  */
38715 _ACEOF
38716 cat confdefs.h >>conftest.$ac_ext
38717 cat >>conftest.$ac_ext <<_ACEOF
38718 /* end confdefs.h.  */
38719
38720                 #include <stddef.h>
38721                 #include <sys/statvfs.h>
38722
38723 int
38724 main ()
38725 {
38726
38727                 statvfs("/", NULL);
38728
38729   ;
38730   return 0;
38731 }
38732 _ACEOF
38733 rm -f conftest.$ac_objext
38734 if { (ac_try="$ac_compile"
38735 case "(($ac_try" in
38736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38737   *) ac_try_echo=$ac_try;;
38738 esac
38739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38740   (eval "$ac_compile") 2>conftest.er1
38741   ac_status=$?
38742   grep -v '^ *+' conftest.er1 >conftest.err
38743   rm -f conftest.er1
38744   cat conftest.err >&5
38745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746   (exit $ac_status); } && {
38747          test -z "$ac_c_werror_flag" ||
38748          test ! -s conftest.err
38749        } && test -s conftest.$ac_objext; then
38750   wx_cv_func_statvfs=yes
38751 else
38752   echo "$as_me: failed program was:" >&5
38753 sed 's/^/| /' conftest.$ac_ext >&5
38754
38755         wx_cv_func_statvfs=no
38756
38757 fi
38758
38759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38760
38761 fi
38762 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
38763 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
38764
38765     if test "$wx_cv_func_statvfs" = "yes"; then
38766                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
38767 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
38768 if test "${wx_cv_type_statvfs_t+set}" = set; then
38769   echo $ECHO_N "(cached) $ECHO_C" >&6
38770 else
38771   ac_ext=cpp
38772 ac_cpp='$CXXCPP $CPPFLAGS'
38773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38776
38777             cat >conftest.$ac_ext <<_ACEOF
38778 /* confdefs.h.  */
38779 _ACEOF
38780 cat confdefs.h >>conftest.$ac_ext
38781 cat >>conftest.$ac_ext <<_ACEOF
38782 /* end confdefs.h.  */
38783
38784                     #include <sys/statvfs.h>
38785
38786 int
38787 main ()
38788 {
38789
38790                     long l;
38791                     statvfs_t fs;
38792                     statvfs("/", &fs);
38793                     l = fs.f_bsize;
38794                     l += fs.f_blocks;
38795                     l += fs.f_bavail;
38796
38797   ;
38798   return 0;
38799 }
38800 _ACEOF
38801 rm -f conftest.$ac_objext
38802 if { (ac_try="$ac_compile"
38803 case "(($ac_try" in
38804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38805   *) ac_try_echo=$ac_try;;
38806 esac
38807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38808   (eval "$ac_compile") 2>conftest.er1
38809   ac_status=$?
38810   grep -v '^ *+' conftest.er1 >conftest.err
38811   rm -f conftest.er1
38812   cat conftest.err >&5
38813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38814   (exit $ac_status); } && {
38815          test -z "$ac_cxx_werror_flag" ||
38816          test ! -s conftest.err
38817        } && test -s conftest.$ac_objext; then
38818   wx_cv_type_statvfs_t=statvfs_t
38819 else
38820   echo "$as_me: failed program was:" >&5
38821 sed 's/^/| /' conftest.$ac_ext >&5
38822
38823
38824                     cat >conftest.$ac_ext <<_ACEOF
38825 /* confdefs.h.  */
38826 _ACEOF
38827 cat confdefs.h >>conftest.$ac_ext
38828 cat >>conftest.$ac_ext <<_ACEOF
38829 /* end confdefs.h.  */
38830
38831                             #include <sys/statvfs.h>
38832
38833 int
38834 main ()
38835 {
38836
38837                             long l;
38838                             struct statvfs fs;
38839                             statvfs("/", &fs);
38840                             l = fs.f_bsize;
38841                             l += fs.f_blocks;
38842                             l += fs.f_bavail;
38843
38844   ;
38845   return 0;
38846 }
38847 _ACEOF
38848 rm -f conftest.$ac_objext
38849 if { (ac_try="$ac_compile"
38850 case "(($ac_try" in
38851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38852   *) ac_try_echo=$ac_try;;
38853 esac
38854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38855   (eval "$ac_compile") 2>conftest.er1
38856   ac_status=$?
38857   grep -v '^ *+' conftest.er1 >conftest.err
38858   rm -f conftest.er1
38859   cat conftest.err >&5
38860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38861   (exit $ac_status); } && {
38862          test -z "$ac_cxx_werror_flag" ||
38863          test ! -s conftest.err
38864        } && test -s conftest.$ac_objext; then
38865   wx_cv_type_statvfs_t="struct statvfs"
38866 else
38867   echo "$as_me: failed program was:" >&5
38868 sed 's/^/| /' conftest.$ac_ext >&5
38869
38870         wx_cv_type_statvfs_t="unknown"
38871
38872 fi
38873
38874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38875
38876
38877 fi
38878
38879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38880             ac_ext=c
38881 ac_cpp='$CPP $CPPFLAGS'
38882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38885
38886
38887 fi
38888 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
38889 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
38890
38891         if test "$wx_cv_type_statvfs_t" != "unknown"; then
38892             cat >>confdefs.h <<\_ACEOF
38893 #define HAVE_STATVFS 1
38894 _ACEOF
38895
38896         fi
38897     else
38898                 wx_cv_type_statvfs_t="unknown"
38899     fi
38900 fi
38901
38902 if test "$wx_cv_type_statvfs_t" != "unknown"; then
38903     cat >>confdefs.h <<_ACEOF
38904 #define WX_STATFS_T $wx_cv_type_statvfs_t
38905 _ACEOF
38906
38907 else
38908     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
38909 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
38910 fi
38911
38912 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38913
38914
38915 for ac_func in fcntl flock
38916 do
38917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38921   echo $ECHO_N "(cached) $ECHO_C" >&6
38922 else
38923   cat >conftest.$ac_ext <<_ACEOF
38924 /* confdefs.h.  */
38925 _ACEOF
38926 cat confdefs.h >>conftest.$ac_ext
38927 cat >>conftest.$ac_ext <<_ACEOF
38928 /* end confdefs.h.  */
38929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38931 #define $ac_func innocuous_$ac_func
38932
38933 /* System header to define __stub macros and hopefully few prototypes,
38934     which can conflict with char $ac_func (); below.
38935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38936     <limits.h> exists even on freestanding compilers.  */
38937
38938 #ifdef __STDC__
38939 # include <limits.h>
38940 #else
38941 # include <assert.h>
38942 #endif
38943
38944 #undef $ac_func
38945
38946 /* Override any GCC internal prototype to avoid an error.
38947    Use char because int might match the return type of a GCC
38948    builtin and then its argument prototype would still apply.  */
38949 #ifdef __cplusplus
38950 extern "C"
38951 #endif
38952 char $ac_func ();
38953 /* The GNU C library defines this for functions which it implements
38954     to always fail with ENOSYS.  Some functions are actually named
38955     something starting with __ and the normal name is an alias.  */
38956 #if defined __stub_$ac_func || defined __stub___$ac_func
38957 choke me
38958 #endif
38959
38960 int
38961 main ()
38962 {
38963 return $ac_func ();
38964   ;
38965   return 0;
38966 }
38967 _ACEOF
38968 rm -f conftest.$ac_objext conftest$ac_exeext
38969 if { (ac_try="$ac_link"
38970 case "(($ac_try" in
38971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38972   *) ac_try_echo=$ac_try;;
38973 esac
38974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38975   (eval "$ac_link") 2>conftest.er1
38976   ac_status=$?
38977   grep -v '^ *+' conftest.er1 >conftest.err
38978   rm -f conftest.er1
38979   cat conftest.err >&5
38980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38981   (exit $ac_status); } && {
38982          test -z "$ac_c_werror_flag" ||
38983          test ! -s conftest.err
38984        } && test -s conftest$ac_exeext &&
38985        $as_test_x conftest$ac_exeext; then
38986   eval "$as_ac_var=yes"
38987 else
38988   echo "$as_me: failed program was:" >&5
38989 sed 's/^/| /' conftest.$ac_ext >&5
38990
38991         eval "$as_ac_var=no"
38992 fi
38993
38994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38995       conftest$ac_exeext conftest.$ac_ext
38996 fi
38997 ac_res=`eval echo '${'$as_ac_var'}'`
38998                { echo "$as_me:$LINENO: result: $ac_res" >&5
38999 echo "${ECHO_T}$ac_res" >&6; }
39000 if test `eval echo '${'$as_ac_var'}'` = yes; then
39001   cat >>confdefs.h <<_ACEOF
39002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39003 _ACEOF
39004  break
39005 fi
39006 done
39007
39008
39009     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
39010         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
39011 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
39012         wxUSE_SNGLINST_CHECKER=no
39013     fi
39014 fi
39015
39016
39017
39018 for ac_func in setenv putenv
39019 do
39020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39024   echo $ECHO_N "(cached) $ECHO_C" >&6
39025 else
39026   cat >conftest.$ac_ext <<_ACEOF
39027 /* confdefs.h.  */
39028 _ACEOF
39029 cat confdefs.h >>conftest.$ac_ext
39030 cat >>conftest.$ac_ext <<_ACEOF
39031 /* end confdefs.h.  */
39032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39034 #define $ac_func innocuous_$ac_func
39035
39036 /* System header to define __stub macros and hopefully few prototypes,
39037     which can conflict with char $ac_func (); below.
39038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39039     <limits.h> exists even on freestanding compilers.  */
39040
39041 #ifdef __STDC__
39042 # include <limits.h>
39043 #else
39044 # include <assert.h>
39045 #endif
39046
39047 #undef $ac_func
39048
39049 /* Override any GCC internal prototype to avoid an error.
39050    Use char because int might match the return type of a GCC
39051    builtin and then its argument prototype would still apply.  */
39052 #ifdef __cplusplus
39053 extern "C"
39054 #endif
39055 char $ac_func ();
39056 /* The GNU C library defines this for functions which it implements
39057     to always fail with ENOSYS.  Some functions are actually named
39058     something starting with __ and the normal name is an alias.  */
39059 #if defined __stub_$ac_func || defined __stub___$ac_func
39060 choke me
39061 #endif
39062
39063 int
39064 main ()
39065 {
39066 return $ac_func ();
39067   ;
39068   return 0;
39069 }
39070 _ACEOF
39071 rm -f conftest.$ac_objext conftest$ac_exeext
39072 if { (ac_try="$ac_link"
39073 case "(($ac_try" in
39074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39075   *) ac_try_echo=$ac_try;;
39076 esac
39077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39078   (eval "$ac_link") 2>conftest.er1
39079   ac_status=$?
39080   grep -v '^ *+' conftest.er1 >conftest.err
39081   rm -f conftest.er1
39082   cat conftest.err >&5
39083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084   (exit $ac_status); } && {
39085          test -z "$ac_c_werror_flag" ||
39086          test ! -s conftest.err
39087        } && test -s conftest$ac_exeext &&
39088        $as_test_x conftest$ac_exeext; then
39089   eval "$as_ac_var=yes"
39090 else
39091   echo "$as_me: failed program was:" >&5
39092 sed 's/^/| /' conftest.$ac_ext >&5
39093
39094         eval "$as_ac_var=no"
39095 fi
39096
39097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39098       conftest$ac_exeext conftest.$ac_ext
39099 fi
39100 ac_res=`eval echo '${'$as_ac_var'}'`
39101                { echo "$as_me:$LINENO: result: $ac_res" >&5
39102 echo "${ECHO_T}$ac_res" >&6; }
39103 if test `eval echo '${'$as_ac_var'}'` = yes; then
39104   cat >>confdefs.h <<_ACEOF
39105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39106 _ACEOF
39107  break
39108 fi
39109 done
39110
39111 if test "$ac_cv_func_setenv" = "yes"; then
39112
39113 for ac_func in unsetenv
39114 do
39115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39119   echo $ECHO_N "(cached) $ECHO_C" >&6
39120 else
39121   cat >conftest.$ac_ext <<_ACEOF
39122 /* confdefs.h.  */
39123 _ACEOF
39124 cat confdefs.h >>conftest.$ac_ext
39125 cat >>conftest.$ac_ext <<_ACEOF
39126 /* end confdefs.h.  */
39127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39129 #define $ac_func innocuous_$ac_func
39130
39131 /* System header to define __stub macros and hopefully few prototypes,
39132     which can conflict with char $ac_func (); below.
39133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39134     <limits.h> exists even on freestanding compilers.  */
39135
39136 #ifdef __STDC__
39137 # include <limits.h>
39138 #else
39139 # include <assert.h>
39140 #endif
39141
39142 #undef $ac_func
39143
39144 /* Override any GCC internal prototype to avoid an error.
39145    Use char because int might match the return type of a GCC
39146    builtin and then its argument prototype would still apply.  */
39147 #ifdef __cplusplus
39148 extern "C"
39149 #endif
39150 char $ac_func ();
39151 /* The GNU C library defines this for functions which it implements
39152     to always fail with ENOSYS.  Some functions are actually named
39153     something starting with __ and the normal name is an alias.  */
39154 #if defined __stub_$ac_func || defined __stub___$ac_func
39155 choke me
39156 #endif
39157
39158 int
39159 main ()
39160 {
39161 return $ac_func ();
39162   ;
39163   return 0;
39164 }
39165 _ACEOF
39166 rm -f conftest.$ac_objext conftest$ac_exeext
39167 if { (ac_try="$ac_link"
39168 case "(($ac_try" in
39169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39170   *) ac_try_echo=$ac_try;;
39171 esac
39172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39173   (eval "$ac_link") 2>conftest.er1
39174   ac_status=$?
39175   grep -v '^ *+' conftest.er1 >conftest.err
39176   rm -f conftest.er1
39177   cat conftest.err >&5
39178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39179   (exit $ac_status); } && {
39180          test -z "$ac_c_werror_flag" ||
39181          test ! -s conftest.err
39182        } && test -s conftest$ac_exeext &&
39183        $as_test_x conftest$ac_exeext; then
39184   eval "$as_ac_var=yes"
39185 else
39186   echo "$as_me: failed program was:" >&5
39187 sed 's/^/| /' conftest.$ac_ext >&5
39188
39189         eval "$as_ac_var=no"
39190 fi
39191
39192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39193       conftest$ac_exeext conftest.$ac_ext
39194 fi
39195 ac_res=`eval echo '${'$as_ac_var'}'`
39196                { echo "$as_me:$LINENO: result: $ac_res" >&5
39197 echo "${ECHO_T}$ac_res" >&6; }
39198 if test `eval echo '${'$as_ac_var'}'` = yes; then
39199   cat >>confdefs.h <<_ACEOF
39200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39201 _ACEOF
39202
39203 fi
39204 done
39205
39206 fi
39207
39208 HAVE_SOME_SLEEP_FUNC=0
39209 if test "$USE_BEOS" = 1; then
39210             cat >>confdefs.h <<\_ACEOF
39211 #define HAVE_SLEEP 1
39212 _ACEOF
39213
39214     HAVE_SOME_SLEEP_FUNC=1
39215 fi
39216
39217 if test "$USE_DARWIN" = 1; then
39218             cat >>confdefs.h <<\_ACEOF
39219 #define HAVE_USLEEP 1
39220 _ACEOF
39221
39222     HAVE_SOME_SLEEP_FUNC=1
39223 fi
39224
39225 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
39226         POSIX4_LINK=
39227
39228 for ac_func in nanosleep
39229 do
39230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39234   echo $ECHO_N "(cached) $ECHO_C" >&6
39235 else
39236   cat >conftest.$ac_ext <<_ACEOF
39237 /* confdefs.h.  */
39238 _ACEOF
39239 cat confdefs.h >>conftest.$ac_ext
39240 cat >>conftest.$ac_ext <<_ACEOF
39241 /* end confdefs.h.  */
39242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39244 #define $ac_func innocuous_$ac_func
39245
39246 /* System header to define __stub macros and hopefully few prototypes,
39247     which can conflict with char $ac_func (); below.
39248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39249     <limits.h> exists even on freestanding compilers.  */
39250
39251 #ifdef __STDC__
39252 # include <limits.h>
39253 #else
39254 # include <assert.h>
39255 #endif
39256
39257 #undef $ac_func
39258
39259 /* Override any GCC internal prototype to avoid an error.
39260    Use char because int might match the return type of a GCC
39261    builtin and then its argument prototype would still apply.  */
39262 #ifdef __cplusplus
39263 extern "C"
39264 #endif
39265 char $ac_func ();
39266 /* The GNU C library defines this for functions which it implements
39267     to always fail with ENOSYS.  Some functions are actually named
39268     something starting with __ and the normal name is an alias.  */
39269 #if defined __stub_$ac_func || defined __stub___$ac_func
39270 choke me
39271 #endif
39272
39273 int
39274 main ()
39275 {
39276 return $ac_func ();
39277   ;
39278   return 0;
39279 }
39280 _ACEOF
39281 rm -f conftest.$ac_objext conftest$ac_exeext
39282 if { (ac_try="$ac_link"
39283 case "(($ac_try" in
39284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39285   *) ac_try_echo=$ac_try;;
39286 esac
39287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39288   (eval "$ac_link") 2>conftest.er1
39289   ac_status=$?
39290   grep -v '^ *+' conftest.er1 >conftest.err
39291   rm -f conftest.er1
39292   cat conftest.err >&5
39293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294   (exit $ac_status); } && {
39295          test -z "$ac_c_werror_flag" ||
39296          test ! -s conftest.err
39297        } && test -s conftest$ac_exeext &&
39298        $as_test_x conftest$ac_exeext; then
39299   eval "$as_ac_var=yes"
39300 else
39301   echo "$as_me: failed program was:" >&5
39302 sed 's/^/| /' conftest.$ac_ext >&5
39303
39304         eval "$as_ac_var=no"
39305 fi
39306
39307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39308       conftest$ac_exeext conftest.$ac_ext
39309 fi
39310 ac_res=`eval echo '${'$as_ac_var'}'`
39311                { echo "$as_me:$LINENO: result: $ac_res" >&5
39312 echo "${ECHO_T}$ac_res" >&6; }
39313 if test `eval echo '${'$as_ac_var'}'` = yes; then
39314   cat >>confdefs.h <<_ACEOF
39315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39316 _ACEOF
39317  cat >>confdefs.h <<\_ACEOF
39318 #define HAVE_NANOSLEEP 1
39319 _ACEOF
39320
39321 else
39322
39323             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
39324 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
39325 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
39326   echo $ECHO_N "(cached) $ECHO_C" >&6
39327 else
39328   ac_check_lib_save_LIBS=$LIBS
39329 LIBS="-lposix4  $LIBS"
39330 cat >conftest.$ac_ext <<_ACEOF
39331 /* confdefs.h.  */
39332 _ACEOF
39333 cat confdefs.h >>conftest.$ac_ext
39334 cat >>conftest.$ac_ext <<_ACEOF
39335 /* end confdefs.h.  */
39336
39337 /* Override any GCC internal prototype to avoid an error.
39338    Use char because int might match the return type of a GCC
39339    builtin and then its argument prototype would still apply.  */
39340 #ifdef __cplusplus
39341 extern "C"
39342 #endif
39343 char nanosleep ();
39344 int
39345 main ()
39346 {
39347 return nanosleep ();
39348   ;
39349   return 0;
39350 }
39351 _ACEOF
39352 rm -f conftest.$ac_objext conftest$ac_exeext
39353 if { (ac_try="$ac_link"
39354 case "(($ac_try" in
39355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39356   *) ac_try_echo=$ac_try;;
39357 esac
39358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39359   (eval "$ac_link") 2>conftest.er1
39360   ac_status=$?
39361   grep -v '^ *+' conftest.er1 >conftest.err
39362   rm -f conftest.er1
39363   cat conftest.err >&5
39364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39365   (exit $ac_status); } && {
39366          test -z "$ac_c_werror_flag" ||
39367          test ! -s conftest.err
39368        } && test -s conftest$ac_exeext &&
39369        $as_test_x conftest$ac_exeext; then
39370   ac_cv_lib_posix4_nanosleep=yes
39371 else
39372   echo "$as_me: failed program was:" >&5
39373 sed 's/^/| /' conftest.$ac_ext >&5
39374
39375         ac_cv_lib_posix4_nanosleep=no
39376 fi
39377
39378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39379       conftest$ac_exeext conftest.$ac_ext
39380 LIBS=$ac_check_lib_save_LIBS
39381 fi
39382 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
39383 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
39384 if test $ac_cv_lib_posix4_nanosleep = yes; then
39385
39386                     cat >>confdefs.h <<\_ACEOF
39387 #define HAVE_NANOSLEEP 1
39388 _ACEOF
39389
39390                     POSIX4_LINK=" -lposix4"
39391
39392 else
39393
39394
39395   for wx_func in usleep
39396   do
39397     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39398 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39399 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39400   echo $ECHO_N "(cached) $ECHO_C" >&6
39401 else
39402
39403         cat >conftest.$ac_ext <<_ACEOF
39404
39405             /* confdefs.h.  */
39406 _ACEOF
39407 cat confdefs.h >>conftest.$ac_ext
39408 cat >>conftest.$ac_ext <<_ACEOF
39409 /* end confdefs.h.  */
39410
39411
39412                 $ac_includes_default
39413
39414 int
39415 main ()
39416 {
39417
39418                 #ifndef $wx_func
39419                   &$wx_func;
39420                 #endif
39421
39422
39423   ;
39424   return 0;
39425 }
39426
39427 _ACEOF
39428 rm -f conftest.$ac_objext conftest$ac_exeext
39429 if { (ac_try="$ac_link"
39430 case "(($ac_try" in
39431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39432   *) ac_try_echo=$ac_try;;
39433 esac
39434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39435   (eval "$ac_link") 2>conftest.er1
39436   ac_status=$?
39437   grep -v '^ *+' conftest.er1 >conftest.err
39438   rm -f conftest.er1
39439   cat conftest.err >&5
39440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39441   (exit $ac_status); } && {
39442          test -z "$ac_c_werror_flag" ||
39443          test ! -s conftest.err
39444        } && test -s conftest$ac_exeext &&
39445        $as_test_x conftest$ac_exeext; then
39446   eval wx_cv_func_$wx_func=yes
39447 else
39448   echo "$as_me: failed program was:" >&5
39449 sed 's/^/| /' conftest.$ac_ext >&5
39450
39451         eval wx_cv_func_$wx_func=no
39452 fi
39453
39454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39455       conftest$ac_exeext conftest.$ac_ext
39456
39457 fi
39458 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39459                { echo "$as_me:$LINENO: result: $ac_res" >&5
39460 echo "${ECHO_T}$ac_res" >&6; }
39461
39462     if eval test \$wx_cv_func_$wx_func = yes
39463     then
39464       cat >>confdefs.h <<_ACEOF
39465 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39466 _ACEOF
39467
39468
39469     else
39470       :
39471       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
39472 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
39473
39474     fi
39475   done
39476
39477
39478
39479 fi
39480
39481
39482
39483 fi
39484 done
39485
39486 fi
39487
39488
39489   for wx_func in uname
39490   do
39491     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39492 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39493 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39494   echo $ECHO_N "(cached) $ECHO_C" >&6
39495 else
39496
39497         cat >conftest.$ac_ext <<_ACEOF
39498
39499             /* confdefs.h.  */
39500 _ACEOF
39501 cat confdefs.h >>conftest.$ac_ext
39502 cat >>conftest.$ac_ext <<_ACEOF
39503 /* end confdefs.h.  */
39504
39505                 #include <sys/utsname.h>
39506                 $ac_includes_default
39507
39508 int
39509 main ()
39510 {
39511
39512                 #ifndef $wx_func
39513                   &$wx_func;
39514                 #endif
39515
39516
39517   ;
39518   return 0;
39519 }
39520
39521 _ACEOF
39522 rm -f conftest.$ac_objext conftest$ac_exeext
39523 if { (ac_try="$ac_link"
39524 case "(($ac_try" in
39525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39526   *) ac_try_echo=$ac_try;;
39527 esac
39528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39529   (eval "$ac_link") 2>conftest.er1
39530   ac_status=$?
39531   grep -v '^ *+' conftest.er1 >conftest.err
39532   rm -f conftest.er1
39533   cat conftest.err >&5
39534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39535   (exit $ac_status); } && {
39536          test -z "$ac_c_werror_flag" ||
39537          test ! -s conftest.err
39538        } && test -s conftest$ac_exeext &&
39539        $as_test_x conftest$ac_exeext; then
39540   eval wx_cv_func_$wx_func=yes
39541 else
39542   echo "$as_me: failed program was:" >&5
39543 sed 's/^/| /' conftest.$ac_ext >&5
39544
39545         eval wx_cv_func_$wx_func=no
39546 fi
39547
39548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39549       conftest$ac_exeext conftest.$ac_ext
39550
39551 fi
39552 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39553                { echo "$as_me:$LINENO: result: $ac_res" >&5
39554 echo "${ECHO_T}$ac_res" >&6; }
39555
39556     if eval test \$wx_cv_func_$wx_func = yes
39557     then
39558       cat >>confdefs.h <<_ACEOF
39559 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39560 _ACEOF
39561
39562
39563     else
39564       :
39565
39566     fi
39567   done
39568
39569 if test "$wx_cv_func_uname" != yes; then
39570
39571   for wx_func in gethostname
39572   do
39573     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39574 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39575 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39576   echo $ECHO_N "(cached) $ECHO_C" >&6
39577 else
39578
39579         cat >conftest.$ac_ext <<_ACEOF
39580
39581             /* confdefs.h.  */
39582 _ACEOF
39583 cat confdefs.h >>conftest.$ac_ext
39584 cat >>conftest.$ac_ext <<_ACEOF
39585 /* end confdefs.h.  */
39586
39587
39588                 $ac_includes_default
39589
39590 int
39591 main ()
39592 {
39593
39594                 #ifndef $wx_func
39595                   &$wx_func;
39596                 #endif
39597
39598
39599   ;
39600   return 0;
39601 }
39602
39603 _ACEOF
39604 rm -f conftest.$ac_objext conftest$ac_exeext
39605 if { (ac_try="$ac_link"
39606 case "(($ac_try" in
39607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39608   *) ac_try_echo=$ac_try;;
39609 esac
39610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39611   (eval "$ac_link") 2>conftest.er1
39612   ac_status=$?
39613   grep -v '^ *+' conftest.er1 >conftest.err
39614   rm -f conftest.er1
39615   cat conftest.err >&5
39616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39617   (exit $ac_status); } && {
39618          test -z "$ac_c_werror_flag" ||
39619          test ! -s conftest.err
39620        } && test -s conftest$ac_exeext &&
39621        $as_test_x conftest$ac_exeext; then
39622   eval wx_cv_func_$wx_func=yes
39623 else
39624   echo "$as_me: failed program was:" >&5
39625 sed 's/^/| /' conftest.$ac_ext >&5
39626
39627         eval wx_cv_func_$wx_func=no
39628 fi
39629
39630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39631       conftest$ac_exeext conftest.$ac_ext
39632
39633 fi
39634 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39635                { echo "$as_me:$LINENO: result: $ac_res" >&5
39636 echo "${ECHO_T}$ac_res" >&6; }
39637
39638     if eval test \$wx_cv_func_$wx_func = yes
39639     then
39640       cat >>confdefs.h <<_ACEOF
39641 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39642 _ACEOF
39643
39644
39645     else
39646       :
39647
39648     fi
39649   done
39650
39651 fi
39652
39653
39654   for wx_func in strtok_r
39655   do
39656     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39657 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39658 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39659   echo $ECHO_N "(cached) $ECHO_C" >&6
39660 else
39661
39662         cat >conftest.$ac_ext <<_ACEOF
39663
39664             /* confdefs.h.  */
39665 _ACEOF
39666 cat confdefs.h >>conftest.$ac_ext
39667 cat >>conftest.$ac_ext <<_ACEOF
39668 /* end confdefs.h.  */
39669
39670                 #define _REENTRANT
39671                 $ac_includes_default
39672
39673 int
39674 main ()
39675 {
39676
39677                 #ifndef $wx_func
39678                   &$wx_func;
39679                 #endif
39680
39681
39682   ;
39683   return 0;
39684 }
39685
39686 _ACEOF
39687 rm -f conftest.$ac_objext conftest$ac_exeext
39688 if { (ac_try="$ac_link"
39689 case "(($ac_try" in
39690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39691   *) ac_try_echo=$ac_try;;
39692 esac
39693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39694   (eval "$ac_link") 2>conftest.er1
39695   ac_status=$?
39696   grep -v '^ *+' conftest.er1 >conftest.err
39697   rm -f conftest.er1
39698   cat conftest.err >&5
39699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39700   (exit $ac_status); } && {
39701          test -z "$ac_c_werror_flag" ||
39702          test ! -s conftest.err
39703        } && test -s conftest$ac_exeext &&
39704        $as_test_x conftest$ac_exeext; then
39705   eval wx_cv_func_$wx_func=yes
39706 else
39707   echo "$as_me: failed program was:" >&5
39708 sed 's/^/| /' conftest.$ac_ext >&5
39709
39710         eval wx_cv_func_$wx_func=no
39711 fi
39712
39713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39714       conftest$ac_exeext conftest.$ac_ext
39715
39716 fi
39717 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39718                { echo "$as_me:$LINENO: result: $ac_res" >&5
39719 echo "${ECHO_T}$ac_res" >&6; }
39720
39721     if eval test \$wx_cv_func_$wx_func = yes
39722     then
39723       cat >>confdefs.h <<_ACEOF
39724 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39725 _ACEOF
39726
39727
39728     else
39729       :
39730
39731     fi
39732   done
39733
39734
39735 INET_LINK=
39736
39737 for ac_func in inet_addr
39738 do
39739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39740 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39743   echo $ECHO_N "(cached) $ECHO_C" >&6
39744 else
39745   cat >conftest.$ac_ext <<_ACEOF
39746 /* confdefs.h.  */
39747 _ACEOF
39748 cat confdefs.h >>conftest.$ac_ext
39749 cat >>conftest.$ac_ext <<_ACEOF
39750 /* end confdefs.h.  */
39751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39753 #define $ac_func innocuous_$ac_func
39754
39755 /* System header to define __stub macros and hopefully few prototypes,
39756     which can conflict with char $ac_func (); below.
39757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39758     <limits.h> exists even on freestanding compilers.  */
39759
39760 #ifdef __STDC__
39761 # include <limits.h>
39762 #else
39763 # include <assert.h>
39764 #endif
39765
39766 #undef $ac_func
39767
39768 /* Override any GCC internal prototype to avoid an error.
39769    Use char because int might match the return type of a GCC
39770    builtin and then its argument prototype would still apply.  */
39771 #ifdef __cplusplus
39772 extern "C"
39773 #endif
39774 char $ac_func ();
39775 /* The GNU C library defines this for functions which it implements
39776     to always fail with ENOSYS.  Some functions are actually named
39777     something starting with __ and the normal name is an alias.  */
39778 #if defined __stub_$ac_func || defined __stub___$ac_func
39779 choke me
39780 #endif
39781
39782 int
39783 main ()
39784 {
39785 return $ac_func ();
39786   ;
39787   return 0;
39788 }
39789 _ACEOF
39790 rm -f conftest.$ac_objext conftest$ac_exeext
39791 if { (ac_try="$ac_link"
39792 case "(($ac_try" in
39793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39794   *) ac_try_echo=$ac_try;;
39795 esac
39796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39797   (eval "$ac_link") 2>conftest.er1
39798   ac_status=$?
39799   grep -v '^ *+' conftest.er1 >conftest.err
39800   rm -f conftest.er1
39801   cat conftest.err >&5
39802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39803   (exit $ac_status); } && {
39804          test -z "$ac_c_werror_flag" ||
39805          test ! -s conftest.err
39806        } && test -s conftest$ac_exeext &&
39807        $as_test_x conftest$ac_exeext; then
39808   eval "$as_ac_var=yes"
39809 else
39810   echo "$as_me: failed program was:" >&5
39811 sed 's/^/| /' conftest.$ac_ext >&5
39812
39813         eval "$as_ac_var=no"
39814 fi
39815
39816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39817       conftest$ac_exeext conftest.$ac_ext
39818 fi
39819 ac_res=`eval echo '${'$as_ac_var'}'`
39820                { echo "$as_me:$LINENO: result: $ac_res" >&5
39821 echo "${ECHO_T}$ac_res" >&6; }
39822 if test `eval echo '${'$as_ac_var'}'` = yes; then
39823   cat >>confdefs.h <<_ACEOF
39824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39825 _ACEOF
39826  cat >>confdefs.h <<\_ACEOF
39827 #define HAVE_INET_ADDR 1
39828 _ACEOF
39829
39830 else
39831
39832         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
39833 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
39834 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
39835   echo $ECHO_N "(cached) $ECHO_C" >&6
39836 else
39837   ac_check_lib_save_LIBS=$LIBS
39838 LIBS="-lnsl  $LIBS"
39839 cat >conftest.$ac_ext <<_ACEOF
39840 /* confdefs.h.  */
39841 _ACEOF
39842 cat confdefs.h >>conftest.$ac_ext
39843 cat >>conftest.$ac_ext <<_ACEOF
39844 /* end confdefs.h.  */
39845
39846 /* Override any GCC internal prototype to avoid an error.
39847    Use char because int might match the return type of a GCC
39848    builtin and then its argument prototype would still apply.  */
39849 #ifdef __cplusplus
39850 extern "C"
39851 #endif
39852 char inet_addr ();
39853 int
39854 main ()
39855 {
39856 return inet_addr ();
39857   ;
39858   return 0;
39859 }
39860 _ACEOF
39861 rm -f conftest.$ac_objext conftest$ac_exeext
39862 if { (ac_try="$ac_link"
39863 case "(($ac_try" in
39864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39865   *) ac_try_echo=$ac_try;;
39866 esac
39867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39868   (eval "$ac_link") 2>conftest.er1
39869   ac_status=$?
39870   grep -v '^ *+' conftest.er1 >conftest.err
39871   rm -f conftest.er1
39872   cat conftest.err >&5
39873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39874   (exit $ac_status); } && {
39875          test -z "$ac_c_werror_flag" ||
39876          test ! -s conftest.err
39877        } && test -s conftest$ac_exeext &&
39878        $as_test_x conftest$ac_exeext; then
39879   ac_cv_lib_nsl_inet_addr=yes
39880 else
39881   echo "$as_me: failed program was:" >&5
39882 sed 's/^/| /' conftest.$ac_ext >&5
39883
39884         ac_cv_lib_nsl_inet_addr=no
39885 fi
39886
39887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39888       conftest$ac_exeext conftest.$ac_ext
39889 LIBS=$ac_check_lib_save_LIBS
39890 fi
39891 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
39892 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
39893 if test $ac_cv_lib_nsl_inet_addr = yes; then
39894   INET_LINK="nsl"
39895 else
39896
39897                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
39898 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
39899 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
39900   echo $ECHO_N "(cached) $ECHO_C" >&6
39901 else
39902   ac_check_lib_save_LIBS=$LIBS
39903 LIBS="-lresolv  $LIBS"
39904 cat >conftest.$ac_ext <<_ACEOF
39905 /* confdefs.h.  */
39906 _ACEOF
39907 cat confdefs.h >>conftest.$ac_ext
39908 cat >>conftest.$ac_ext <<_ACEOF
39909 /* end confdefs.h.  */
39910
39911 /* Override any GCC internal prototype to avoid an error.
39912    Use char because int might match the return type of a GCC
39913    builtin and then its argument prototype would still apply.  */
39914 #ifdef __cplusplus
39915 extern "C"
39916 #endif
39917 char inet_addr ();
39918 int
39919 main ()
39920 {
39921 return inet_addr ();
39922   ;
39923   return 0;
39924 }
39925 _ACEOF
39926 rm -f conftest.$ac_objext conftest$ac_exeext
39927 if { (ac_try="$ac_link"
39928 case "(($ac_try" in
39929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39930   *) ac_try_echo=$ac_try;;
39931 esac
39932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39933   (eval "$ac_link") 2>conftest.er1
39934   ac_status=$?
39935   grep -v '^ *+' conftest.er1 >conftest.err
39936   rm -f conftest.er1
39937   cat conftest.err >&5
39938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39939   (exit $ac_status); } && {
39940          test -z "$ac_c_werror_flag" ||
39941          test ! -s conftest.err
39942        } && test -s conftest$ac_exeext &&
39943        $as_test_x conftest$ac_exeext; then
39944   ac_cv_lib_resolv_inet_addr=yes
39945 else
39946   echo "$as_me: failed program was:" >&5
39947 sed 's/^/| /' conftest.$ac_ext >&5
39948
39949         ac_cv_lib_resolv_inet_addr=no
39950 fi
39951
39952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39953       conftest$ac_exeext conftest.$ac_ext
39954 LIBS=$ac_check_lib_save_LIBS
39955 fi
39956 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
39957 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
39958 if test $ac_cv_lib_resolv_inet_addr = yes; then
39959   INET_LINK="resolv"
39960 else
39961
39962                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
39963 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
39964 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
39965   echo $ECHO_N "(cached) $ECHO_C" >&6
39966 else
39967   ac_check_lib_save_LIBS=$LIBS
39968 LIBS="-lsocket  $LIBS"
39969 cat >conftest.$ac_ext <<_ACEOF
39970 /* confdefs.h.  */
39971 _ACEOF
39972 cat confdefs.h >>conftest.$ac_ext
39973 cat >>conftest.$ac_ext <<_ACEOF
39974 /* end confdefs.h.  */
39975
39976 /* Override any GCC internal prototype to avoid an error.
39977    Use char because int might match the return type of a GCC
39978    builtin and then its argument prototype would still apply.  */
39979 #ifdef __cplusplus
39980 extern "C"
39981 #endif
39982 char inet_addr ();
39983 int
39984 main ()
39985 {
39986 return inet_addr ();
39987   ;
39988   return 0;
39989 }
39990 _ACEOF
39991 rm -f conftest.$ac_objext conftest$ac_exeext
39992 if { (ac_try="$ac_link"
39993 case "(($ac_try" in
39994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39995   *) ac_try_echo=$ac_try;;
39996 esac
39997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39998   (eval "$ac_link") 2>conftest.er1
39999   ac_status=$?
40000   grep -v '^ *+' conftest.er1 >conftest.err
40001   rm -f conftest.er1
40002   cat conftest.err >&5
40003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40004   (exit $ac_status); } && {
40005          test -z "$ac_c_werror_flag" ||
40006          test ! -s conftest.err
40007        } && test -s conftest$ac_exeext &&
40008        $as_test_x conftest$ac_exeext; then
40009   ac_cv_lib_socket_inet_addr=yes
40010 else
40011   echo "$as_me: failed program was:" >&5
40012 sed 's/^/| /' conftest.$ac_ext >&5
40013
40014         ac_cv_lib_socket_inet_addr=no
40015 fi
40016
40017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40018       conftest$ac_exeext conftest.$ac_ext
40019 LIBS=$ac_check_lib_save_LIBS
40020 fi
40021 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
40022 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
40023 if test $ac_cv_lib_socket_inet_addr = yes; then
40024   INET_LINK="socket"
40025
40026 fi
40027
40028
40029
40030 fi
40031
40032
40033
40034 fi
40035
40036
40037
40038 fi
40039 done
40040
40041
40042
40043 for ac_func in inet_aton
40044 do
40045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40049   echo $ECHO_N "(cached) $ECHO_C" >&6
40050 else
40051   cat >conftest.$ac_ext <<_ACEOF
40052 /* confdefs.h.  */
40053 _ACEOF
40054 cat confdefs.h >>conftest.$ac_ext
40055 cat >>conftest.$ac_ext <<_ACEOF
40056 /* end confdefs.h.  */
40057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40059 #define $ac_func innocuous_$ac_func
40060
40061 /* System header to define __stub macros and hopefully few prototypes,
40062     which can conflict with char $ac_func (); below.
40063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40064     <limits.h> exists even on freestanding compilers.  */
40065
40066 #ifdef __STDC__
40067 # include <limits.h>
40068 #else
40069 # include <assert.h>
40070 #endif
40071
40072 #undef $ac_func
40073
40074 /* Override any GCC internal prototype to avoid an error.
40075    Use char because int might match the return type of a GCC
40076    builtin and then its argument prototype would still apply.  */
40077 #ifdef __cplusplus
40078 extern "C"
40079 #endif
40080 char $ac_func ();
40081 /* The GNU C library defines this for functions which it implements
40082     to always fail with ENOSYS.  Some functions are actually named
40083     something starting with __ and the normal name is an alias.  */
40084 #if defined __stub_$ac_func || defined __stub___$ac_func
40085 choke me
40086 #endif
40087
40088 int
40089 main ()
40090 {
40091 return $ac_func ();
40092   ;
40093   return 0;
40094 }
40095 _ACEOF
40096 rm -f conftest.$ac_objext conftest$ac_exeext
40097 if { (ac_try="$ac_link"
40098 case "(($ac_try" in
40099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40100   *) ac_try_echo=$ac_try;;
40101 esac
40102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40103   (eval "$ac_link") 2>conftest.er1
40104   ac_status=$?
40105   grep -v '^ *+' conftest.er1 >conftest.err
40106   rm -f conftest.er1
40107   cat conftest.err >&5
40108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40109   (exit $ac_status); } && {
40110          test -z "$ac_c_werror_flag" ||
40111          test ! -s conftest.err
40112        } && test -s conftest$ac_exeext &&
40113        $as_test_x conftest$ac_exeext; then
40114   eval "$as_ac_var=yes"
40115 else
40116   echo "$as_me: failed program was:" >&5
40117 sed 's/^/| /' conftest.$ac_ext >&5
40118
40119         eval "$as_ac_var=no"
40120 fi
40121
40122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40123       conftest$ac_exeext conftest.$ac_ext
40124 fi
40125 ac_res=`eval echo '${'$as_ac_var'}'`
40126                { echo "$as_me:$LINENO: result: $ac_res" >&5
40127 echo "${ECHO_T}$ac_res" >&6; }
40128 if test `eval echo '${'$as_ac_var'}'` = yes; then
40129   cat >>confdefs.h <<_ACEOF
40130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40131 _ACEOF
40132  cat >>confdefs.h <<\_ACEOF
40133 #define HAVE_INET_ATON 1
40134 _ACEOF
40135
40136 else
40137
40138                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
40139 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
40140 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
40141 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
40142   echo $ECHO_N "(cached) $ECHO_C" >&6
40143 else
40144   ac_check_lib_save_LIBS=$LIBS
40145 LIBS="-l$INET_LINK  $LIBS"
40146 cat >conftest.$ac_ext <<_ACEOF
40147 /* confdefs.h.  */
40148 _ACEOF
40149 cat confdefs.h >>conftest.$ac_ext
40150 cat >>conftest.$ac_ext <<_ACEOF
40151 /* end confdefs.h.  */
40152
40153 /* Override any GCC internal prototype to avoid an error.
40154    Use char because int might match the return type of a GCC
40155    builtin and then its argument prototype would still apply.  */
40156 #ifdef __cplusplus
40157 extern "C"
40158 #endif
40159 char inet_aton ();
40160 int
40161 main ()
40162 {
40163 return inet_aton ();
40164   ;
40165   return 0;
40166 }
40167 _ACEOF
40168 rm -f conftest.$ac_objext conftest$ac_exeext
40169 if { (ac_try="$ac_link"
40170 case "(($ac_try" in
40171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40172   *) ac_try_echo=$ac_try;;
40173 esac
40174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40175   (eval "$ac_link") 2>conftest.er1
40176   ac_status=$?
40177   grep -v '^ *+' conftest.er1 >conftest.err
40178   rm -f conftest.er1
40179   cat conftest.err >&5
40180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40181   (exit $ac_status); } && {
40182          test -z "$ac_c_werror_flag" ||
40183          test ! -s conftest.err
40184        } && test -s conftest$ac_exeext &&
40185        $as_test_x conftest$ac_exeext; then
40186   eval "$as_ac_Lib=yes"
40187 else
40188   echo "$as_me: failed program was:" >&5
40189 sed 's/^/| /' conftest.$ac_ext >&5
40190
40191         eval "$as_ac_Lib=no"
40192 fi
40193
40194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40195       conftest$ac_exeext conftest.$ac_ext
40196 LIBS=$ac_check_lib_save_LIBS
40197 fi
40198 ac_res=`eval echo '${'$as_ac_Lib'}'`
40199                { echo "$as_me:$LINENO: result: $ac_res" >&5
40200 echo "${ECHO_T}$ac_res" >&6; }
40201 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
40202   cat >>confdefs.h <<\_ACEOF
40203 #define HAVE_INET_ATON 1
40204 _ACEOF
40205
40206 fi
40207
40208
40209 fi
40210 done
40211
40212
40213 if test "x$INET_LINK" != "x"; then
40214     cat >>confdefs.h <<\_ACEOF
40215 #define HAVE_INET_ADDR 1
40216 _ACEOF
40217
40218     INET_LINK=" -l$INET_LINK"
40219 fi
40220
40221
40222   for wx_func in fdopen
40223   do
40224     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40225 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40226 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40227   echo $ECHO_N "(cached) $ECHO_C" >&6
40228 else
40229
40230         cat >conftest.$ac_ext <<_ACEOF
40231
40232             /* confdefs.h.  */
40233 _ACEOF
40234 cat confdefs.h >>conftest.$ac_ext
40235 cat >>conftest.$ac_ext <<_ACEOF
40236 /* end confdefs.h.  */
40237
40238
40239                 $ac_includes_default
40240
40241 int
40242 main ()
40243 {
40244
40245                 #ifndef $wx_func
40246                   &$wx_func;
40247                 #endif
40248
40249
40250   ;
40251   return 0;
40252 }
40253
40254 _ACEOF
40255 rm -f conftest.$ac_objext conftest$ac_exeext
40256 if { (ac_try="$ac_link"
40257 case "(($ac_try" in
40258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40259   *) ac_try_echo=$ac_try;;
40260 esac
40261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40262   (eval "$ac_link") 2>conftest.er1
40263   ac_status=$?
40264   grep -v '^ *+' conftest.er1 >conftest.err
40265   rm -f conftest.er1
40266   cat conftest.err >&5
40267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40268   (exit $ac_status); } && {
40269          test -z "$ac_c_werror_flag" ||
40270          test ! -s conftest.err
40271        } && test -s conftest$ac_exeext &&
40272        $as_test_x conftest$ac_exeext; then
40273   eval wx_cv_func_$wx_func=yes
40274 else
40275   echo "$as_me: failed program was:" >&5
40276 sed 's/^/| /' conftest.$ac_ext >&5
40277
40278         eval wx_cv_func_$wx_func=no
40279 fi
40280
40281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40282       conftest$ac_exeext conftest.$ac_ext
40283
40284 fi
40285 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40286                { echo "$as_me:$LINENO: result: $ac_res" >&5
40287 echo "${ECHO_T}$ac_res" >&6; }
40288
40289     if eval test \$wx_cv_func_$wx_func = yes
40290     then
40291       cat >>confdefs.h <<_ACEOF
40292 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40293 _ACEOF
40294
40295
40296     else
40297       :
40298
40299     fi
40300   done
40301
40302
40303 if test "$wxUSE_TARSTREAM" = "yes"; then
40304
40305   for wx_func in sysconf
40306   do
40307     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40308 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40309 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40310   echo $ECHO_N "(cached) $ECHO_C" >&6
40311 else
40312
40313         cat >conftest.$ac_ext <<_ACEOF
40314
40315             /* confdefs.h.  */
40316 _ACEOF
40317 cat confdefs.h >>conftest.$ac_ext
40318 cat >>conftest.$ac_ext <<_ACEOF
40319 /* end confdefs.h.  */
40320
40321
40322                 $ac_includes_default
40323
40324 int
40325 main ()
40326 {
40327
40328                 #ifndef $wx_func
40329                   &$wx_func;
40330                 #endif
40331
40332
40333   ;
40334   return 0;
40335 }
40336
40337 _ACEOF
40338 rm -f conftest.$ac_objext conftest$ac_exeext
40339 if { (ac_try="$ac_link"
40340 case "(($ac_try" in
40341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40342   *) ac_try_echo=$ac_try;;
40343 esac
40344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40345   (eval "$ac_link") 2>conftest.er1
40346   ac_status=$?
40347   grep -v '^ *+' conftest.er1 >conftest.err
40348   rm -f conftest.er1
40349   cat conftest.err >&5
40350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40351   (exit $ac_status); } && {
40352          test -z "$ac_c_werror_flag" ||
40353          test ! -s conftest.err
40354        } && test -s conftest$ac_exeext &&
40355        $as_test_x conftest$ac_exeext; then
40356   eval wx_cv_func_$wx_func=yes
40357 else
40358   echo "$as_me: failed program was:" >&5
40359 sed 's/^/| /' conftest.$ac_ext >&5
40360
40361         eval wx_cv_func_$wx_func=no
40362 fi
40363
40364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40365       conftest$ac_exeext conftest.$ac_ext
40366
40367 fi
40368 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40369                { echo "$as_me:$LINENO: result: $ac_res" >&5
40370 echo "${ECHO_T}$ac_res" >&6; }
40371
40372     if eval test \$wx_cv_func_$wx_func = yes
40373     then
40374       cat >>confdefs.h <<_ACEOF
40375 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40376 _ACEOF
40377
40378
40379     else
40380       :
40381
40382     fi
40383   done
40384
40385
40386
40387   for wx_func in getpwuid_r
40388   do
40389     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40390 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40391 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40392   echo $ECHO_N "(cached) $ECHO_C" >&6
40393 else
40394
40395         cat >conftest.$ac_ext <<_ACEOF
40396
40397             /* confdefs.h.  */
40398 _ACEOF
40399 cat confdefs.h >>conftest.$ac_ext
40400 cat >>conftest.$ac_ext <<_ACEOF
40401 /* end confdefs.h.  */
40402
40403
40404                     #define _REENTRANT
40405                     #include <pwd.h>
40406
40407                 $ac_includes_default
40408
40409 int
40410 main ()
40411 {
40412
40413                 #ifndef $wx_func
40414                   &$wx_func;
40415                 #endif
40416
40417                     struct passwd pw, *ppw;
40418                     char buf[1024];
40419                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
40420
40421
40422   ;
40423   return 0;
40424 }
40425
40426 _ACEOF
40427 rm -f conftest.$ac_objext conftest$ac_exeext
40428 if { (ac_try="$ac_link"
40429 case "(($ac_try" in
40430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40431   *) ac_try_echo=$ac_try;;
40432 esac
40433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40434   (eval "$ac_link") 2>conftest.er1
40435   ac_status=$?
40436   grep -v '^ *+' conftest.er1 >conftest.err
40437   rm -f conftest.er1
40438   cat conftest.err >&5
40439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40440   (exit $ac_status); } && {
40441          test -z "$ac_c_werror_flag" ||
40442          test ! -s conftest.err
40443        } && test -s conftest$ac_exeext &&
40444        $as_test_x conftest$ac_exeext; then
40445   eval wx_cv_func_$wx_func=yes
40446 else
40447   echo "$as_me: failed program was:" >&5
40448 sed 's/^/| /' conftest.$ac_ext >&5
40449
40450         eval wx_cv_func_$wx_func=no
40451 fi
40452
40453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40454       conftest$ac_exeext conftest.$ac_ext
40455
40456 fi
40457 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40458                { echo "$as_me:$LINENO: result: $ac_res" >&5
40459 echo "${ECHO_T}$ac_res" >&6; }
40460
40461     if eval test \$wx_cv_func_$wx_func = yes
40462     then
40463       cat >>confdefs.h <<_ACEOF
40464 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40465 _ACEOF
40466
40467
40468     else
40469       :
40470
40471     fi
40472   done
40473
40474
40475
40476   for wx_func in getgrgid_r
40477   do
40478     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40479 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40480 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40481   echo $ECHO_N "(cached) $ECHO_C" >&6
40482 else
40483
40484         cat >conftest.$ac_ext <<_ACEOF
40485
40486             /* confdefs.h.  */
40487 _ACEOF
40488 cat confdefs.h >>conftest.$ac_ext
40489 cat >>conftest.$ac_ext <<_ACEOF
40490 /* end confdefs.h.  */
40491
40492
40493                     #define _REENTRANT
40494                     #include <grp.h>
40495
40496                 $ac_includes_default
40497
40498 int
40499 main ()
40500 {
40501
40502                 #ifndef $wx_func
40503                   &$wx_func;
40504                 #endif
40505
40506                     struct group grp, *pgrp;
40507                     char buf[1024];
40508                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
40509
40510
40511   ;
40512   return 0;
40513 }
40514
40515 _ACEOF
40516 rm -f conftest.$ac_objext conftest$ac_exeext
40517 if { (ac_try="$ac_link"
40518 case "(($ac_try" in
40519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40520   *) ac_try_echo=$ac_try;;
40521 esac
40522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40523   (eval "$ac_link") 2>conftest.er1
40524   ac_status=$?
40525   grep -v '^ *+' conftest.er1 >conftest.err
40526   rm -f conftest.er1
40527   cat conftest.err >&5
40528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40529   (exit $ac_status); } && {
40530          test -z "$ac_c_werror_flag" ||
40531          test ! -s conftest.err
40532        } && test -s conftest$ac_exeext &&
40533        $as_test_x conftest$ac_exeext; then
40534   eval wx_cv_func_$wx_func=yes
40535 else
40536   echo "$as_me: failed program was:" >&5
40537 sed 's/^/| /' conftest.$ac_ext >&5
40538
40539         eval wx_cv_func_$wx_func=no
40540 fi
40541
40542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40543       conftest$ac_exeext conftest.$ac_ext
40544
40545 fi
40546 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40547                { echo "$as_me:$LINENO: result: $ac_res" >&5
40548 echo "${ECHO_T}$ac_res" >&6; }
40549
40550     if eval test \$wx_cv_func_$wx_func = yes
40551     then
40552       cat >>confdefs.h <<_ACEOF
40553 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40554 _ACEOF
40555
40556
40557     else
40558       :
40559
40560     fi
40561   done
40562
40563 fi
40564
40565 fi
40566
40567
40568
40569 cat >confcache <<\_ACEOF
40570 # This file is a shell script that caches the results of configure
40571 # tests run on this system so they can be shared between configure
40572 # scripts and configure runs, see configure's option --config-cache.
40573 # It is not useful on other systems.  If it contains results you don't
40574 # want to keep, you may remove or edit it.
40575 #
40576 # config.status only pays attention to the cache file if you give it
40577 # the --recheck option to rerun configure.
40578 #
40579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40581 # following values.
40582
40583 _ACEOF
40584
40585 # The following way of writing the cache mishandles newlines in values,
40586 # but we know of no workaround that is simple, portable, and efficient.
40587 # So, we kill variables containing newlines.
40588 # Ultrix sh set writes to stderr and can't be redirected directly,
40589 # and sets the high bit in the cache file unless we assign to the vars.
40590 (
40591   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40592     eval ac_val=\$$ac_var
40593     case $ac_val in #(
40594     *${as_nl}*)
40595       case $ac_var in #(
40596       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
40597 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
40598       esac
40599       case $ac_var in #(
40600       _ | IFS | as_nl) ;; #(
40601       *) $as_unset $ac_var ;;
40602       esac ;;
40603     esac
40604   done
40605
40606   (set) 2>&1 |
40607     case $as_nl`(ac_space=' '; set) 2>&1` in #(
40608     *${as_nl}ac_space=\ *)
40609       # `set' does not quote correctly, so add quotes (double-quote
40610       # substitution turns \\\\ into \\, and sed turns \\ into \).
40611       sed -n \
40612         "s/'/'\\\\''/g;
40613           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40614       ;; #(
40615     *)
40616       # `set' quotes correctly as required by POSIX, so do not add quotes.
40617       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40618       ;;
40619     esac |
40620     sort
40621 ) |
40622   sed '
40623      /^ac_cv_env_/b end
40624      t clear
40625      :clear
40626      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40627      t end
40628      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40629      :end' >>confcache
40630 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40631   if test -w "$cache_file"; then
40632     test "x$cache_file" != "x/dev/null" &&
40633       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
40634 echo "$as_me: updating cache $cache_file" >&6;}
40635     cat confcache >$cache_file
40636   else
40637     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
40638 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40639   fi
40640 fi
40641 rm -f confcache
40642
40643
40644 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40645
40646
40647     THREADS_LINK=
40648     THREADS_CFLAGS=
40649
40650     if test "$wxUSE_THREADS" = "yes" ; then
40651         if test "$USE_BEOS" = 1; then
40652             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
40653 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
40654             wxUSE_THREADS="no"
40655         fi
40656     fi
40657
40658     if test "$wxUSE_THREADS" = "yes" ; then
40659
40660
40661                                 THREAD_OPTS="-pthread"
40662         if test "x$SUNCXX" = xyes; then
40663             THREAD_OPTS="-mt lthread $THREAD_OPTS"
40664         fi
40665
40666         case "${host}" in
40667           *-*-solaris2* | *-*-sunos4* )
40668                 if test "x$GCC" = "xyes"; then
40669                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
40670                 fi
40671                 ;;
40672           *-*-freebsd*)
40673                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
40674                 ;;
40675           *-*-darwin* | *-*-cygwin* )
40676                                                 THREAD_OPTS=""
40677                 ;;
40678           *-*-aix*)
40679                                 THREAD_OPTS="pthreads"
40680                 ;;
40681           *-hp-hpux* )
40682                 if test "x$GCC" = "xyes"; then
40683                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
40684                         THREAD_OPTS=""
40685                 else
40686                                                             THREAD_OPTS="-mt"
40687                 fi
40688                 ;;
40689
40690           *-*-irix* )
40691                                                                 if test "x$GCC" = "xyes"; then
40692                     THREAD_OPTS=""
40693                 fi
40694                 ;;
40695
40696           *-*-qnx*)
40697                                                 THREAD_OPTS=""
40698                 ;;
40699
40700           *-*-*UnixWare*)
40701                                 if test "x$GCC" != "xyes"; then
40702                     THREAD_OPTS="-Ethread"
40703                 fi
40704                 ;;
40705         esac
40706
40707         case "${host}" in
40708             *-*-qnx*)
40709                                                                 THREAD_OPTS="none pthread"
40710                 ;;
40711
40712             *)
40713                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
40714                 ;;
40715         esac
40716
40717                 THREADS_OK=no
40718         for flag in $THREAD_OPTS; do
40719             case $flag in
40720                 none)
40721                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
40722 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
40723                     ;;
40724
40725                 -*)
40726                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
40727 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
40728                     THREADS_CFLAGS="$flag"
40729                     ;;
40730
40731                 *)
40732                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
40733 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
40734                     THREADS_LINK="-l$flag"
40735                     ;;
40736               esac
40737
40738               save_LIBS="$LIBS"
40739               save_CFLAGS="$CFLAGS"
40740               LIBS="$THREADS_LINK $LIBS"
40741               CFLAGS="$THREADS_CFLAGS $CFLAGS"
40742
40743               cat >conftest.$ac_ext <<_ACEOF
40744 /* confdefs.h.  */
40745 _ACEOF
40746 cat confdefs.h >>conftest.$ac_ext
40747 cat >>conftest.$ac_ext <<_ACEOF
40748 /* end confdefs.h.  */
40749 #include <pthread.h>
40750 int
40751 main ()
40752 {
40753 pthread_create(0,0,0,0);
40754   ;
40755   return 0;
40756 }
40757 _ACEOF
40758 rm -f conftest.$ac_objext conftest$ac_exeext
40759 if { (ac_try="$ac_link"
40760 case "(($ac_try" in
40761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40762   *) ac_try_echo=$ac_try;;
40763 esac
40764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40765   (eval "$ac_link") 2>conftest.er1
40766   ac_status=$?
40767   grep -v '^ *+' conftest.er1 >conftest.err
40768   rm -f conftest.er1
40769   cat conftest.err >&5
40770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40771   (exit $ac_status); } && {
40772          test -z "$ac_c_werror_flag" ||
40773          test ! -s conftest.err
40774        } && test -s conftest$ac_exeext &&
40775        $as_test_x conftest$ac_exeext; then
40776   THREADS_OK=yes
40777 else
40778   echo "$as_me: failed program was:" >&5
40779 sed 's/^/| /' conftest.$ac_ext >&5
40780
40781
40782 fi
40783
40784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40785       conftest$ac_exeext conftest.$ac_ext
40786
40787               LIBS="$save_LIBS"
40788               CFLAGS="$save_CFLAGS"
40789
40790               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
40791 echo "${ECHO_T}$THREADS_OK" >&6; }
40792               if test "x$THREADS_OK" = "xyes"; then
40793                       break;
40794               fi
40795
40796               THREADS_LINK=""
40797               THREADS_CFLAGS=""
40798       done
40799
40800       if test "x$THREADS_OK" != "xyes"; then
40801           wxUSE_THREADS=no
40802           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
40803 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
40804       else
40805                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
40806           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
40807           LIBS="$THREADS_LINK $LIBS"
40808
40809           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
40810 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
40811           flag=no
40812           case "${host}" in
40813             *-aix*)
40814                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
40815                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
40816                 flag="-D_THREAD_SAFE"
40817                 ;;
40818             *-freebsd*)
40819                 flag="-D_THREAD_SAFE"
40820                 ;;
40821             *-hp-hpux* )
40822                 flag="-D_REENTRANT"
40823                 if test "x$GCC" != "xyes"; then
40824                                         flag="$flag -D_RWSTD_MULTI_THREAD"
40825                 fi
40826                 ;;
40827             *solaris* | alpha*-osf*)
40828                 flag="-D_REENTRANT"
40829                 ;;
40830           esac
40831           { echo "$as_me:$LINENO: result: ${flag}" >&5
40832 echo "${ECHO_T}${flag}" >&6; }
40833           if test "x$flag" != xno; then
40834               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
40835           fi
40836
40837                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
40838       fi
40839     fi
40840
40841         if test "$wxUSE_THREADS" = "yes" ; then
40842
40843 for ac_func in thr_setconcurrency
40844 do
40845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40849   echo $ECHO_N "(cached) $ECHO_C" >&6
40850 else
40851   cat >conftest.$ac_ext <<_ACEOF
40852 /* confdefs.h.  */
40853 _ACEOF
40854 cat confdefs.h >>conftest.$ac_ext
40855 cat >>conftest.$ac_ext <<_ACEOF
40856 /* end confdefs.h.  */
40857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40859 #define $ac_func innocuous_$ac_func
40860
40861 /* System header to define __stub macros and hopefully few prototypes,
40862     which can conflict with char $ac_func (); below.
40863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40864     <limits.h> exists even on freestanding compilers.  */
40865
40866 #ifdef __STDC__
40867 # include <limits.h>
40868 #else
40869 # include <assert.h>
40870 #endif
40871
40872 #undef $ac_func
40873
40874 /* Override any GCC internal prototype to avoid an error.
40875    Use char because int might match the return type of a GCC
40876    builtin and then its argument prototype would still apply.  */
40877 #ifdef __cplusplus
40878 extern "C"
40879 #endif
40880 char $ac_func ();
40881 /* The GNU C library defines this for functions which it implements
40882     to always fail with ENOSYS.  Some functions are actually named
40883     something starting with __ and the normal name is an alias.  */
40884 #if defined __stub_$ac_func || defined __stub___$ac_func
40885 choke me
40886 #endif
40887
40888 int
40889 main ()
40890 {
40891 return $ac_func ();
40892   ;
40893   return 0;
40894 }
40895 _ACEOF
40896 rm -f conftest.$ac_objext conftest$ac_exeext
40897 if { (ac_try="$ac_link"
40898 case "(($ac_try" in
40899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40900   *) ac_try_echo=$ac_try;;
40901 esac
40902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40903   (eval "$ac_link") 2>conftest.er1
40904   ac_status=$?
40905   grep -v '^ *+' conftest.er1 >conftest.err
40906   rm -f conftest.er1
40907   cat conftest.err >&5
40908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40909   (exit $ac_status); } && {
40910          test -z "$ac_c_werror_flag" ||
40911          test ! -s conftest.err
40912        } && test -s conftest$ac_exeext &&
40913        $as_test_x conftest$ac_exeext; then
40914   eval "$as_ac_var=yes"
40915 else
40916   echo "$as_me: failed program was:" >&5
40917 sed 's/^/| /' conftest.$ac_ext >&5
40918
40919         eval "$as_ac_var=no"
40920 fi
40921
40922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40923       conftest$ac_exeext conftest.$ac_ext
40924 fi
40925 ac_res=`eval echo '${'$as_ac_var'}'`
40926                { echo "$as_me:$LINENO: result: $ac_res" >&5
40927 echo "${ECHO_T}$ac_res" >&6; }
40928 if test `eval echo '${'$as_ac_var'}'` = yes; then
40929   cat >>confdefs.h <<_ACEOF
40930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40931 _ACEOF
40932
40933 fi
40934 done
40935
40936
40937                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
40938 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
40939 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
40940   echo $ECHO_N "(cached) $ECHO_C" >&6
40941 else
40942
40943                                 ac_ext=cpp
40944 ac_cpp='$CXXCPP $CPPFLAGS'
40945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40948
40949         cat >conftest.$ac_ext <<_ACEOF
40950 /* confdefs.h.  */
40951 _ACEOF
40952 cat confdefs.h >>conftest.$ac_ext
40953 cat >>conftest.$ac_ext <<_ACEOF
40954 /* end confdefs.h.  */
40955 #include <pthread.h>
40956                void ThreadCleanupFunc(void *p);
40957
40958 int
40959 main ()
40960 {
40961
40962                 void *p;
40963                 pthread_cleanup_push(ThreadCleanupFunc, p);
40964                 pthread_cleanup_pop(0);
40965
40966   ;
40967   return 0;
40968 }
40969 _ACEOF
40970 rm -f conftest.$ac_objext
40971 if { (ac_try="$ac_compile"
40972 case "(($ac_try" in
40973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40974   *) ac_try_echo=$ac_try;;
40975 esac
40976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40977   (eval "$ac_compile") 2>conftest.er1
40978   ac_status=$?
40979   grep -v '^ *+' conftest.er1 >conftest.err
40980   rm -f conftest.er1
40981   cat conftest.err >&5
40982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40983   (exit $ac_status); } && {
40984          test -z "$ac_cxx_werror_flag" ||
40985          test ! -s conftest.err
40986        } && test -s conftest.$ac_objext; then
40987
40988                wx_cv_func_pthread_cleanup=yes
40989
40990 else
40991   echo "$as_me: failed program was:" >&5
40992 sed 's/^/| /' conftest.$ac_ext >&5
40993
40994
40995                wx_cv_func_pthread_cleanup=no
40996
40997
40998 fi
40999
41000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41001         ac_ext=c
41002 ac_cpp='$CPP $CPPFLAGS'
41003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41006
41007
41008 fi
41009 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
41010 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
41011       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
41012         cat >>confdefs.h <<\_ACEOF
41013 #define wxHAVE_PTHREAD_CLEANUP 1
41014 _ACEOF
41015
41016       fi
41017
41018
41019 for ac_header in sched.h
41020 do
41021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41025   echo $ECHO_N "(cached) $ECHO_C" >&6
41026 else
41027   cat >conftest.$ac_ext <<_ACEOF
41028 /* confdefs.h.  */
41029 _ACEOF
41030 cat confdefs.h >>conftest.$ac_ext
41031 cat >>conftest.$ac_ext <<_ACEOF
41032 /* end confdefs.h.  */
41033 $ac_includes_default
41034
41035 #include <$ac_header>
41036 _ACEOF
41037 rm -f conftest.$ac_objext
41038 if { (ac_try="$ac_compile"
41039 case "(($ac_try" in
41040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41041   *) ac_try_echo=$ac_try;;
41042 esac
41043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41044   (eval "$ac_compile") 2>conftest.er1
41045   ac_status=$?
41046   grep -v '^ *+' conftest.er1 >conftest.err
41047   rm -f conftest.er1
41048   cat conftest.err >&5
41049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41050   (exit $ac_status); } && {
41051          test -z "$ac_c_werror_flag" ||
41052          test ! -s conftest.err
41053        } && test -s conftest.$ac_objext; then
41054   eval "$as_ac_Header=yes"
41055 else
41056   echo "$as_me: failed program was:" >&5
41057 sed 's/^/| /' conftest.$ac_ext >&5
41058
41059         eval "$as_ac_Header=no"
41060 fi
41061
41062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41063 fi
41064 ac_res=`eval echo '${'$as_ac_Header'}'`
41065                { echo "$as_me:$LINENO: result: $ac_res" >&5
41066 echo "${ECHO_T}$ac_res" >&6; }
41067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41068   cat >>confdefs.h <<_ACEOF
41069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41070 _ACEOF
41071
41072 fi
41073
41074 done
41075
41076       if test "$ac_cv_header_sched_h" = "yes"; then
41077           { echo "$as_me:$LINENO: checking for sched_yield" >&5
41078 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
41079 if test "${ac_cv_func_sched_yield+set}" = set; then
41080   echo $ECHO_N "(cached) $ECHO_C" >&6
41081 else
41082   cat >conftest.$ac_ext <<_ACEOF
41083 /* confdefs.h.  */
41084 _ACEOF
41085 cat confdefs.h >>conftest.$ac_ext
41086 cat >>conftest.$ac_ext <<_ACEOF
41087 /* end confdefs.h.  */
41088 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
41089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41090 #define sched_yield innocuous_sched_yield
41091
41092 /* System header to define __stub macros and hopefully few prototypes,
41093     which can conflict with char sched_yield (); below.
41094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41095     <limits.h> exists even on freestanding compilers.  */
41096
41097 #ifdef __STDC__
41098 # include <limits.h>
41099 #else
41100 # include <assert.h>
41101 #endif
41102
41103 #undef sched_yield
41104
41105 /* Override any GCC internal prototype to avoid an error.
41106    Use char because int might match the return type of a GCC
41107    builtin and then its argument prototype would still apply.  */
41108 #ifdef __cplusplus
41109 extern "C"
41110 #endif
41111 char sched_yield ();
41112 /* The GNU C library defines this for functions which it implements
41113     to always fail with ENOSYS.  Some functions are actually named
41114     something starting with __ and the normal name is an alias.  */
41115 #if defined __stub_sched_yield || defined __stub___sched_yield
41116 choke me
41117 #endif
41118
41119 int
41120 main ()
41121 {
41122 return sched_yield ();
41123   ;
41124   return 0;
41125 }
41126 _ACEOF
41127 rm -f conftest.$ac_objext conftest$ac_exeext
41128 if { (ac_try="$ac_link"
41129 case "(($ac_try" in
41130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41131   *) ac_try_echo=$ac_try;;
41132 esac
41133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41134   (eval "$ac_link") 2>conftest.er1
41135   ac_status=$?
41136   grep -v '^ *+' conftest.er1 >conftest.err
41137   rm -f conftest.er1
41138   cat conftest.err >&5
41139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41140   (exit $ac_status); } && {
41141          test -z "$ac_c_werror_flag" ||
41142          test ! -s conftest.err
41143        } && test -s conftest$ac_exeext &&
41144        $as_test_x conftest$ac_exeext; then
41145   ac_cv_func_sched_yield=yes
41146 else
41147   echo "$as_me: failed program was:" >&5
41148 sed 's/^/| /' conftest.$ac_ext >&5
41149
41150         ac_cv_func_sched_yield=no
41151 fi
41152
41153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41154       conftest$ac_exeext conftest.$ac_ext
41155 fi
41156 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
41157 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
41158 if test $ac_cv_func_sched_yield = yes; then
41159   cat >>confdefs.h <<\_ACEOF
41160 #define HAVE_SCHED_YIELD 1
41161 _ACEOF
41162
41163 else
41164
41165                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
41166 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
41167 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
41168   echo $ECHO_N "(cached) $ECHO_C" >&6
41169 else
41170   ac_check_lib_save_LIBS=$LIBS
41171 LIBS="-lposix4  $LIBS"
41172 cat >conftest.$ac_ext <<_ACEOF
41173 /* confdefs.h.  */
41174 _ACEOF
41175 cat confdefs.h >>conftest.$ac_ext
41176 cat >>conftest.$ac_ext <<_ACEOF
41177 /* end confdefs.h.  */
41178
41179 /* Override any GCC internal prototype to avoid an error.
41180    Use char because int might match the return type of a GCC
41181    builtin and then its argument prototype would still apply.  */
41182 #ifdef __cplusplus
41183 extern "C"
41184 #endif
41185 char sched_yield ();
41186 int
41187 main ()
41188 {
41189 return sched_yield ();
41190   ;
41191   return 0;
41192 }
41193 _ACEOF
41194 rm -f conftest.$ac_objext conftest$ac_exeext
41195 if { (ac_try="$ac_link"
41196 case "(($ac_try" in
41197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41198   *) ac_try_echo=$ac_try;;
41199 esac
41200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41201   (eval "$ac_link") 2>conftest.er1
41202   ac_status=$?
41203   grep -v '^ *+' conftest.er1 >conftest.err
41204   rm -f conftest.er1
41205   cat conftest.err >&5
41206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41207   (exit $ac_status); } && {
41208          test -z "$ac_c_werror_flag" ||
41209          test ! -s conftest.err
41210        } && test -s conftest$ac_exeext &&
41211        $as_test_x conftest$ac_exeext; then
41212   ac_cv_lib_posix4_sched_yield=yes
41213 else
41214   echo "$as_me: failed program was:" >&5
41215 sed 's/^/| /' conftest.$ac_ext >&5
41216
41217         ac_cv_lib_posix4_sched_yield=no
41218 fi
41219
41220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41221       conftest$ac_exeext conftest.$ac_ext
41222 LIBS=$ac_check_lib_save_LIBS
41223 fi
41224 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
41225 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
41226 if test $ac_cv_lib_posix4_sched_yield = yes; then
41227   cat >>confdefs.h <<\_ACEOF
41228 #define HAVE_SCHED_YIELD 1
41229 _ACEOF
41230  POSIX4_LINK=" -lposix4"
41231 else
41232   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
41233 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
41234
41235 fi
41236
41237
41238
41239 fi
41240
41241       fi
41242
41243                                           HAVE_PRIOR_FUNCS=0
41244       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
41245 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
41246 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
41247   echo $ECHO_N "(cached) $ECHO_C" >&6
41248 else
41249   cat >conftest.$ac_ext <<_ACEOF
41250 /* confdefs.h.  */
41251 _ACEOF
41252 cat confdefs.h >>conftest.$ac_ext
41253 cat >>conftest.$ac_ext <<_ACEOF
41254 /* end confdefs.h.  */
41255 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
41256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41257 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
41258
41259 /* System header to define __stub macros and hopefully few prototypes,
41260     which can conflict with char pthread_attr_getschedpolicy (); below.
41261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41262     <limits.h> exists even on freestanding compilers.  */
41263
41264 #ifdef __STDC__
41265 # include <limits.h>
41266 #else
41267 # include <assert.h>
41268 #endif
41269
41270 #undef pthread_attr_getschedpolicy
41271
41272 /* Override any GCC internal prototype to avoid an error.
41273    Use char because int might match the return type of a GCC
41274    builtin and then its argument prototype would still apply.  */
41275 #ifdef __cplusplus
41276 extern "C"
41277 #endif
41278 char pthread_attr_getschedpolicy ();
41279 /* The GNU C library defines this for functions which it implements
41280     to always fail with ENOSYS.  Some functions are actually named
41281     something starting with __ and the normal name is an alias.  */
41282 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
41283 choke me
41284 #endif
41285
41286 int
41287 main ()
41288 {
41289 return pthread_attr_getschedpolicy ();
41290   ;
41291   return 0;
41292 }
41293 _ACEOF
41294 rm -f conftest.$ac_objext conftest$ac_exeext
41295 if { (ac_try="$ac_link"
41296 case "(($ac_try" in
41297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41298   *) ac_try_echo=$ac_try;;
41299 esac
41300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41301   (eval "$ac_link") 2>conftest.er1
41302   ac_status=$?
41303   grep -v '^ *+' conftest.er1 >conftest.err
41304   rm -f conftest.er1
41305   cat conftest.err >&5
41306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41307   (exit $ac_status); } && {
41308          test -z "$ac_c_werror_flag" ||
41309          test ! -s conftest.err
41310        } && test -s conftest$ac_exeext &&
41311        $as_test_x conftest$ac_exeext; then
41312   ac_cv_func_pthread_attr_getschedpolicy=yes
41313 else
41314   echo "$as_me: failed program was:" >&5
41315 sed 's/^/| /' conftest.$ac_ext >&5
41316
41317         ac_cv_func_pthread_attr_getschedpolicy=no
41318 fi
41319
41320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41321       conftest$ac_exeext conftest.$ac_ext
41322 fi
41323 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
41324 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
41325 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
41326   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
41327 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
41328 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
41329   echo $ECHO_N "(cached) $ECHO_C" >&6
41330 else
41331   cat >conftest.$ac_ext <<_ACEOF
41332 /* confdefs.h.  */
41333 _ACEOF
41334 cat confdefs.h >>conftest.$ac_ext
41335 cat >>conftest.$ac_ext <<_ACEOF
41336 /* end confdefs.h.  */
41337 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
41338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41339 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
41340
41341 /* System header to define __stub macros and hopefully few prototypes,
41342     which can conflict with char pthread_attr_setschedparam (); below.
41343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41344     <limits.h> exists even on freestanding compilers.  */
41345
41346 #ifdef __STDC__
41347 # include <limits.h>
41348 #else
41349 # include <assert.h>
41350 #endif
41351
41352 #undef pthread_attr_setschedparam
41353
41354 /* Override any GCC internal prototype to avoid an error.
41355    Use char because int might match the return type of a GCC
41356    builtin and then its argument prototype would still apply.  */
41357 #ifdef __cplusplus
41358 extern "C"
41359 #endif
41360 char pthread_attr_setschedparam ();
41361 /* The GNU C library defines this for functions which it implements
41362     to always fail with ENOSYS.  Some functions are actually named
41363     something starting with __ and the normal name is an alias.  */
41364 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
41365 choke me
41366 #endif
41367
41368 int
41369 main ()
41370 {
41371 return pthread_attr_setschedparam ();
41372   ;
41373   return 0;
41374 }
41375 _ACEOF
41376 rm -f conftest.$ac_objext conftest$ac_exeext
41377 if { (ac_try="$ac_link"
41378 case "(($ac_try" in
41379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41380   *) ac_try_echo=$ac_try;;
41381 esac
41382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41383   (eval "$ac_link") 2>conftest.er1
41384   ac_status=$?
41385   grep -v '^ *+' conftest.er1 >conftest.err
41386   rm -f conftest.er1
41387   cat conftest.err >&5
41388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41389   (exit $ac_status); } && {
41390          test -z "$ac_c_werror_flag" ||
41391          test ! -s conftest.err
41392        } && test -s conftest$ac_exeext &&
41393        $as_test_x conftest$ac_exeext; then
41394   ac_cv_func_pthread_attr_setschedparam=yes
41395 else
41396   echo "$as_me: failed program was:" >&5
41397 sed 's/^/| /' conftest.$ac_ext >&5
41398
41399         ac_cv_func_pthread_attr_setschedparam=no
41400 fi
41401
41402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41403       conftest$ac_exeext conftest.$ac_ext
41404 fi
41405 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41406 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
41407 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41408   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41409 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
41410 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41411   echo $ECHO_N "(cached) $ECHO_C" >&6
41412 else
41413   cat >conftest.$ac_ext <<_ACEOF
41414 /* confdefs.h.  */
41415 _ACEOF
41416 cat confdefs.h >>conftest.$ac_ext
41417 cat >>conftest.$ac_ext <<_ACEOF
41418 /* end confdefs.h.  */
41419 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41421 #define sched_get_priority_max innocuous_sched_get_priority_max
41422
41423 /* System header to define __stub macros and hopefully few prototypes,
41424     which can conflict with char sched_get_priority_max (); below.
41425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41426     <limits.h> exists even on freestanding compilers.  */
41427
41428 #ifdef __STDC__
41429 # include <limits.h>
41430 #else
41431 # include <assert.h>
41432 #endif
41433
41434 #undef sched_get_priority_max
41435
41436 /* Override any GCC internal prototype to avoid an error.
41437    Use char because int might match the return type of a GCC
41438    builtin and then its argument prototype would still apply.  */
41439 #ifdef __cplusplus
41440 extern "C"
41441 #endif
41442 char sched_get_priority_max ();
41443 /* The GNU C library defines this for functions which it implements
41444     to always fail with ENOSYS.  Some functions are actually named
41445     something starting with __ and the normal name is an alias.  */
41446 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
41447 choke me
41448 #endif
41449
41450 int
41451 main ()
41452 {
41453 return sched_get_priority_max ();
41454   ;
41455   return 0;
41456 }
41457 _ACEOF
41458 rm -f conftest.$ac_objext conftest$ac_exeext
41459 if { (ac_try="$ac_link"
41460 case "(($ac_try" in
41461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41462   *) ac_try_echo=$ac_try;;
41463 esac
41464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41465   (eval "$ac_link") 2>conftest.er1
41466   ac_status=$?
41467   grep -v '^ *+' conftest.er1 >conftest.err
41468   rm -f conftest.er1
41469   cat conftest.err >&5
41470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41471   (exit $ac_status); } && {
41472          test -z "$ac_c_werror_flag" ||
41473          test ! -s conftest.err
41474        } && test -s conftest$ac_exeext &&
41475        $as_test_x conftest$ac_exeext; then
41476   ac_cv_func_sched_get_priority_max=yes
41477 else
41478   echo "$as_me: failed program was:" >&5
41479 sed 's/^/| /' conftest.$ac_ext >&5
41480
41481         ac_cv_func_sched_get_priority_max=no
41482 fi
41483
41484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41485       conftest$ac_exeext conftest.$ac_ext
41486 fi
41487 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
41488 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
41489 if test $ac_cv_func_sched_get_priority_max = yes; then
41490   HAVE_PRIOR_FUNCS=1
41491 else
41492   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
41493 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
41494 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
41495   echo $ECHO_N "(cached) $ECHO_C" >&6
41496 else
41497   ac_check_lib_save_LIBS=$LIBS
41498 LIBS="-lposix4  $LIBS"
41499 cat >conftest.$ac_ext <<_ACEOF
41500 /* confdefs.h.  */
41501 _ACEOF
41502 cat confdefs.h >>conftest.$ac_ext
41503 cat >>conftest.$ac_ext <<_ACEOF
41504 /* end confdefs.h.  */
41505
41506 /* Override any GCC internal prototype to avoid an error.
41507    Use char because int might match the return type of a GCC
41508    builtin and then its argument prototype would still apply.  */
41509 #ifdef __cplusplus
41510 extern "C"
41511 #endif
41512 char sched_get_priority_max ();
41513 int
41514 main ()
41515 {
41516 return sched_get_priority_max ();
41517   ;
41518   return 0;
41519 }
41520 _ACEOF
41521 rm -f conftest.$ac_objext conftest$ac_exeext
41522 if { (ac_try="$ac_link"
41523 case "(($ac_try" in
41524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41525   *) ac_try_echo=$ac_try;;
41526 esac
41527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41528   (eval "$ac_link") 2>conftest.er1
41529   ac_status=$?
41530   grep -v '^ *+' conftest.er1 >conftest.err
41531   rm -f conftest.er1
41532   cat conftest.err >&5
41533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41534   (exit $ac_status); } && {
41535          test -z "$ac_c_werror_flag" ||
41536          test ! -s conftest.err
41537        } && test -s conftest$ac_exeext &&
41538        $as_test_x conftest$ac_exeext; then
41539   ac_cv_lib_posix4_sched_get_priority_max=yes
41540 else
41541   echo "$as_me: failed program was:" >&5
41542 sed 's/^/| /' conftest.$ac_ext >&5
41543
41544         ac_cv_lib_posix4_sched_get_priority_max=no
41545 fi
41546
41547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41548       conftest$ac_exeext conftest.$ac_ext
41549 LIBS=$ac_check_lib_save_LIBS
41550 fi
41551 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
41552 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
41553 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
41554
41555                                 HAVE_PRIOR_FUNCS=1
41556                                 POSIX4_LINK=" -lposix4"
41557
41558 fi
41559
41560
41561 fi
41562
41563
41564 fi
41565
41566
41567 fi
41568
41569
41570       if test "$HAVE_PRIOR_FUNCS" = 1; then
41571         cat >>confdefs.h <<\_ACEOF
41572 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
41573 _ACEOF
41574
41575       else
41576         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
41577 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
41578       fi
41579
41580       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
41581 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
41582 if test "${ac_cv_func_pthread_cancel+set}" = set; then
41583   echo $ECHO_N "(cached) $ECHO_C" >&6
41584 else
41585   cat >conftest.$ac_ext <<_ACEOF
41586 /* confdefs.h.  */
41587 _ACEOF
41588 cat confdefs.h >>conftest.$ac_ext
41589 cat >>conftest.$ac_ext <<_ACEOF
41590 /* end confdefs.h.  */
41591 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
41592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41593 #define pthread_cancel innocuous_pthread_cancel
41594
41595 /* System header to define __stub macros and hopefully few prototypes,
41596     which can conflict with char pthread_cancel (); below.
41597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41598     <limits.h> exists even on freestanding compilers.  */
41599
41600 #ifdef __STDC__
41601 # include <limits.h>
41602 #else
41603 # include <assert.h>
41604 #endif
41605
41606 #undef pthread_cancel
41607
41608 /* Override any GCC internal prototype to avoid an error.
41609    Use char because int might match the return type of a GCC
41610    builtin and then its argument prototype would still apply.  */
41611 #ifdef __cplusplus
41612 extern "C"
41613 #endif
41614 char pthread_cancel ();
41615 /* The GNU C library defines this for functions which it implements
41616     to always fail with ENOSYS.  Some functions are actually named
41617     something starting with __ and the normal name is an alias.  */
41618 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
41619 choke me
41620 #endif
41621
41622 int
41623 main ()
41624 {
41625 return pthread_cancel ();
41626   ;
41627   return 0;
41628 }
41629 _ACEOF
41630 rm -f conftest.$ac_objext conftest$ac_exeext
41631 if { (ac_try="$ac_link"
41632 case "(($ac_try" in
41633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41634   *) ac_try_echo=$ac_try;;
41635 esac
41636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41637   (eval "$ac_link") 2>conftest.er1
41638   ac_status=$?
41639   grep -v '^ *+' conftest.er1 >conftest.err
41640   rm -f conftest.er1
41641   cat conftest.err >&5
41642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41643   (exit $ac_status); } && {
41644          test -z "$ac_c_werror_flag" ||
41645          test ! -s conftest.err
41646        } && test -s conftest$ac_exeext &&
41647        $as_test_x conftest$ac_exeext; then
41648   ac_cv_func_pthread_cancel=yes
41649 else
41650   echo "$as_me: failed program was:" >&5
41651 sed 's/^/| /' conftest.$ac_ext >&5
41652
41653         ac_cv_func_pthread_cancel=no
41654 fi
41655
41656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41657       conftest$ac_exeext conftest.$ac_ext
41658 fi
41659 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
41660 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
41661 if test $ac_cv_func_pthread_cancel = yes; then
41662   cat >>confdefs.h <<\_ACEOF
41663 #define HAVE_PTHREAD_CANCEL 1
41664 _ACEOF
41665
41666 else
41667   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
41668 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
41669 fi
41670
41671
41672       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
41673 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
41674 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
41675   echo $ECHO_N "(cached) $ECHO_C" >&6
41676 else
41677   cat >conftest.$ac_ext <<_ACEOF
41678 /* confdefs.h.  */
41679 _ACEOF
41680 cat confdefs.h >>conftest.$ac_ext
41681 cat >>conftest.$ac_ext <<_ACEOF
41682 /* end confdefs.h.  */
41683 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
41684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41685 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
41686
41687 /* System header to define __stub macros and hopefully few prototypes,
41688     which can conflict with char pthread_mutex_timedlock (); below.
41689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41690     <limits.h> exists even on freestanding compilers.  */
41691
41692 #ifdef __STDC__
41693 # include <limits.h>
41694 #else
41695 # include <assert.h>
41696 #endif
41697
41698 #undef pthread_mutex_timedlock
41699
41700 /* Override any GCC internal prototype to avoid an error.
41701    Use char because int might match the return type of a GCC
41702    builtin and then its argument prototype would still apply.  */
41703 #ifdef __cplusplus
41704 extern "C"
41705 #endif
41706 char pthread_mutex_timedlock ();
41707 /* The GNU C library defines this for functions which it implements
41708     to always fail with ENOSYS.  Some functions are actually named
41709     something starting with __ and the normal name is an alias.  */
41710 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
41711 choke me
41712 #endif
41713
41714 int
41715 main ()
41716 {
41717 return pthread_mutex_timedlock ();
41718   ;
41719   return 0;
41720 }
41721 _ACEOF
41722 rm -f conftest.$ac_objext conftest$ac_exeext
41723 if { (ac_try="$ac_link"
41724 case "(($ac_try" in
41725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41726   *) ac_try_echo=$ac_try;;
41727 esac
41728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41729   (eval "$ac_link") 2>conftest.er1
41730   ac_status=$?
41731   grep -v '^ *+' conftest.er1 >conftest.err
41732   rm -f conftest.er1
41733   cat conftest.err >&5
41734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41735   (exit $ac_status); } && {
41736          test -z "$ac_c_werror_flag" ||
41737          test ! -s conftest.err
41738        } && test -s conftest$ac_exeext &&
41739        $as_test_x conftest$ac_exeext; then
41740   ac_cv_func_pthread_mutex_timedlock=yes
41741 else
41742   echo "$as_me: failed program was:" >&5
41743 sed 's/^/| /' conftest.$ac_ext >&5
41744
41745         ac_cv_func_pthread_mutex_timedlock=no
41746 fi
41747
41748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41749       conftest$ac_exeext conftest.$ac_ext
41750 fi
41751 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
41752 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
41753 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
41754   cat >>confdefs.h <<\_ACEOF
41755 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
41756 _ACEOF
41757
41758 else
41759   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
41760 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
41761 fi
41762
41763
41764       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
41765 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
41766 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
41767   echo $ECHO_N "(cached) $ECHO_C" >&6
41768 else
41769   cat >conftest.$ac_ext <<_ACEOF
41770 /* confdefs.h.  */
41771 _ACEOF
41772 cat confdefs.h >>conftest.$ac_ext
41773 cat >>conftest.$ac_ext <<_ACEOF
41774 /* end confdefs.h.  */
41775 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
41776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41777 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
41778
41779 /* System header to define __stub macros and hopefully few prototypes,
41780     which can conflict with char pthread_attr_setstacksize (); below.
41781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41782     <limits.h> exists even on freestanding compilers.  */
41783
41784 #ifdef __STDC__
41785 # include <limits.h>
41786 #else
41787 # include <assert.h>
41788 #endif
41789
41790 #undef pthread_attr_setstacksize
41791
41792 /* Override any GCC internal prototype to avoid an error.
41793    Use char because int might match the return type of a GCC
41794    builtin and then its argument prototype would still apply.  */
41795 #ifdef __cplusplus
41796 extern "C"
41797 #endif
41798 char pthread_attr_setstacksize ();
41799 /* The GNU C library defines this for functions which it implements
41800     to always fail with ENOSYS.  Some functions are actually named
41801     something starting with __ and the normal name is an alias.  */
41802 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
41803 choke me
41804 #endif
41805
41806 int
41807 main ()
41808 {
41809 return pthread_attr_setstacksize ();
41810   ;
41811   return 0;
41812 }
41813 _ACEOF
41814 rm -f conftest.$ac_objext conftest$ac_exeext
41815 if { (ac_try="$ac_link"
41816 case "(($ac_try" in
41817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41818   *) ac_try_echo=$ac_try;;
41819 esac
41820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41821   (eval "$ac_link") 2>conftest.er1
41822   ac_status=$?
41823   grep -v '^ *+' conftest.er1 >conftest.err
41824   rm -f conftest.er1
41825   cat conftest.err >&5
41826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41827   (exit $ac_status); } && {
41828          test -z "$ac_c_werror_flag" ||
41829          test ! -s conftest.err
41830        } && test -s conftest$ac_exeext &&
41831        $as_test_x conftest$ac_exeext; then
41832   ac_cv_func_pthread_attr_setstacksize=yes
41833 else
41834   echo "$as_me: failed program was:" >&5
41835 sed 's/^/| /' conftest.$ac_ext >&5
41836
41837         ac_cv_func_pthread_attr_setstacksize=no
41838 fi
41839
41840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41841       conftest$ac_exeext conftest.$ac_ext
41842 fi
41843 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
41844 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
41845 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
41846   cat >>confdefs.h <<\_ACEOF
41847 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
41848 _ACEOF
41849
41850 fi
41851
41852
41853
41854       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
41855 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
41856 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
41857   echo $ECHO_N "(cached) $ECHO_C" >&6
41858 else
41859
41860         cat >conftest.$ac_ext <<_ACEOF
41861 /* confdefs.h.  */
41862 _ACEOF
41863 cat confdefs.h >>conftest.$ac_ext
41864 cat >>conftest.$ac_ext <<_ACEOF
41865 /* end confdefs.h.  */
41866 #include <pthread.h>
41867 int
41868 main ()
41869 {
41870
41871                pthread_mutexattr_t attr;
41872                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41873
41874   ;
41875   return 0;
41876 }
41877 _ACEOF
41878 rm -f conftest.$ac_objext
41879 if { (ac_try="$ac_compile"
41880 case "(($ac_try" in
41881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41882   *) ac_try_echo=$ac_try;;
41883 esac
41884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41885   (eval "$ac_compile") 2>conftest.er1
41886   ac_status=$?
41887   grep -v '^ *+' conftest.er1 >conftest.err
41888   rm -f conftest.er1
41889   cat conftest.err >&5
41890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41891   (exit $ac_status); } && {
41892          test -z "$ac_c_werror_flag" ||
41893          test ! -s conftest.err
41894        } && test -s conftest.$ac_objext; then
41895   wx_cv_type_pthread_mutexattr_t=yes
41896 else
41897   echo "$as_me: failed program was:" >&5
41898 sed 's/^/| /' conftest.$ac_ext >&5
41899
41900         wx_cv_type_pthread_mutexattr_t=no
41901
41902 fi
41903
41904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41905
41906 fi
41907 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
41908 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
41909
41910       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
41911         cat >>confdefs.h <<\_ACEOF
41912 #define HAVE_PTHREAD_MUTEXATTR_T 1
41913 _ACEOF
41914
41915
41916                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
41917 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
41918 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
41919   echo $ECHO_N "(cached) $ECHO_C" >&6
41920 else
41921
41922                        cat >conftest.$ac_ext <<_ACEOF
41923 /* confdefs.h.  */
41924 _ACEOF
41925 cat confdefs.h >>conftest.$ac_ext
41926 cat >>conftest.$ac_ext <<_ACEOF
41927 /* end confdefs.h.  */
41928 #include <pthread.h>
41929 int
41930 main ()
41931 {
41932
41933                                pthread_mutexattr_t attr;
41934                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41935
41936   ;
41937   return 0;
41938 }
41939 _ACEOF
41940 rm -f conftest.$ac_objext
41941 if { (ac_try="$ac_compile"
41942 case "(($ac_try" in
41943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41944   *) ac_try_echo=$ac_try;;
41945 esac
41946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41947   (eval "$ac_compile") 2>conftest.er1
41948   ac_status=$?
41949   grep -v '^ *+' conftest.er1 >conftest.err
41950   rm -f conftest.er1
41951   cat conftest.err >&5
41952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953   (exit $ac_status); } && {
41954          test -z "$ac_c_werror_flag" ||
41955          test ! -s conftest.err
41956        } && test -s conftest.$ac_objext; then
41957   wx_cv_func_pthread_mutexattr_settype_decl=yes
41958 else
41959   echo "$as_me: failed program was:" >&5
41960 sed 's/^/| /' conftest.$ac_ext >&5
41961
41962         wx_cv_func_pthread_mutexattr_settype_decl=no
41963
41964 fi
41965
41966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41967
41968 fi
41969 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
41970 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
41971         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
41972             cat >>confdefs.h <<\_ACEOF
41973 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
41974 _ACEOF
41975
41976         fi
41977       else
41978                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
41979 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
41980 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
41981   echo $ECHO_N "(cached) $ECHO_C" >&6
41982 else
41983
41984             cat >conftest.$ac_ext <<_ACEOF
41985 /* confdefs.h.  */
41986 _ACEOF
41987 cat confdefs.h >>conftest.$ac_ext
41988 cat >>conftest.$ac_ext <<_ACEOF
41989 /* end confdefs.h.  */
41990 #include <pthread.h>
41991 int
41992 main ()
41993 {
41994
41995                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
41996
41997   ;
41998   return 0;
41999 }
42000 _ACEOF
42001 rm -f conftest.$ac_objext
42002 if { (ac_try="$ac_compile"
42003 case "(($ac_try" in
42004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42005   *) ac_try_echo=$ac_try;;
42006 esac
42007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42008   (eval "$ac_compile") 2>conftest.er1
42009   ac_status=$?
42010   grep -v '^ *+' conftest.er1 >conftest.err
42011   rm -f conftest.er1
42012   cat conftest.err >&5
42013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42014   (exit $ac_status); } && {
42015          test -z "$ac_c_werror_flag" ||
42016          test ! -s conftest.err
42017        } && test -s conftest.$ac_objext; then
42018
42019                     wx_cv_type_pthread_rec_mutex_init=yes
42020
42021 else
42022   echo "$as_me: failed program was:" >&5
42023 sed 's/^/| /' conftest.$ac_ext >&5
42024
42025
42026                     wx_cv_type_pthread_rec_mutex_init=no
42027
42028
42029 fi
42030
42031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42032
42033 fi
42034 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
42035 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
42036         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
42037           cat >>confdefs.h <<\_ACEOF
42038 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
42039 _ACEOF
42040
42041         else
42042                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
42043 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
42044         fi
42045       fi
42046
42047       if test "$wxUSE_COMPILER_TLS" = "auto"; then
42048           if test "$USE_NETBSD" = 1; then
42049               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
42050 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
42051               wxUSE_COMPILER_TLS=no
42052           else
42053               wxUSE_COMPILER_TLS=yes
42054           fi
42055       fi
42056
42057       if test "$wxUSE_COMPILER_TLS" = "yes"; then
42058                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
42059 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
42060 if test "${wx_cv_cc___thread+set}" = set; then
42061   echo $ECHO_N "(cached) $ECHO_C" >&6
42062 else
42063
42064                   cat >conftest.$ac_ext <<_ACEOF
42065 /* confdefs.h.  */
42066 _ACEOF
42067 cat confdefs.h >>conftest.$ac_ext
42068 cat >>conftest.$ac_ext <<_ACEOF
42069 /* end confdefs.h.  */
42070 #include <pthread.h>
42071 int
42072 main ()
42073 {
42074
42075                           static __thread int n = 0;
42076                           static __thread int *p = 0;
42077
42078   ;
42079   return 0;
42080 }
42081 _ACEOF
42082 rm -f conftest.$ac_objext
42083 if { (ac_try="$ac_compile"
42084 case "(($ac_try" in
42085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42086   *) ac_try_echo=$ac_try;;
42087 esac
42088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42089   (eval "$ac_compile") 2>conftest.er1
42090   ac_status=$?
42091   grep -v '^ *+' conftest.er1 >conftest.err
42092   rm -f conftest.er1
42093   cat conftest.err >&5
42094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42095   (exit $ac_status); } && {
42096          test -z "$ac_c_werror_flag" ||
42097          test ! -s conftest.err
42098        } && test -s conftest.$ac_objext; then
42099   wx_cv_cc___thread=yes
42100 else
42101   echo "$as_me: failed program was:" >&5
42102 sed 's/^/| /' conftest.$ac_ext >&5
42103
42104         wx_cv_cc___thread=no
42105
42106 fi
42107
42108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42109
42110
42111 fi
42112 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
42113 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
42114
42115           if test "$wx_cv_cc___thread" = "yes"; then
42116
42117   GXX_VERSION=""
42118
42119
42120
42121   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
42122 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
42123
42124   if  test "x$GCC" = "xyes" ; then
42125
42126     if  test -z "" ; then
42127
42128       ax_gcc_option_test="int main()
42129 {
42130         return 0;
42131 }"
42132
42133 else
42134
42135       ax_gcc_option_test=""
42136
42137 fi
42138
42139
42140     # Dump the test program to file
42141     cat <<EOF > conftest.c
42142 $ax_gcc_option_test
42143 EOF
42144
42145     # Dump back the file to the log, useful for debugging purposes
42146     { ac_try='cat conftest.c 1>&5'
42147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42148   (eval $ac_try) 2>&5
42149   ac_status=$?
42150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42151   (exit $ac_status); }; }
42152
42153     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
42154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42155   (eval $ac_try) 2>&5
42156   ac_status=$?
42157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42158   (exit $ac_status); }; } ; then
42159
42160                 { echo "$as_me:$LINENO: result: yes" >&5
42161 echo "${ECHO_T}yes" >&6; }
42162
42163     ax_gcc_version_option=yes
42164
42165
42166 else
42167
42168                 { echo "$as_me:$LINENO: result: no" >&5
42169 echo "${ECHO_T}no" >&6; }
42170
42171     ax_gcc_version_option=no
42172
42173
42174 fi
42175
42176
42177 else
42178
42179     { echo "$as_me:$LINENO: result: no gcc available" >&5
42180 echo "${ECHO_T}no gcc available" >&6; }
42181
42182 fi
42183
42184
42185   if test "x$GXX" = "xyes"; then
42186
42187     if test "x$ax_gxx_version_option" != "no"; then
42188
42189       { echo "$as_me:$LINENO: checking gxx version" >&5
42190 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
42191 if test "${ax_cv_gxx_version+set}" = set; then
42192   echo $ECHO_N "(cached) $ECHO_C" >&6
42193 else
42194
42195         ax_cv_gxx_version="`$CXX -dumpversion`"
42196         if test "x$ax_cv_gxx_version" = "x"; then
42197
42198           ax_cv_gxx_version=""
42199
42200 fi
42201
42202
42203 fi
42204 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
42205 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
42206       GXX_VERSION=$ax_cv_gxx_version
42207
42208 fi
42209
42210
42211 fi
42212
42213
42214
42215               if test -n "$ax_cv_gxx_version"; then
42216                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
42217 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
42218                   case "$ax_cv_gxx_version" in
42219                     1.* | 2.* | 3.* )
42220                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
42221 echo "${ECHO_T}no, it's broken" >&6; }
42222                         wx_cv_cc___thread=no
42223                         ;;
42224                     *)
42225                         { echo "$as_me:$LINENO: result: yes, it works" >&5
42226 echo "${ECHO_T}yes, it works" >&6; }
42227                         ;;
42228                   esac
42229               fi
42230           fi
42231
42232           if test "$wx_cv_cc___thread" = "yes"; then
42233             cat >>confdefs.h <<\_ACEOF
42234 #define HAVE___THREAD_KEYWORD 1
42235 _ACEOF
42236
42237           fi
42238         fi
42239     fi
42240
42241 else
42242     if test "$wxUSE_THREADS" = "yes" ; then
42243       case "${host}" in
42244         x86_64-*-mingw32* )
42245         ;;
42246         *-*-mingw32* )
42247                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
42248 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
42249 if test "${wx_cv_cflags_mthread+set}" = set; then
42250   echo $ECHO_N "(cached) $ECHO_C" >&6
42251 else
42252
42253                     CFLAGS_OLD="$CFLAGS"
42254                     CFLAGS="-mthreads $CFLAGS"
42255                     cat >conftest.$ac_ext <<_ACEOF
42256 /* confdefs.h.  */
42257 _ACEOF
42258 cat confdefs.h >>conftest.$ac_ext
42259 cat >>conftest.$ac_ext <<_ACEOF
42260 /* end confdefs.h.  */
42261
42262 int
42263 main ()
42264 {
42265
42266   ;
42267   return 0;
42268 }
42269 _ACEOF
42270 rm -f conftest.$ac_objext
42271 if { (ac_try="$ac_compile"
42272 case "(($ac_try" in
42273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42274   *) ac_try_echo=$ac_try;;
42275 esac
42276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42277   (eval "$ac_compile") 2>conftest.er1
42278   ac_status=$?
42279   grep -v '^ *+' conftest.er1 >conftest.err
42280   rm -f conftest.er1
42281   cat conftest.err >&5
42282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42283   (exit $ac_status); } && {
42284          test -z "$ac_c_werror_flag" ||
42285          test ! -s conftest.err
42286        } && test -s conftest.$ac_objext; then
42287   wx_cv_cflags_mthread=yes
42288 else
42289   echo "$as_me: failed program was:" >&5
42290 sed 's/^/| /' conftest.$ac_ext >&5
42291
42292         wx_cv_cflags_mthread=no
42293
42294 fi
42295
42296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42297
42298
42299 fi
42300 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
42301 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
42302
42303             if test "$wx_cv_cflags_mthread" = "yes"; then
42304                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
42305                 LDFLAGS="$LDFLAGS -mthreads"
42306             else
42307                                 CFLAGS="$CFLAGS_OLD"
42308             fi
42309         ;;
42310         *-pc-os2*emx )
42311             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
42312             LDFLAGS="$LDFLAGS -Zmt"
42313         ;;
42314       esac
42315     fi
42316 fi
42317
42318 { echo "$as_me:$LINENO: checking for localtime_r" >&5
42319 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
42320 if test "${ac_cv_func_localtime_r+set}" = set; then
42321   echo $ECHO_N "(cached) $ECHO_C" >&6
42322 else
42323   cat >conftest.$ac_ext <<_ACEOF
42324 /* confdefs.h.  */
42325 _ACEOF
42326 cat confdefs.h >>conftest.$ac_ext
42327 cat >>conftest.$ac_ext <<_ACEOF
42328 /* end confdefs.h.  */
42329 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
42330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42331 #define localtime_r innocuous_localtime_r
42332
42333 /* System header to define __stub macros and hopefully few prototypes,
42334     which can conflict with char localtime_r (); below.
42335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42336     <limits.h> exists even on freestanding compilers.  */
42337
42338 #ifdef __STDC__
42339 # include <limits.h>
42340 #else
42341 # include <assert.h>
42342 #endif
42343
42344 #undef localtime_r
42345
42346 /* Override any GCC internal prototype to avoid an error.
42347    Use char because int might match the return type of a GCC
42348    builtin and then its argument prototype would still apply.  */
42349 #ifdef __cplusplus
42350 extern "C"
42351 #endif
42352 char localtime_r ();
42353 /* The GNU C library defines this for functions which it implements
42354     to always fail with ENOSYS.  Some functions are actually named
42355     something starting with __ and the normal name is an alias.  */
42356 #if defined __stub_localtime_r || defined __stub___localtime_r
42357 choke me
42358 #endif
42359
42360 int
42361 main ()
42362 {
42363 return localtime_r ();
42364   ;
42365   return 0;
42366 }
42367 _ACEOF
42368 rm -f conftest.$ac_objext conftest$ac_exeext
42369 if { (ac_try="$ac_link"
42370 case "(($ac_try" in
42371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42372   *) ac_try_echo=$ac_try;;
42373 esac
42374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42375   (eval "$ac_link") 2>conftest.er1
42376   ac_status=$?
42377   grep -v '^ *+' conftest.er1 >conftest.err
42378   rm -f conftest.er1
42379   cat conftest.err >&5
42380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42381   (exit $ac_status); } && {
42382          test -z "$ac_c_werror_flag" ||
42383          test ! -s conftest.err
42384        } && test -s conftest$ac_exeext &&
42385        $as_test_x conftest$ac_exeext; then
42386   ac_cv_func_localtime_r=yes
42387 else
42388   echo "$as_me: failed program was:" >&5
42389 sed 's/^/| /' conftest.$ac_ext >&5
42390
42391         ac_cv_func_localtime_r=no
42392 fi
42393
42394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42395       conftest$ac_exeext conftest.$ac_ext
42396 fi
42397 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42398 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42399 if test $ac_cv_func_localtime_r = yes; then
42400    cat >>confdefs.h <<\_ACEOF
42401 #define HAVE_LOCALTIME_R 1
42402 _ACEOF
42403
42404 fi
42405
42406 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42407 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42408 if test "${ac_cv_func_gmtime_r+set}" = set; then
42409   echo $ECHO_N "(cached) $ECHO_C" >&6
42410 else
42411   cat >conftest.$ac_ext <<_ACEOF
42412 /* confdefs.h.  */
42413 _ACEOF
42414 cat confdefs.h >>conftest.$ac_ext
42415 cat >>conftest.$ac_ext <<_ACEOF
42416 /* end confdefs.h.  */
42417 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42419 #define gmtime_r innocuous_gmtime_r
42420
42421 /* System header to define __stub macros and hopefully few prototypes,
42422     which can conflict with char gmtime_r (); below.
42423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42424     <limits.h> exists even on freestanding compilers.  */
42425
42426 #ifdef __STDC__
42427 # include <limits.h>
42428 #else
42429 # include <assert.h>
42430 #endif
42431
42432 #undef gmtime_r
42433
42434 /* Override any GCC internal prototype to avoid an error.
42435    Use char because int might match the return type of a GCC
42436    builtin and then its argument prototype would still apply.  */
42437 #ifdef __cplusplus
42438 extern "C"
42439 #endif
42440 char gmtime_r ();
42441 /* The GNU C library defines this for functions which it implements
42442     to always fail with ENOSYS.  Some functions are actually named
42443     something starting with __ and the normal name is an alias.  */
42444 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42445 choke me
42446 #endif
42447
42448 int
42449 main ()
42450 {
42451 return gmtime_r ();
42452   ;
42453   return 0;
42454 }
42455 _ACEOF
42456 rm -f conftest.$ac_objext conftest$ac_exeext
42457 if { (ac_try="$ac_link"
42458 case "(($ac_try" in
42459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42460   *) ac_try_echo=$ac_try;;
42461 esac
42462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42463   (eval "$ac_link") 2>conftest.er1
42464   ac_status=$?
42465   grep -v '^ *+' conftest.er1 >conftest.err
42466   rm -f conftest.er1
42467   cat conftest.err >&5
42468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42469   (exit $ac_status); } && {
42470          test -z "$ac_c_werror_flag" ||
42471          test ! -s conftest.err
42472        } && test -s conftest$ac_exeext &&
42473        $as_test_x conftest$ac_exeext; then
42474   ac_cv_func_gmtime_r=yes
42475 else
42476   echo "$as_me: failed program was:" >&5
42477 sed 's/^/| /' conftest.$ac_ext >&5
42478
42479         ac_cv_func_gmtime_r=no
42480 fi
42481
42482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42483       conftest$ac_exeext conftest.$ac_ext
42484 fi
42485 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42486 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42487 if test $ac_cv_func_gmtime_r = yes; then
42488    cat >>confdefs.h <<\_ACEOF
42489 #define HAVE_GMTIME_R 1
42490 _ACEOF
42491
42492 fi
42493
42494
42495
42496
42497     ac_ext=c
42498 ac_cpp='$CPP $CPPFLAGS'
42499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42502
42503     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42504 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42505
42506     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42507   echo $ECHO_N "(cached) $ECHO_C" >&6
42508 else
42509
42510
42511 ################################################################
42512
42513 ac_cv_func_which_gethostbyname_r=unknown
42514
42515 #
42516 # ONE ARGUMENT (sanity check)
42517 #
42518
42519 # This should fail, as there is no variant of gethostbyname_r() that takes
42520 # a single argument. If it actually compiles, then we can assume that
42521 # netdb.h is not declaring the function, and the compiler is thereby
42522 # assuming an implicit prototype. In which case, we're out of luck.
42523 #
42524 cat >conftest.$ac_ext <<_ACEOF
42525 /* confdefs.h.  */
42526 _ACEOF
42527 cat confdefs.h >>conftest.$ac_ext
42528 cat >>conftest.$ac_ext <<_ACEOF
42529 /* end confdefs.h.  */
42530 #include <netdb.h>
42531 int
42532 main ()
42533 {
42534
42535             char *name = "www.gnu.org";
42536             (void)gethostbyname_r(name) /* ; */
42537
42538   ;
42539   return 0;
42540 }
42541 _ACEOF
42542 rm -f conftest.$ac_objext
42543 if { (ac_try="$ac_compile"
42544 case "(($ac_try" in
42545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42546   *) ac_try_echo=$ac_try;;
42547 esac
42548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42549   (eval "$ac_compile") 2>conftest.er1
42550   ac_status=$?
42551   grep -v '^ *+' conftest.er1 >conftest.err
42552   rm -f conftest.er1
42553   cat conftest.err >&5
42554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42555   (exit $ac_status); } && {
42556          test -z "$ac_c_werror_flag" ||
42557          test ! -s conftest.err
42558        } && test -s conftest.$ac_objext; then
42559   ac_cv_func_which_gethostbyname_r=no
42560 else
42561   echo "$as_me: failed program was:" >&5
42562 sed 's/^/| /' conftest.$ac_ext >&5
42563
42564
42565 fi
42566
42567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42568
42569 #
42570 # SIX ARGUMENTS
42571 # (e.g. Linux)
42572 #
42573
42574 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42575
42576 cat >conftest.$ac_ext <<_ACEOF
42577 /* confdefs.h.  */
42578 _ACEOF
42579 cat confdefs.h >>conftest.$ac_ext
42580 cat >>conftest.$ac_ext <<_ACEOF
42581 /* end confdefs.h.  */
42582 #include <netdb.h>
42583 int
42584 main ()
42585 {
42586
42587             char *name = "www.gnu.org";
42588             struct hostent ret, *retp;
42589             char buf[1024];
42590             int buflen = 1024;
42591             int my_h_errno;
42592             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42593
42594   ;
42595   return 0;
42596 }
42597 _ACEOF
42598 rm -f conftest.$ac_objext
42599 if { (ac_try="$ac_compile"
42600 case "(($ac_try" in
42601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42602   *) ac_try_echo=$ac_try;;
42603 esac
42604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42605   (eval "$ac_compile") 2>conftest.er1
42606   ac_status=$?
42607   grep -v '^ *+' conftest.er1 >conftest.err
42608   rm -f conftest.er1
42609   cat conftest.err >&5
42610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42611   (exit $ac_status); } && {
42612          test -z "$ac_c_werror_flag" ||
42613          test ! -s conftest.err
42614        } && test -s conftest.$ac_objext; then
42615   ac_cv_func_which_gethostbyname_r=six
42616 else
42617   echo "$as_me: failed program was:" >&5
42618 sed 's/^/| /' conftest.$ac_ext >&5
42619
42620
42621 fi
42622
42623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42624
42625 fi
42626
42627 #
42628 # FIVE ARGUMENTS
42629 # (e.g. Solaris)
42630 #
42631
42632 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42633
42634 cat >conftest.$ac_ext <<_ACEOF
42635 /* confdefs.h.  */
42636 _ACEOF
42637 cat confdefs.h >>conftest.$ac_ext
42638 cat >>conftest.$ac_ext <<_ACEOF
42639 /* end confdefs.h.  */
42640 #include <netdb.h>
42641 int
42642 main ()
42643 {
42644
42645             char *name = "www.gnu.org";
42646             struct hostent ret;
42647             char buf[1024];
42648             int buflen = 1024;
42649             int my_h_errno;
42650             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
42651
42652   ;
42653   return 0;
42654 }
42655 _ACEOF
42656 rm -f conftest.$ac_objext
42657 if { (ac_try="$ac_compile"
42658 case "(($ac_try" in
42659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42660   *) ac_try_echo=$ac_try;;
42661 esac
42662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42663   (eval "$ac_compile") 2>conftest.er1
42664   ac_status=$?
42665   grep -v '^ *+' conftest.er1 >conftest.err
42666   rm -f conftest.er1
42667   cat conftest.err >&5
42668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42669   (exit $ac_status); } && {
42670          test -z "$ac_c_werror_flag" ||
42671          test ! -s conftest.err
42672        } && test -s conftest.$ac_objext; then
42673   ac_cv_func_which_gethostbyname_r=five
42674 else
42675   echo "$as_me: failed program was:" >&5
42676 sed 's/^/| /' conftest.$ac_ext >&5
42677
42678
42679 fi
42680
42681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42682
42683 fi
42684
42685 #
42686 # THREE ARGUMENTS
42687 # (e.g. AIX, HP-UX, Tru64)
42688 #
42689
42690 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42691
42692 cat >conftest.$ac_ext <<_ACEOF
42693 /* confdefs.h.  */
42694 _ACEOF
42695 cat confdefs.h >>conftest.$ac_ext
42696 cat >>conftest.$ac_ext <<_ACEOF
42697 /* end confdefs.h.  */
42698 #include <netdb.h>
42699 int
42700 main ()
42701 {
42702
42703             char *name = "www.gnu.org";
42704             struct hostent ret;
42705             struct hostent_data data;
42706             (void)gethostbyname_r(name, &ret, &data) /* ; */
42707
42708   ;
42709   return 0;
42710 }
42711 _ACEOF
42712 rm -f conftest.$ac_objext
42713 if { (ac_try="$ac_compile"
42714 case "(($ac_try" in
42715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42716   *) ac_try_echo=$ac_try;;
42717 esac
42718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42719   (eval "$ac_compile") 2>conftest.er1
42720   ac_status=$?
42721   grep -v '^ *+' conftest.er1 >conftest.err
42722   rm -f conftest.er1
42723   cat conftest.err >&5
42724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42725   (exit $ac_status); } && {
42726          test -z "$ac_c_werror_flag" ||
42727          test ! -s conftest.err
42728        } && test -s conftest.$ac_objext; then
42729   ac_cv_func_which_gethostbyname_r=three
42730 else
42731   echo "$as_me: failed program was:" >&5
42732 sed 's/^/| /' conftest.$ac_ext >&5
42733
42734
42735 fi
42736
42737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42738
42739 fi
42740
42741 ################################################################
42742
42743
42744 fi
42745
42746 case "$ac_cv_func_which_gethostbyname_r" in
42747     three)
42748     { echo "$as_me:$LINENO: result: three" >&5
42749 echo "${ECHO_T}three" >&6; }
42750     cat >>confdefs.h <<\_ACEOF
42751 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
42752 _ACEOF
42753
42754     ;;
42755
42756     five)
42757     { echo "$as_me:$LINENO: result: five" >&5
42758 echo "${ECHO_T}five" >&6; }
42759     cat >>confdefs.h <<\_ACEOF
42760 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
42761 _ACEOF
42762
42763     ;;
42764
42765     six)
42766     { echo "$as_me:$LINENO: result: six" >&5
42767 echo "${ECHO_T}six" >&6; }
42768     cat >>confdefs.h <<\_ACEOF
42769 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
42770 _ACEOF
42771
42772     ;;
42773
42774     no)
42775     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
42776 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
42777     ;;
42778
42779     unknown)
42780     { echo "$as_me:$LINENO: result: can't tell" >&5
42781 echo "${ECHO_T}can't tell" >&6; }
42782     ;;
42783
42784     *)
42785     { { echo "$as_me:$LINENO: error: internal error" >&5
42786 echo "$as_me: error: internal error" >&2;}
42787    { (exit 1); exit 1; }; }
42788     ;;
42789 esac
42790
42791 ac_ext=c
42792 ac_cpp='$CPP $CPPFLAGS'
42793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42796
42797
42798
42799       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
42800               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
42801           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
42802 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
42803 if test "${ac_cv_func_gethostbyname+set}" = set; then
42804   echo $ECHO_N "(cached) $ECHO_C" >&6
42805 else
42806   cat >conftest.$ac_ext <<_ACEOF
42807 /* confdefs.h.  */
42808 _ACEOF
42809 cat confdefs.h >>conftest.$ac_ext
42810 cat >>conftest.$ac_ext <<_ACEOF
42811 /* end confdefs.h.  */
42812 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
42813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42814 #define gethostbyname innocuous_gethostbyname
42815
42816 /* System header to define __stub macros and hopefully few prototypes,
42817     which can conflict with char gethostbyname (); below.
42818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42819     <limits.h> exists even on freestanding compilers.  */
42820
42821 #ifdef __STDC__
42822 # include <limits.h>
42823 #else
42824 # include <assert.h>
42825 #endif
42826
42827 #undef gethostbyname
42828
42829 /* Override any GCC internal prototype to avoid an error.
42830    Use char because int might match the return type of a GCC
42831    builtin and then its argument prototype would still apply.  */
42832 #ifdef __cplusplus
42833 extern "C"
42834 #endif
42835 char gethostbyname ();
42836 /* The GNU C library defines this for functions which it implements
42837     to always fail with ENOSYS.  Some functions are actually named
42838     something starting with __ and the normal name is an alias.  */
42839 #if defined __stub_gethostbyname || defined __stub___gethostbyname
42840 choke me
42841 #endif
42842
42843 int
42844 main ()
42845 {
42846 return gethostbyname ();
42847   ;
42848   return 0;
42849 }
42850 _ACEOF
42851 rm -f conftest.$ac_objext conftest$ac_exeext
42852 if { (ac_try="$ac_link"
42853 case "(($ac_try" in
42854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42855   *) ac_try_echo=$ac_try;;
42856 esac
42857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42858   (eval "$ac_link") 2>conftest.er1
42859   ac_status=$?
42860   grep -v '^ *+' conftest.er1 >conftest.err
42861   rm -f conftest.er1
42862   cat conftest.err >&5
42863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42864   (exit $ac_status); } && {
42865          test -z "$ac_c_werror_flag" ||
42866          test ! -s conftest.err
42867        } && test -s conftest$ac_exeext &&
42868        $as_test_x conftest$ac_exeext; then
42869   ac_cv_func_gethostbyname=yes
42870 else
42871   echo "$as_me: failed program was:" >&5
42872 sed 's/^/| /' conftest.$ac_ext >&5
42873
42874         ac_cv_func_gethostbyname=no
42875 fi
42876
42877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42878       conftest$ac_exeext conftest.$ac_ext
42879 fi
42880 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
42881 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
42882 if test $ac_cv_func_gethostbyname = yes; then
42883    cat >>confdefs.h <<\_ACEOF
42884 #define HAVE_GETHOSTBYNAME 1
42885 _ACEOF
42886
42887 fi
42888
42889       fi
42890
42891 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
42892 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
42893 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
42894   echo $ECHO_N "(cached) $ECHO_C" >&6
42895 else
42896
42897                 ac_ext=cpp
42898 ac_cpp='$CXXCPP $CPPFLAGS'
42899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42902
42903
42904         cat >conftest.$ac_ext <<_ACEOF
42905 /* confdefs.h.  */
42906 _ACEOF
42907 cat confdefs.h >>conftest.$ac_ext
42908 cat >>conftest.$ac_ext <<_ACEOF
42909 /* end confdefs.h.  */
42910 #include <netdb.h>
42911 int
42912 main ()
42913 {
42914
42915                 char *name;
42916                 char *proto;
42917                 struct servent *se, *res;
42918                 char buffer[2048];
42919                 int buflen = 2048;
42920                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
42921
42922   ;
42923   return 0;
42924 }
42925 _ACEOF
42926 rm -f conftest.$ac_objext
42927 if { (ac_try="$ac_compile"
42928 case "(($ac_try" in
42929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42930   *) ac_try_echo=$ac_try;;
42931 esac
42932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42933   (eval "$ac_compile") 2>conftest.er1
42934   ac_status=$?
42935   grep -v '^ *+' conftest.er1 >conftest.err
42936   rm -f conftest.er1
42937   cat conftest.err >&5
42938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42939   (exit $ac_status); } && {
42940          test -z "$ac_cxx_werror_flag" ||
42941          test ! -s conftest.err
42942        } && test -s conftest.$ac_objext; then
42943   ac_cv_func_which_getservbyname_r=six
42944 else
42945   echo "$as_me: failed program was:" >&5
42946 sed 's/^/| /' conftest.$ac_ext >&5
42947
42948
42949                 cat >conftest.$ac_ext <<_ACEOF
42950 /* confdefs.h.  */
42951 _ACEOF
42952 cat confdefs.h >>conftest.$ac_ext
42953 cat >>conftest.$ac_ext <<_ACEOF
42954 /* end confdefs.h.  */
42955 #include <netdb.h>
42956 int
42957 main ()
42958 {
42959
42960                         char *name;
42961                         char *proto;
42962                         struct servent *se;
42963                         char buffer[2048];
42964                         int buflen = 2048;
42965                         (void) getservbyname_r(name, proto, se, buffer, buflen)
42966
42967   ;
42968   return 0;
42969 }
42970 _ACEOF
42971 rm -f conftest.$ac_objext
42972 if { (ac_try="$ac_compile"
42973 case "(($ac_try" in
42974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42975   *) ac_try_echo=$ac_try;;
42976 esac
42977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42978   (eval "$ac_compile") 2>conftest.er1
42979   ac_status=$?
42980   grep -v '^ *+' conftest.er1 >conftest.err
42981   rm -f conftest.er1
42982   cat conftest.err >&5
42983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42984   (exit $ac_status); } && {
42985          test -z "$ac_cxx_werror_flag" ||
42986          test ! -s conftest.err
42987        } && test -s conftest.$ac_objext; then
42988   ac_cv_func_which_getservbyname_r=five
42989 else
42990   echo "$as_me: failed program was:" >&5
42991 sed 's/^/| /' conftest.$ac_ext >&5
42992
42993
42994                         cat >conftest.$ac_ext <<_ACEOF
42995 /* confdefs.h.  */
42996 _ACEOF
42997 cat confdefs.h >>conftest.$ac_ext
42998 cat >>conftest.$ac_ext <<_ACEOF
42999 /* end confdefs.h.  */
43000 #include <netdb.h>
43001 int
43002 main ()
43003 {
43004
43005                                 char *name;
43006                                 char *proto;
43007                                 struct servent *se;
43008                                 struct servent_data data;
43009                                 (void) getservbyname_r(name, proto, se, &data);
43010
43011   ;
43012   return 0;
43013 }
43014 _ACEOF
43015 rm -f conftest.$ac_objext
43016 if { (ac_try="$ac_compile"
43017 case "(($ac_try" in
43018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43019   *) ac_try_echo=$ac_try;;
43020 esac
43021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43022   (eval "$ac_compile") 2>conftest.er1
43023   ac_status=$?
43024   grep -v '^ *+' conftest.er1 >conftest.err
43025   rm -f conftest.er1
43026   cat conftest.err >&5
43027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43028   (exit $ac_status); } && {
43029          test -z "$ac_cxx_werror_flag" ||
43030          test ! -s conftest.err
43031        } && test -s conftest.$ac_objext; then
43032   ac_cv_func_which_getservbyname_r=four
43033 else
43034   echo "$as_me: failed program was:" >&5
43035 sed 's/^/| /' conftest.$ac_ext >&5
43036
43037         ac_cv_func_which_getservbyname_r=no
43038
43039 fi
43040
43041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43042
43043
43044 fi
43045
43046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43047
43048
43049 fi
43050
43051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43052         ac_ext=c
43053 ac_cpp='$CPP $CPPFLAGS'
43054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43057
43058
43059
43060 fi
43061 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
43062 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
43063
43064 if test $ac_cv_func_which_getservbyname_r = six; then
43065   cat >>confdefs.h <<\_ACEOF
43066 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
43067 _ACEOF
43068
43069 elif test $ac_cv_func_which_getservbyname_r = five; then
43070   cat >>confdefs.h <<\_ACEOF
43071 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
43072 _ACEOF
43073
43074 elif test $ac_cv_func_which_getservbyname_r = four; then
43075   cat >>confdefs.h <<\_ACEOF
43076 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
43077 _ACEOF
43078
43079 fi
43080
43081
43082       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
43083               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
43084
43085 for ac_func in getservbyname
43086 do
43087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43091   echo $ECHO_N "(cached) $ECHO_C" >&6
43092 else
43093   cat >conftest.$ac_ext <<_ACEOF
43094 /* confdefs.h.  */
43095 _ACEOF
43096 cat confdefs.h >>conftest.$ac_ext
43097 cat >>conftest.$ac_ext <<_ACEOF
43098 /* end confdefs.h.  */
43099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43101 #define $ac_func innocuous_$ac_func
43102
43103 /* System header to define __stub macros and hopefully few prototypes,
43104     which can conflict with char $ac_func (); below.
43105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43106     <limits.h> exists even on freestanding compilers.  */
43107
43108 #ifdef __STDC__
43109 # include <limits.h>
43110 #else
43111 # include <assert.h>
43112 #endif
43113
43114 #undef $ac_func
43115
43116 /* Override any GCC internal prototype to avoid an error.
43117    Use char because int might match the return type of a GCC
43118    builtin and then its argument prototype would still apply.  */
43119 #ifdef __cplusplus
43120 extern "C"
43121 #endif
43122 char $ac_func ();
43123 /* The GNU C library defines this for functions which it implements
43124     to always fail with ENOSYS.  Some functions are actually named
43125     something starting with __ and the normal name is an alias.  */
43126 #if defined __stub_$ac_func || defined __stub___$ac_func
43127 choke me
43128 #endif
43129
43130 int
43131 main ()
43132 {
43133 return $ac_func ();
43134   ;
43135   return 0;
43136 }
43137 _ACEOF
43138 rm -f conftest.$ac_objext conftest$ac_exeext
43139 if { (ac_try="$ac_link"
43140 case "(($ac_try" in
43141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43142   *) ac_try_echo=$ac_try;;
43143 esac
43144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43145   (eval "$ac_link") 2>conftest.er1
43146   ac_status=$?
43147   grep -v '^ *+' conftest.er1 >conftest.err
43148   rm -f conftest.er1
43149   cat conftest.err >&5
43150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43151   (exit $ac_status); } && {
43152          test -z "$ac_c_werror_flag" ||
43153          test ! -s conftest.err
43154        } && test -s conftest$ac_exeext &&
43155        $as_test_x conftest$ac_exeext; then
43156   eval "$as_ac_var=yes"
43157 else
43158   echo "$as_me: failed program was:" >&5
43159 sed 's/^/| /' conftest.$ac_ext >&5
43160
43161         eval "$as_ac_var=no"
43162 fi
43163
43164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43165       conftest$ac_exeext conftest.$ac_ext
43166 fi
43167 ac_res=`eval echo '${'$as_ac_var'}'`
43168                { echo "$as_me:$LINENO: result: $ac_res" >&5
43169 echo "${ECHO_T}$ac_res" >&6; }
43170 if test `eval echo '${'$as_ac_var'}'` = yes; then
43171   cat >>confdefs.h <<_ACEOF
43172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43173 _ACEOF
43174   cat >>confdefs.h <<\_ACEOF
43175 #define HAVE_GETSERVBYNAME 1
43176 _ACEOF
43177
43178 fi
43179 done
43180
43181       fi
43182
43183 if test "$wxUSE_THREADS" = "yes"; then
43184   cat >>confdefs.h <<\_ACEOF
43185 #define wxUSE_THREADS 1
43186 _ACEOF
43187
43188
43189   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
43190 else
43191       if test "$wx_cv_func_strtok_r" = "yes"; then
43192     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
43193 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
43194     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
43195         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
43196         { echo "$as_me:$LINENO: result: yes" >&5
43197 echo "${ECHO_T}yes" >&6; }
43198     else
43199         { echo "$as_me:$LINENO: result: no" >&5
43200 echo "${ECHO_T}no" >&6; }
43201     fi
43202   fi
43203 fi
43204
43205 if test "$WXGTK2" = 1 ; then
43206   cat >>confdefs.h <<_ACEOF
43207 #define __WXGTK20__ $WXGTK2
43208 _ACEOF
43209
43210 fi
43211
43212 if test "$WXGTK127" = 1 ; then
43213   cat >>confdefs.h <<_ACEOF
43214 #define __WXGTK127__ $WXGTK127
43215 _ACEOF
43216
43217 fi
43218
43219 if test "$WXGPE" = 1 ; then
43220   cat >>confdefs.h <<_ACEOF
43221 #define __WXGPE__ $WXGPE
43222 _ACEOF
43223
43224 fi
43225
43226 DEBUG_CFLAGS=
43227 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
43228                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
43229 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
43230 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
43231     DEBUG_CFLAGS="-g"
43232 fi
43233
43234 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
43235     wxUSE_DEBUG_INFO=yes
43236     if test "$GCC" = yes; then
43237         DEBUG_CFLAGS="-ggdb"
43238     fi
43239 fi
43240
43241 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
43242     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
43243
43244     if test "$wxUSE_GTK" = 1 ; then
43245         if test "x$wxGTK_VERSION" = "x1" ; then
43246             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
43247         else
43248             CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS"
43249         fi
43250     fi
43251 fi
43252
43253 if test "$wxUSE_MEM_TRACING" = "yes" ; then
43254     cat >>confdefs.h <<\_ACEOF
43255 #define wxUSE_MEMORY_TRACING 1
43256 _ACEOF
43257
43258     cat >>confdefs.h <<\_ACEOF
43259 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
43260 _ACEOF
43261
43262     cat >>confdefs.h <<\_ACEOF
43263 #define wxUSE_DEBUG_NEW_ALWAYS 1
43264 _ACEOF
43265
43266     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
43267 fi
43268
43269 if test "$wxUSE_DMALLOC" = "yes" ; then
43270     DMALLOC_LIBS="-ldmallocthcxx"
43271 fi
43272
43273 PROFILE_FLAGS=
43274 if test "$wxUSE_PROFILE" = "yes" ; then
43275     PROFILE_FLAGS=" -pg"
43276 fi
43277
43278 if test "$GCC" = "yes" ; then
43279     if test "$wxUSE_NO_RTTI" = "yes" ; then
43280                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
43281     fi
43282     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43283         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
43284     fi
43285     if test "$wxUSE_PERMISSIVE" = "yes" ; then
43286         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
43287     fi
43288
43289                                                 case "${host}" in
43290       powerpc*-*-aix* )
43291         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
43292         ;;
43293       *-hppa* )
43294         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
43295         ;;
43296     esac
43297 fi
43298
43299 OPTIMISE_CFLAGS=
43300 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
43301                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
43302 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
43303 else
43304     if test "$wxUSE_OPTIMISE" = "no" ; then
43305         if test "$GCC" = yes ; then
43306                                     OPTIMISE_CFLAGS="-O0"
43307         fi
43308     else
43309         if test "$GCC" = yes ; then
43310             case "${host}" in
43311                 *-pc-os2_emx | *-pc-os2-emx )
43312                                                             OPTIMISE_CFLAGS="-O2"
43313                 ;;
43314                 *)
43315                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
43316                 ;;
43317             esac
43318         else
43319             OPTIMISE_CFLAGS="-O"
43320         fi
43321     fi
43322 fi
43323
43324
43325 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
43326     cat >>confdefs.h <<\_ACEOF
43327 #define WXWIN_COMPATIBILITY_2_6 1
43328 _ACEOF
43329
43330
43331     WXWIN_COMPATIBILITY_2_8="yes"
43332 fi
43333
43334 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43335     cat >>confdefs.h <<\_ACEOF
43336 #define WXWIN_COMPATIBILITY_2_8 1
43337 _ACEOF
43338
43339 fi
43340
43341
43342 if test "$wxUSE_GUI" = "yes"; then
43343     cat >>confdefs.h <<\_ACEOF
43344 #define wxUSE_GUI 1
43345 _ACEOF
43346
43347
43348                                             fi
43349
43350
43351 if test "$wxUSE_UNIX" = "yes"; then
43352   cat >>confdefs.h <<\_ACEOF
43353 #define wxUSE_UNIX 1
43354 _ACEOF
43355
43356 fi
43357
43358
43359 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43360
43361     HAVE_DL_FUNCS=0
43362     HAVE_SHL_FUNCS=0
43363     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43364         if test "$USE_DOS" = 1; then
43365             HAVE_DL_FUNCS=0
43366         else
43367
43368 for ac_func in dlopen
43369 do
43370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43374   echo $ECHO_N "(cached) $ECHO_C" >&6
43375 else
43376   cat >conftest.$ac_ext <<_ACEOF
43377 /* confdefs.h.  */
43378 _ACEOF
43379 cat confdefs.h >>conftest.$ac_ext
43380 cat >>conftest.$ac_ext <<_ACEOF
43381 /* end confdefs.h.  */
43382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43384 #define $ac_func innocuous_$ac_func
43385
43386 /* System header to define __stub macros and hopefully few prototypes,
43387     which can conflict with char $ac_func (); below.
43388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43389     <limits.h> exists even on freestanding compilers.  */
43390
43391 #ifdef __STDC__
43392 # include <limits.h>
43393 #else
43394 # include <assert.h>
43395 #endif
43396
43397 #undef $ac_func
43398
43399 /* Override any GCC internal prototype to avoid an error.
43400    Use char because int might match the return type of a GCC
43401    builtin and then its argument prototype would still apply.  */
43402 #ifdef __cplusplus
43403 extern "C"
43404 #endif
43405 char $ac_func ();
43406 /* The GNU C library defines this for functions which it implements
43407     to always fail with ENOSYS.  Some functions are actually named
43408     something starting with __ and the normal name is an alias.  */
43409 #if defined __stub_$ac_func || defined __stub___$ac_func
43410 choke me
43411 #endif
43412
43413 int
43414 main ()
43415 {
43416 return $ac_func ();
43417   ;
43418   return 0;
43419 }
43420 _ACEOF
43421 rm -f conftest.$ac_objext conftest$ac_exeext
43422 if { (ac_try="$ac_link"
43423 case "(($ac_try" in
43424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43425   *) ac_try_echo=$ac_try;;
43426 esac
43427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43428   (eval "$ac_link") 2>conftest.er1
43429   ac_status=$?
43430   grep -v '^ *+' conftest.er1 >conftest.err
43431   rm -f conftest.er1
43432   cat conftest.err >&5
43433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43434   (exit $ac_status); } && {
43435          test -z "$ac_c_werror_flag" ||
43436          test ! -s conftest.err
43437        } && test -s conftest$ac_exeext &&
43438        $as_test_x conftest$ac_exeext; then
43439   eval "$as_ac_var=yes"
43440 else
43441   echo "$as_me: failed program was:" >&5
43442 sed 's/^/| /' conftest.$ac_ext >&5
43443
43444         eval "$as_ac_var=no"
43445 fi
43446
43447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43448       conftest$ac_exeext conftest.$ac_ext
43449 fi
43450 ac_res=`eval echo '${'$as_ac_var'}'`
43451                { echo "$as_me:$LINENO: result: $ac_res" >&5
43452 echo "${ECHO_T}$ac_res" >&6; }
43453 if test `eval echo '${'$as_ac_var'}'` = yes; then
43454   cat >>confdefs.h <<_ACEOF
43455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43456 _ACEOF
43457
43458                 cat >>confdefs.h <<\_ACEOF
43459 #define HAVE_DLOPEN 1
43460 _ACEOF
43461
43462                 HAVE_DL_FUNCS=1
43463
43464 else
43465
43466                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43467 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43468 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43469   echo $ECHO_N "(cached) $ECHO_C" >&6
43470 else
43471   ac_check_lib_save_LIBS=$LIBS
43472 LIBS="-ldl  $LIBS"
43473 cat >conftest.$ac_ext <<_ACEOF
43474 /* confdefs.h.  */
43475 _ACEOF
43476 cat confdefs.h >>conftest.$ac_ext
43477 cat >>conftest.$ac_ext <<_ACEOF
43478 /* end confdefs.h.  */
43479
43480 /* Override any GCC internal prototype to avoid an error.
43481    Use char because int might match the return type of a GCC
43482    builtin and then its argument prototype would still apply.  */
43483 #ifdef __cplusplus
43484 extern "C"
43485 #endif
43486 char dlopen ();
43487 int
43488 main ()
43489 {
43490 return dlopen ();
43491   ;
43492   return 0;
43493 }
43494 _ACEOF
43495 rm -f conftest.$ac_objext conftest$ac_exeext
43496 if { (ac_try="$ac_link"
43497 case "(($ac_try" in
43498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43499   *) ac_try_echo=$ac_try;;
43500 esac
43501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43502   (eval "$ac_link") 2>conftest.er1
43503   ac_status=$?
43504   grep -v '^ *+' conftest.er1 >conftest.err
43505   rm -f conftest.er1
43506   cat conftest.err >&5
43507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43508   (exit $ac_status); } && {
43509          test -z "$ac_c_werror_flag" ||
43510          test ! -s conftest.err
43511        } && test -s conftest$ac_exeext &&
43512        $as_test_x conftest$ac_exeext; then
43513   ac_cv_lib_dl_dlopen=yes
43514 else
43515   echo "$as_me: failed program was:" >&5
43516 sed 's/^/| /' conftest.$ac_ext >&5
43517
43518         ac_cv_lib_dl_dlopen=no
43519 fi
43520
43521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43522       conftest$ac_exeext conftest.$ac_ext
43523 LIBS=$ac_check_lib_save_LIBS
43524 fi
43525 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43526 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43527 if test $ac_cv_lib_dl_dlopen = yes; then
43528
43529                                 cat >>confdefs.h <<\_ACEOF
43530 #define HAVE_DLOPEN 1
43531 _ACEOF
43532
43533                                 HAVE_DL_FUNCS=1
43534                                 DL_LINK=" -ldl$DL_LINK"
43535
43536 else
43537
43538
43539 for ac_func in shl_load
43540 do
43541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43545   echo $ECHO_N "(cached) $ECHO_C" >&6
43546 else
43547   cat >conftest.$ac_ext <<_ACEOF
43548 /* confdefs.h.  */
43549 _ACEOF
43550 cat confdefs.h >>conftest.$ac_ext
43551 cat >>conftest.$ac_ext <<_ACEOF
43552 /* end confdefs.h.  */
43553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43555 #define $ac_func innocuous_$ac_func
43556
43557 /* System header to define __stub macros and hopefully few prototypes,
43558     which can conflict with char $ac_func (); below.
43559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43560     <limits.h> exists even on freestanding compilers.  */
43561
43562 #ifdef __STDC__
43563 # include <limits.h>
43564 #else
43565 # include <assert.h>
43566 #endif
43567
43568 #undef $ac_func
43569
43570 /* Override any GCC internal prototype to avoid an error.
43571    Use char because int might match the return type of a GCC
43572    builtin and then its argument prototype would still apply.  */
43573 #ifdef __cplusplus
43574 extern "C"
43575 #endif
43576 char $ac_func ();
43577 /* The GNU C library defines this for functions which it implements
43578     to always fail with ENOSYS.  Some functions are actually named
43579     something starting with __ and the normal name is an alias.  */
43580 #if defined __stub_$ac_func || defined __stub___$ac_func
43581 choke me
43582 #endif
43583
43584 int
43585 main ()
43586 {
43587 return $ac_func ();
43588   ;
43589   return 0;
43590 }
43591 _ACEOF
43592 rm -f conftest.$ac_objext conftest$ac_exeext
43593 if { (ac_try="$ac_link"
43594 case "(($ac_try" in
43595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43596   *) ac_try_echo=$ac_try;;
43597 esac
43598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43599   (eval "$ac_link") 2>conftest.er1
43600   ac_status=$?
43601   grep -v '^ *+' conftest.er1 >conftest.err
43602   rm -f conftest.er1
43603   cat conftest.err >&5
43604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43605   (exit $ac_status); } && {
43606          test -z "$ac_c_werror_flag" ||
43607          test ! -s conftest.err
43608        } && test -s conftest$ac_exeext &&
43609        $as_test_x conftest$ac_exeext; then
43610   eval "$as_ac_var=yes"
43611 else
43612   echo "$as_me: failed program was:" >&5
43613 sed 's/^/| /' conftest.$ac_ext >&5
43614
43615         eval "$as_ac_var=no"
43616 fi
43617
43618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43619       conftest$ac_exeext conftest.$ac_ext
43620 fi
43621 ac_res=`eval echo '${'$as_ac_var'}'`
43622                { echo "$as_me:$LINENO: result: $ac_res" >&5
43623 echo "${ECHO_T}$ac_res" >&6; }
43624 if test `eval echo '${'$as_ac_var'}'` = yes; then
43625   cat >>confdefs.h <<_ACEOF
43626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43627 _ACEOF
43628
43629                                                 cat >>confdefs.h <<\_ACEOF
43630 #define HAVE_SHL_LOAD 1
43631 _ACEOF
43632
43633                                                 HAVE_SHL_FUNCS=1
43634
43635 else
43636
43637                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
43638 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
43639 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
43640   echo $ECHO_N "(cached) $ECHO_C" >&6
43641 else
43642   ac_check_lib_save_LIBS=$LIBS
43643 LIBS="-lshl_load  $LIBS"
43644 cat >conftest.$ac_ext <<_ACEOF
43645 /* confdefs.h.  */
43646 _ACEOF
43647 cat confdefs.h >>conftest.$ac_ext
43648 cat >>conftest.$ac_ext <<_ACEOF
43649 /* end confdefs.h.  */
43650
43651 /* Override any GCC internal prototype to avoid an error.
43652    Use char because int might match the return type of a GCC
43653    builtin and then its argument prototype would still apply.  */
43654 #ifdef __cplusplus
43655 extern "C"
43656 #endif
43657 char dld ();
43658 int
43659 main ()
43660 {
43661 return dld ();
43662   ;
43663   return 0;
43664 }
43665 _ACEOF
43666 rm -f conftest.$ac_objext conftest$ac_exeext
43667 if { (ac_try="$ac_link"
43668 case "(($ac_try" in
43669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43670   *) ac_try_echo=$ac_try;;
43671 esac
43672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43673   (eval "$ac_link") 2>conftest.er1
43674   ac_status=$?
43675   grep -v '^ *+' conftest.er1 >conftest.err
43676   rm -f conftest.er1
43677   cat conftest.err >&5
43678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43679   (exit $ac_status); } && {
43680          test -z "$ac_c_werror_flag" ||
43681          test ! -s conftest.err
43682        } && test -s conftest$ac_exeext &&
43683        $as_test_x conftest$ac_exeext; then
43684   ac_cv_lib_shl_load_dld=yes
43685 else
43686   echo "$as_me: failed program was:" >&5
43687 sed 's/^/| /' conftest.$ac_ext >&5
43688
43689         ac_cv_lib_shl_load_dld=no
43690 fi
43691
43692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43693       conftest$ac_exeext conftest.$ac_ext
43694 LIBS=$ac_check_lib_save_LIBS
43695 fi
43696 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
43697 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
43698 if test $ac_cv_lib_shl_load_dld = yes; then
43699
43700                                                                 HAVE_SHL_FUNCS=1
43701                                                                 DL_LINK=" -ldld$DL_LINK"
43702
43703 fi
43704
43705
43706 fi
43707 done
43708
43709
43710 fi
43711
43712
43713 fi
43714 done
43715
43716
43717                         if test "$HAVE_DL_FUNCS" = 1; then
43718
43719 for ac_func in dlerror
43720 do
43721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43725   echo $ECHO_N "(cached) $ECHO_C" >&6
43726 else
43727   cat >conftest.$ac_ext <<_ACEOF
43728 /* confdefs.h.  */
43729 _ACEOF
43730 cat confdefs.h >>conftest.$ac_ext
43731 cat >>conftest.$ac_ext <<_ACEOF
43732 /* end confdefs.h.  */
43733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43735 #define $ac_func innocuous_$ac_func
43736
43737 /* System header to define __stub macros and hopefully few prototypes,
43738     which can conflict with char $ac_func (); below.
43739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43740     <limits.h> exists even on freestanding compilers.  */
43741
43742 #ifdef __STDC__
43743 # include <limits.h>
43744 #else
43745 # include <assert.h>
43746 #endif
43747
43748 #undef $ac_func
43749
43750 /* Override any GCC internal prototype to avoid an error.
43751    Use char because int might match the return type of a GCC
43752    builtin and then its argument prototype would still apply.  */
43753 #ifdef __cplusplus
43754 extern "C"
43755 #endif
43756 char $ac_func ();
43757 /* The GNU C library defines this for functions which it implements
43758     to always fail with ENOSYS.  Some functions are actually named
43759     something starting with __ and the normal name is an alias.  */
43760 #if defined __stub_$ac_func || defined __stub___$ac_func
43761 choke me
43762 #endif
43763
43764 int
43765 main ()
43766 {
43767 return $ac_func ();
43768   ;
43769   return 0;
43770 }
43771 _ACEOF
43772 rm -f conftest.$ac_objext conftest$ac_exeext
43773 if { (ac_try="$ac_link"
43774 case "(($ac_try" in
43775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43776   *) ac_try_echo=$ac_try;;
43777 esac
43778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43779   (eval "$ac_link") 2>conftest.er1
43780   ac_status=$?
43781   grep -v '^ *+' conftest.er1 >conftest.err
43782   rm -f conftest.er1
43783   cat conftest.err >&5
43784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43785   (exit $ac_status); } && {
43786          test -z "$ac_c_werror_flag" ||
43787          test ! -s conftest.err
43788        } && test -s conftest$ac_exeext &&
43789        $as_test_x conftest$ac_exeext; then
43790   eval "$as_ac_var=yes"
43791 else
43792   echo "$as_me: failed program was:" >&5
43793 sed 's/^/| /' conftest.$ac_ext >&5
43794
43795         eval "$as_ac_var=no"
43796 fi
43797
43798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43799       conftest$ac_exeext conftest.$ac_ext
43800 fi
43801 ac_res=`eval echo '${'$as_ac_var'}'`
43802                { echo "$as_me:$LINENO: result: $ac_res" >&5
43803 echo "${ECHO_T}$ac_res" >&6; }
43804 if test `eval echo '${'$as_ac_var'}'` = yes; then
43805   cat >>confdefs.h <<_ACEOF
43806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43807 _ACEOF
43808  cat >>confdefs.h <<\_ACEOF
43809 #define HAVE_DLERROR 1
43810 _ACEOF
43811
43812 else
43813
43814                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
43815 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
43816 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
43817   echo $ECHO_N "(cached) $ECHO_C" >&6
43818 else
43819   ac_check_lib_save_LIBS=$LIBS
43820 LIBS="-ldl  $LIBS"
43821 cat >conftest.$ac_ext <<_ACEOF
43822 /* confdefs.h.  */
43823 _ACEOF
43824 cat confdefs.h >>conftest.$ac_ext
43825 cat >>conftest.$ac_ext <<_ACEOF
43826 /* end confdefs.h.  */
43827
43828 /* Override any GCC internal prototype to avoid an error.
43829    Use char because int might match the return type of a GCC
43830    builtin and then its argument prototype would still apply.  */
43831 #ifdef __cplusplus
43832 extern "C"
43833 #endif
43834 char dlerror ();
43835 int
43836 main ()
43837 {
43838 return dlerror ();
43839   ;
43840   return 0;
43841 }
43842 _ACEOF
43843 rm -f conftest.$ac_objext conftest$ac_exeext
43844 if { (ac_try="$ac_link"
43845 case "(($ac_try" in
43846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43847   *) ac_try_echo=$ac_try;;
43848 esac
43849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43850   (eval "$ac_link") 2>conftest.er1
43851   ac_status=$?
43852   grep -v '^ *+' conftest.er1 >conftest.err
43853   rm -f conftest.er1
43854   cat conftest.err >&5
43855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43856   (exit $ac_status); } && {
43857          test -z "$ac_c_werror_flag" ||
43858          test ! -s conftest.err
43859        } && test -s conftest$ac_exeext &&
43860        $as_test_x conftest$ac_exeext; then
43861   ac_cv_lib_dl_dlerror=yes
43862 else
43863   echo "$as_me: failed program was:" >&5
43864 sed 's/^/| /' conftest.$ac_ext >&5
43865
43866         ac_cv_lib_dl_dlerror=no
43867 fi
43868
43869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43870       conftest$ac_exeext conftest.$ac_ext
43871 LIBS=$ac_check_lib_save_LIBS
43872 fi
43873 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
43874 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
43875 if test $ac_cv_lib_dl_dlerror = yes; then
43876   cat >>confdefs.h <<\_ACEOF
43877 #define HAVE_DLERROR 1
43878 _ACEOF
43879
43880 fi
43881
43882
43883
43884 fi
43885 done
43886
43887             fi
43888         fi
43889
43890                 if test "$USE_DARWIN" = 1; then
43891                         HAVE_DL_FUNCS=1
43892         fi
43893
43894         if test "$HAVE_DL_FUNCS" = 0; then
43895             if test "$HAVE_SHL_FUNCS" = 0; then
43896               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
43897                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
43898 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
43899                   wxUSE_DYNAMIC_LOADER=no
43900                   wxUSE_DYNLIB_CLASS=no
43901               else
43902                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
43903 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
43904               fi
43905             fi
43906         fi
43907     fi
43908 fi
43909
43910 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
43911     cat >>confdefs.h <<\_ACEOF
43912 #define wxUSE_DYNAMIC_LOADER 1
43913 _ACEOF
43914
43915 fi
43916 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43917     cat >>confdefs.h <<\_ACEOF
43918 #define wxUSE_DYNLIB_CLASS 1
43919 _ACEOF
43920
43921 fi
43922
43923
43924
43925 if test "$wxUSE_PLUGINS" = "yes" ; then
43926     if test "$wxUSE_SHARED" = "no" ; then
43927         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
43928 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
43929         wxUSE_PLUGINS=no
43930     fi
43931     if test "$wxUSE_MONOLITHIC" = "yes" ; then
43932         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
43933 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
43934         wxUSE_PLUGINS=no
43935     fi
43936     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
43937         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
43938 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
43939         wxUSE_PLUGINS=no
43940     fi
43941     if test "$wxUSE_PLUGINS" = "yes" ; then
43942         cat >>confdefs.h <<\_ACEOF
43943 #define wxUSE_PLUGINS 1
43944 _ACEOF
43945
43946     fi
43947 fi
43948
43949
43950 if test "$wxUSE_FSWATCHER" = "yes"; then
43951                 if test "$wxUSE_MSW" != "1"; then
43952         if test "$wxUSE_UNIX" = "yes"; then
43953
43954 for ac_header in sys/inotify.h
43955 do
43956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43960   echo $ECHO_N "(cached) $ECHO_C" >&6
43961 else
43962   cat >conftest.$ac_ext <<_ACEOF
43963 /* confdefs.h.  */
43964 _ACEOF
43965 cat confdefs.h >>conftest.$ac_ext
43966 cat >>conftest.$ac_ext <<_ACEOF
43967 /* end confdefs.h.  */
43968 $ac_includes_default
43969
43970 #include <$ac_header>
43971 _ACEOF
43972 rm -f conftest.$ac_objext
43973 if { (ac_try="$ac_compile"
43974 case "(($ac_try" in
43975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43976   *) ac_try_echo=$ac_try;;
43977 esac
43978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43979   (eval "$ac_compile") 2>conftest.er1
43980   ac_status=$?
43981   grep -v '^ *+' conftest.er1 >conftest.err
43982   rm -f conftest.er1
43983   cat conftest.err >&5
43984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43985   (exit $ac_status); } && {
43986          test -z "$ac_c_werror_flag" ||
43987          test ! -s conftest.err
43988        } && test -s conftest.$ac_objext; then
43989   eval "$as_ac_Header=yes"
43990 else
43991   echo "$as_me: failed program was:" >&5
43992 sed 's/^/| /' conftest.$ac_ext >&5
43993
43994         eval "$as_ac_Header=no"
43995 fi
43996
43997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43998 fi
43999 ac_res=`eval echo '${'$as_ac_Header'}'`
44000                { echo "$as_me:$LINENO: result: $ac_res" >&5
44001 echo "${ECHO_T}$ac_res" >&6; }
44002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44003   cat >>confdefs.h <<_ACEOF
44004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44005 _ACEOF
44006
44007 fi
44008
44009 done
44010
44011             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
44012                 cat >>confdefs.h <<\_ACEOF
44013 #define wxHAS_INOTIFY 1
44014 _ACEOF
44015
44016             else
44017
44018 for ac_header in sys/event.h
44019 do
44020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44024   echo $ECHO_N "(cached) $ECHO_C" >&6
44025 else
44026   cat >conftest.$ac_ext <<_ACEOF
44027 /* confdefs.h.  */
44028 _ACEOF
44029 cat confdefs.h >>conftest.$ac_ext
44030 cat >>conftest.$ac_ext <<_ACEOF
44031 /* end confdefs.h.  */
44032 $ac_includes_default
44033
44034 #include <$ac_header>
44035 _ACEOF
44036 rm -f conftest.$ac_objext
44037 if { (ac_try="$ac_compile"
44038 case "(($ac_try" in
44039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44040   *) ac_try_echo=$ac_try;;
44041 esac
44042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44043   (eval "$ac_compile") 2>conftest.er1
44044   ac_status=$?
44045   grep -v '^ *+' conftest.er1 >conftest.err
44046   rm -f conftest.er1
44047   cat conftest.err >&5
44048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44049   (exit $ac_status); } && {
44050          test -z "$ac_c_werror_flag" ||
44051          test ! -s conftest.err
44052        } && test -s conftest.$ac_objext; then
44053   eval "$as_ac_Header=yes"
44054 else
44055   echo "$as_me: failed program was:" >&5
44056 sed 's/^/| /' conftest.$ac_ext >&5
44057
44058         eval "$as_ac_Header=no"
44059 fi
44060
44061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44062 fi
44063 ac_res=`eval echo '${'$as_ac_Header'}'`
44064                { echo "$as_me:$LINENO: result: $ac_res" >&5
44065 echo "${ECHO_T}$ac_res" >&6; }
44066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44067   cat >>confdefs.h <<_ACEOF
44068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44069 _ACEOF
44070
44071 fi
44072
44073 done
44074
44075                 if test "$ac_cv_header_sys_event_h" = "yes"; then
44076                     cat >>confdefs.h <<\_ACEOF
44077 #define wxHAS_KQUEUE 1
44078 _ACEOF
44079
44080                 else
44081                     wxUSE_FSWATCHER=no
44082                 fi
44083             fi
44084         else
44085             wxUSE_FSWATCHER=no
44086         fi
44087     else
44088         if test "$wxUSE_THREADS" != "yes"; then
44089             { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&5
44090 echo "$as_me: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&2;}
44091             wxUSE_FSWATCHER=no
44092         fi
44093     fi
44094
44095     if test "$wxUSE_FSWATCHER" = "yes"; then
44096         cat >>confdefs.h <<\_ACEOF
44097 #define wxUSE_FSWATCHER 1
44098 _ACEOF
44099
44100         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
44101     else
44102         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
44103 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
44104     fi
44105 fi
44106
44107
44108 if test "$wxUSE_STL" = "yes"; then
44109   cat >>confdefs.h <<\_ACEOF
44110 #define wxUSE_STL 1
44111 _ACEOF
44112
44113 fi
44114
44115 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44116   cat >>confdefs.h <<\_ACEOF
44117 #define wxUSE_EXTENDED_RTTI 1
44118 _ACEOF
44119
44120 fi
44121
44122 if test "$wxUSE_ANY" = "yes"; then
44123     cat >>confdefs.h <<\_ACEOF
44124 #define wxUSE_ANY 1
44125 _ACEOF
44126
44127 fi
44128
44129 if test "$wxUSE_APPLE_IEEE" = "yes"; then
44130   cat >>confdefs.h <<\_ACEOF
44131 #define wxUSE_APPLE_IEEE 1
44132 _ACEOF
44133
44134 fi
44135
44136 if test "$wxUSE_TIMER" = "yes"; then
44137   cat >>confdefs.h <<\_ACEOF
44138 #define wxUSE_TIMER 1
44139 _ACEOF
44140
44141 fi
44142
44143 if test "$USE_UNIX" = 1 ; then
44144         if test "$wxUSE_MGL" != 1; then
44145                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44146 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
44147 if test "${ac_cv_header_sys_soundcard+set}" = set; then
44148   echo $ECHO_N "(cached) $ECHO_C" >&6
44149 else
44150
44151             cat >conftest.$ac_ext <<_ACEOF
44152 /* confdefs.h.  */
44153 _ACEOF
44154 cat confdefs.h >>conftest.$ac_ext
44155 cat >>conftest.$ac_ext <<_ACEOF
44156 /* end confdefs.h.  */
44157
44158                     #include <sys/ioctl.h>
44159                     #include <sys/soundcard.h>
44160
44161 int
44162 main ()
44163 {
44164
44165                     ioctl(0, SNDCTL_DSP_SPEED, 0);
44166
44167   ;
44168   return 0;
44169 }
44170 _ACEOF
44171 rm -f conftest.$ac_objext conftest$ac_exeext
44172 if { (ac_try="$ac_link"
44173 case "(($ac_try" in
44174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44175   *) ac_try_echo=$ac_try;;
44176 esac
44177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44178   (eval "$ac_link") 2>conftest.er1
44179   ac_status=$?
44180   grep -v '^ *+' conftest.er1 >conftest.err
44181   rm -f conftest.er1
44182   cat conftest.err >&5
44183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44184   (exit $ac_status); } && {
44185          test -z "$ac_c_werror_flag" ||
44186          test ! -s conftest.err
44187        } && test -s conftest$ac_exeext &&
44188        $as_test_x conftest$ac_exeext; then
44189   ac_cv_header_sys_soundcard=yes
44190 else
44191   echo "$as_me: failed program was:" >&5
44192 sed 's/^/| /' conftest.$ac_ext >&5
44193
44194
44195                     saveLibs="$LIBS"
44196                     LIBS="$saveLibs -lossaudio"
44197                     cat >conftest.$ac_ext <<_ACEOF
44198 /* confdefs.h.  */
44199 _ACEOF
44200 cat confdefs.h >>conftest.$ac_ext
44201 cat >>conftest.$ac_ext <<_ACEOF
44202 /* end confdefs.h.  */
44203
44204                             #include <sys/ioctl.h>
44205                             #include <sys/soundcard.h>
44206
44207 int
44208 main ()
44209 {
44210
44211                             ioctl(0, SNDCTL_DSP_SPEED, 0);
44212
44213   ;
44214   return 0;
44215 }
44216 _ACEOF
44217 rm -f conftest.$ac_objext conftest$ac_exeext
44218 if { (ac_try="$ac_link"
44219 case "(($ac_try" in
44220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44221   *) ac_try_echo=$ac_try;;
44222 esac
44223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44224   (eval "$ac_link") 2>conftest.er1
44225   ac_status=$?
44226   grep -v '^ *+' conftest.er1 >conftest.err
44227   rm -f conftest.er1
44228   cat conftest.err >&5
44229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44230   (exit $ac_status); } && {
44231          test -z "$ac_c_werror_flag" ||
44232          test ! -s conftest.err
44233        } && test -s conftest$ac_exeext &&
44234        $as_test_x conftest$ac_exeext; then
44235   ac_cv_header_sys_soundcard=yes
44236 else
44237   echo "$as_me: failed program was:" >&5
44238 sed 's/^/| /' conftest.$ac_ext >&5
44239
44240
44241                             LIBS="$saveLibs"
44242                             ac_cv_header_sys_soundcard=no
44243
44244
44245 fi
44246
44247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44248       conftest$ac_exeext conftest.$ac_ext
44249
44250
44251 fi
44252
44253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44254       conftest$ac_exeext conftest.$ac_ext
44255
44256 fi
44257 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44258 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
44259     fi
44260
44261     if test "$ac_cv_header_sys_soundcard" = "yes"; then
44262         cat >>confdefs.h <<\_ACEOF
44263 #define HAVE_SYS_SOUNDCARD_H 1
44264 _ACEOF
44265
44266     fi
44267 fi
44268
44269 WITH_PLUGIN_SDL=0
44270 if test "$wxUSE_SOUND" = "yes"; then
44271   if test "$USE_UNIX" = 1 ; then
44272     if test "$wxUSE_LIBSDL" != "no"; then
44273
44274 # Check whether --with-sdl-prefix was given.
44275 if test "${with_sdl_prefix+set}" = set; then
44276   withval=$with_sdl_prefix; sdl_prefix="$withval"
44277 else
44278   sdl_prefix=""
44279 fi
44280
44281
44282 # Check whether --with-sdl-exec-prefix was given.
44283 if test "${with_sdl_exec_prefix+set}" = set; then
44284   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
44285 else
44286   sdl_exec_prefix=""
44287 fi
44288
44289 # Check whether --enable-sdltest was given.
44290 if test "${enable_sdltest+set}" = set; then
44291   enableval=$enable_sdltest;
44292 else
44293   enable_sdltest=yes
44294 fi
44295
44296
44297   if test x$sdl_exec_prefix != x ; then
44298     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44299     if test x${SDL_CONFIG+set} != xset ; then
44300       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44301     fi
44302   fi
44303   if test x$sdl_prefix != x ; then
44304     sdl_args="$sdl_args --prefix=$sdl_prefix"
44305     if test x${SDL_CONFIG+set} != xset ; then
44306       SDL_CONFIG=$sdl_prefix/bin/sdl-config
44307     fi
44308   fi
44309
44310   if test "x$prefix" != xNONE; then
44311     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44312   fi
44313   # Extract the first word of "sdl-config", so it can be a program name with args.
44314 set dummy sdl-config; ac_word=$2
44315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44317 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44318   echo $ECHO_N "(cached) $ECHO_C" >&6
44319 else
44320   case $SDL_CONFIG in
44321   [\\/]* | ?:[\\/]*)
44322   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44323   ;;
44324   *)
44325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44326 for as_dir in $PATH
44327 do
44328   IFS=$as_save_IFS
44329   test -z "$as_dir" && as_dir=.
44330   for ac_exec_ext in '' $ac_executable_extensions; do
44331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44332     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44334     break 2
44335   fi
44336 done
44337 done
44338 IFS=$as_save_IFS
44339
44340   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44341   ;;
44342 esac
44343 fi
44344 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44345 if test -n "$SDL_CONFIG"; then
44346   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44347 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44348 else
44349   { echo "$as_me:$LINENO: result: no" >&5
44350 echo "${ECHO_T}no" >&6; }
44351 fi
44352
44353
44354   min_sdl_version=1.2.0
44355   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44356 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44357   no_sdl=""
44358   if test "$SDL_CONFIG" = "no" ; then
44359     no_sdl=yes
44360   else
44361     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44362     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44363
44364     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44365            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44366     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44367            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44368     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44369            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44370     if test "x$enable_sdltest" = "xyes" ; then
44371       ac_save_CFLAGS="$CFLAGS"
44372       ac_save_CXXFLAGS="$CXXFLAGS"
44373       ac_save_LIBS="$LIBS"
44374       CFLAGS="$CFLAGS $SDL_CFLAGS"
44375       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44376       LIBS="$LIBS $SDL_LIBS"
44377       rm -f conf.sdltest
44378       if test "$cross_compiling" = yes; then
44379   echo $ac_n "cross compiling; assumed OK... $ac_c"
44380 else
44381   cat >conftest.$ac_ext <<_ACEOF
44382 /* confdefs.h.  */
44383 _ACEOF
44384 cat confdefs.h >>conftest.$ac_ext
44385 cat >>conftest.$ac_ext <<_ACEOF
44386 /* end confdefs.h.  */
44387
44388 #include <stdio.h>
44389 #include <stdlib.h>
44390 #include <string.h>
44391 #include "SDL.h"
44392
44393 char*
44394 my_strdup (char *str)
44395 {
44396   char *new_str;
44397
44398   if (str)
44399     {
44400       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44401       strcpy (new_str, str);
44402     }
44403   else
44404     new_str = NULL;
44405
44406   return new_str;
44407 }
44408
44409 int main (int argc, char *argv[])
44410 {
44411   int major, minor, micro;
44412   char *tmp_version;
44413
44414   /* This hangs on some systems (?)
44415   system ("touch conf.sdltest");
44416   */
44417   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44418
44419   /* HP/UX 9 (%@#!) writes to sscanf strings */
44420   tmp_version = my_strdup("$min_sdl_version");
44421   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44422      printf("%s, bad version string\n", "$min_sdl_version");
44423      exit(1);
44424    }
44425
44426    if (($sdl_major_version > major) ||
44427       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44428       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44429     {
44430       return 0;
44431     }
44432   else
44433     {
44434       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44435       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44436       printf("*** best to upgrade to the required version.\n");
44437       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44438       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44439       printf("*** config.cache before re-running configure\n");
44440       return 1;
44441     }
44442 }
44443
44444
44445 _ACEOF
44446 rm -f conftest$ac_exeext
44447 if { (ac_try="$ac_link"
44448 case "(($ac_try" in
44449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44450   *) ac_try_echo=$ac_try;;
44451 esac
44452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44453   (eval "$ac_link") 2>&5
44454   ac_status=$?
44455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44457   { (case "(($ac_try" in
44458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44459   *) ac_try_echo=$ac_try;;
44460 esac
44461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44462   (eval "$ac_try") 2>&5
44463   ac_status=$?
44464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44465   (exit $ac_status); }; }; then
44466   :
44467 else
44468   echo "$as_me: program exited with status $ac_status" >&5
44469 echo "$as_me: failed program was:" >&5
44470 sed 's/^/| /' conftest.$ac_ext >&5
44471
44472 ( exit $ac_status )
44473 no_sdl=yes
44474 fi
44475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44476 fi
44477
44478
44479        CFLAGS="$ac_save_CFLAGS"
44480        CXXFLAGS="$ac_save_CXXFLAGS"
44481        LIBS="$ac_save_LIBS"
44482      fi
44483   fi
44484   if test "x$no_sdl" = x ; then
44485      { echo "$as_me:$LINENO: result: yes" >&5
44486 echo "${ECHO_T}yes" >&6; }
44487
44488                     EXTRALIBS_SDL="$SDL_LIBS"
44489                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44490                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44491                     cat >>confdefs.h <<\_ACEOF
44492 #define wxUSE_LIBSDL 1
44493 _ACEOF
44494
44495
44496   else
44497      { echo "$as_me:$LINENO: result: no" >&5
44498 echo "${ECHO_T}no" >&6; }
44499      if test "$SDL_CONFIG" = "no" ; then
44500        echo "*** The sdl-config script installed by SDL could not be found"
44501        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44502        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44503        echo "*** full path to sdl-config."
44504      else
44505        if test -f conf.sdltest ; then
44506         :
44507        else
44508           echo "*** Could not run SDL test program, checking why..."
44509           CFLAGS="$CFLAGS $SDL_CFLAGS"
44510           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44511           LIBS="$LIBS $SDL_LIBS"
44512           cat >conftest.$ac_ext <<_ACEOF
44513 /* confdefs.h.  */
44514 _ACEOF
44515 cat confdefs.h >>conftest.$ac_ext
44516 cat >>conftest.$ac_ext <<_ACEOF
44517 /* end confdefs.h.  */
44518
44519 #include <stdio.h>
44520 #include "SDL.h"
44521
44522 int main(int argc, char *argv[])
44523 { return 0; }
44524 #undef  main
44525 #define main K_and_R_C_main
44526
44527 int
44528 main ()
44529 {
44530  return 0;
44531   ;
44532   return 0;
44533 }
44534 _ACEOF
44535 rm -f conftest.$ac_objext conftest$ac_exeext
44536 if { (ac_try="$ac_link"
44537 case "(($ac_try" in
44538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44539   *) ac_try_echo=$ac_try;;
44540 esac
44541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44542   (eval "$ac_link") 2>conftest.er1
44543   ac_status=$?
44544   grep -v '^ *+' conftest.er1 >conftest.err
44545   rm -f conftest.er1
44546   cat conftest.err >&5
44547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44548   (exit $ac_status); } && {
44549          test -z "$ac_c_werror_flag" ||
44550          test ! -s conftest.err
44551        } && test -s conftest$ac_exeext &&
44552        $as_test_x conftest$ac_exeext; then
44553    echo "*** The test program compiled, but did not run. This usually means"
44554           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44555           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44556           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44557           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44558           echo "*** is required on your system"
44559           echo "***"
44560           echo "*** If you have an old version installed, it is best to remove it, although"
44561           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44562 else
44563   echo "$as_me: failed program was:" >&5
44564 sed 's/^/| /' conftest.$ac_ext >&5
44565
44566          echo "*** The test program failed to compile or link. See the file config.log for the"
44567           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44568           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44569           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44570 fi
44571
44572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44573       conftest$ac_exeext conftest.$ac_ext
44574           CFLAGS="$ac_save_CFLAGS"
44575           CXXFLAGS="$ac_save_CXXFLAGS"
44576           LIBS="$ac_save_LIBS"
44577        fi
44578      fi
44579      SDL_CFLAGS=""
44580      SDL_LIBS=""
44581      wxUSE_LIBSDL="no"
44582   fi
44583
44584
44585   rm -f conf.sdltest
44586
44587       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44588         WITH_PLUGIN_SDL=1
44589       fi
44590     fi
44591   else
44592         if test "$wxUSE_MGL" = 1; then
44593         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44594 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44595         wxUSE_SOUND="no"
44596     fi
44597   fi
44598 fi
44599
44600 if test "$wxUSE_SOUND" = "yes"; then
44601   cat >>confdefs.h <<\_ACEOF
44602 #define wxUSE_SOUND 1
44603 _ACEOF
44604
44605   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44606 fi
44607
44608 if test "$WXGTK2" = 1; then
44609
44610
44611 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44612         if test -n "$ac_tool_prefix"; then
44613   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44614 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44617 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44618   echo $ECHO_N "(cached) $ECHO_C" >&6
44619 else
44620   case $PKG_CONFIG in
44621   [\\/]* | ?:[\\/]*)
44622   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44623   ;;
44624   *)
44625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44626 for as_dir in $PATH
44627 do
44628   IFS=$as_save_IFS
44629   test -z "$as_dir" && as_dir=.
44630   for ac_exec_ext in '' $ac_executable_extensions; do
44631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44632     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44634     break 2
44635   fi
44636 done
44637 done
44638 IFS=$as_save_IFS
44639
44640   ;;
44641 esac
44642 fi
44643 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44644 if test -n "$PKG_CONFIG"; then
44645   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44646 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44647 else
44648   { echo "$as_me:$LINENO: result: no" >&5
44649 echo "${ECHO_T}no" >&6; }
44650 fi
44651
44652
44653 fi
44654 if test -z "$ac_cv_path_PKG_CONFIG"; then
44655   ac_pt_PKG_CONFIG=$PKG_CONFIG
44656   # Extract the first word of "pkg-config", so it can be a program name with args.
44657 set dummy pkg-config; ac_word=$2
44658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44660 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44661   echo $ECHO_N "(cached) $ECHO_C" >&6
44662 else
44663   case $ac_pt_PKG_CONFIG in
44664   [\\/]* | ?:[\\/]*)
44665   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44666   ;;
44667   *)
44668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44669 for as_dir in $PATH
44670 do
44671   IFS=$as_save_IFS
44672   test -z "$as_dir" && as_dir=.
44673   for ac_exec_ext in '' $ac_executable_extensions; do
44674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44675     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44677     break 2
44678   fi
44679 done
44680 done
44681 IFS=$as_save_IFS
44682
44683   ;;
44684 esac
44685 fi
44686 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44687 if test -n "$ac_pt_PKG_CONFIG"; then
44688   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44689 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44690 else
44691   { echo "$as_me:$LINENO: result: no" >&5
44692 echo "${ECHO_T}no" >&6; }
44693 fi
44694
44695   if test "x$ac_pt_PKG_CONFIG" = x; then
44696     PKG_CONFIG=""
44697   else
44698     case $cross_compiling:$ac_tool_warned in
44699 yes:)
44700 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44701 whose name does not start with the host triplet.  If you think this
44702 configuration is useful to you, please write to autoconf@gnu.org." >&5
44703 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44704 whose name does not start with the host triplet.  If you think this
44705 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44706 ac_tool_warned=yes ;;
44707 esac
44708     PKG_CONFIG=$ac_pt_PKG_CONFIG
44709   fi
44710 else
44711   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44712 fi
44713
44714 fi
44715 if test -n "$PKG_CONFIG"; then
44716         _pkg_min_version=0.9.0
44717         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44718 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44719         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44720                 { echo "$as_me:$LINENO: result: yes" >&5
44721 echo "${ECHO_T}yes" >&6; }
44722         else
44723                 { echo "$as_me:$LINENO: result: no" >&5
44724 echo "${ECHO_T}no" >&6; }
44725                 PKG_CONFIG=""
44726         fi
44727
44728 fi
44729
44730     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44731
44732         if test "$wxUSE_GTKPRINT" = "yes" ; then
44733
44734
44735 pkg_failed=no
44736 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
44737 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
44738
44739 if test -n "$PKG_CONFIG"; then
44740     if test -n "$GTKPRINT_CFLAGS"; then
44741         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
44742     else
44743         if test -n "$PKG_CONFIG" && \
44744     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44745   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44746   ac_status=$?
44747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44748   (exit $ac_status); }; then
44749   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44750 else
44751   pkg_failed=yes
44752 fi
44753     fi
44754 else
44755         pkg_failed=untried
44756 fi
44757 if test -n "$PKG_CONFIG"; then
44758     if test -n "$GTKPRINT_LIBS"; then
44759         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
44760     else
44761         if test -n "$PKG_CONFIG" && \
44762     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44763   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44764   ac_status=$?
44765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44766   (exit $ac_status); }; then
44767   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44768 else
44769   pkg_failed=yes
44770 fi
44771     fi
44772 else
44773         pkg_failed=untried
44774 fi
44775
44776
44777
44778 if test $pkg_failed = yes; then
44779
44780 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44781         _pkg_short_errors_supported=yes
44782 else
44783         _pkg_short_errors_supported=no
44784 fi
44785         if test $_pkg_short_errors_supported = yes; then
44786                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44787         else
44788                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44789         fi
44790         # Put the nasty error message in config.log where it belongs
44791         echo "$GTKPRINT_PKG_ERRORS" >&5
44792
44793
44794                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44795 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44796                         wxUSE_GTKPRINT="no"
44797
44798
44799 elif test $pkg_failed = untried; then
44800
44801                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44802 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44803                         wxUSE_GTKPRINT="no"
44804
44805
44806 else
44807         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
44808         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
44809         { echo "$as_me:$LINENO: result: yes" >&5
44810 echo "${ECHO_T}yes" >&6; }
44811
44812                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
44813                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
44814                         cat >>confdefs.h <<\_ACEOF
44815 #define wxUSE_GTKPRINT 1
44816 _ACEOF
44817
44818
44819 fi
44820         fi
44821
44822         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
44823
44824
44825 pkg_failed=no
44826 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
44827 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
44828
44829 if test -n "$PKG_CONFIG"; then
44830     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
44831         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
44832     else
44833         if test -n "$PKG_CONFIG" && \
44834     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44835   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44836   ac_status=$?
44837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44838   (exit $ac_status); }; then
44839   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44840 else
44841   pkg_failed=yes
44842 fi
44843     fi
44844 else
44845         pkg_failed=untried
44846 fi
44847 if test -n "$PKG_CONFIG"; then
44848     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
44849         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
44850     else
44851         if test -n "$PKG_CONFIG" && \
44852     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44853   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44854   ac_status=$?
44855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44856   (exit $ac_status); }; then
44857   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44858 else
44859   pkg_failed=yes
44860 fi
44861     fi
44862 else
44863         pkg_failed=untried
44864 fi
44865
44866
44867
44868 if test $pkg_failed = yes; then
44869
44870 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44871         _pkg_short_errors_supported=yes
44872 else
44873         _pkg_short_errors_supported=no
44874 fi
44875         if test $_pkg_short_errors_supported = yes; then
44876                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44877         else
44878                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44879         fi
44880         # Put the nasty error message in config.log where it belongs
44881         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
44882
44883
44884                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44885 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44886                         wxUSE_LIBGNOMEPRINT="no"
44887
44888
44889 elif test $pkg_failed = untried; then
44890
44891                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44892 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44893                         wxUSE_LIBGNOMEPRINT="no"
44894
44895
44896 else
44897         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
44898         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
44899         { echo "$as_me:$LINENO: result: yes" >&5
44900 echo "${ECHO_T}yes" >&6; }
44901
44902                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
44903                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
44904                         cat >>confdefs.h <<\_ACEOF
44905 #define wxUSE_LIBGNOMEPRINT 1
44906 _ACEOF
44907
44908
44909 fi
44910         fi
44911     fi
44912
44913     if test "$wxUSE_MIMETYPE" = "yes" ; then
44914         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
44915
44916
44917 pkg_failed=no
44918 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
44919 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
44920
44921 if test -n "$PKG_CONFIG"; then
44922     if test -n "$GNOMEVFS_CFLAGS"; then
44923         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
44924     else
44925         if test -n "$PKG_CONFIG" && \
44926     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44927   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44928   ac_status=$?
44929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44930   (exit $ac_status); }; then
44931   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44932 else
44933   pkg_failed=yes
44934 fi
44935     fi
44936 else
44937         pkg_failed=untried
44938 fi
44939 if test -n "$PKG_CONFIG"; then
44940     if test -n "$GNOMEVFS_LIBS"; then
44941         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
44942     else
44943         if test -n "$PKG_CONFIG" && \
44944     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44945   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44946   ac_status=$?
44947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44948   (exit $ac_status); }; then
44949   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44950 else
44951   pkg_failed=yes
44952 fi
44953     fi
44954 else
44955         pkg_failed=untried
44956 fi
44957
44958
44959
44960 if test $pkg_failed = yes; then
44961
44962 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44963         _pkg_short_errors_supported=yes
44964 else
44965         _pkg_short_errors_supported=no
44966 fi
44967         if test $_pkg_short_errors_supported = yes; then
44968                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44969         else
44970                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44971         fi
44972         # Put the nasty error message in config.log where it belongs
44973         echo "$GNOMEVFS_PKG_ERRORS" >&5
44974
44975
44976                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44977 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44978                         wxUSE_LIBGNOMEVFS="no"
44979
44980
44981 elif test $pkg_failed = untried; then
44982
44983                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44984 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44985                         wxUSE_LIBGNOMEVFS="no"
44986
44987
44988 else
44989         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
44990         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
44991         { echo "$as_me:$LINENO: result: yes" >&5
44992 echo "${ECHO_T}yes" >&6; }
44993
44994                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
44995                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
44996                         cat >>confdefs.h <<\_ACEOF
44997 #define wxUSE_LIBGNOMEVFS 1
44998 _ACEOF
44999
45000
45001 fi
45002         fi
45003     fi
45004
45005     if test "$wxUSE_LIBHILDON" = "yes" ; then
45006
45007 pkg_failed=no
45008 { echo "$as_me:$LINENO: checking for HILDON" >&5
45009 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
45010
45011 if test -n "$PKG_CONFIG"; then
45012     if test -n "$HILDON_CFLAGS"; then
45013         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
45014     else
45015         if test -n "$PKG_CONFIG" && \
45016     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45017   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45018   ac_status=$?
45019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45020   (exit $ac_status); }; then
45021   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
45022 else
45023   pkg_failed=yes
45024 fi
45025     fi
45026 else
45027         pkg_failed=untried
45028 fi
45029 if test -n "$PKG_CONFIG"; then
45030     if test -n "$HILDON_LIBS"; then
45031         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
45032     else
45033         if test -n "$PKG_CONFIG" && \
45034     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45035   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45036   ac_status=$?
45037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45038   (exit $ac_status); }; then
45039   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
45040 else
45041   pkg_failed=yes
45042 fi
45043     fi
45044 else
45045         pkg_failed=untried
45046 fi
45047
45048
45049
45050 if test $pkg_failed = yes; then
45051
45052 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45053         _pkg_short_errors_supported=yes
45054 else
45055         _pkg_short_errors_supported=no
45056 fi
45057         if test $_pkg_short_errors_supported = yes; then
45058                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45059         else
45060                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45061         fi
45062         # Put the nasty error message in config.log where it belongs
45063         echo "$HILDON_PKG_ERRORS" >&5
45064
45065
45066                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45067 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45068                         wxUSE_LIBHILDON="no"
45069                         ac_hildon_lgpl=0
45070
45071
45072 elif test $pkg_failed = untried; then
45073
45074                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45075 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45076                         wxUSE_LIBHILDON="no"
45077                         ac_hildon_lgpl=0
45078
45079
45080 else
45081         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45082         HILDON_LIBS=$pkg_cv_HILDON_LIBS
45083         { echo "$as_me:$LINENO: result: yes" >&5
45084 echo "${ECHO_T}yes" >&6; }
45085
45086                 EXTRALIBS_HILDON="$HILDON_LIBS"
45087                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
45088                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45089                 cat >>confdefs.h <<\_ACEOF
45090 #define wxUSE_LIBHILDON 1
45091 _ACEOF
45092
45093                 ac_hildon_lgpl=1
45094
45095 fi
45096
45097         if test "$ac_hildon_lgpl" = 0 ; then
45098
45099 pkg_failed=no
45100 { echo "$as_me:$LINENO: checking for HILDON2" >&5
45101 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
45102
45103 if test -n "$PKG_CONFIG"; then
45104     if test -n "$HILDON2_CFLAGS"; then
45105         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
45106     else
45107         if test -n "$PKG_CONFIG" && \
45108     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
45109   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
45110   ac_status=$?
45111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45112   (exit $ac_status); }; then
45113   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
45114 else
45115   pkg_failed=yes
45116 fi
45117     fi
45118 else
45119         pkg_failed=untried
45120 fi
45121 if test -n "$PKG_CONFIG"; then
45122     if test -n "$HILDON2_LIBS"; then
45123         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
45124     else
45125         if test -n "$PKG_CONFIG" && \
45126     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
45127   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
45128   ac_status=$?
45129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45130   (exit $ac_status); }; then
45131   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
45132 else
45133   pkg_failed=yes
45134 fi
45135     fi
45136 else
45137         pkg_failed=untried
45138 fi
45139
45140
45141
45142 if test $pkg_failed = yes; then
45143
45144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45145         _pkg_short_errors_supported=yes
45146 else
45147         _pkg_short_errors_supported=no
45148 fi
45149         if test $_pkg_short_errors_supported = yes; then
45150                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
45151         else
45152                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
45153         fi
45154         # Put the nasty error message in config.log where it belongs
45155         echo "$HILDON2_PKG_ERRORS" >&5
45156
45157
45158                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
45159 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
45160                             wxUSE_LIBHILDON2="no"
45161
45162
45163 elif test $pkg_failed = untried; then
45164
45165                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
45166 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
45167                             wxUSE_LIBHILDON2="no"
45168
45169
45170 else
45171         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
45172         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
45173         { echo "$as_me:$LINENO: result: yes" >&5
45174 echo "${ECHO_T}yes" >&6; }
45175
45176                     EXTRALIBS_HILDON="$HILDON2_LIBS"
45177                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
45178                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
45179                     cat >>confdefs.h <<\_ACEOF
45180 #define wxUSE_LIBHILDON2 1
45181 _ACEOF
45182
45183
45184 fi
45185         fi
45186     fi
45187 fi
45188
45189 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45190   cat >>confdefs.h <<\_ACEOF
45191 #define wxUSE_CMDLINE_PARSER 1
45192 _ACEOF
45193
45194 fi
45195
45196 if test "$wxUSE_STOPWATCH" = "yes"; then
45197   cat >>confdefs.h <<\_ACEOF
45198 #define wxUSE_STOPWATCH 1
45199 _ACEOF
45200
45201 fi
45202
45203 if test "$wxUSE_DATETIME" = "yes"; then
45204   cat >>confdefs.h <<\_ACEOF
45205 #define wxUSE_DATETIME 1
45206 _ACEOF
45207
45208 fi
45209
45210 if test "$wxUSE_FILE" = "yes"; then
45211   cat >>confdefs.h <<\_ACEOF
45212 #define wxUSE_FILE 1
45213 _ACEOF
45214
45215 fi
45216
45217 if test "$wxUSE_FFILE" = "yes"; then
45218   cat >>confdefs.h <<\_ACEOF
45219 #define wxUSE_FFILE 1
45220 _ACEOF
45221
45222 fi
45223
45224 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45225   if test "$wxUSE_STREAMS" != yes; then
45226     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45227 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45228     wxUSE_ARCHIVE_STREAMS=no
45229   else
45230     cat >>confdefs.h <<\_ACEOF
45231 #define wxUSE_ARCHIVE_STREAMS 1
45232 _ACEOF
45233
45234   fi
45235 fi
45236
45237 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45238   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45239     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45240 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45241   elif test "$wxUSE_ZLIB" = "no"; then
45242     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45243 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45244   else
45245     cat >>confdefs.h <<\_ACEOF
45246 #define wxUSE_ZIPSTREAM 1
45247 _ACEOF
45248
45249   fi
45250 fi
45251
45252 if test "$wxUSE_TARSTREAM" = "yes"; then
45253   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45254     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45255 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45256   else
45257     cat >>confdefs.h <<\_ACEOF
45258 #define wxUSE_TARSTREAM 1
45259 _ACEOF
45260
45261   fi
45262 fi
45263
45264 if test "$wxUSE_FILE_HISTORY" = "yes"; then
45265   cat >>confdefs.h <<\_ACEOF
45266 #define wxUSE_FILE_HISTORY 1
45267 _ACEOF
45268
45269 fi
45270
45271 if test "$wxUSE_FILESYSTEM" = "yes"; then
45272   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45273     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45274 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45275     wxUSE_FILESYSTEM=no
45276   else
45277     cat >>confdefs.h <<\_ACEOF
45278 #define wxUSE_FILESYSTEM 1
45279 _ACEOF
45280
45281   fi
45282 fi
45283
45284 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45285   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45286     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45287 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45288   else
45289     cat >>confdefs.h <<\_ACEOF
45290 #define wxUSE_FS_ARCHIVE 1
45291 _ACEOF
45292
45293   fi
45294 fi
45295
45296 if test "$wxUSE_FS_ZIP" = "yes"; then
45297   if test "$wxUSE_FS_ARCHIVE" != yes; then
45298     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45299 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45300   else
45301     cat >>confdefs.h <<\_ACEOF
45302 #define wxUSE_FS_ZIP 1
45303 _ACEOF
45304
45305   fi
45306 fi
45307
45308 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45309   if test "$USE_UNIX" != 1; then
45310     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45311 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45312     wxUSE_ON_FATAL_EXCEPTION=no
45313   else
45314     cat >>confdefs.h <<\_ACEOF
45315 #define wxUSE_ON_FATAL_EXCEPTION 1
45316 _ACEOF
45317
45318   fi
45319 fi
45320
45321 if test "$wxUSE_STACKWALKER" = "yes"; then
45322     cat >>confdefs.h <<\_ACEOF
45323 #define wxUSE_STACKWALKER 1
45324 _ACEOF
45325
45326 fi
45327
45328 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45329     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
45330         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45331 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45332         wxUSE_DEBUGREPORT=no
45333     else
45334         cat >>confdefs.h <<\_ACEOF
45335 #define wxUSE_DEBUGREPORT 1
45336 _ACEOF
45337
45338         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45339             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45340         fi
45341     fi
45342 fi
45343
45344 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45345   cat >>confdefs.h <<\_ACEOF
45346 #define wxUSE_SNGLINST_CHECKER 1
45347 _ACEOF
45348
45349 fi
45350
45351 if test "$wxUSE_BUSYINFO" = "yes"; then
45352   cat >>confdefs.h <<\_ACEOF
45353 #define wxUSE_BUSYINFO 1
45354 _ACEOF
45355
45356 fi
45357
45358 if test "$wxUSE_HOTKEY" = "yes"; then
45359   if test "$wxUSE_MSW" != 1 -a "$wxUSE_OSX_COCOA" != 1 -a "$wxUSE_OSX_CARBON" != 1; then
45360     { echo "$as_me:$LINENO: WARNING: Hot keys not supported by the current toolkit, disabled" >&5
45361 echo "$as_me: WARNING: Hot keys not supported by the current toolkit, disabled" >&2;}
45362     wxUSE_HOTKEY=no
45363   fi
45364 elif test "$wxUSE_HOTKEY" = "auto"; then
45365   if test "$wxUSE_MSW" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OSX_CARBON" = 1; then
45366     wxUSE_HOTKEY=yes
45367   fi
45368 fi
45369 if test "$wxUSE_HOTKEY" = "yes"; then
45370   cat >>confdefs.h <<\_ACEOF
45371 #define wxUSE_HOTKEY 1
45372 _ACEOF
45373
45374 fi
45375
45376 if test "$wxUSE_STD_CONTAINERS" = "yes"; then
45377   cat >>confdefs.h <<\_ACEOF
45378 #define wxUSE_STD_CONTAINERS 1
45379 _ACEOF
45380
45381 fi
45382
45383 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45384   cat >>confdefs.h <<\_ACEOF
45385 #define wxUSE_STD_IOSTREAM 1
45386 _ACEOF
45387
45388 fi
45389
45390 if test "$wxUSE_STD_STRING" = "yes"; then
45391   cat >>confdefs.h <<\_ACEOF
45392 #define wxUSE_STD_STRING 1
45393 _ACEOF
45394
45395 fi
45396
45397 if test "$wxUSE_STD_STRING_CONV_IN_WXSTRING" = "yes"; then
45398   cat >>confdefs.h <<\_ACEOF
45399 #define wxUSE_STD_STRING_CONV_IN_WXSTRING 1
45400 _ACEOF
45401
45402 fi
45403
45404 if test "$wxUSE_STDPATHS" = "yes"; then
45405   cat >>confdefs.h <<\_ACEOF
45406 #define wxUSE_STDPATHS 1
45407 _ACEOF
45408
45409 fi
45410
45411 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45412     cat >>confdefs.h <<\_ACEOF
45413 #define wxUSE_TEXTBUFFER 1
45414 _ACEOF
45415
45416 fi
45417
45418 if test "$wxUSE_TEXTFILE" = "yes"; then
45419   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45420     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45421 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45422   else
45423     cat >>confdefs.h <<\_ACEOF
45424 #define wxUSE_TEXTFILE 1
45425 _ACEOF
45426
45427   fi
45428 fi
45429
45430 if test "$wxUSE_CONFIG" = "yes" ; then
45431   if test "$wxUSE_TEXTFILE" != "yes"; then
45432     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45433 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45434   else
45435     cat >>confdefs.h <<\_ACEOF
45436 #define wxUSE_CONFIG 1
45437 _ACEOF
45438
45439     cat >>confdefs.h <<\_ACEOF
45440 #define wxUSE_CONFIG_NATIVE 1
45441 _ACEOF
45442
45443     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45444   fi
45445 fi
45446
45447 if test "$wxUSE_INTL" = "yes" ; then
45448   if test "$wxUSE_FILE" != "yes"; then
45449     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45450 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45451   else
45452     cat >>confdefs.h <<\_ACEOF
45453 #define wxUSE_INTL 1
45454 _ACEOF
45455
45456     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45457     GUIDIST="$GUIDIST INTL_DIST"
45458   fi
45459 fi
45460
45461 if test "$wxUSE_XLOCALE" = "yes" ; then
45462     cat >>confdefs.h <<\_ACEOF
45463 #define wxUSE_XLOCALE 1
45464 _ACEOF
45465
45466     { echo "$as_me:$LINENO: checking for locale_t" >&5
45467 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
45468 if test "${ac_cv_type_locale_t+set}" = set; then
45469   echo $ECHO_N "(cached) $ECHO_C" >&6
45470 else
45471   cat >conftest.$ac_ext <<_ACEOF
45472 /* confdefs.h.  */
45473 _ACEOF
45474 cat confdefs.h >>conftest.$ac_ext
45475 cat >>conftest.$ac_ext <<_ACEOF
45476 /* end confdefs.h.  */
45477 #include <xlocale.h>
45478                     #include <locale.h>
45479
45480 typedef locale_t ac__type_new_;
45481 int
45482 main ()
45483 {
45484 if ((ac__type_new_ *) 0)
45485   return 0;
45486 if (sizeof (ac__type_new_))
45487   return 0;
45488   ;
45489   return 0;
45490 }
45491 _ACEOF
45492 rm -f conftest.$ac_objext
45493 if { (ac_try="$ac_compile"
45494 case "(($ac_try" in
45495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45496   *) ac_try_echo=$ac_try;;
45497 esac
45498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45499   (eval "$ac_compile") 2>conftest.er1
45500   ac_status=$?
45501   grep -v '^ *+' conftest.er1 >conftest.err
45502   rm -f conftest.er1
45503   cat conftest.err >&5
45504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45505   (exit $ac_status); } && {
45506          test -z "$ac_c_werror_flag" ||
45507          test ! -s conftest.err
45508        } && test -s conftest.$ac_objext; then
45509   ac_cv_type_locale_t=yes
45510 else
45511   echo "$as_me: failed program was:" >&5
45512 sed 's/^/| /' conftest.$ac_ext >&5
45513
45514         ac_cv_type_locale_t=no
45515 fi
45516
45517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45518 fi
45519 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
45520 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
45521 if test $ac_cv_type_locale_t = yes; then
45522
45523 cat >>confdefs.h <<_ACEOF
45524 #define HAVE_LOCALE_T 1
45525 _ACEOF
45526
45527
45528 fi
45529
45530 fi
45531
45532 if test "$wxUSE_LOG" = "yes"; then
45533   cat >>confdefs.h <<\_ACEOF
45534 #define wxUSE_LOG 1
45535 _ACEOF
45536
45537
45538     if test "$wxUSE_LOGGUI" = "yes"; then
45539       cat >>confdefs.h <<\_ACEOF
45540 #define wxUSE_LOGGUI 1
45541 _ACEOF
45542
45543     fi
45544
45545     if test "$wxUSE_LOGWINDOW" = "yes"; then
45546       cat >>confdefs.h <<\_ACEOF
45547 #define wxUSE_LOGWINDOW 1
45548 _ACEOF
45549
45550     fi
45551
45552     if test "$wxUSE_LOGDIALOG" = "yes"; then
45553       cat >>confdefs.h <<\_ACEOF
45554 #define wxUSE_LOG_DIALOG 1
45555 _ACEOF
45556
45557     fi
45558
45559         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45560 fi
45561
45562 if test "$wxUSE_LONGLONG" = "yes"; then
45563   cat >>confdefs.h <<\_ACEOF
45564 #define wxUSE_LONGLONG 1
45565 _ACEOF
45566
45567 fi
45568
45569 if test "$wxUSE_GEOMETRY" = "yes"; then
45570   cat >>confdefs.h <<\_ACEOF
45571 #define wxUSE_GEOMETRY 1
45572 _ACEOF
45573
45574 fi
45575
45576 if test "$wxUSE_BASE64" = "yes"; then
45577   cat >>confdefs.h <<\_ACEOF
45578 #define wxUSE_BASE64 1
45579 _ACEOF
45580
45581 fi
45582
45583 if test "$wxUSE_STREAMS" = "yes" ; then
45584   cat >>confdefs.h <<\_ACEOF
45585 #define wxUSE_STREAMS 1
45586 _ACEOF
45587
45588 fi
45589
45590 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45591   cat >>confdefs.h <<\_ACEOF
45592 #define wxUSE_PRINTF_POS_PARAMS 1
45593 _ACEOF
45594
45595 fi
45596
45597 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45598   cat >>confdefs.h <<\_ACEOF
45599 #define wxUSE_OBJC_UNIQUIFYING 1
45600 _ACEOF
45601
45602 fi
45603
45604
45605 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45606     cat >>confdefs.h <<\_ACEOF
45607 #define wxUSE_CONSOLE_EVENTLOOP 1
45608 _ACEOF
45609
45610
45611     if test "$wxUSE_UNIX" = "yes"; then
45612         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45613             cat >>confdefs.h <<\_ACEOF
45614 #define wxUSE_SELECT_DISPATCHER 1
45615 _ACEOF
45616
45617         fi
45618
45619         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45620
45621 for ac_header in sys/epoll.h
45622 do
45623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45627   echo $ECHO_N "(cached) $ECHO_C" >&6
45628 else
45629   cat >conftest.$ac_ext <<_ACEOF
45630 /* confdefs.h.  */
45631 _ACEOF
45632 cat confdefs.h >>conftest.$ac_ext
45633 cat >>conftest.$ac_ext <<_ACEOF
45634 /* end confdefs.h.  */
45635 $ac_includes_default
45636
45637 #include <$ac_header>
45638 _ACEOF
45639 rm -f conftest.$ac_objext
45640 if { (ac_try="$ac_compile"
45641 case "(($ac_try" in
45642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45643   *) ac_try_echo=$ac_try;;
45644 esac
45645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45646   (eval "$ac_compile") 2>conftest.er1
45647   ac_status=$?
45648   grep -v '^ *+' conftest.er1 >conftest.err
45649   rm -f conftest.er1
45650   cat conftest.err >&5
45651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45652   (exit $ac_status); } && {
45653          test -z "$ac_c_werror_flag" ||
45654          test ! -s conftest.err
45655        } && test -s conftest.$ac_objext; then
45656   eval "$as_ac_Header=yes"
45657 else
45658   echo "$as_me: failed program was:" >&5
45659 sed 's/^/| /' conftest.$ac_ext >&5
45660
45661         eval "$as_ac_Header=no"
45662 fi
45663
45664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45665 fi
45666 ac_res=`eval echo '${'$as_ac_Header'}'`
45667                { echo "$as_me:$LINENO: result: $ac_res" >&5
45668 echo "${ECHO_T}$ac_res" >&6; }
45669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45670   cat >>confdefs.h <<_ACEOF
45671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45672 _ACEOF
45673
45674 fi
45675
45676 done
45677
45678             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45679                 cat >>confdefs.h <<\_ACEOF
45680 #define wxUSE_EPOLL_DISPATCHER 1
45681 _ACEOF
45682
45683             else
45684                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45685 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45686             fi
45687         fi
45688     fi
45689 fi
45690
45691
45692
45693
45694 for ac_func in gettimeofday ftime
45695 do
45696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45700   echo $ECHO_N "(cached) $ECHO_C" >&6
45701 else
45702   cat >conftest.$ac_ext <<_ACEOF
45703 /* confdefs.h.  */
45704 _ACEOF
45705 cat confdefs.h >>conftest.$ac_ext
45706 cat >>conftest.$ac_ext <<_ACEOF
45707 /* end confdefs.h.  */
45708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45710 #define $ac_func innocuous_$ac_func
45711
45712 /* System header to define __stub macros and hopefully few prototypes,
45713     which can conflict with char $ac_func (); below.
45714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45715     <limits.h> exists even on freestanding compilers.  */
45716
45717 #ifdef __STDC__
45718 # include <limits.h>
45719 #else
45720 # include <assert.h>
45721 #endif
45722
45723 #undef $ac_func
45724
45725 /* Override any GCC internal prototype to avoid an error.
45726    Use char because int might match the return type of a GCC
45727    builtin and then its argument prototype would still apply.  */
45728 #ifdef __cplusplus
45729 extern "C"
45730 #endif
45731 char $ac_func ();
45732 /* The GNU C library defines this for functions which it implements
45733     to always fail with ENOSYS.  Some functions are actually named
45734     something starting with __ and the normal name is an alias.  */
45735 #if defined __stub_$ac_func || defined __stub___$ac_func
45736 choke me
45737 #endif
45738
45739 int
45740 main ()
45741 {
45742 return $ac_func ();
45743   ;
45744   return 0;
45745 }
45746 _ACEOF
45747 rm -f conftest.$ac_objext conftest$ac_exeext
45748 if { (ac_try="$ac_link"
45749 case "(($ac_try" in
45750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45751   *) ac_try_echo=$ac_try;;
45752 esac
45753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45754   (eval "$ac_link") 2>conftest.er1
45755   ac_status=$?
45756   grep -v '^ *+' conftest.er1 >conftest.err
45757   rm -f conftest.er1
45758   cat conftest.err >&5
45759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45760   (exit $ac_status); } && {
45761          test -z "$ac_c_werror_flag" ||
45762          test ! -s conftest.err
45763        } && test -s conftest$ac_exeext &&
45764        $as_test_x conftest$ac_exeext; then
45765   eval "$as_ac_var=yes"
45766 else
45767   echo "$as_me: failed program was:" >&5
45768 sed 's/^/| /' conftest.$ac_ext >&5
45769
45770         eval "$as_ac_var=no"
45771 fi
45772
45773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45774       conftest$ac_exeext conftest.$ac_ext
45775 fi
45776 ac_res=`eval echo '${'$as_ac_var'}'`
45777                { echo "$as_me:$LINENO: result: $ac_res" >&5
45778 echo "${ECHO_T}$ac_res" >&6; }
45779 if test `eval echo '${'$as_ac_var'}'` = yes; then
45780   cat >>confdefs.h <<_ACEOF
45781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45782 _ACEOF
45783  break
45784 fi
45785 done
45786
45787
45788 if test "$ac_cv_func_gettimeofday" = "yes"; then
45789     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45790 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45791 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45792   echo $ECHO_N "(cached) $ECHO_C" >&6
45793 else
45794
45795                 cat >conftest.$ac_ext <<_ACEOF
45796 /* confdefs.h.  */
45797 _ACEOF
45798 cat confdefs.h >>conftest.$ac_ext
45799 cat >>conftest.$ac_ext <<_ACEOF
45800 /* end confdefs.h.  */
45801
45802                 #include <sys/time.h>
45803                 #include <unistd.h>
45804
45805 int
45806 main ()
45807 {
45808
45809                 struct timeval tv;
45810                 gettimeofday(&tv, NULL);
45811
45812   ;
45813   return 0;
45814 }
45815 _ACEOF
45816 rm -f conftest.$ac_objext
45817 if { (ac_try="$ac_compile"
45818 case "(($ac_try" in
45819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45820   *) ac_try_echo=$ac_try;;
45821 esac
45822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45823   (eval "$ac_compile") 2>conftest.er1
45824   ac_status=$?
45825   grep -v '^ *+' conftest.er1 >conftest.err
45826   rm -f conftest.er1
45827   cat conftest.err >&5
45828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45829   (exit $ac_status); } && {
45830          test -z "$ac_c_werror_flag" ||
45831          test ! -s conftest.err
45832        } && test -s conftest.$ac_objext; then
45833   wx_cv_func_gettimeofday_has_2_args=yes
45834 else
45835   echo "$as_me: failed program was:" >&5
45836 sed 's/^/| /' conftest.$ac_ext >&5
45837
45838         cat >conftest.$ac_ext <<_ACEOF
45839 /* confdefs.h.  */
45840 _ACEOF
45841 cat confdefs.h >>conftest.$ac_ext
45842 cat >>conftest.$ac_ext <<_ACEOF
45843 /* end confdefs.h.  */
45844
45845                     #include <sys/time.h>
45846                     #include <unistd.h>
45847
45848 int
45849 main ()
45850 {
45851
45852                     struct timeval tv;
45853                     gettimeofday(&tv);
45854
45855   ;
45856   return 0;
45857 }
45858 _ACEOF
45859 rm -f conftest.$ac_objext
45860 if { (ac_try="$ac_compile"
45861 case "(($ac_try" in
45862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45863   *) ac_try_echo=$ac_try;;
45864 esac
45865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45866   (eval "$ac_compile") 2>conftest.er1
45867   ac_status=$?
45868   grep -v '^ *+' conftest.er1 >conftest.err
45869   rm -f conftest.er1
45870   cat conftest.err >&5
45871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45872   (exit $ac_status); } && {
45873          test -z "$ac_c_werror_flag" ||
45874          test ! -s conftest.err
45875        } && test -s conftest.$ac_objext; then
45876   wx_cv_func_gettimeofday_has_2_args=no
45877 else
45878   echo "$as_me: failed program was:" >&5
45879 sed 's/^/| /' conftest.$ac_ext >&5
45880
45881
45882                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45883 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45884                     wx_cv_func_gettimeofday_has_2_args=unknown
45885
45886
45887 fi
45888
45889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45890
45891 fi
45892
45893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45894
45895 fi
45896 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45897 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45898
45899     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45900         cat >>confdefs.h <<\_ACEOF
45901 #define WX_GETTIMEOFDAY_NO_TZ 1
45902 _ACEOF
45903
45904     fi
45905 fi
45906
45907 if test "$wxUSE_DATETIME" = "yes"; then
45908             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
45909 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
45910 if test "${wx_cv_var_timezone+set}" = set; then
45911   echo $ECHO_N "(cached) $ECHO_C" >&6
45912 else
45913
45914                         ac_ext=cpp
45915 ac_cpp='$CXXCPP $CPPFLAGS'
45916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45919
45920                         cat >conftest.$ac_ext <<_ACEOF
45921 /* confdefs.h.  */
45922 _ACEOF
45923 cat confdefs.h >>conftest.$ac_ext
45924 cat >>conftest.$ac_ext <<_ACEOF
45925 /* end confdefs.h.  */
45926
45927                                 #include <time.h>
45928
45929 int
45930 main ()
45931 {
45932
45933                                 int tz;
45934                                 tz = timezone;
45935
45936   ;
45937   return 0;
45938 }
45939 _ACEOF
45940 rm -f conftest.$ac_objext
45941 if { (ac_try="$ac_compile"
45942 case "(($ac_try" in
45943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45944   *) ac_try_echo=$ac_try;;
45945 esac
45946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45947   (eval "$ac_compile") 2>conftest.er1
45948   ac_status=$?
45949   grep -v '^ *+' conftest.er1 >conftest.err
45950   rm -f conftest.er1
45951   cat conftest.err >&5
45952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45953   (exit $ac_status); } && {
45954          test -z "$ac_cxx_werror_flag" ||
45955          test ! -s conftest.err
45956        } && test -s conftest.$ac_objext; then
45957
45958                                 wx_cv_var_timezone=timezone
45959
45960 else
45961   echo "$as_me: failed program was:" >&5
45962 sed 's/^/| /' conftest.$ac_ext >&5
45963
45964
45965                                 cat >conftest.$ac_ext <<_ACEOF
45966 /* confdefs.h.  */
45967 _ACEOF
45968 cat confdefs.h >>conftest.$ac_ext
45969 cat >>conftest.$ac_ext <<_ACEOF
45970 /* end confdefs.h.  */
45971
45972                                         #include <time.h>
45973
45974 int
45975 main ()
45976 {
45977
45978                                         int tz;
45979                                         tz = _timezone;
45980
45981   ;
45982   return 0;
45983 }
45984 _ACEOF
45985 rm -f conftest.$ac_objext
45986 if { (ac_try="$ac_compile"
45987 case "(($ac_try" in
45988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45989   *) ac_try_echo=$ac_try;;
45990 esac
45991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45992   (eval "$ac_compile") 2>conftest.er1
45993   ac_status=$?
45994   grep -v '^ *+' conftest.er1 >conftest.err
45995   rm -f conftest.er1
45996   cat conftest.err >&5
45997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45998   (exit $ac_status); } && {
45999          test -z "$ac_cxx_werror_flag" ||
46000          test ! -s conftest.err
46001        } && test -s conftest.$ac_objext; then
46002
46003                                         wx_cv_var_timezone=_timezone
46004
46005 else
46006   echo "$as_me: failed program was:" >&5
46007 sed 's/^/| /' conftest.$ac_ext >&5
46008
46009
46010                                         cat >conftest.$ac_ext <<_ACEOF
46011 /* confdefs.h.  */
46012 _ACEOF
46013 cat confdefs.h >>conftest.$ac_ext
46014 cat >>conftest.$ac_ext <<_ACEOF
46015 /* end confdefs.h.  */
46016
46017                                                 #include <time.h>
46018
46019 int
46020 main ()
46021 {
46022
46023                                                 int tz;
46024                                                 tz = __timezone;
46025
46026   ;
46027   return 0;
46028 }
46029 _ACEOF
46030 rm -f conftest.$ac_objext
46031 if { (ac_try="$ac_compile"
46032 case "(($ac_try" in
46033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46034   *) ac_try_echo=$ac_try;;
46035 esac
46036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46037   (eval "$ac_compile") 2>conftest.er1
46038   ac_status=$?
46039   grep -v '^ *+' conftest.er1 >conftest.err
46040   rm -f conftest.er1
46041   cat conftest.err >&5
46042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46043   (exit $ac_status); } && {
46044          test -z "$ac_cxx_werror_flag" ||
46045          test ! -s conftest.err
46046        } && test -s conftest.$ac_objext; then
46047
46048                                                 wx_cv_var_timezone=__timezone
46049
46050 else
46051   echo "$as_me: failed program was:" >&5
46052 sed 's/^/| /' conftest.$ac_ext >&5
46053
46054
46055                                                 if test "$USE_DOS" = 0 ; then
46056                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46057 echo "$as_me: WARNING: no timezone variable" >&2;}
46058                                                 fi
46059
46060
46061 fi
46062
46063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46064
46065
46066 fi
46067
46068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46069
46070
46071 fi
46072
46073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46074                         ac_ext=c
46075 ac_cpp='$CPP $CPPFLAGS'
46076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46079
46080
46081
46082 fi
46083 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
46084 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
46085
46086         if test "x$wx_cv_var_timezone" != x ; then
46087         cat >>confdefs.h <<_ACEOF
46088 #define WX_TIMEZONE $wx_cv_var_timezone
46089 _ACEOF
46090
46091     fi
46092
46093
46094 for ac_func in localtime
46095 do
46096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46100   echo $ECHO_N "(cached) $ECHO_C" >&6
46101 else
46102   cat >conftest.$ac_ext <<_ACEOF
46103 /* confdefs.h.  */
46104 _ACEOF
46105 cat confdefs.h >>conftest.$ac_ext
46106 cat >>conftest.$ac_ext <<_ACEOF
46107 /* end confdefs.h.  */
46108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46110 #define $ac_func innocuous_$ac_func
46111
46112 /* System header to define __stub macros and hopefully few prototypes,
46113     which can conflict with char $ac_func (); below.
46114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46115     <limits.h> exists even on freestanding compilers.  */
46116
46117 #ifdef __STDC__
46118 # include <limits.h>
46119 #else
46120 # include <assert.h>
46121 #endif
46122
46123 #undef $ac_func
46124
46125 /* Override any GCC internal prototype to avoid an error.
46126    Use char because int might match the return type of a GCC
46127    builtin and then its argument prototype would still apply.  */
46128 #ifdef __cplusplus
46129 extern "C"
46130 #endif
46131 char $ac_func ();
46132 /* The GNU C library defines this for functions which it implements
46133     to always fail with ENOSYS.  Some functions are actually named
46134     something starting with __ and the normal name is an alias.  */
46135 #if defined __stub_$ac_func || defined __stub___$ac_func
46136 choke me
46137 #endif
46138
46139 int
46140 main ()
46141 {
46142 return $ac_func ();
46143   ;
46144   return 0;
46145 }
46146 _ACEOF
46147 rm -f conftest.$ac_objext conftest$ac_exeext
46148 if { (ac_try="$ac_link"
46149 case "(($ac_try" in
46150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46151   *) ac_try_echo=$ac_try;;
46152 esac
46153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46154   (eval "$ac_link") 2>conftest.er1
46155   ac_status=$?
46156   grep -v '^ *+' conftest.er1 >conftest.err
46157   rm -f conftest.er1
46158   cat conftest.err >&5
46159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46160   (exit $ac_status); } && {
46161          test -z "$ac_c_werror_flag" ||
46162          test ! -s conftest.err
46163        } && test -s conftest$ac_exeext &&
46164        $as_test_x conftest$ac_exeext; then
46165   eval "$as_ac_var=yes"
46166 else
46167   echo "$as_me: failed program was:" >&5
46168 sed 's/^/| /' conftest.$ac_ext >&5
46169
46170         eval "$as_ac_var=no"
46171 fi
46172
46173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46174       conftest$ac_exeext conftest.$ac_ext
46175 fi
46176 ac_res=`eval echo '${'$as_ac_var'}'`
46177                { echo "$as_me:$LINENO: result: $ac_res" >&5
46178 echo "${ECHO_T}$ac_res" >&6; }
46179 if test `eval echo '${'$as_ac_var'}'` = yes; then
46180   cat >>confdefs.h <<_ACEOF
46181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46182 _ACEOF
46183
46184 fi
46185 done
46186
46187
46188     if test "$ac_cv_func_localtime" = "yes"; then
46189         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
46190 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
46191 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
46192   echo $ECHO_N "(cached) $ECHO_C" >&6
46193 else
46194
46195             cat >conftest.$ac_ext <<_ACEOF
46196 /* confdefs.h.  */
46197 _ACEOF
46198 cat confdefs.h >>conftest.$ac_ext
46199 cat >>conftest.$ac_ext <<_ACEOF
46200 /* end confdefs.h.  */
46201
46202                     #include <time.h>
46203
46204 int
46205 main ()
46206 {
46207
46208                     struct tm tm;
46209                     tm.tm_gmtoff++;
46210
46211   ;
46212   return 0;
46213 }
46214 _ACEOF
46215 rm -f conftest.$ac_objext
46216 if { (ac_try="$ac_compile"
46217 case "(($ac_try" in
46218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46219   *) ac_try_echo=$ac_try;;
46220 esac
46221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46222   (eval "$ac_compile") 2>conftest.er1
46223   ac_status=$?
46224   grep -v '^ *+' conftest.er1 >conftest.err
46225   rm -f conftest.er1
46226   cat conftest.err >&5
46227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46228   (exit $ac_status); } && {
46229          test -z "$ac_c_werror_flag" ||
46230          test ! -s conftest.err
46231        } && test -s conftest.$ac_objext; then
46232
46233                     wx_cv_struct_tm_has_gmtoff=yes
46234
46235 else
46236   echo "$as_me: failed program was:" >&5
46237 sed 's/^/| /' conftest.$ac_ext >&5
46238
46239         wx_cv_struct_tm_has_gmtoff=no
46240
46241 fi
46242
46243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46244
46245 fi
46246 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
46247 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
46248     fi
46249
46250     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46251         cat >>confdefs.h <<\_ACEOF
46252 #define WX_GMTOFF_IN_TM 1
46253 _ACEOF
46254
46255     fi
46256
46257     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46258 fi
46259
46260
46261 if test "$wxUSE_SOCKETS" = "yes"; then
46262     if test "$wxUSE_MGL" = 1; then
46263         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46264 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46265         wxUSE_SOCKETS="no"
46266     fi
46267 fi
46268
46269 if test "$wxUSE_SOCKETS" = "yes"; then
46270         if test "$TOOLKIT" != "MSW"; then
46271                 { echo "$as_me:$LINENO: checking for socket" >&5
46272 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
46273 if test "${ac_cv_func_socket+set}" = set; then
46274   echo $ECHO_N "(cached) $ECHO_C" >&6
46275 else
46276   cat >conftest.$ac_ext <<_ACEOF
46277 /* confdefs.h.  */
46278 _ACEOF
46279 cat confdefs.h >>conftest.$ac_ext
46280 cat >>conftest.$ac_ext <<_ACEOF
46281 /* end confdefs.h.  */
46282 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
46283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46284 #define socket innocuous_socket
46285
46286 /* System header to define __stub macros and hopefully few prototypes,
46287     which can conflict with char socket (); below.
46288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46289     <limits.h> exists even on freestanding compilers.  */
46290
46291 #ifdef __STDC__
46292 # include <limits.h>
46293 #else
46294 # include <assert.h>
46295 #endif
46296
46297 #undef socket
46298
46299 /* Override any GCC internal prototype to avoid an error.
46300    Use char because int might match the return type of a GCC
46301    builtin and then its argument prototype would still apply.  */
46302 #ifdef __cplusplus
46303 extern "C"
46304 #endif
46305 char socket ();
46306 /* The GNU C library defines this for functions which it implements
46307     to always fail with ENOSYS.  Some functions are actually named
46308     something starting with __ and the normal name is an alias.  */
46309 #if defined __stub_socket || defined __stub___socket
46310 choke me
46311 #endif
46312
46313 int
46314 main ()
46315 {
46316 return socket ();
46317   ;
46318   return 0;
46319 }
46320 _ACEOF
46321 rm -f conftest.$ac_objext conftest$ac_exeext
46322 if { (ac_try="$ac_link"
46323 case "(($ac_try" in
46324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46325   *) ac_try_echo=$ac_try;;
46326 esac
46327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46328   (eval "$ac_link") 2>conftest.er1
46329   ac_status=$?
46330   grep -v '^ *+' conftest.er1 >conftest.err
46331   rm -f conftest.er1
46332   cat conftest.err >&5
46333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46334   (exit $ac_status); } && {
46335          test -z "$ac_c_werror_flag" ||
46336          test ! -s conftest.err
46337        } && test -s conftest$ac_exeext &&
46338        $as_test_x conftest$ac_exeext; then
46339   ac_cv_func_socket=yes
46340 else
46341   echo "$as_me: failed program was:" >&5
46342 sed 's/^/| /' conftest.$ac_ext >&5
46343
46344         ac_cv_func_socket=no
46345 fi
46346
46347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46348       conftest$ac_exeext conftest.$ac_ext
46349 fi
46350 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46351 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46352 if test $ac_cv_func_socket = yes; then
46353   :
46354 else
46355
46356                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46357 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46358 if test "${ac_cv_lib_socket_socket+set}" = set; then
46359   echo $ECHO_N "(cached) $ECHO_C" >&6
46360 else
46361   ac_check_lib_save_LIBS=$LIBS
46362 LIBS="-lsocket  $LIBS"
46363 cat >conftest.$ac_ext <<_ACEOF
46364 /* confdefs.h.  */
46365 _ACEOF
46366 cat confdefs.h >>conftest.$ac_ext
46367 cat >>conftest.$ac_ext <<_ACEOF
46368 /* end confdefs.h.  */
46369
46370 /* Override any GCC internal prototype to avoid an error.
46371    Use char because int might match the return type of a GCC
46372    builtin and then its argument prototype would still apply.  */
46373 #ifdef __cplusplus
46374 extern "C"
46375 #endif
46376 char socket ();
46377 int
46378 main ()
46379 {
46380 return socket ();
46381   ;
46382   return 0;
46383 }
46384 _ACEOF
46385 rm -f conftest.$ac_objext conftest$ac_exeext
46386 if { (ac_try="$ac_link"
46387 case "(($ac_try" in
46388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46389   *) ac_try_echo=$ac_try;;
46390 esac
46391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46392   (eval "$ac_link") 2>conftest.er1
46393   ac_status=$?
46394   grep -v '^ *+' conftest.er1 >conftest.err
46395   rm -f conftest.er1
46396   cat conftest.err >&5
46397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46398   (exit $ac_status); } && {
46399          test -z "$ac_c_werror_flag" ||
46400          test ! -s conftest.err
46401        } && test -s conftest$ac_exeext &&
46402        $as_test_x conftest$ac_exeext; then
46403   ac_cv_lib_socket_socket=yes
46404 else
46405   echo "$as_me: failed program was:" >&5
46406 sed 's/^/| /' conftest.$ac_ext >&5
46407
46408         ac_cv_lib_socket_socket=no
46409 fi
46410
46411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46412       conftest$ac_exeext conftest.$ac_ext
46413 LIBS=$ac_check_lib_save_LIBS
46414 fi
46415 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46416 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46417 if test $ac_cv_lib_socket_socket = yes; then
46418   if test "$INET_LINK" != " -lsocket"; then
46419                         INET_LINK="$INET_LINK -lsocket"
46420                     fi
46421 else
46422
46423                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46424 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46425                         wxUSE_SOCKETS=no
46426
46427
46428 fi
46429
46430
46431
46432 fi
46433
46434     fi
46435 fi
46436
46437 if test "$wxUSE_SOCKETS" = "yes" ; then
46438                 if test "$TOOLKIT" != "MSW"; then
46439                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46440 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46441 if test "${wx_cv_type_getsockname3+set}" = set; then
46442   echo $ECHO_N "(cached) $ECHO_C" >&6
46443 else
46444
46445                 ac_ext=cpp
46446 ac_cpp='$CXXCPP $CPPFLAGS'
46447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46450
46451                 cat >conftest.$ac_ext <<_ACEOF
46452 /* confdefs.h.  */
46453 _ACEOF
46454 cat confdefs.h >>conftest.$ac_ext
46455 cat >>conftest.$ac_ext <<_ACEOF
46456 /* end confdefs.h.  */
46457
46458                         #include <sys/types.h>
46459                         #include <sys/socket.h>
46460
46461 int
46462 main ()
46463 {
46464
46465                         socklen_t len;
46466                         getsockname(0, 0, &len);
46467
46468   ;
46469   return 0;
46470 }
46471 _ACEOF
46472 rm -f conftest.$ac_objext
46473 if { (ac_try="$ac_compile"
46474 case "(($ac_try" in
46475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46476   *) ac_try_echo=$ac_try;;
46477 esac
46478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46479   (eval "$ac_compile") 2>conftest.er1
46480   ac_status=$?
46481   grep -v '^ *+' conftest.er1 >conftest.err
46482   rm -f conftest.er1
46483   cat conftest.err >&5
46484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46485   (exit $ac_status); } && {
46486          test -z "$ac_cxx_werror_flag" ||
46487          test ! -s conftest.err
46488        } && test -s conftest.$ac_objext; then
46489   wx_cv_type_getsockname3=socklen_t
46490 else
46491   echo "$as_me: failed program was:" >&5
46492 sed 's/^/| /' conftest.$ac_ext >&5
46493
46494
46495                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46496                         if test "$GCC" = yes ; then
46497                             CFLAGS="-Werror $CFLAGS"
46498                         fi
46499
46500                         cat >conftest.$ac_ext <<_ACEOF
46501 /* confdefs.h.  */
46502 _ACEOF
46503 cat confdefs.h >>conftest.$ac_ext
46504 cat >>conftest.$ac_ext <<_ACEOF
46505 /* end confdefs.h.  */
46506
46507                                 #include <sys/types.h>
46508                                 #include <sys/socket.h>
46509
46510 int
46511 main ()
46512 {
46513
46514                                 size_t len;
46515                                 getsockname(0, 0, &len);
46516
46517   ;
46518   return 0;
46519 }
46520 _ACEOF
46521 rm -f conftest.$ac_objext
46522 if { (ac_try="$ac_compile"
46523 case "(($ac_try" in
46524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46525   *) ac_try_echo=$ac_try;;
46526 esac
46527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46528   (eval "$ac_compile") 2>conftest.er1
46529   ac_status=$?
46530   grep -v '^ *+' conftest.er1 >conftest.err
46531   rm -f conftest.er1
46532   cat conftest.err >&5
46533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46534   (exit $ac_status); } && {
46535          test -z "$ac_cxx_werror_flag" ||
46536          test ! -s conftest.err
46537        } && test -s conftest.$ac_objext; then
46538   wx_cv_type_getsockname3=size_t
46539 else
46540   echo "$as_me: failed program was:" >&5
46541 sed 's/^/| /' conftest.$ac_ext >&5
46542
46543         cat >conftest.$ac_ext <<_ACEOF
46544 /* confdefs.h.  */
46545 _ACEOF
46546 cat confdefs.h >>conftest.$ac_ext
46547 cat >>conftest.$ac_ext <<_ACEOF
46548 /* end confdefs.h.  */
46549
46550                                     #include <sys/types.h>
46551                                     #include <sys/socket.h>
46552
46553 int
46554 main ()
46555 {
46556
46557                                     int len;
46558                                     getsockname(0, 0, &len);
46559
46560   ;
46561   return 0;
46562 }
46563 _ACEOF
46564 rm -f conftest.$ac_objext
46565 if { (ac_try="$ac_compile"
46566 case "(($ac_try" in
46567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46568   *) ac_try_echo=$ac_try;;
46569 esac
46570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46571   (eval "$ac_compile") 2>conftest.er1
46572   ac_status=$?
46573   grep -v '^ *+' conftest.er1 >conftest.err
46574   rm -f conftest.er1
46575   cat conftest.err >&5
46576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46577   (exit $ac_status); } && {
46578          test -z "$ac_cxx_werror_flag" ||
46579          test ! -s conftest.err
46580        } && test -s conftest.$ac_objext; then
46581   wx_cv_type_getsockname3=int
46582 else
46583   echo "$as_me: failed program was:" >&5
46584 sed 's/^/| /' conftest.$ac_ext >&5
46585
46586         wx_cv_type_getsockname3=unknown
46587
46588 fi
46589
46590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46591
46592 fi
46593
46594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46595
46596                         CFLAGS="$CFLAGS_OLD"
46597
46598
46599 fi
46600
46601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46602                 ac_ext=c
46603 ac_cpp='$CPP $CPPFLAGS'
46604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46607
46608
46609 fi
46610 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46611 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46612
46613         if test "$wx_cv_type_getsockname3" = "unknown"; then
46614             wxUSE_SOCKETS=no
46615             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46616 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46617         else
46618             cat >>confdefs.h <<_ACEOF
46619 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46620 _ACEOF
46621
46622         fi
46623                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46624 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46625 if test "${wx_cv_type_getsockopt5+set}" = set; then
46626   echo $ECHO_N "(cached) $ECHO_C" >&6
46627 else
46628
46629                                                                                                 ac_ext=cpp
46630 ac_cpp='$CXXCPP $CPPFLAGS'
46631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46634
46635                 cat >conftest.$ac_ext <<_ACEOF
46636 /* confdefs.h.  */
46637 _ACEOF
46638 cat confdefs.h >>conftest.$ac_ext
46639 cat >>conftest.$ac_ext <<_ACEOF
46640 /* end confdefs.h.  */
46641
46642                         #include <sys/types.h>
46643                         #include <sys/socket.h>
46644
46645 int
46646 main ()
46647 {
46648
46649                         socklen_t len;
46650                         getsockopt(0, 0, 0, 0, &len);
46651
46652   ;
46653   return 0;
46654 }
46655 _ACEOF
46656 rm -f conftest.$ac_objext
46657 if { (ac_try="$ac_compile"
46658 case "(($ac_try" in
46659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46660   *) ac_try_echo=$ac_try;;
46661 esac
46662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46663   (eval "$ac_compile") 2>conftest.er1
46664   ac_status=$?
46665   grep -v '^ *+' conftest.er1 >conftest.err
46666   rm -f conftest.er1
46667   cat conftest.err >&5
46668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46669   (exit $ac_status); } && {
46670          test -z "$ac_cxx_werror_flag" ||
46671          test ! -s conftest.err
46672        } && test -s conftest.$ac_objext; then
46673   wx_cv_type_getsockopt5=socklen_t
46674 else
46675   echo "$as_me: failed program was:" >&5
46676 sed 's/^/| /' conftest.$ac_ext >&5
46677
46678
46679                         cat >conftest.$ac_ext <<_ACEOF
46680 /* confdefs.h.  */
46681 _ACEOF
46682 cat confdefs.h >>conftest.$ac_ext
46683 cat >>conftest.$ac_ext <<_ACEOF
46684 /* end confdefs.h.  */
46685
46686                                 #include <sys/types.h>
46687                                 #include <sys/socket.h>
46688
46689 int
46690 main ()
46691 {
46692
46693                                 size_t len;
46694                                 getsockopt(0, 0, 0, 0, &len);
46695
46696   ;
46697   return 0;
46698 }
46699 _ACEOF
46700 rm -f conftest.$ac_objext
46701 if { (ac_try="$ac_compile"
46702 case "(($ac_try" in
46703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46704   *) ac_try_echo=$ac_try;;
46705 esac
46706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46707   (eval "$ac_compile") 2>conftest.er1
46708   ac_status=$?
46709   grep -v '^ *+' conftest.er1 >conftest.err
46710   rm -f conftest.er1
46711   cat conftest.err >&5
46712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46713   (exit $ac_status); } && {
46714          test -z "$ac_cxx_werror_flag" ||
46715          test ! -s conftest.err
46716        } && test -s conftest.$ac_objext; then
46717   wx_cv_type_getsockopt5=size_t
46718 else
46719   echo "$as_me: failed program was:" >&5
46720 sed 's/^/| /' conftest.$ac_ext >&5
46721
46722         cat >conftest.$ac_ext <<_ACEOF
46723 /* confdefs.h.  */
46724 _ACEOF
46725 cat confdefs.h >>conftest.$ac_ext
46726 cat >>conftest.$ac_ext <<_ACEOF
46727 /* end confdefs.h.  */
46728
46729                                     #include <sys/types.h>
46730                                     #include <sys/socket.h>
46731
46732 int
46733 main ()
46734 {
46735
46736                                     int len;
46737                                     getsockopt(0, 0, 0, 0, &len);
46738
46739   ;
46740   return 0;
46741 }
46742 _ACEOF
46743 rm -f conftest.$ac_objext
46744 if { (ac_try="$ac_compile"
46745 case "(($ac_try" in
46746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46747   *) ac_try_echo=$ac_try;;
46748 esac
46749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46750   (eval "$ac_compile") 2>conftest.er1
46751   ac_status=$?
46752   grep -v '^ *+' conftest.er1 >conftest.err
46753   rm -f conftest.er1
46754   cat conftest.err >&5
46755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46756   (exit $ac_status); } && {
46757          test -z "$ac_cxx_werror_flag" ||
46758          test ! -s conftest.err
46759        } && test -s conftest.$ac_objext; then
46760   wx_cv_type_getsockopt5=int
46761 else
46762   echo "$as_me: failed program was:" >&5
46763 sed 's/^/| /' conftest.$ac_ext >&5
46764
46765         wx_cv_type_getsockopt5=unknown
46766
46767 fi
46768
46769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46770
46771 fi
46772
46773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46774
46775
46776 fi
46777
46778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46779                 ac_ext=c
46780 ac_cpp='$CPP $CPPFLAGS'
46781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46784
46785
46786 fi
46787 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
46788 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
46789
46790         if test "$wx_cv_type_getsockopt5" = "unknown"; then
46791             wxUSE_SOCKETS=no
46792             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46793 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46794         else
46795             cat >>confdefs.h <<_ACEOF
46796 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
46797 _ACEOF
46798
46799         fi
46800     fi
46801 fi
46802
46803 if test "$wxUSE_SOCKETS" = "yes" ; then
46804     if test "$wxUSE_IPV6" = "yes"; then
46805         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
46806 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
46807 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
46808   echo $ECHO_N "(cached) $ECHO_C" >&6
46809 else
46810
46811                 cat >conftest.$ac_ext <<_ACEOF
46812 /* confdefs.h.  */
46813 _ACEOF
46814 cat confdefs.h >>conftest.$ac_ext
46815 cat >>conftest.$ac_ext <<_ACEOF
46816 /* end confdefs.h.  */
46817
46818                         #include <sys/types.h>
46819                         #include <sys/socket.h>
46820                         #include <netinet/in.h>
46821
46822 int
46823 main ()
46824 {
46825
46826                         struct sockaddr_in6 sa6;
46827
46828   ;
46829   return 0;
46830 }
46831 _ACEOF
46832 rm -f conftest.$ac_objext
46833 if { (ac_try="$ac_compile"
46834 case "(($ac_try" in
46835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46836   *) ac_try_echo=$ac_try;;
46837 esac
46838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46839   (eval "$ac_compile") 2>conftest.er1
46840   ac_status=$?
46841   grep -v '^ *+' conftest.er1 >conftest.err
46842   rm -f conftest.er1
46843   cat conftest.err >&5
46844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46845   (exit $ac_status); } && {
46846          test -z "$ac_c_werror_flag" ||
46847          test ! -s conftest.err
46848        } && test -s conftest.$ac_objext; then
46849   wx_cv_type_sockaddr_in6=yes
46850 else
46851   echo "$as_me: failed program was:" >&5
46852 sed 's/^/| /' conftest.$ac_ext >&5
46853
46854         wx_cv_type_sockaddr_in6=no
46855
46856 fi
46857
46858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46859
46860
46861 fi
46862 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
46863 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
46864
46865         if test "$wx_cv_type_sockaddr_in6"="yes"; then
46866             cat >>confdefs.h <<\_ACEOF
46867 #define wxUSE_IPV6 1
46868 _ACEOF
46869
46870         else
46871             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
46872 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
46873         fi
46874     fi
46875
46876     cat >>confdefs.h <<\_ACEOF
46877 #define wxUSE_SOCKETS 1
46878 _ACEOF
46879
46880     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46881 fi
46882
46883 if test "$wxUSE_PROTOCOL" = "yes"; then
46884     if test "$wxUSE_SOCKETS" != "yes"; then
46885         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
46886 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
46887         wxUSE_PROTOCOL=no
46888     fi
46889 fi
46890
46891 if test "$wxUSE_PROTOCOL" = "yes"; then
46892     cat >>confdefs.h <<\_ACEOF
46893 #define wxUSE_PROTOCOL 1
46894 _ACEOF
46895
46896
46897     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
46898         cat >>confdefs.h <<\_ACEOF
46899 #define wxUSE_PROTOCOL_HTTP 1
46900 _ACEOF
46901
46902     fi
46903     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
46904         cat >>confdefs.h <<\_ACEOF
46905 #define wxUSE_PROTOCOL_FTP 1
46906 _ACEOF
46907
46908     fi
46909     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
46910         cat >>confdefs.h <<\_ACEOF
46911 #define wxUSE_PROTOCOL_FILE 1
46912 _ACEOF
46913
46914     fi
46915 else
46916     if test "$wxUSE_FS_INET" = "yes"; then
46917         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
46918 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
46919         wxUSE_FS_INET="no"
46920     fi
46921 fi
46922
46923 if test "$wxUSE_URL" = "yes"; then
46924     if test "$wxUSE_PROTOCOL" != "yes"; then
46925         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
46926 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
46927         wxUSE_URL=no
46928     fi
46929     if test "$wxUSE_URL" = "yes"; then
46930         cat >>confdefs.h <<\_ACEOF
46931 #define wxUSE_URL 1
46932 _ACEOF
46933
46934     fi
46935 fi
46936
46937 if test "$wxUSE_VARIANT" = "yes"; then
46938     cat >>confdefs.h <<\_ACEOF
46939 #define wxUSE_VARIANT 1
46940 _ACEOF
46941
46942 fi
46943
46944 if test "$wxUSE_FS_INET" = "yes"; then
46945   cat >>confdefs.h <<\_ACEOF
46946 #define wxUSE_FS_INET 1
46947 _ACEOF
46948
46949 fi
46950
46951
46952 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
46953     wxUSE_JOYSTICK=no
46954
46955         if test "$TOOLKIT" = "MSW"; then
46956         wxUSE_JOYSTICK=yes
46957
46958         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
46959         if test "$USE_DARWIN" = 1; then
46960                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
46961 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
46962             ac_ext=cpp
46963 ac_cpp='$CXXCPP $CPPFLAGS'
46964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46967
46968             cat >conftest.$ac_ext <<_ACEOF
46969 /* confdefs.h.  */
46970 _ACEOF
46971 cat confdefs.h >>conftest.$ac_ext
46972 cat >>conftest.$ac_ext <<_ACEOF
46973 /* end confdefs.h.  */
46974  #include <IOKit/hid/IOHIDLib.h>
46975 int
46976 main ()
46977 {
46978  IOHIDQueueInterface *qi = NULL;
46979                               IOHIDCallbackFunction cb = NULL;
46980                               qi->setEventCallout(NULL, cb, NULL, NULL);
46981   ;
46982   return 0;
46983 }
46984 _ACEOF
46985 rm -f conftest.$ac_objext
46986 if { (ac_try="$ac_compile"
46987 case "(($ac_try" in
46988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46989   *) ac_try_echo=$ac_try;;
46990 esac
46991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46992   (eval "$ac_compile") 2>conftest.er1
46993   ac_status=$?
46994   grep -v '^ *+' conftest.er1 >conftest.err
46995   rm -f conftest.er1
46996   cat conftest.err >&5
46997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46998   (exit $ac_status); } && {
46999          test -z "$ac_cxx_werror_flag" ||
47000          test ! -s conftest.err
47001        } && test -s conftest.$ac_objext; then
47002    wxUSE_JOYSTICK=yes
47003
47004 else
47005   echo "$as_me: failed program was:" >&5
47006 sed 's/^/| /' conftest.$ac_ext >&5
47007
47008
47009 fi
47010
47011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47012             ac_ext=c
47013 ac_cpp='$CPP $CPPFLAGS'
47014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47017
47018             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
47019 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
47020         fi
47021
47022         else
47023                 if test "$wxUSE_MGL" != 1; then
47024
47025 for ac_header in linux/joystick.h
47026 do
47027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47031   echo $ECHO_N "(cached) $ECHO_C" >&6
47032 else
47033   cat >conftest.$ac_ext <<_ACEOF
47034 /* confdefs.h.  */
47035 _ACEOF
47036 cat confdefs.h >>conftest.$ac_ext
47037 cat >>conftest.$ac_ext <<_ACEOF
47038 /* end confdefs.h.  */
47039 $ac_includes_default
47040
47041 #include <$ac_header>
47042 _ACEOF
47043 rm -f conftest.$ac_objext
47044 if { (ac_try="$ac_compile"
47045 case "(($ac_try" in
47046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47047   *) ac_try_echo=$ac_try;;
47048 esac
47049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47050   (eval "$ac_compile") 2>conftest.er1
47051   ac_status=$?
47052   grep -v '^ *+' conftest.er1 >conftest.err
47053   rm -f conftest.er1
47054   cat conftest.err >&5
47055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47056   (exit $ac_status); } && {
47057          test -z "$ac_c_werror_flag" ||
47058          test ! -s conftest.err
47059        } && test -s conftest.$ac_objext; then
47060   eval "$as_ac_Header=yes"
47061 else
47062   echo "$as_me: failed program was:" >&5
47063 sed 's/^/| /' conftest.$ac_ext >&5
47064
47065         eval "$as_ac_Header=no"
47066 fi
47067
47068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47069 fi
47070 ac_res=`eval echo '${'$as_ac_Header'}'`
47071                { echo "$as_me:$LINENO: result: $ac_res" >&5
47072 echo "${ECHO_T}$ac_res" >&6; }
47073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47074   cat >>confdefs.h <<_ACEOF
47075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47076 _ACEOF
47077  wxUSE_JOYSTICK=yes
47078 fi
47079
47080 done
47081
47082         fi
47083     fi
47084
47085     if test "$wxUSE_JOYSTICK" = "yes"; then
47086         cat >>confdefs.h <<\_ACEOF
47087 #define wxUSE_JOYSTICK 1
47088 _ACEOF
47089
47090         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47091     else
47092         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47093 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
47094     fi
47095 fi
47096
47097
47098
47099 if test "$wxUSE_FONTENUM" = "yes" ; then
47100   cat >>confdefs.h <<\_ACEOF
47101 #define wxUSE_FONTENUM 1
47102 _ACEOF
47103
47104 fi
47105
47106 if test "$wxUSE_FONTMAP" = "yes" ; then
47107   cat >>confdefs.h <<\_ACEOF
47108 #define wxUSE_FONTMAP 1
47109 _ACEOF
47110
47111 fi
47112
47113 if test "$wxUSE_UNICODE" = "yes" ; then
47114   cat >>confdefs.h <<\_ACEOF
47115 #define wxUSE_UNICODE 1
47116 _ACEOF
47117
47118
47119   if test "$USE_WIN32" != 1; then
47120       wxUSE_UNICODE_MSLU=no
47121   fi
47122
47123   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47124         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47125 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47126 if test "${ac_cv_lib_unicows_main+set}" = set; then
47127   echo $ECHO_N "(cached) $ECHO_C" >&6
47128 else
47129   ac_check_lib_save_LIBS=$LIBS
47130 LIBS="-lunicows  $LIBS"
47131 cat >conftest.$ac_ext <<_ACEOF
47132 /* confdefs.h.  */
47133 _ACEOF
47134 cat confdefs.h >>conftest.$ac_ext
47135 cat >>conftest.$ac_ext <<_ACEOF
47136 /* end confdefs.h.  */
47137
47138
47139 int
47140 main ()
47141 {
47142 return main ();
47143   ;
47144   return 0;
47145 }
47146 _ACEOF
47147 rm -f conftest.$ac_objext conftest$ac_exeext
47148 if { (ac_try="$ac_link"
47149 case "(($ac_try" in
47150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47151   *) ac_try_echo=$ac_try;;
47152 esac
47153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47154   (eval "$ac_link") 2>conftest.er1
47155   ac_status=$?
47156   grep -v '^ *+' conftest.er1 >conftest.err
47157   rm -f conftest.er1
47158   cat conftest.err >&5
47159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47160   (exit $ac_status); } && {
47161          test -z "$ac_c_werror_flag" ||
47162          test ! -s conftest.err
47163        } && test -s conftest$ac_exeext &&
47164        $as_test_x conftest$ac_exeext; then
47165   ac_cv_lib_unicows_main=yes
47166 else
47167   echo "$as_me: failed program was:" >&5
47168 sed 's/^/| /' conftest.$ac_ext >&5
47169
47170         ac_cv_lib_unicows_main=no
47171 fi
47172
47173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47174       conftest$ac_exeext conftest.$ac_ext
47175 LIBS=$ac_check_lib_save_LIBS
47176 fi
47177 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47178 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
47179 if test $ac_cv_lib_unicows_main = yes; then
47180
47181                 cat >>confdefs.h <<\_ACEOF
47182 #define wxUSE_UNICODE_MSLU 1
47183 _ACEOF
47184
47185
47186 else
47187
47188                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47189                              Applications will only run on Windows NT/2000/XP!" >&5
47190 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47191                              Applications will only run on Windows NT/2000/XP!" >&2;}
47192                 wxUSE_UNICODE_MSLU=no
47193
47194 fi
47195
47196     fi
47197 fi
47198
47199 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47200     cat >>confdefs.h <<\_ACEOF
47201 #define wxUSE_UNICODE_UTF8 1
47202 _ACEOF
47203
47204
47205     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47206         cat >>confdefs.h <<\_ACEOF
47207 #define wxUSE_UTF8_LOCALE_ONLY 1
47208 _ACEOF
47209
47210     fi
47211 fi
47212
47213
47214 if test "$wxUSE_CONSTRAINTS" = "yes"; then
47215     cat >>confdefs.h <<\_ACEOF
47216 #define wxUSE_CONSTRAINTS 1
47217 _ACEOF
47218
47219     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47220 fi
47221
47222 if test "$wxUSE_MDI" = "yes"; then
47223     cat >>confdefs.h <<\_ACEOF
47224 #define wxUSE_MDI 1
47225 _ACEOF
47226
47227
47228     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47229         cat >>confdefs.h <<\_ACEOF
47230 #define wxUSE_MDI_ARCHITECTURE 1
47231 _ACEOF
47232
47233         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47234     fi
47235 fi
47236
47237 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47238     cat >>confdefs.h <<\_ACEOF
47239 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
47240 _ACEOF
47241
47242     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47243 fi
47244
47245 if test "$wxUSE_HELP" = "yes"; then
47246     cat >>confdefs.h <<\_ACEOF
47247 #define wxUSE_HELP 1
47248 _ACEOF
47249
47250     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47251
47252     if test "$wxUSE_MSW" = 1; then
47253       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47254         cat >>confdefs.h <<\_ACEOF
47255 #define wxUSE_MS_HTML_HELP 1
47256 _ACEOF
47257
47258       fi
47259     fi
47260
47261     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47262       if test "$wxUSE_HTML" = "yes"; then
47263         cat >>confdefs.h <<\_ACEOF
47264 #define wxUSE_WXHTML_HELP 1
47265 _ACEOF
47266
47267       else
47268         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47269 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47270         wxUSE_WXHTML_HELP=no
47271       fi
47272     fi
47273 fi
47274
47275 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47276     cat >>confdefs.h <<\_ACEOF
47277 #define wxUSE_PRINTING_ARCHITECTURE 1
47278 _ACEOF
47279
47280     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47281 fi
47282
47283 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47284   cat >>confdefs.h <<\_ACEOF
47285 #define wxUSE_POSTSCRIPT 1
47286 _ACEOF
47287
47288 fi
47289
47290 cat >>confdefs.h <<\_ACEOF
47291 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47292 _ACEOF
47293
47294
47295 if test "$wxUSE_SVG" = "yes"; then
47296     cat >>confdefs.h <<\_ACEOF
47297 #define wxUSE_SVG 1
47298 _ACEOF
47299
47300 fi
47301
47302
47303 if test "$wxUSE_METAFILE" = "yes"; then
47304     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47305         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47306 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47307         wxUSE_METAFILE=no
47308     fi
47309 elif test "$wxUSE_METAFILE" = "auto"; then
47310     if test "$wxUSE_MSW" = 1 -o "$wxUSE_MAC" = 1 -o "$wxUSE_PM" = 1; then
47311         wxUSE_METAFILE=yes
47312     fi
47313 fi
47314
47315 if test "$wxUSE_METAFILE" = "yes"; then
47316     cat >>confdefs.h <<\_ACEOF
47317 #define wxUSE_METAFILE 1
47318 _ACEOF
47319
47320     if test "$wxUSE_MSW" = 1; then
47321                 cat >>confdefs.h <<\_ACEOF
47322 #define wxUSE_ENH_METAFILE 1
47323 _ACEOF
47324
47325     fi
47326 fi
47327
47328
47329 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
47330                           -o "$wxUSE_CLIPBOARD"     = "yes" \
47331                           -o "$wxUSE_OLE"     = "yes" \
47332                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47333     { echo "$as_me:$LINENO: checking for ole2.h" >&5
47334 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
47335 if test "${ac_cv_header_ole2_h+set}" = set; then
47336   echo $ECHO_N "(cached) $ECHO_C" >&6
47337 else
47338   cat >conftest.$ac_ext <<_ACEOF
47339 /* confdefs.h.  */
47340 _ACEOF
47341 cat confdefs.h >>conftest.$ac_ext
47342 cat >>conftest.$ac_ext <<_ACEOF
47343 /* end confdefs.h.  */
47344
47345
47346 #include <ole2.h>
47347 _ACEOF
47348 rm -f conftest.$ac_objext
47349 if { (ac_try="$ac_compile"
47350 case "(($ac_try" in
47351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47352   *) ac_try_echo=$ac_try;;
47353 esac
47354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47355   (eval "$ac_compile") 2>conftest.er1
47356   ac_status=$?
47357   grep -v '^ *+' conftest.er1 >conftest.err
47358   rm -f conftest.er1
47359   cat conftest.err >&5
47360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47361   (exit $ac_status); } && {
47362          test -z "$ac_c_werror_flag" ||
47363          test ! -s conftest.err
47364        } && test -s conftest.$ac_objext; then
47365   ac_cv_header_ole2_h=yes
47366 else
47367   echo "$as_me: failed program was:" >&5
47368 sed 's/^/| /' conftest.$ac_ext >&5
47369
47370         ac_cv_header_ole2_h=no
47371 fi
47372
47373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47374 fi
47375 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47376 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47377
47378
47379
47380     if test "$ac_cv_header_ole2_h" = "yes" ; then
47381         if test "$GCC" = yes ; then
47382             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47383 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47384             cat >conftest.$ac_ext <<_ACEOF
47385 /* confdefs.h.  */
47386 _ACEOF
47387 cat confdefs.h >>conftest.$ac_ext
47388 cat >>conftest.$ac_ext <<_ACEOF
47389 /* end confdefs.h.  */
47390 #include <windows.h>
47391                             #include <ole2.h>
47392 int
47393 main ()
47394 {
47395
47396   ;
47397   return 0;
47398 }
47399 _ACEOF
47400 rm -f conftest.$ac_objext
47401 if { (ac_try="$ac_compile"
47402 case "(($ac_try" in
47403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47404   *) ac_try_echo=$ac_try;;
47405 esac
47406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47407   (eval "$ac_compile") 2>conftest.er1
47408   ac_status=$?
47409   grep -v '^ *+' conftest.er1 >conftest.err
47410   rm -f conftest.er1
47411   cat conftest.err >&5
47412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47413   (exit $ac_status); } && {
47414          test -z "$ac_c_werror_flag" ||
47415          test ! -s conftest.err
47416        } && test -s conftest.$ac_objext; then
47417   { echo "$as_me:$LINENO: result: no" >&5
47418 echo "${ECHO_T}no" >&6; }
47419 else
47420   echo "$as_me: failed program was:" >&5
47421 sed 's/^/| /' conftest.$ac_ext >&5
47422
47423         { echo "$as_me:$LINENO: result: yes" >&5
47424 echo "${ECHO_T}yes" >&6; }
47425                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47426 fi
47427
47428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47429             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47430             if test "$wxUSE_OLE" = "yes" ; then
47431                 cat >>confdefs.h <<\_ACEOF
47432 #define wxUSE_OLE 1
47433 _ACEOF
47434
47435                 cat >>confdefs.h <<\_ACEOF
47436 #define wxUSE_OLE_AUTOMATION 1
47437 _ACEOF
47438
47439                 cat >>confdefs.h <<\_ACEOF
47440 #define wxUSE_ACTIVEX 1
47441 _ACEOF
47442
47443                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47444             fi
47445         fi
47446
47447                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47448             cat >>confdefs.h <<\_ACEOF
47449 #define wxUSE_DATAOBJ 1
47450 _ACEOF
47451
47452         fi
47453     else
47454         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47455 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47456
47457         wxUSE_CLIPBOARD=no
47458         wxUSE_DRAG_AND_DROP=no
47459         wxUSE_DATAOBJ=no
47460         wxUSE_OLE=no
47461     fi
47462 fi
47463
47464 if test "$wxUSE_IPC" = "yes"; then
47465     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47466         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47467 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47468         wxUSE_IPC=no
47469     fi
47470
47471     if test "$wxUSE_IPC" = "yes"; then
47472         cat >>confdefs.h <<\_ACEOF
47473 #define wxUSE_IPC 1
47474 _ACEOF
47475
47476         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47477     fi
47478 fi
47479
47480 if test "$wxUSE_DATAOBJ" = "yes"; then
47481     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47482         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47483 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47484         wxUSE_DATAOBJ=no
47485     else
47486         cat >>confdefs.h <<\_ACEOF
47487 #define wxUSE_DATAOBJ 1
47488 _ACEOF
47489
47490     fi
47491 else
47492     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47493 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47494     wxUSE_CLIPBOARD=no
47495     wxUSE_DRAG_AND_DROP=no
47496 fi
47497
47498 if test "$wxUSE_CLIPBOARD" = "yes"; then
47499     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47500         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47501 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47502         wxUSE_CLIPBOARD=no
47503     fi
47504
47505     if test "$wxUSE_CLIPBOARD" = "yes"; then
47506         cat >>confdefs.h <<\_ACEOF
47507 #define wxUSE_CLIPBOARD 1
47508 _ACEOF
47509
47510     fi
47511 fi
47512
47513 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47514     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47515             "$wxUSE_DFB" = 1; then
47516         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47517 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47518         wxUSE_DRAG_AND_DROP=no
47519     fi
47520
47521     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47522         cat >>confdefs.h <<\_ACEOF
47523 #define wxUSE_DRAG_AND_DROP 1
47524 _ACEOF
47525
47526     fi
47527
47528 fi
47529
47530 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47531     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47532 fi
47533
47534 if test "$wxUSE_CLIPBOARD" = "yes"; then
47535     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
47536 fi
47537
47538 if test "$wxUSE_SPLINES" = "yes" ; then
47539   cat >>confdefs.h <<\_ACEOF
47540 #define wxUSE_SPLINES 1
47541 _ACEOF
47542
47543 fi
47544
47545 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47546   cat >>confdefs.h <<\_ACEOF
47547 #define wxUSE_MOUSEWHEEL 1
47548 _ACEOF
47549
47550 fi
47551
47552 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
47553     cat >>confdefs.h <<\_ACEOF
47554 #define wxUSE_UIACTIONSIMULATOR 1
47555 _ACEOF
47556
47557     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
47558 fi
47559
47560 if test "$wxUSE_DC_TRANSFORM_MATRIX" = "yes" ; then
47561     cat >>confdefs.h <<\_ACEOF
47562 #define wxUSE_DC_TRANSFORM_MATRIX 1
47563 _ACEOF
47564
47565 fi
47566
47567
47568 USES_CONTROLS=0
47569 if test "$wxUSE_CONTROLS" = "yes"; then
47570   USES_CONTROLS=1
47571 fi
47572
47573 if test "$wxUSE_MARKUP" = "yes"; then
47574   cat >>confdefs.h <<\_ACEOF
47575 #define wxUSE_MARKUP 1
47576 _ACEOF
47577
47578 fi
47579
47580 if test "$wxUSE_ACCEL" = "yes"; then
47581   cat >>confdefs.h <<\_ACEOF
47582 #define wxUSE_ACCEL 1
47583 _ACEOF
47584
47585   USES_CONTROLS=1
47586 fi
47587
47588 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47589   cat >>confdefs.h <<\_ACEOF
47590 #define wxUSE_ANIMATIONCTRL 1
47591 _ACEOF
47592
47593   USES_CONTROLS=1
47594   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47595 fi
47596
47597 if test "$wxUSE_BANNERWINDOW" = "yes"; then
47598   cat >>confdefs.h <<\_ACEOF
47599 #define wxUSE_BANNERWINDOW 1
47600 _ACEOF
47601
47602 fi
47603
47604 if test "$wxUSE_BUTTON" = "yes"; then
47605   cat >>confdefs.h <<\_ACEOF
47606 #define wxUSE_BUTTON 1
47607 _ACEOF
47608
47609   USES_CONTROLS=1
47610 fi
47611
47612 if test "$wxUSE_BMPBUTTON" = "yes"; then
47613   cat >>confdefs.h <<\_ACEOF
47614 #define wxUSE_BMPBUTTON 1
47615 _ACEOF
47616
47617   USES_CONTROLS=1
47618 fi
47619
47620 if test "$wxUSE_CALCTRL" = "yes"; then
47621   cat >>confdefs.h <<\_ACEOF
47622 #define wxUSE_CALENDARCTRL 1
47623 _ACEOF
47624
47625   USES_CONTROLS=1
47626   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47627 fi
47628
47629 if test "$wxUSE_CARET" = "yes"; then
47630   cat >>confdefs.h <<\_ACEOF
47631 #define wxUSE_CARET 1
47632 _ACEOF
47633
47634   USES_CONTROLS=1
47635   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47636 fi
47637
47638 if test "$wxUSE_COLLPANE" = "yes"; then
47639     cat >>confdefs.h <<\_ACEOF
47640 #define wxUSE_COLLPANE 1
47641 _ACEOF
47642
47643     USES_CONTROLS=1
47644     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47645 fi
47646
47647 if test "$wxUSE_COMBOBOX" = "yes"; then
47648   cat >>confdefs.h <<\_ACEOF
47649 #define wxUSE_COMBOBOX 1
47650 _ACEOF
47651
47652   USES_CONTROLS=1
47653 fi
47654
47655 if test "$wxUSE_COMBOCTRL" = "yes"; then
47656   cat >>confdefs.h <<\_ACEOF
47657 #define wxUSE_COMBOCTRL 1
47658 _ACEOF
47659
47660   USES_CONTROLS=1
47661 fi
47662
47663 if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then
47664   cat >>confdefs.h <<\_ACEOF
47665 #define wxUSE_COMMANDLINKBUTTON 1
47666 _ACEOF
47667
47668   USES_CONTROLS=1
47669 fi
47670
47671 if test "$wxUSE_CHOICE" = "yes"; then
47672   cat >>confdefs.h <<\_ACEOF
47673 #define wxUSE_CHOICE 1
47674 _ACEOF
47675
47676   USES_CONTROLS=1
47677 fi
47678
47679 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47680     cat >>confdefs.h <<\_ACEOF
47681 #define wxUSE_CHOICEBOOK 1
47682 _ACEOF
47683
47684     USES_CONTROLS=1
47685 fi
47686
47687 if test "$wxUSE_CHECKBOX" = "yes"; then
47688   cat >>confdefs.h <<\_ACEOF
47689 #define wxUSE_CHECKBOX 1
47690 _ACEOF
47691
47692   USES_CONTROLS=1
47693 fi
47694
47695 if test "$wxUSE_CHECKLST" = "yes"; then
47696   cat >>confdefs.h <<\_ACEOF
47697 #define wxUSE_CHECKLISTBOX 1
47698 _ACEOF
47699
47700   USES_CONTROLS=1
47701 fi
47702
47703 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47704   cat >>confdefs.h <<\_ACEOF
47705 #define wxUSE_COLOURPICKERCTRL 1
47706 _ACEOF
47707
47708   USES_CONTROLS=1
47709 fi
47710
47711 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47712   cat >>confdefs.h <<\_ACEOF
47713 #define wxUSE_DATEPICKCTRL 1
47714 _ACEOF
47715
47716   USES_CONTROLS=1
47717 fi
47718
47719 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47720   cat >>confdefs.h <<\_ACEOF
47721 #define wxUSE_DIRPICKERCTRL 1
47722 _ACEOF
47723
47724   USES_CONTROLS=1
47725 fi
47726
47727 if test "$wxUSE_FILECTRL" = "yes"; then
47728   cat >>confdefs.h <<\_ACEOF
47729 #define wxUSE_FILECTRL 1
47730 _ACEOF
47731
47732   USES_CONTROLS=1
47733 fi
47734
47735 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47736   cat >>confdefs.h <<\_ACEOF
47737 #define wxUSE_FILEPICKERCTRL 1
47738 _ACEOF
47739
47740   USES_CONTROLS=1
47741 fi
47742
47743 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47744   cat >>confdefs.h <<\_ACEOF
47745 #define wxUSE_FONTPICKERCTRL 1
47746 _ACEOF
47747
47748   USES_CONTROLS=1
47749 fi
47750
47751 if test "$wxUSE_DISPLAY" = "yes"; then
47752     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47753         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47754 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47755         wxUSE_DISPLAY=no
47756     else
47757         cat >>confdefs.h <<\_ACEOF
47758 #define wxUSE_DISPLAY 1
47759 _ACEOF
47760
47761         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
47762     fi
47763 fi
47764
47765 if test "$wxUSE_DETECT_SM" = "yes"; then
47766     cat >>confdefs.h <<\_ACEOF
47767 #define wxUSE_DETECT_SM 1
47768 _ACEOF
47769
47770 fi
47771
47772 if test "$wxUSE_GAUGE" = "yes"; then
47773   cat >>confdefs.h <<\_ACEOF
47774 #define wxUSE_GAUGE 1
47775 _ACEOF
47776
47777   USES_CONTROLS=1
47778 fi
47779
47780 if test "$wxUSE_GRID" = "yes"; then
47781   cat >>confdefs.h <<\_ACEOF
47782 #define wxUSE_GRID 1
47783 _ACEOF
47784
47785   USES_CONTROLS=1
47786   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47787 fi
47788
47789 if test "$wxUSE_HEADERCTRL" = "yes"; then
47790   cat >>confdefs.h <<\_ACEOF
47791 #define wxUSE_HEADERCTRL 1
47792 _ACEOF
47793
47794   USES_CONTROLS=1
47795 fi
47796
47797 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47798   cat >>confdefs.h <<\_ACEOF
47799 #define wxUSE_HYPERLINKCTRL 1
47800 _ACEOF
47801
47802   USES_CONTROLS=1
47803 fi
47804
47805 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47806   cat >>confdefs.h <<\_ACEOF
47807 #define wxUSE_BITMAPCOMBOBOX 1
47808 _ACEOF
47809
47810   USES_CONTROLS=1
47811 fi
47812
47813 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47814   cat >>confdefs.h <<\_ACEOF
47815 #define wxUSE_DATAVIEWCTRL 1
47816 _ACEOF
47817
47818   USES_CONTROLS=1
47819   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47820 fi
47821
47822 if test "$wxUSE_IMAGLIST" = "yes"; then
47823     cat >>confdefs.h <<\_ACEOF
47824 #define wxUSE_IMAGLIST 1
47825 _ACEOF
47826
47827 fi
47828
47829 if test "$wxUSE_INFOBAR" = "yes"; then
47830     cat >>confdefs.h <<\_ACEOF
47831 #define wxUSE_INFOBAR 1
47832 _ACEOF
47833
47834 fi
47835
47836 if test "$wxUSE_LISTBOOK" = "yes"; then
47837     cat >>confdefs.h <<\_ACEOF
47838 #define wxUSE_LISTBOOK 1
47839 _ACEOF
47840
47841     USES_CONTROLS=1
47842 fi
47843
47844 if test "$wxUSE_LISTBOX" = "yes"; then
47845     cat >>confdefs.h <<\_ACEOF
47846 #define wxUSE_LISTBOX 1
47847 _ACEOF
47848
47849     USES_CONTROLS=1
47850 fi
47851
47852 if test "$wxUSE_LISTCTRL" = "yes"; then
47853     if test "$wxUSE_IMAGLIST" = "yes"; then
47854         cat >>confdefs.h <<\_ACEOF
47855 #define wxUSE_LISTCTRL 1
47856 _ACEOF
47857
47858         USES_CONTROLS=1
47859         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47860     else
47861         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47862 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47863     fi
47864 fi
47865
47866 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47867     cat >>confdefs.h <<\_ACEOF
47868 #define wxUSE_EDITABLELISTBOX 1
47869 _ACEOF
47870
47871     USES_CONTROLS=1
47872 fi
47873
47874 if test "$wxUSE_NOTEBOOK" = "yes"; then
47875     cat >>confdefs.h <<\_ACEOF
47876 #define wxUSE_NOTEBOOK 1
47877 _ACEOF
47878
47879     USES_CONTROLS=1
47880     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
47881 fi
47882
47883 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
47884     cat >>confdefs.h <<\_ACEOF
47885 #define wxUSE_NOTIFICATION_MESSAGE 1
47886 _ACEOF
47887
47888 fi
47889
47890 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
47891   cat >>confdefs.h <<\_ACEOF
47892 #define wxUSE_ODCOMBOBOX 1
47893 _ACEOF
47894
47895   USES_CONTROLS=1
47896   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
47897 fi
47898
47899 if test "$wxUSE_RADIOBOX" = "yes"; then
47900     cat >>confdefs.h <<\_ACEOF
47901 #define wxUSE_RADIOBOX 1
47902 _ACEOF
47903
47904     USES_CONTROLS=1
47905 fi
47906
47907 if test "$wxUSE_RADIOBTN" = "yes"; then
47908     cat >>confdefs.h <<\_ACEOF
47909 #define wxUSE_RADIOBTN 1
47910 _ACEOF
47911
47912     USES_CONTROLS=1
47913 fi
47914
47915 if test "$wxUSE_REARRANGECTRL" = "yes"; then
47916     cat >>confdefs.h <<\_ACEOF
47917 #define wxUSE_REARRANGECTRL 1
47918 _ACEOF
47919
47920 fi
47921
47922 if test "$wxUSE_RICHMSGDLG" = "yes"; then
47923     cat >>confdefs.h <<\_ACEOF
47924 #define wxUSE_RICHMSGDLG 1
47925 _ACEOF
47926
47927 fi
47928
47929 if test "$wxUSE_RICHTOOLTIP" = "yes"; then
47930     cat >>confdefs.h <<\_ACEOF
47931 #define wxUSE_RICHTOOLTIP 1
47932 _ACEOF
47933
47934 fi
47935
47936 if test "$wxUSE_SASH" = "yes"; then
47937     cat >>confdefs.h <<\_ACEOF
47938 #define wxUSE_SASH 1
47939 _ACEOF
47940
47941     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
47942 fi
47943
47944 if test "$wxUSE_SCROLLBAR" = "yes"; then
47945     cat >>confdefs.h <<\_ACEOF
47946 #define wxUSE_SCROLLBAR 1
47947 _ACEOF
47948
47949     USES_CONTROLS=1
47950     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
47951 fi
47952
47953 if test "$wxUSE_SEARCHCTRL" = "yes"; then
47954     cat >>confdefs.h <<\_ACEOF
47955 #define wxUSE_SEARCHCTRL 1
47956 _ACEOF
47957
47958     USES_CONTROLS=1
47959 fi
47960
47961 if test "$wxUSE_SLIDER" = "yes"; then
47962     cat >>confdefs.h <<\_ACEOF
47963 #define wxUSE_SLIDER 1
47964 _ACEOF
47965
47966     USES_CONTROLS=1
47967 fi
47968
47969 if test "$wxUSE_SPINBTN" = "yes"; then
47970     cat >>confdefs.h <<\_ACEOF
47971 #define wxUSE_SPINBTN 1
47972 _ACEOF
47973
47974     USES_CONTROLS=1
47975 fi
47976
47977 if test "$wxUSE_SPINCTRL" = "yes"; then
47978     cat >>confdefs.h <<\_ACEOF
47979 #define wxUSE_SPINCTRL 1
47980 _ACEOF
47981
47982     USES_CONTROLS=1
47983 fi
47984
47985 if test "$wxUSE_SPLITTER" = "yes"; then
47986     cat >>confdefs.h <<\_ACEOF
47987 #define wxUSE_SPLITTER 1
47988 _ACEOF
47989
47990     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
47991 fi
47992
47993 if test "$wxUSE_STATBMP" = "yes"; then
47994     cat >>confdefs.h <<\_ACEOF
47995 #define wxUSE_STATBMP 1
47996 _ACEOF
47997
47998     USES_CONTROLS=1
47999 fi
48000
48001 if test "$wxUSE_STATBOX" = "yes"; then
48002     cat >>confdefs.h <<\_ACEOF
48003 #define wxUSE_STATBOX 1
48004 _ACEOF
48005
48006     USES_CONTROLS=1
48007 fi
48008
48009 if test "$wxUSE_STATTEXT" = "yes"; then
48010     cat >>confdefs.h <<\_ACEOF
48011 #define wxUSE_STATTEXT 1
48012 _ACEOF
48013
48014     USES_CONTROLS=1
48015 fi
48016
48017 if test "$wxUSE_STATLINE" = "yes"; then
48018     cat >>confdefs.h <<\_ACEOF
48019 #define wxUSE_STATLINE 1
48020 _ACEOF
48021
48022     USES_CONTROLS=1
48023 fi
48024
48025 if test "$wxUSE_STATUSBAR" = "yes"; then
48026         cat >>confdefs.h <<\_ACEOF
48027 #define wxUSE_NATIVE_STATUSBAR 1
48028 _ACEOF
48029
48030     cat >>confdefs.h <<\_ACEOF
48031 #define wxUSE_STATUSBAR 1
48032 _ACEOF
48033
48034     USES_CONTROLS=1
48035
48036     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
48037 fi
48038
48039 if test "$wxUSE_TEXTCTRL" = "yes"; then
48040     cat >>confdefs.h <<\_ACEOF
48041 #define wxUSE_TEXTCTRL 1
48042 _ACEOF
48043
48044     USES_CONTROLS=1
48045     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
48046
48047             cat >>confdefs.h <<\_ACEOF
48048 #define wxUSE_RICHEDIT 1
48049 _ACEOF
48050
48051     cat >>confdefs.h <<\_ACEOF
48052 #define wxUSE_RICHEDIT2 1
48053 _ACEOF
48054
48055 fi
48056
48057 if test "$wxUSE_TIMEPICKCTRL" = "yes"; then
48058   cat >>confdefs.h <<\_ACEOF
48059 #define wxUSE_TIMEPICKCTRL 1
48060 _ACEOF
48061
48062   USES_CONTROLS=1
48063 fi
48064
48065 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48066     if test "$wxUSE_OLD_COCOA" = 1 ; then
48067         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48068 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48069         wxUSE_TOGGLEBTN=no
48070     fi
48071
48072     if test "$wxUSE_TOGGLEBTN" = "yes"; then
48073         cat >>confdefs.h <<\_ACEOF
48074 #define wxUSE_TOGGLEBTN 1
48075 _ACEOF
48076
48077         USES_CONTROLS=1
48078     fi
48079 fi
48080
48081 if test "$wxUSE_TOOLBAR" = "yes"; then
48082     cat >>confdefs.h <<\_ACEOF
48083 #define wxUSE_TOOLBAR 1
48084 _ACEOF
48085
48086     USES_CONTROLS=1
48087
48088     if test "$wxUSE_UNIVERSAL" = "yes"; then
48089         wxUSE_TOOLBAR_NATIVE="no"
48090     else
48091         wxUSE_TOOLBAR_NATIVE="yes"
48092         cat >>confdefs.h <<\_ACEOF
48093 #define wxUSE_TOOLBAR_NATIVE 1
48094 _ACEOF
48095
48096     fi
48097
48098     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48099 fi
48100
48101 if test "$wxUSE_TOOLTIPS" = "yes"; then
48102     if test "$wxUSE_MOTIF" = 1; then
48103         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48104 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48105     else
48106         if test "$wxUSE_UNIVERSAL" = "yes"; then
48107             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48108 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48109         else
48110             cat >>confdefs.h <<\_ACEOF
48111 #define wxUSE_TOOLTIPS 1
48112 _ACEOF
48113
48114         fi
48115     fi
48116 fi
48117
48118 if test "$wxUSE_TREEBOOK" = "yes"; then
48119     cat >>confdefs.h <<\_ACEOF
48120 #define wxUSE_TREEBOOK 1
48121 _ACEOF
48122
48123     USES_CONTROLS=1
48124 fi
48125
48126 if test "$wxUSE_TOOLBOOK" = "yes"; then
48127     cat >>confdefs.h <<\_ACEOF
48128 #define wxUSE_TOOLBOOK 1
48129 _ACEOF
48130
48131     USES_CONTROLS=1
48132 fi
48133
48134 if test "$wxUSE_TREECTRL" = "yes"; then
48135     if test "$wxUSE_IMAGLIST" = "yes"; then
48136         cat >>confdefs.h <<\_ACEOF
48137 #define wxUSE_TREECTRL 1
48138 _ACEOF
48139
48140         USES_CONTROLS=1
48141         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48142     else
48143         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48144 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48145     fi
48146 fi
48147
48148 if test "$wxUSE_TREELISTCTRL" = "yes"; then
48149     cat >>confdefs.h <<\_ACEOF
48150 #define wxUSE_TREELISTCTRL 1
48151 _ACEOF
48152
48153     USES_CONTROLS=1
48154 fi
48155
48156 if test "$wxUSE_POPUPWIN" = "yes"; then
48157     if test "$wxUSE_OLD_COCOA" = 1 ; then
48158         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48159 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48160     else
48161         if test "$wxUSE_PM" = 1; then
48162             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48163 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48164         else
48165             cat >>confdefs.h <<\_ACEOF
48166 #define wxUSE_POPUPWIN 1
48167 _ACEOF
48168
48169             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48170
48171             USES_CONTROLS=1
48172         fi
48173     fi
48174 fi
48175
48176 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48177     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48178         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48179 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48180     else
48181         cat >>confdefs.h <<\_ACEOF
48182 #define wxUSE_DIALUP_MANAGER 1
48183 _ACEOF
48184
48185         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48186     fi
48187 fi
48188
48189 if test "$wxUSE_TIPWINDOW" = "yes"; then
48190     if test "$wxUSE_PM" = 1; then
48191         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48192 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48193     else
48194         cat >>confdefs.h <<\_ACEOF
48195 #define wxUSE_TIPWINDOW 1
48196 _ACEOF
48197
48198     fi
48199 fi
48200
48201 if test "$USES_CONTROLS" = 1; then
48202     cat >>confdefs.h <<\_ACEOF
48203 #define wxUSE_CONTROLS 1
48204 _ACEOF
48205
48206 fi
48207
48208
48209 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48210     cat >>confdefs.h <<\_ACEOF
48211 #define wxUSE_ACCESSIBILITY 1
48212 _ACEOF
48213
48214     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48215 fi
48216
48217 if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then
48218     cat >>confdefs.h <<\_ACEOF
48219 #define wxUSE_ARTPROVIDER_STD 1
48220 _ACEOF
48221
48222 fi
48223
48224 if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then
48225             if test "$wxUSE_GTK" != 1; then
48226                 if test "$wxUSE_LIBPNG" != no -a \
48227                 "$wxUSE_IMAGE" = yes -a \
48228                 "$wxUSE_STREAMS" = yes; then
48229             wxUSE_ARTPROVIDER_TANGO="yes"
48230         fi
48231     fi
48232 fi
48233
48234 if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then
48235     cat >>confdefs.h <<\_ACEOF
48236 #define wxUSE_ARTPROVIDER_TANGO 1
48237 _ACEOF
48238
48239 fi
48240
48241 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48242     cat >>confdefs.h <<\_ACEOF
48243 #define wxUSE_DRAGIMAGE 1
48244 _ACEOF
48245
48246     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48247 fi
48248
48249 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48250     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48251         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48252 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48253     else
48254         cat >>confdefs.h <<\_ACEOF
48255 #define wxUSE_EXCEPTIONS 1
48256 _ACEOF
48257
48258         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48259     fi
48260 fi
48261
48262 USE_HTML=0
48263 if test "$wxUSE_HTML" = "yes"; then
48264     cat >>confdefs.h <<\_ACEOF
48265 #define wxUSE_HTML 1
48266 _ACEOF
48267
48268     USE_HTML=1
48269     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48270 fi
48271 if test "$wxUSE_WEBKIT" = "yes"; then
48272     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48273         old_CPPFLAGS="$CPPFLAGS"
48274         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48275         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48276 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48277 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48278   echo $ECHO_N "(cached) $ECHO_C" >&6
48279 else
48280   cat >conftest.$ac_ext <<_ACEOF
48281 /* confdefs.h.  */
48282 _ACEOF
48283 cat confdefs.h >>conftest.$ac_ext
48284 cat >>conftest.$ac_ext <<_ACEOF
48285 /* end confdefs.h.  */
48286
48287                            #include <Carbon/Carbon.h>
48288                            #include <WebKit/WebKit.h>
48289
48290
48291 #include <WebKit/HIWebView.h>
48292 _ACEOF
48293 rm -f conftest.$ac_objext
48294 if { (ac_try="$ac_compile"
48295 case "(($ac_try" in
48296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48297   *) ac_try_echo=$ac_try;;
48298 esac
48299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48300   (eval "$ac_compile") 2>conftest.er1
48301   ac_status=$?
48302   grep -v '^ *+' conftest.er1 >conftest.err
48303   rm -f conftest.er1
48304   cat conftest.err >&5
48305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48306   (exit $ac_status); } && {
48307          test -z "$ac_c_werror_flag" ||
48308          test ! -s conftest.err
48309        } && test -s conftest.$ac_objext; then
48310   ac_cv_header_WebKit_HIWebView_h=yes
48311 else
48312   echo "$as_me: failed program was:" >&5
48313 sed 's/^/| /' conftest.$ac_ext >&5
48314
48315         ac_cv_header_WebKit_HIWebView_h=no
48316 fi
48317
48318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48319 fi
48320 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48321 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48322 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48323
48324                            cat >>confdefs.h <<\_ACEOF
48325 #define wxUSE_WEBKIT 1
48326 _ACEOF
48327
48328                            WEBKIT_LINK="-framework WebKit"
48329
48330 else
48331
48332                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48333 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48334                            wxUSE_WEBKIT=no
48335
48336 fi
48337
48338
48339         CPPFLAGS="$old_CPPFLAGS"
48340     elif test "$wxUSE_OLD_COCOA" = 1; then
48341         cat >>confdefs.h <<\_ACEOF
48342 #define wxUSE_WEBKIT 1
48343 _ACEOF
48344
48345     else
48346         wxUSE_WEBKIT=no
48347     fi
48348     if test "$wxUSE_WEBKIT" = "yes"; then
48349         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48350     fi
48351 fi
48352
48353 USE_XRC=0
48354 if test "$wxUSE_XRC" = "yes"; then
48355     if test "$wxUSE_XML" != "yes"; then
48356         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48357 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48358         wxUSE_XRC=no
48359     else
48360         cat >>confdefs.h <<\_ACEOF
48361 #define wxUSE_XRC 1
48362 _ACEOF
48363
48364         USE_XRC=1
48365         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48366     fi
48367 fi
48368
48369 USE_AUI=0
48370 if test "$wxUSE_AUI" = "yes"; then
48371    cat >>confdefs.h <<\_ACEOF
48372 #define wxUSE_AUI 1
48373 _ACEOF
48374
48375    USE_AUI=1
48376    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48377 fi
48378
48379 USE_PROPGRID=0
48380 if test "$wxUSE_PROPGRID" = "yes"; then
48381    cat >>confdefs.h <<\_ACEOF
48382 #define wxUSE_PROPGRID 1
48383 _ACEOF
48384
48385    USE_PROPGRID=1
48386    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
48387 fi
48388
48389 USE_RIBBON=0
48390 if test "$wxUSE_RIBBON" = "yes"; then
48391    cat >>confdefs.h <<\_ACEOF
48392 #define wxUSE_RIBBON 1
48393 _ACEOF
48394
48395    USE_RIBBON=1
48396    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
48397 fi
48398
48399 USE_STC=0
48400 if test "$wxUSE_STC" = "yes"; then
48401    cat >>confdefs.h <<\_ACEOF
48402 #define wxUSE_STC 1
48403 _ACEOF
48404
48405    USE_STC=1
48406    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48407
48408       # Extract the first word of "python", so it can be a program name with args.
48409 set dummy python; 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_path_PYTHON+set}" = set; then
48413   echo $ECHO_N "(cached) $ECHO_C" >&6
48414 else
48415   case $PYTHON in
48416   [\\/]* | ?:[\\/]*)
48417   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
48418   ;;
48419   *)
48420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48421 for as_dir in $PATH
48422 do
48423   IFS=$as_save_IFS
48424   test -z "$as_dir" && as_dir=.
48425   for ac_exec_ext in '' $ac_executable_extensions; do
48426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48427     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
48428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48429     break 2
48430   fi
48431 done
48432 done
48433 IFS=$as_save_IFS
48434
48435   ;;
48436 esac
48437 fi
48438 PYTHON=$ac_cv_path_PYTHON
48439 if test -n "$PYTHON"; then
48440   { echo "$as_me:$LINENO: result: $PYTHON" >&5
48441 echo "${ECHO_T}$PYTHON" >&6; }
48442 else
48443   { echo "$as_me:$LINENO: result: no" >&5
48444 echo "${ECHO_T}no" >&6; }
48445 fi
48446
48447
48448    if test "x$PYTHON" = "x"; then
48449      COND_PYTHON="#"
48450    fi
48451
48452 fi
48453
48454 if test "$wxUSE_MENUS" = "yes"; then
48455     cat >>confdefs.h <<\_ACEOF
48456 #define wxUSE_MENUS 1
48457 _ACEOF
48458
48459     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48460 fi
48461
48462 if test "$wxUSE_MIMETYPE" = "yes"; then
48463     cat >>confdefs.h <<\_ACEOF
48464 #define wxUSE_MIMETYPE 1
48465 _ACEOF
48466
48467 fi
48468
48469 if test "$wxUSE_MINIFRAME" = "yes"; then
48470     cat >>confdefs.h <<\_ACEOF
48471 #define wxUSE_MINIFRAME 1
48472 _ACEOF
48473
48474 fi
48475
48476 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48477     cat >>confdefs.h <<\_ACEOF
48478 #define wxUSE_SYSTEM_OPTIONS 1
48479 _ACEOF
48480
48481 fi
48482
48483 if test "$wxUSE_TASKBARICON" = "yes"; then
48484     cat >>confdefs.h <<\_ACEOF
48485 #define wxUSE_TASKBARICON 1
48486 _ACEOF
48487
48488     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48489 fi
48490
48491
48492 if test "$wxUSE_VALIDATORS" = "yes"; then
48493     cat >>confdefs.h <<\_ACEOF
48494 #define wxUSE_VALIDATORS 1
48495 _ACEOF
48496
48497     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48498 fi
48499
48500 if test "$wxUSE_PALETTE" = "yes" ; then
48501     if test "$wxUSE_DFB" = 1; then
48502         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48503 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48504         wxUSE_PALETTE=no
48505     else
48506         cat >>confdefs.h <<\_ACEOF
48507 #define wxUSE_PALETTE 1
48508 _ACEOF
48509
48510     fi
48511 fi
48512
48513 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48514     LIBS=" -lunicows $LIBS"
48515 fi
48516
48517 USE_RICHTEXT=0
48518 if test "$wxUSE_RICHTEXT" = "yes"; then
48519     cat >>confdefs.h <<\_ACEOF
48520 #define wxUSE_RICHTEXT 1
48521 _ACEOF
48522
48523     USE_RICHTEXT=1
48524     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48525 fi
48526
48527 if test "$wxUSE_WEBVIEW" = "yes"; then
48528     USE_WEBVIEW_WEBKIT=0
48529     if test "$wxUSE_WEBVIEW_WEBKIT" = "yes"; then
48530         if test "$wxUSE_GTK" = 1; then
48531             { echo "$as_me:$LINENO: checking for webkitgtk libraries" >&5
48532 echo $ECHO_N "checking for webkitgtk libraries... $ECHO_C" >&6; }
48533
48534   ac_find_libraries=
48535   for ac_dir in $SEARCH_LIB
48536   do
48537     for ac_extension in a so sl dylib dll.a; do
48538       if test -f "$ac_dir/libwebkitgtk-1.0.$ac_extension"; then
48539         ac_find_libraries=$ac_dir
48540         break 2
48541       fi
48542     done
48543   done
48544
48545             if test "$ac_find_libraries" != "" ; then
48546
48547     if test "$ac_find_libraries" = "default location"; then
48548     ac_path_to_link=""
48549   else
48550     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
48551     result=$?
48552     if test $result = 0; then
48553       ac_path_to_link=""
48554     else
48555       ac_path_to_link=" -L$ac_find_libraries"
48556     fi
48557   fi
48558
48559                 if test "$ac_path_to_link" != " -L/usr/lib" ; then
48560                     LDFLAGS="$LDFLAGS $ac_path_to_link"
48561                 fi
48562                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwebkitgtk-1.0"
48563                 { echo "$as_me:$LINENO: result: yes" >&5
48564 echo "${ECHO_T}yes" >&6; }
48565
48566                 { echo "$as_me:$LINENO: checking for webkitgtk headers" >&5
48567 echo $ECHO_N "checking for webkitgtk headers... $ECHO_C" >&6; }
48568
48569 ac_find_includes=
48570 for ac_dir in $SEARCH_INCLUDE /usr/include/webkit-1.0 /usr/include
48571   do
48572     if test -f "$ac_dir/webkit/webkit.h"; then
48573       ac_find_includes=$ac_dir
48574       break
48575     fi
48576   done
48577
48578                 if test "$ac_find_includes" != "" ; then
48579                    { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
48580 echo "${ECHO_T}found in $ac_find_includes" >&6; }
48581
48582     if test "x$ac_find_includes" = "x/usr/include"; then
48583     ac_path_to_include=""
48584   else
48585     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
48586     result=$?
48587     if test $result = 0; then
48588       ac_path_to_include=""
48589     else
48590       ac_path_to_include=" -I$ac_find_includes"
48591     fi
48592   fi
48593
48594                    CPPFLAGS="$ac_path_to_include $CPPFLAGS"
48595
48596                                       { echo "$as_me:$LINENO: checking for libsoup headers" >&5
48597 echo $ECHO_N "checking for libsoup headers... $ECHO_C" >&6; }
48598
48599 ac_find_includes=
48600 for ac_dir in $SEARCH_INCLUDE /usr/include/libsoup-2.4 /usr/include
48601   do
48602     if test -f "$ac_dir/libsoup/soup.h"; then
48603       ac_find_includes=$ac_dir
48604       break
48605     fi
48606   done
48607
48608                    if test "$ac_find_includes" != "" ; then
48609                        { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
48610 echo "${ECHO_T}found in $ac_find_includes" >&6; }
48611
48612     if test "x$ac_find_includes" = "x/usr/include"; then
48613     ac_path_to_include=""
48614   else
48615     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
48616     result=$?
48617     if test $result = 0; then
48618       ac_path_to_include=""
48619     else
48620       ac_path_to_include=" -I$ac_find_includes"
48621     fi
48622   fi
48623
48624                        CPPFLAGS="$ac_path_to_include $CPPFLAGS"
48625
48626                        USE_WEBVIEW_WEBKIT=1
48627                    else
48628                        { echo "$as_me:$LINENO: result: not found" >&5
48629 echo "${ECHO_T}not found" >&6; }
48630                        { echo "$as_me:$LINENO: WARNING: libsoup headers not found; disabling WebKit backend" >&5
48631 echo "$as_me: WARNING: libsoup headers not found; disabling WebKit backend" >&2;}
48632                    fi
48633                 else
48634                    { echo "$as_me:$LINENO: result: not found" >&5
48635 echo "${ECHO_T}not found" >&6; }
48636                    { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling WebKit backend" >&5
48637 echo "$as_me: WARNING: WebKit headers not found; disabling WebKit backend" >&2;}
48638                 fi
48639             else
48640                 { echo "$as_me:$LINENO: result: no" >&5
48641 echo "${ECHO_T}no" >&6; }
48642                 { echo "$as_me:$LINENO: WARNING: WebKit libraries not found; disabling WebKit backend" >&5
48643 echo "$as_me: WARNING: WebKit libraries not found; disabling WebKit backend" >&2;}
48644             fi
48645         elif test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48646                                     old_CPPFLAGS="$CPPFLAGS"
48647             CPPFLAGS="-x objective-c++ $CPPFLAGS"
48648             { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48649 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48650 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48651   echo $ECHO_N "(cached) $ECHO_C" >&6
48652 else
48653   cat >conftest.$ac_ext <<_ACEOF
48654 /* confdefs.h.  */
48655 _ACEOF
48656 cat confdefs.h >>conftest.$ac_ext
48657 cat >>conftest.$ac_ext <<_ACEOF
48658 /* end confdefs.h.  */
48659
48660                                 #include <Carbon/Carbon.h>
48661                                 #include <WebKit/WebKit.h>
48662
48663
48664 #include <WebKit/HIWebView.h>
48665 _ACEOF
48666 rm -f conftest.$ac_objext
48667 if { (ac_try="$ac_compile"
48668 case "(($ac_try" in
48669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48670   *) ac_try_echo=$ac_try;;
48671 esac
48672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48673   (eval "$ac_compile") 2>conftest.er1
48674   ac_status=$?
48675   grep -v '^ *+' conftest.er1 >conftest.err
48676   rm -f conftest.er1
48677   cat conftest.err >&5
48678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48679   (exit $ac_status); } && {
48680          test -z "$ac_c_werror_flag" ||
48681          test ! -s conftest.err
48682        } && test -s conftest.$ac_objext; then
48683   ac_cv_header_WebKit_HIWebView_h=yes
48684 else
48685   echo "$as_me: failed program was:" >&5
48686 sed 's/^/| /' conftest.$ac_ext >&5
48687
48688         ac_cv_header_WebKit_HIWebView_h=no
48689 fi
48690
48691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48692 fi
48693 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48694 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48695 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48696
48697                                 USE_WEBVIEW_WEBKIT=1
48698                                 WEBKIT_LINK="-framework WebKit"
48699
48700 else
48701
48702                                 { echo "$as_me:$LINENO: WARNING: WebKit headers not found" >&5
48703 echo "$as_me: WARNING: WebKit headers not found" >&2;}
48704
48705 fi
48706
48707
48708             CPPFLAGS="$old_CPPFLAGS"
48709         fi
48710     fi
48711
48712     wxUSE_WEBVIEW="no"
48713     if test "$wxUSE_GTK" = 1 -o "$wxUSE_MAC" = 1; then
48714         if test "$USE_WEBVIEW_WEBKIT" = 1; then
48715             wxUSE_WEBVIEW="yes"
48716             cat >>confdefs.h <<\_ACEOF
48717 #define wxUSE_WEBVIEW_WEBKIT 1
48718 _ACEOF
48719
48720         else
48721             { echo "$as_me:$LINENO: WARNING: WebKit not available, disabling wxWebView" >&5
48722 echo "$as_me: WARNING: WebKit not available, disabling wxWebView" >&2;}
48723         fi
48724     elif test "$wxUSE_MSW" = 1; then
48725         if test "wxUSE_WEBVIEW_IE" = "yes"; then
48726                                     wxUSE_WEBVIEW="yes"
48727             cat >>confdefs.h <<\_ACEOF
48728 #define wxUSE_WEBVIEW_IE 1
48729 _ACEOF
48730
48731         fi
48732     fi
48733 fi
48734
48735 if test "$wxUSE_WEBVIEW" = "yes"; then
48736     USE_WEBVIEW=1
48737     cat >>confdefs.h <<\_ACEOF
48738 #define wxUSE_WEBVIEW 1
48739 _ACEOF
48740
48741     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS webview"
48742 else
48743     USE_WEBVIEW=0
48744 fi
48745
48746
48747 if test "$wxUSE_IMAGE" = "yes" ; then
48748     cat >>confdefs.h <<\_ACEOF
48749 #define wxUSE_IMAGE 1
48750 _ACEOF
48751
48752
48753     if test "$wxUSE_GIF" = "yes" ; then
48754       cat >>confdefs.h <<\_ACEOF
48755 #define wxUSE_GIF 1
48756 _ACEOF
48757
48758     fi
48759
48760     if test "$wxUSE_PCX" = "yes" ; then
48761       cat >>confdefs.h <<\_ACEOF
48762 #define wxUSE_PCX 1
48763 _ACEOF
48764
48765     fi
48766
48767     if test "$wxUSE_TGA" = "yes" ; then
48768       cat >>confdefs.h <<\_ACEOF
48769 #define wxUSE_TGA 1
48770 _ACEOF
48771
48772     fi
48773
48774     if test "$wxUSE_IFF" = "yes" ; then
48775       cat >>confdefs.h <<\_ACEOF
48776 #define wxUSE_IFF 1
48777 _ACEOF
48778
48779     fi
48780
48781     if test "$wxUSE_PNM" = "yes" ; then
48782       cat >>confdefs.h <<\_ACEOF
48783 #define wxUSE_PNM 1
48784 _ACEOF
48785
48786     fi
48787
48788     if test "$wxUSE_XPM" = "yes" ; then
48789       cat >>confdefs.h <<\_ACEOF
48790 #define wxUSE_XPM 1
48791 _ACEOF
48792
48793     fi
48794
48795     if test "$wxUSE_ICO_CUR" = "yes" ; then
48796       cat >>confdefs.h <<\_ACEOF
48797 #define wxUSE_ICO_CUR 1
48798 _ACEOF
48799
48800     fi
48801 fi
48802
48803
48804 if test "$wxUSE_ABOUTDLG" = "yes"; then
48805     cat >>confdefs.h <<\_ACEOF
48806 #define wxUSE_ABOUTDLG 1
48807 _ACEOF
48808
48809 fi
48810
48811 if test "$wxUSE_CHOICEDLG" = "yes"; then
48812     cat >>confdefs.h <<\_ACEOF
48813 #define wxUSE_CHOICEDLG 1
48814 _ACEOF
48815
48816 fi
48817
48818 if test "$wxUSE_COLOURDLG" = "yes"; then
48819     cat >>confdefs.h <<\_ACEOF
48820 #define wxUSE_COLOURDLG 1
48821 _ACEOF
48822
48823 fi
48824
48825 if test "$wxUSE_FILEDLG" = "yes"; then
48826     cat >>confdefs.h <<\_ACEOF
48827 #define wxUSE_FILEDLG 1
48828 _ACEOF
48829
48830 fi
48831
48832 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48833     cat >>confdefs.h <<\_ACEOF
48834 #define wxUSE_FINDREPLDLG 1
48835 _ACEOF
48836
48837 fi
48838
48839 if test "$wxUSE_FONTDLG" = "yes"; then
48840     cat >>confdefs.h <<\_ACEOF
48841 #define wxUSE_FONTDLG 1
48842 _ACEOF
48843
48844 fi
48845
48846 if test "$wxUSE_DIRDLG" = "yes"; then
48847     if test "$wxUSE_TREECTRL" != "yes"; then
48848         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48849 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48850     else
48851         cat >>confdefs.h <<\_ACEOF
48852 #define wxUSE_DIRDLG 1
48853 _ACEOF
48854
48855     fi
48856 fi
48857
48858 if test "$wxUSE_MSGDLG" = "yes"; then
48859     cat >>confdefs.h <<\_ACEOF
48860 #define wxUSE_MSGDLG 1
48861 _ACEOF
48862
48863 fi
48864
48865 if test "$wxUSE_NUMBERDLG" = "yes"; then
48866     cat >>confdefs.h <<\_ACEOF
48867 #define wxUSE_NUMBERDLG 1
48868 _ACEOF
48869
48870 fi
48871
48872 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48873     cat >>confdefs.h <<\_ACEOF
48874 #define wxUSE_PROGRESSDLG 1
48875 _ACEOF
48876
48877 fi
48878
48879 if test "$wxUSE_SPLASH" = "yes"; then
48880     cat >>confdefs.h <<\_ACEOF
48881 #define wxUSE_SPLASH 1
48882 _ACEOF
48883
48884     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48885 fi
48886
48887 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48888     cat >>confdefs.h <<\_ACEOF
48889 #define wxUSE_STARTUP_TIPS 1
48890 _ACEOF
48891
48892 fi
48893
48894 if test "$wxUSE_TEXTDLG" = "yes"; then
48895     cat >>confdefs.h <<\_ACEOF
48896 #define wxUSE_TEXTDLG 1
48897 _ACEOF
48898
48899 fi
48900
48901 if test "$wxUSE_WIZARDDLG" = "yes"; then
48902     cat >>confdefs.h <<\_ACEOF
48903 #define wxUSE_WIZARDDLG 1
48904 _ACEOF
48905
48906     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48907 fi
48908
48909
48910 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
48911     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
48912         cat >>confdefs.h <<\_ACEOF
48913 #define wxUSE_OWNER_DRAWN 1
48914 _ACEOF
48915
48916     fi
48917 fi
48918
48919
48920 if test "$wxUSE_MSW" = 1 ; then
48921
48922     if test "$wxUSE_DC_CACHEING" = "yes"; then
48923         cat >>confdefs.h <<\_ACEOF
48924 #define wxUSE_DC_CACHEING 1
48925 _ACEOF
48926
48927     fi
48928
48929     if test "$wxUSE_DIB" = "yes"; then
48930         cat >>confdefs.h <<\_ACEOF
48931 #define wxUSE_WXDIB 1
48932 _ACEOF
48933
48934     fi
48935
48936     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
48937         cat >>confdefs.h <<\_ACEOF
48938 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
48939 _ACEOF
48940
48941     fi
48942
48943     if test "$wxUSE_UXTHEME" = "yes"; then
48944         cat >>confdefs.h <<\_ACEOF
48945 #define wxUSE_UXTHEME 1
48946 _ACEOF
48947
48948     fi
48949
48950 fi
48951
48952 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
48953     cat >>confdefs.h <<\_ACEOF
48954 #define wxUSE_AUTOID_MANAGEMENT 1
48955 _ACEOF
48956
48957 fi
48958
48959 if test "$USE_WIN32" = 1 ; then
48960     if test "$wxUSE_INICONF" = "yes"; then
48961         cat >>confdefs.h <<\_ACEOF
48962 #define wxUSE_INICONF 1
48963 _ACEOF
48964
48965     fi
48966
48967     if test "$wxUSE_REGKEY" = "yes"; then
48968         cat >>confdefs.h <<\_ACEOF
48969 #define wxUSE_REGKEY 1
48970 _ACEOF
48971
48972     fi
48973 fi
48974
48975
48976 if test "$wxUSE_MAC" = 1; then
48977     wxUSE_GRAPHICS_CONTEXT="yes"
48978 fi
48979
48980 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48981     wx_has_graphics=0
48982     if test "$wxUSE_MSW" = 1; then
48983         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
48984 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
48985 if test "${wx_cv_lib_gdiplus+set}" = set; then
48986   echo $ECHO_N "(cached) $ECHO_C" >&6
48987 else
48988
48989                                                 ac_ext=cpp
48990 ac_cpp='$CXXCPP $CPPFLAGS'
48991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48994
48995                 cat >conftest.$ac_ext <<_ACEOF
48996 /* confdefs.h.  */
48997 _ACEOF
48998 cat confdefs.h >>conftest.$ac_ext
48999 cat >>conftest.$ac_ext <<_ACEOF
49000 /* end confdefs.h.  */
49001 #include <windows.h>
49002                      #include <gdiplus.h>
49003 int
49004 main ()
49005 {
49006
49007                         using namespace Gdiplus;
49008
49009   ;
49010   return 0;
49011 }
49012 _ACEOF
49013 rm -f conftest.$ac_objext
49014 if { (ac_try="$ac_compile"
49015 case "(($ac_try" in
49016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49017   *) ac_try_echo=$ac_try;;
49018 esac
49019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49020   (eval "$ac_compile") 2>conftest.er1
49021   ac_status=$?
49022   grep -v '^ *+' conftest.er1 >conftest.err
49023   rm -f conftest.er1
49024   cat conftest.err >&5
49025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49026   (exit $ac_status); } && {
49027          test -z "$ac_cxx_werror_flag" ||
49028          test ! -s conftest.err
49029        } && test -s conftest.$ac_objext; then
49030   wx_cv_lib_gdiplus=yes
49031 else
49032   echo "$as_me: failed program was:" >&5
49033 sed 's/^/| /' conftest.$ac_ext >&5
49034
49035         wx_cv_lib_gdiplus=no
49036
49037 fi
49038
49039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49040                 ac_ext=c
49041 ac_cpp='$CPP $CPPFLAGS'
49042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49045
49046
49047
49048 fi
49049 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
49050 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
49051         if test "$wx_cv_lib_gdiplus" = "yes"; then
49052             wx_has_graphics=1
49053         fi
49054     elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
49055
49056 pkg_failed=no
49057 { echo "$as_me:$LINENO: checking for CAIRO" >&5
49058 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
49059
49060 if test -n "$PKG_CONFIG"; then
49061     if test -n "$CAIRO_CFLAGS"; then
49062         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
49063     else
49064         if test -n "$PKG_CONFIG" && \
49065     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49066   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49067   ac_status=$?
49068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49069   (exit $ac_status); }; then
49070   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
49071 else
49072   pkg_failed=yes
49073 fi
49074     fi
49075 else
49076         pkg_failed=untried
49077 fi
49078 if test -n "$PKG_CONFIG"; then
49079     if test -n "$CAIRO_LIBS"; then
49080         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
49081     else
49082         if test -n "$PKG_CONFIG" && \
49083     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49084   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49085   ac_status=$?
49086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49087   (exit $ac_status); }; then
49088   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
49089 else
49090   pkg_failed=yes
49091 fi
49092     fi
49093 else
49094         pkg_failed=untried
49095 fi
49096
49097
49098
49099 if test $pkg_failed = yes; then
49100
49101 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49102         _pkg_short_errors_supported=yes
49103 else
49104         _pkg_short_errors_supported=no
49105 fi
49106         if test $_pkg_short_errors_supported = yes; then
49107                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
49108         else
49109                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
49110         fi
49111         # Put the nasty error message in config.log where it belongs
49112         echo "$CAIRO_PKG_ERRORS" >&5
49113
49114         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
49115 echo "$as_me: WARNING: Cairo library not found" >&2;}
49116
49117 elif test $pkg_failed = untried; then
49118         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
49119 echo "$as_me: WARNING: Cairo library not found" >&2;}
49120
49121 else
49122         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
49123         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
49124         { echo "$as_me:$LINENO: result: yes" >&5
49125 echo "${ECHO_T}yes" >&6; }
49126         wx_has_graphics=1
49127 fi
49128         if test "$wx_has_graphics" = 1; then
49129                                                 save_LIBS="$LIBS"
49130             LIBS="$LIBS $CAIRO_LIBS"
49131
49132 for ac_func in cairo_push_group
49133 do
49134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49138   echo $ECHO_N "(cached) $ECHO_C" >&6
49139 else
49140   cat >conftest.$ac_ext <<_ACEOF
49141 /* confdefs.h.  */
49142 _ACEOF
49143 cat confdefs.h >>conftest.$ac_ext
49144 cat >>conftest.$ac_ext <<_ACEOF
49145 /* end confdefs.h.  */
49146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49148 #define $ac_func innocuous_$ac_func
49149
49150 /* System header to define __stub macros and hopefully few prototypes,
49151     which can conflict with char $ac_func (); below.
49152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49153     <limits.h> exists even on freestanding compilers.  */
49154
49155 #ifdef __STDC__
49156 # include <limits.h>
49157 #else
49158 # include <assert.h>
49159 #endif
49160
49161 #undef $ac_func
49162
49163 /* Override any GCC internal prototype to avoid an error.
49164    Use char because int might match the return type of a GCC
49165    builtin and then its argument prototype would still apply.  */
49166 #ifdef __cplusplus
49167 extern "C"
49168 #endif
49169 char $ac_func ();
49170 /* The GNU C library defines this for functions which it implements
49171     to always fail with ENOSYS.  Some functions are actually named
49172     something starting with __ and the normal name is an alias.  */
49173 #if defined __stub_$ac_func || defined __stub___$ac_func
49174 choke me
49175 #endif
49176
49177 int
49178 main ()
49179 {
49180 return $ac_func ();
49181   ;
49182   return 0;
49183 }
49184 _ACEOF
49185 rm -f conftest.$ac_objext conftest$ac_exeext
49186 if { (ac_try="$ac_link"
49187 case "(($ac_try" in
49188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49189   *) ac_try_echo=$ac_try;;
49190 esac
49191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49192   (eval "$ac_link") 2>conftest.er1
49193   ac_status=$?
49194   grep -v '^ *+' conftest.er1 >conftest.err
49195   rm -f conftest.er1
49196   cat conftest.err >&5
49197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49198   (exit $ac_status); } && {
49199          test -z "$ac_c_werror_flag" ||
49200          test ! -s conftest.err
49201        } && test -s conftest$ac_exeext &&
49202        $as_test_x conftest$ac_exeext; then
49203   eval "$as_ac_var=yes"
49204 else
49205   echo "$as_me: failed program was:" >&5
49206 sed 's/^/| /' conftest.$ac_ext >&5
49207
49208         eval "$as_ac_var=no"
49209 fi
49210
49211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49212       conftest$ac_exeext conftest.$ac_ext
49213 fi
49214 ac_res=`eval echo '${'$as_ac_var'}'`
49215                { echo "$as_me:$LINENO: result: $ac_res" >&5
49216 echo "${ECHO_T}$ac_res" >&6; }
49217 if test `eval echo '${'$as_ac_var'}'` = yes; then
49218   cat >>confdefs.h <<_ACEOF
49219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49220 _ACEOF
49221
49222 fi
49223 done
49224
49225             LIBS="$save_LIBS"
49226             if test "$ac_cv_func_cairo_push_group" = "no"; then
49227                 wx_has_graphics=0
49228                 { echo "$as_me:$LINENO: WARNING: Cairo library is too old and misses cairo_push_group()" >&5
49229 echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;}
49230             else
49231                 cat >>confdefs.h <<\_ACEOF
49232 #define wxUSE_CAIRO 1
49233 _ACEOF
49234
49235
49236                                                 if test "$wxUSE_GTK" != 1; then
49237                     CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
49238                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS"
49239                 fi
49240             fi
49241         fi
49242     else
49243                 wx_has_graphics=1
49244     fi
49245
49246     if test "$wx_has_graphics" = 1; then
49247         cat >>confdefs.h <<\_ACEOF
49248 #define wxUSE_GRAPHICS_CONTEXT 1
49249 _ACEOF
49250
49251     else
49252         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
49253 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
49254     fi
49255 fi
49256
49257
49258 USE_MEDIA=0
49259
49260 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
49261     USE_MEDIA=1
49262
49263                 if test "$wxUSE_GTK" = 1; then
49264         wxUSE_GSTREAMER="no"
49265
49266                                                                 GST_VERSION_MAJOR=0
49267         GST_VERSION_MINOR=10
49268         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49269
49270         if test "$wxUSE_GSTREAMER8" = "no"; then
49271
49272 pkg_failed=no
49273 { echo "$as_me:$LINENO: checking for GST" >&5
49274 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49275
49276 if test -n "$PKG_CONFIG"; then
49277     if test -n "$GST_CFLAGS"; then
49278         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49279     else
49280         if test -n "$PKG_CONFIG" && \
49281     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49282   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49283   ac_status=$?
49284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49285   (exit $ac_status); }; then
49286   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49287 else
49288   pkg_failed=yes
49289 fi
49290     fi
49291 else
49292         pkg_failed=untried
49293 fi
49294 if test -n "$PKG_CONFIG"; then
49295     if test -n "$GST_LIBS"; then
49296         pkg_cv_GST_LIBS="$GST_LIBS"
49297     else
49298         if test -n "$PKG_CONFIG" && \
49299     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49300   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49301   ac_status=$?
49302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49303   (exit $ac_status); }; then
49304   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49305 else
49306   pkg_failed=yes
49307 fi
49308     fi
49309 else
49310         pkg_failed=untried
49311 fi
49312
49313
49314
49315 if test $pkg_failed = yes; then
49316
49317 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49318         _pkg_short_errors_supported=yes
49319 else
49320         _pkg_short_errors_supported=no
49321 fi
49322         if test $_pkg_short_errors_supported = yes; then
49323                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49324         else
49325                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49326         fi
49327         # Put the nasty error message in config.log where it belongs
49328         echo "$GST_PKG_ERRORS" >&5
49329
49330
49331                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49332 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49333                     GST_VERSION_MINOR=8
49334
49335
49336 elif test $pkg_failed = untried; then
49337
49338                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49339 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49340                     GST_VERSION_MINOR=8
49341
49342
49343 else
49344         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49345         GST_LIBS=$pkg_cv_GST_LIBS
49346         { echo "$as_me:$LINENO: result: yes" >&5
49347 echo "${ECHO_T}yes" >&6; }
49348
49349                     wxUSE_GSTREAMER="yes"
49350                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
49351
49352 fi
49353         else
49354                         GST_VERSION_MINOR=8
49355         fi
49356
49357         if test $GST_VERSION_MINOR = "8"; then
49358             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49359
49360 pkg_failed=no
49361 { echo "$as_me:$LINENO: checking for GST" >&5
49362 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49363
49364 if test -n "$PKG_CONFIG"; then
49365     if test -n "$GST_CFLAGS"; then
49366         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49367     else
49368         if test -n "$PKG_CONFIG" && \
49369     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49370   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49371   ac_status=$?
49372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49373   (exit $ac_status); }; then
49374   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49375 else
49376   pkg_failed=yes
49377 fi
49378     fi
49379 else
49380         pkg_failed=untried
49381 fi
49382 if test -n "$PKG_CONFIG"; then
49383     if test -n "$GST_LIBS"; then
49384         pkg_cv_GST_LIBS="$GST_LIBS"
49385     else
49386         if test -n "$PKG_CONFIG" && \
49387     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49388   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49389   ac_status=$?
49390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49391   (exit $ac_status); }; then
49392   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49393 else
49394   pkg_failed=yes
49395 fi
49396     fi
49397 else
49398         pkg_failed=untried
49399 fi
49400
49401
49402
49403 if test $pkg_failed = yes; then
49404
49405 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49406         _pkg_short_errors_supported=yes
49407 else
49408         _pkg_short_errors_supported=no
49409 fi
49410         if test $_pkg_short_errors_supported = yes; then
49411                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49412         else
49413                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49414         fi
49415         # Put the nasty error message in config.log where it belongs
49416         echo "$GST_PKG_ERRORS" >&5
49417
49418
49419                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49420 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49421
49422 elif test $pkg_failed = untried; then
49423
49424                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49425 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49426
49427 else
49428         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49429         GST_LIBS=$pkg_cv_GST_LIBS
49430         { echo "$as_me:$LINENO: result: yes" >&5
49431 echo "${ECHO_T}yes" >&6; }
49432         wxUSE_GSTREAMER="yes"
49433 fi
49434         fi
49435
49436
49437         if test "$wxUSE_GSTREAMER" = "yes"; then
49438             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49439             EXTRALIBS_MEDIA="$GST_LIBS"
49440
49441             cat >>confdefs.h <<\_ACEOF
49442 #define wxUSE_GSTREAMER 1
49443 _ACEOF
49444
49445         else
49446             USE_MEDIA=0
49447         fi
49448     fi
49449
49450     if test $USE_MEDIA = 1; then
49451         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
49452         cat >>confdefs.h <<\_ACEOF
49453 #define wxUSE_MEDIACTRL 1
49454 _ACEOF
49455
49456     else
49457         if test "$wxUSE_MEDIACTRL" = "yes"; then
49458             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
49459 echo "$as_me: error: GStreamer not available" >&2;}
49460    { (exit 1); exit 1; }; }
49461         else
49462                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
49463 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
49464         fi
49465     fi
49466 fi
49467
49468
49469 if test "$cross_compiling" != "no"; then
49470         OSINFO="\"$host\""
49471 else
49472         OSINFO=`uname -s -r -m`
49473     OSINFO="\"$OSINFO\""
49474 fi
49475
49476 cat >>confdefs.h <<_ACEOF
49477 #define WXWIN_OS_DESCRIPTION $OSINFO
49478 _ACEOF
49479
49480
49481
49482 if test "x$prefix" != "xNONE"; then
49483     wxPREFIX=$prefix
49484 else
49485     wxPREFIX=$ac_default_prefix
49486 fi
49487
49488 cat >>confdefs.h <<_ACEOF
49489 #define wxINSTALL_PREFIX "$wxPREFIX"
49490 _ACEOF
49491
49492
49493
49494
49495 STD_BASE_LIBS="base"
49496 STD_GUI_LIBS=""
49497 BUILT_WX_LIBS="base"
49498 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
49499
49500 if test "$wxUSE_SOCKETS" = "yes" ; then
49501     STD_BASE_LIBS="net $STD_BASE_LIBS"
49502     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49503 fi
49504 if test "$wxUSE_XML" = "yes" ; then
49505     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49506     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49507 fi
49508
49509 if test "$wxUSE_GUI" = "yes"; then
49510     STD_GUI_LIBS="adv core"
49511     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49512
49513     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49514         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49515         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49516     fi
49517     if test "$wxUSE_HTML" = "yes" ; then
49518         STD_GUI_LIBS="html $STD_GUI_LIBS"
49519         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49520     fi
49521     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49522         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49523     fi
49524     if test "$wxUSE_OPENGL" = "yes" ; then
49525         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49526     fi
49527     if test "$wxUSE_AUI" = "yes" ; then
49528         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49529     fi
49530     if test "$wxUSE_PROPGRID" = "yes" ; then
49531         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
49532     fi
49533     if test "$wxUSE_RIBBON" = "yes" ; then
49534         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
49535     fi
49536     if test "$wxUSE_RICHTEXT" = "yes" ; then
49537         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
49538     fi
49539     if test "$wxUSE_STC" = "yes" ; then
49540         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49541     fi
49542     if test "$wxUSE_WEBVIEW" = "yes" ; then
49543         STD_GUI_LIBS="webview $STD_GUI_LIBS"
49544         BUILT_WX_LIBS="webview $BUILT_WX_LIBS"
49545     fi
49546     if test "$wxUSE_XRC" = "yes" ; then
49547         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49548         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49549     fi
49550 fi
49551
49552
49553
49554
49555
49556
49557
49558 EXTRA_FRAMEWORKS=
49559 if test "$wxUSE_MAC" = 1 ; then
49560     if test "$USE_DARWIN" = 1; then
49561         if test "$wxUSE_OSX_IPHONE" = 1; then
49562             EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
49563         else
49564             EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
49565         fi
49566     fi
49567 fi
49568 if test "$wxUSE_OLD_COCOA" = 1 ; then
49569     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
49570     if test "$wxUSE_MEDIACTRL" = "yes"; then
49571         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
49572     fi
49573 fi
49574 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
49575     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49576 fi
49577
49578 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
49579 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
49580
49581 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49582
49583 if test "$wxUSE_GUI" = "yes"; then
49584
49585
49586         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49587                      erase event exec font image minimal render \
49588                      shaped svg taborder vscroll widgets wrapsizer"
49589
49590     if test "$wxUSE_MONOLITHIC" != "yes"; then
49591         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49592     fi
49593     if test "$TOOLKIT" = "MSW"; then
49594         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49595         if test "$wxUSE_UNIVERSAL" != "yes"; then
49596             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
49597         fi
49598     fi
49599     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49600         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49601     fi
49602 else
49603     SAMPLES_SUBDIRS="console"
49604     if test "$wxUSE_SOCKETS" = "yes" ; then
49605         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
49606     fi
49607     if test "$wxUSE_IPC" = "yes" ; then
49608         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
49609     fi
49610 fi
49611
49612
49613 if test "x$INTELCC" = "xyes" ; then
49614                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
49615 elif test "$GCC" = yes ; then
49616     CWARNINGS="-Wall -Wundef"
49617 fi
49618
49619 if test "x$INTELCXX" = "xyes" ; then
49620                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
49621 elif test "$GXX" = yes ; then
49622     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
49623     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
49624 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
49625 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
49626   echo $ECHO_N "(cached) $ECHO_C" >&6
49627 else
49628   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
49629
49630  ac_ext=cpp
49631 ac_cpp='$CXXCPP $CPPFLAGS'
49632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49635
49636  ac_save_CXXFLAGS="$CXXFLAGS"
49637 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
49638 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
49639    cat >conftest.$ac_ext <<_ACEOF
49640 /* confdefs.h.  */
49641 _ACEOF
49642 cat confdefs.h >>conftest.$ac_ext
49643 cat >>conftest.$ac_ext <<_ACEOF
49644 /* end confdefs.h.  */
49645
49646 int
49647 main ()
49648 {
49649 return 0;
49650   ;
49651   return 0;
49652 }
49653 _ACEOF
49654 rm -f conftest.$ac_objext
49655 if { (ac_try="$ac_compile"
49656 case "(($ac_try" in
49657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49658   *) ac_try_echo=$ac_try;;
49659 esac
49660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49661   (eval "$ac_compile") 2>conftest.er1
49662   ac_status=$?
49663   grep -v '^ *+' conftest.er1 >conftest.err
49664   rm -f conftest.er1
49665   cat conftest.err >&5
49666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49667   (exit $ac_status); } && {
49668          test -z "$ac_cxx_werror_flag" ||
49669          test ! -s conftest.err
49670        } && test -s conftest.$ac_objext; then
49671   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
49672 else
49673   echo "$as_me: failed program was:" >&5
49674 sed 's/^/| /' conftest.$ac_ext >&5
49675
49676
49677 fi
49678
49679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49680 done
49681  CXXFLAGS="$ac_save_CXXFLAGS"
49682  ac_ext=c
49683 ac_cpp='$CPP $CPPFLAGS'
49684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49687
49688
49689 fi
49690 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
49691 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
49692 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
49693      .ok|.ok,*)  ;;
49694    .|.no|.no,*)  ;;
49695    *)
49696    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
49697    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
49698   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
49699   ac_status=$?
49700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49701   (exit $ac_status); }
49702    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
49703   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
49704   ac_status=$?
49705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49706   (exit $ac_status); }
49707                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
49708    fi
49709  ;;
49710 esac
49711
49712
49713                     if test "$wxUSE_MAC" = 1 ; then
49714         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
49715     fi
49716 fi
49717
49718
49719 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49720 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49721
49722
49723 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49724  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49725  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49726  $CPPFLAGS `
49727
49728 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49729 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49730 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49731 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
49732 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
49733
49734 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49735
49736
49737 if test "x$MWCC" = "xyes"; then
49738
49739             CC="$CC -cwd source -I-"
49740     CXX="$CXX -cwd source -I-"
49741 fi
49742
49743
49744 LIBS=`echo $LIBS`
49745 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49746 EXTRALIBS_XML="$EXPAT_LINK"
49747 EXTRALIBS_HTML="$MSPACK_LINK"
49748 EXTRALIBS_MEDIA="$GST_LIBS"
49749 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49750 if test "$wxUSE_GUI" = "yes"; then
49751     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49752 fi
49753 if test "$wxUSE_OPENGL" = "yes"; then
49754     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49755 fi
49756
49757 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49758
49759 WXCONFIG_LIBS="$LIBS"
49760
49761 if test "$wxUSE_REGEX" = "builtin" ; then
49762     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49763 fi
49764 if test "$wxUSE_EXPAT" = "builtin" ; then
49765     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49766 fi
49767 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49768     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49769 fi
49770 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49771     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49772 fi
49773 if test "$wxUSE_LIBPNG" = "builtin" ; then
49774     wxconfig_3rdparty="png $wxconfig_3rdparty"
49775 fi
49776 if test "$wxUSE_ZLIB" = "builtin" ; then
49777     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49778 fi
49779
49780 for i in $wxconfig_3rdparty ; do
49781     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49782 done
49783
49784
49785 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49786     WXUNIV=1
49787
49788     case "$wxUNIV_THEMES" in
49789         ''|all)
49790             cat >>confdefs.h <<\_ACEOF
49791 #define wxUSE_ALL_THEMES 1
49792 _ACEOF
49793
49794             ;;
49795
49796         *)
49797             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
49798                 cat >>confdefs.h <<_ACEOF
49799 #define wxUSE_THEME_$t 1
49800 _ACEOF
49801
49802             done
49803     esac
49804 else
49805     WXUNIV=0
49806 fi
49807
49808
49809
49810
49811
49812
49813
49814
49815 if test $wxUSE_MONOLITHIC = "yes" ; then
49816     MONOLITHIC=1
49817 else
49818     MONOLITHIC=0
49819 fi
49820
49821 if test $wxUSE_PLUGINS = "yes" ; then
49822     USE_PLUGINS=1
49823 else
49824     USE_PLUGINS=0
49825 fi
49826
49827 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49828     USE_QA=1
49829 else
49830     USE_QA=0
49831 fi
49832
49833 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49834     OFFICIAL_BUILD=1
49835 else
49836     OFFICIAL_BUILD=0
49837 fi
49838
49839
49840
49841
49842
49843
49844
49845
49846
49847
49848
49849
49850
49851
49852
49853
49854
49855
49856
49857
49858
49859
49860
49861
49862
49863
49864
49865 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
49866
49867
49868
49869
49870
49871
49872
49873
49874
49875
49876 case "$TOOLKIT" in
49877     GTK)
49878         TOOLKIT_DESC="GTK+"
49879         if test "$WXGTK2" = 1; then
49880             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49881             if test "$wxUSE_GTKPRINT" = "yes" ; then
49882                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
49883             fi
49884             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49885                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49886             fi
49887             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49888                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49889             fi
49890             if test "$wxUSE_LIBHILDON" = "yes"; then
49891                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49892             fi
49893             if test "$wxUSE_LIBHILDON2" = "yes"; then
49894                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49895             fi
49896
49897             if test "$TOOLKIT_EXTRA" != ""; then
49898                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49899             fi
49900         fi
49901         ;;
49902
49903     ?*)
49904         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49905         ;;
49906
49907     *)
49908         TOOLKIT_DESC="base only"
49909         ;;
49910 esac
49911
49912 if test "$wxUSE_WINE" = "yes"; then
49913     BAKEFILE_FORCE_PLATFORM=win32
49914 fi
49915
49916 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49917 then
49918     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49919 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49920 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49921   echo $ECHO_N "(cached) $ECHO_C" >&6
49922 else
49923
49924             echo '#include <stdio.h>
49925                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49926
49927             echo '#include "conftest.h"
49928                   int main()
49929                   {
49930                      printf("%ls", test_var);
49931                      return 0;
49932                   }' > conftest.cpp
49933
49934             wx_cv_gcc_pch_bug="pch not supported"
49935
49936             if $CXX conftest.h >/dev/null 2>&1
49937             then
49938                 wx_cv_gcc_pch_bug=
49939
49940                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49941                 then
49942                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49943                         grep awidetest >/dev/null
49944                     then
49945                         wx_cv_gcc_pch_bug=no
49946                     else
49947                         wx_cv_gcc_pch_bug=yes
49948                     fi
49949                 fi
49950             fi
49951
49952             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49953
49954 fi
49955 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49956 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49957
49958     if test "$wx_cv_gcc_pch_bug" = yes; then
49959                         bk_use_pch=no
49960     fi
49961 fi
49962
49963
49964
49965
49966
49967
49968
49969     if test "x$BAKEFILE_HOST" = "x"; then
49970                if test "x${host}" = "x" ; then
49971                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49972 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49973    { (exit 1); exit 1; }; }
49974                fi
49975
49976         BAKEFILE_HOST="${host}"
49977     fi
49978
49979     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49980
49981     if test -n "$ac_tool_prefix"; then
49982   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49983 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49986 if test "${ac_cv_prog_RANLIB+set}" = set; then
49987   echo $ECHO_N "(cached) $ECHO_C" >&6
49988 else
49989   if test -n "$RANLIB"; then
49990   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49991 else
49992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49993 for as_dir in $PATH
49994 do
49995   IFS=$as_save_IFS
49996   test -z "$as_dir" && as_dir=.
49997   for ac_exec_ext in '' $ac_executable_extensions; do
49998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49999     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
50000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50001     break 2
50002   fi
50003 done
50004 done
50005 IFS=$as_save_IFS
50006
50007 fi
50008 fi
50009 RANLIB=$ac_cv_prog_RANLIB
50010 if test -n "$RANLIB"; then
50011   { echo "$as_me:$LINENO: result: $RANLIB" >&5
50012 echo "${ECHO_T}$RANLIB" >&6; }
50013 else
50014   { echo "$as_me:$LINENO: result: no" >&5
50015 echo "${ECHO_T}no" >&6; }
50016 fi
50017
50018
50019 fi
50020 if test -z "$ac_cv_prog_RANLIB"; then
50021   ac_ct_RANLIB=$RANLIB
50022   # Extract the first word of "ranlib", so it can be a program name with args.
50023 set dummy ranlib; ac_word=$2
50024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50026 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
50027   echo $ECHO_N "(cached) $ECHO_C" >&6
50028 else
50029   if test -n "$ac_ct_RANLIB"; then
50030   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
50031 else
50032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50033 for as_dir in $PATH
50034 do
50035   IFS=$as_save_IFS
50036   test -z "$as_dir" && as_dir=.
50037   for ac_exec_ext in '' $ac_executable_extensions; do
50038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50039     ac_cv_prog_ac_ct_RANLIB="ranlib"
50040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50041     break 2
50042   fi
50043 done
50044 done
50045 IFS=$as_save_IFS
50046
50047 fi
50048 fi
50049 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
50050 if test -n "$ac_ct_RANLIB"; then
50051   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
50052 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
50053 else
50054   { echo "$as_me:$LINENO: result: no" >&5
50055 echo "${ECHO_T}no" >&6; }
50056 fi
50057
50058   if test "x$ac_ct_RANLIB" = x; then
50059     RANLIB=":"
50060   else
50061     case $cross_compiling:$ac_tool_warned in
50062 yes:)
50063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50064 whose name does not start with the host triplet.  If you think this
50065 configuration is useful to you, please write to autoconf@gnu.org." >&5
50066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50067 whose name does not start with the host triplet.  If you think this
50068 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50069 ac_tool_warned=yes ;;
50070 esac
50071     RANLIB=$ac_ct_RANLIB
50072   fi
50073 else
50074   RANLIB="$ac_cv_prog_RANLIB"
50075 fi
50076
50077     # Find a good install program.  We prefer a C program (faster),
50078 # so one script is as good as another.  But avoid the broken or
50079 # incompatible versions:
50080 # SysV /etc/install, /usr/sbin/install
50081 # SunOS /usr/etc/install
50082 # IRIX /sbin/install
50083 # AIX /bin/install
50084 # AmigaOS /C/install, which installs bootblocks on floppy discs
50085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
50086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
50087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
50088 # OS/2's system install, which has a completely different semantic
50089 # ./install, which can be erroneously created by make from ./install.sh.
50090 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
50091 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
50092 if test -z "$INSTALL"; then
50093 if test "${ac_cv_path_install+set}" = set; then
50094   echo $ECHO_N "(cached) $ECHO_C" >&6
50095 else
50096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50097 for as_dir in $PATH
50098 do
50099   IFS=$as_save_IFS
50100   test -z "$as_dir" && as_dir=.
50101   # Account for people who put trailing slashes in PATH elements.
50102 case $as_dir/ in
50103   ./ | .// | /cC/* | \
50104   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
50105   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
50106   /usr/ucb/* ) ;;
50107   *)
50108     # OSF1 and SCO ODT 3.0 have their own names for install.
50109     # Don't use installbsd from OSF since it installs stuff as root
50110     # by default.
50111     for ac_prog in ginstall scoinst install; do
50112       for ac_exec_ext in '' $ac_executable_extensions; do
50113         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
50114           if test $ac_prog = install &&
50115             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50116             # AIX install.  It has an incompatible calling convention.
50117             :
50118           elif test $ac_prog = install &&
50119             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50120             # program-specific install script used by HP pwplus--don't use.
50121             :
50122           else
50123             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
50124             break 3
50125           fi
50126         fi
50127       done
50128     done
50129     ;;
50130 esac
50131 done
50132 IFS=$as_save_IFS
50133
50134
50135 fi
50136   if test "${ac_cv_path_install+set}" = set; then
50137     INSTALL=$ac_cv_path_install
50138   else
50139     # As a last resort, use the slow shell script.  Don't cache a
50140     # value for INSTALL within a source directory, because that will
50141     # break other packages using the cache if that directory is
50142     # removed, or if the value is a relative name.
50143     INSTALL=$ac_install_sh
50144   fi
50145 fi
50146 { echo "$as_me:$LINENO: result: $INSTALL" >&5
50147 echo "${ECHO_T}$INSTALL" >&6; }
50148
50149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
50150 # It thinks the first close brace ends the variable substitution.
50151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
50152
50153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
50154
50155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
50156
50157     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
50158 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
50159 LN_S=$as_ln_s
50160 if test "$LN_S" = "ln -s"; then
50161   { echo "$as_me:$LINENO: result: yes" >&5
50162 echo "${ECHO_T}yes" >&6; }
50163 else
50164   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
50165 echo "${ECHO_T}no, using $LN_S" >&6; }
50166 fi
50167
50168
50169     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50170 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50171 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50172 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50173   echo $ECHO_N "(cached) $ECHO_C" >&6
50174 else
50175   cat >conftest.make <<\_ACEOF
50176 SHELL = /bin/sh
50177 all:
50178         @echo '@@@%%%=$(MAKE)=@@@%%%'
50179 _ACEOF
50180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50181 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50182   *@@@%%%=?*=@@@%%%*)
50183     eval ac_cv_prog_make_${ac_make}_set=yes;;
50184   *)
50185     eval ac_cv_prog_make_${ac_make}_set=no;;
50186 esac
50187 rm -f conftest.make
50188 fi
50189 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50190   { echo "$as_me:$LINENO: result: yes" >&5
50191 echo "${ECHO_T}yes" >&6; }
50192   SET_MAKE=
50193 else
50194   { echo "$as_me:$LINENO: result: no" >&5
50195 echo "${ECHO_T}no" >&6; }
50196   SET_MAKE="MAKE=${MAKE-make}"
50197 fi
50198
50199
50200
50201     if test "x$SUNCXX" = "xyes"; then
50202                                 AR=$CXX
50203         AROPTIONS="-xar -o"
50204
50205     elif test "x$SGICC" = "xyes"; then
50206                 AR=$CXX
50207         AROPTIONS="-ar -o"
50208
50209     else
50210         if test -n "$ac_tool_prefix"; then
50211   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
50212 set dummy ${ac_tool_prefix}ar; ac_word=$2
50213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50215 if test "${ac_cv_prog_AR+set}" = set; then
50216   echo $ECHO_N "(cached) $ECHO_C" >&6
50217 else
50218   if test -n "$AR"; then
50219   ac_cv_prog_AR="$AR" # Let the user override the test.
50220 else
50221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50222 for as_dir in $PATH
50223 do
50224   IFS=$as_save_IFS
50225   test -z "$as_dir" && as_dir=.
50226   for ac_exec_ext in '' $ac_executable_extensions; do
50227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50228     ac_cv_prog_AR="${ac_tool_prefix}ar"
50229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50230     break 2
50231   fi
50232 done
50233 done
50234 IFS=$as_save_IFS
50235
50236 fi
50237 fi
50238 AR=$ac_cv_prog_AR
50239 if test -n "$AR"; then
50240   { echo "$as_me:$LINENO: result: $AR" >&5
50241 echo "${ECHO_T}$AR" >&6; }
50242 else
50243   { echo "$as_me:$LINENO: result: no" >&5
50244 echo "${ECHO_T}no" >&6; }
50245 fi
50246
50247
50248 fi
50249 if test -z "$ac_cv_prog_AR"; then
50250   ac_ct_AR=$AR
50251   # Extract the first word of "ar", so it can be a program name with args.
50252 set dummy ar; ac_word=$2
50253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50255 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
50256   echo $ECHO_N "(cached) $ECHO_C" >&6
50257 else
50258   if test -n "$ac_ct_AR"; then
50259   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
50260 else
50261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50262 for as_dir in $PATH
50263 do
50264   IFS=$as_save_IFS
50265   test -z "$as_dir" && as_dir=.
50266   for ac_exec_ext in '' $ac_executable_extensions; do
50267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50268     ac_cv_prog_ac_ct_AR="ar"
50269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50270     break 2
50271   fi
50272 done
50273 done
50274 IFS=$as_save_IFS
50275
50276 fi
50277 fi
50278 ac_ct_AR=$ac_cv_prog_ac_ct_AR
50279 if test -n "$ac_ct_AR"; then
50280   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
50281 echo "${ECHO_T}$ac_ct_AR" >&6; }
50282 else
50283   { echo "$as_me:$LINENO: result: no" >&5
50284 echo "${ECHO_T}no" >&6; }
50285 fi
50286
50287   if test "x$ac_ct_AR" = x; then
50288     AR="ar"
50289   else
50290     case $cross_compiling:$ac_tool_warned in
50291 yes:)
50292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50293 whose name does not start with the host triplet.  If you think this
50294 configuration is useful to you, please write to autoconf@gnu.org." >&5
50295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50296 whose name does not start with the host triplet.  If you think this
50297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50298 ac_tool_warned=yes ;;
50299 esac
50300     AR=$ac_ct_AR
50301   fi
50302 else
50303   AR="$ac_cv_prog_AR"
50304 fi
50305
50306         AROPTIONS=rcu
50307     fi
50308
50309
50310     if test -n "$ac_tool_prefix"; then
50311   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
50312 set dummy ${ac_tool_prefix}strip; ac_word=$2
50313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50315 if test "${ac_cv_prog_STRIP+set}" = set; then
50316   echo $ECHO_N "(cached) $ECHO_C" >&6
50317 else
50318   if test -n "$STRIP"; then
50319   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
50320 else
50321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50322 for as_dir in $PATH
50323 do
50324   IFS=$as_save_IFS
50325   test -z "$as_dir" && as_dir=.
50326   for ac_exec_ext in '' $ac_executable_extensions; do
50327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50328     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
50329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50330     break 2
50331   fi
50332 done
50333 done
50334 IFS=$as_save_IFS
50335
50336 fi
50337 fi
50338 STRIP=$ac_cv_prog_STRIP
50339 if test -n "$STRIP"; then
50340   { echo "$as_me:$LINENO: result: $STRIP" >&5
50341 echo "${ECHO_T}$STRIP" >&6; }
50342 else
50343   { echo "$as_me:$LINENO: result: no" >&5
50344 echo "${ECHO_T}no" >&6; }
50345 fi
50346
50347
50348 fi
50349 if test -z "$ac_cv_prog_STRIP"; then
50350   ac_ct_STRIP=$STRIP
50351   # Extract the first word of "strip", so it can be a program name with args.
50352 set dummy strip; ac_word=$2
50353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50355 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
50356   echo $ECHO_N "(cached) $ECHO_C" >&6
50357 else
50358   if test -n "$ac_ct_STRIP"; then
50359   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
50360 else
50361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50362 for as_dir in $PATH
50363 do
50364   IFS=$as_save_IFS
50365   test -z "$as_dir" && as_dir=.
50366   for ac_exec_ext in '' $ac_executable_extensions; do
50367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50368     ac_cv_prog_ac_ct_STRIP="strip"
50369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50370     break 2
50371   fi
50372 done
50373 done
50374 IFS=$as_save_IFS
50375
50376 fi
50377 fi
50378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
50379 if test -n "$ac_ct_STRIP"; then
50380   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
50381 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
50382 else
50383   { echo "$as_me:$LINENO: result: no" >&5
50384 echo "${ECHO_T}no" >&6; }
50385 fi
50386
50387   if test "x$ac_ct_STRIP" = x; then
50388     STRIP=":"
50389   else
50390     case $cross_compiling:$ac_tool_warned in
50391 yes:)
50392 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50393 whose name does not start with the host triplet.  If you think this
50394 configuration is useful to you, please write to autoconf@gnu.org." >&5
50395 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50396 whose name does not start with the host triplet.  If you think this
50397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50398 ac_tool_warned=yes ;;
50399 esac
50400     STRIP=$ac_ct_STRIP
50401   fi
50402 else
50403   STRIP="$ac_cv_prog_STRIP"
50404 fi
50405
50406     if test -n "$ac_tool_prefix"; then
50407   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
50408 set dummy ${ac_tool_prefix}nm; ac_word=$2
50409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50411 if test "${ac_cv_prog_NM+set}" = set; then
50412   echo $ECHO_N "(cached) $ECHO_C" >&6
50413 else
50414   if test -n "$NM"; then
50415   ac_cv_prog_NM="$NM" # Let the user override the test.
50416 else
50417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50418 for as_dir in $PATH
50419 do
50420   IFS=$as_save_IFS
50421   test -z "$as_dir" && as_dir=.
50422   for ac_exec_ext in '' $ac_executable_extensions; do
50423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50424     ac_cv_prog_NM="${ac_tool_prefix}nm"
50425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50426     break 2
50427   fi
50428 done
50429 done
50430 IFS=$as_save_IFS
50431
50432 fi
50433 fi
50434 NM=$ac_cv_prog_NM
50435 if test -n "$NM"; then
50436   { echo "$as_me:$LINENO: result: $NM" >&5
50437 echo "${ECHO_T}$NM" >&6; }
50438 else
50439   { echo "$as_me:$LINENO: result: no" >&5
50440 echo "${ECHO_T}no" >&6; }
50441 fi
50442
50443
50444 fi
50445 if test -z "$ac_cv_prog_NM"; then
50446   ac_ct_NM=$NM
50447   # Extract the first word of "nm", so it can be a program name with args.
50448 set dummy nm; ac_word=$2
50449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50451 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
50452   echo $ECHO_N "(cached) $ECHO_C" >&6
50453 else
50454   if test -n "$ac_ct_NM"; then
50455   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
50456 else
50457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50458 for as_dir in $PATH
50459 do
50460   IFS=$as_save_IFS
50461   test -z "$as_dir" && as_dir=.
50462   for ac_exec_ext in '' $ac_executable_extensions; do
50463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50464     ac_cv_prog_ac_ct_NM="nm"
50465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50466     break 2
50467   fi
50468 done
50469 done
50470 IFS=$as_save_IFS
50471
50472 fi
50473 fi
50474 ac_ct_NM=$ac_cv_prog_ac_ct_NM
50475 if test -n "$ac_ct_NM"; then
50476   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
50477 echo "${ECHO_T}$ac_ct_NM" >&6; }
50478 else
50479   { echo "$as_me:$LINENO: result: no" >&5
50480 echo "${ECHO_T}no" >&6; }
50481 fi
50482
50483   if test "x$ac_ct_NM" = x; then
50484     NM=":"
50485   else
50486     case $cross_compiling:$ac_tool_warned in
50487 yes:)
50488 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50489 whose name does not start with the host triplet.  If you think this
50490 configuration is useful to you, please write to autoconf@gnu.org." >&5
50491 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50492 whose name does not start with the host triplet.  If you think this
50493 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50494 ac_tool_warned=yes ;;
50495 esac
50496     NM=$ac_ct_NM
50497   fi
50498 else
50499   NM="$ac_cv_prog_NM"
50500 fi
50501
50502
50503         INSTALL_DIR="mkdir -p"
50504
50505
50506     LDFLAGS_GUI=
50507     case ${BAKEFILE_HOST} in
50508         *-*-cygwin* | *-*-mingw32* )
50509         LDFLAGS_GUI="-mwindows"
50510     esac
50511
50512
50513     fi
50514
50515         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50516 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
50517 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50518   echo $ECHO_N "(cached) $ECHO_C" >&6
50519 else
50520
50521         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50522                 egrep -s GNU > /dev/null); then
50523             bakefile_cv_prog_makeisgnu="yes"
50524         else
50525             bakefile_cv_prog_makeisgnu="no"
50526         fi
50527
50528 fi
50529 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50530 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50531
50532     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50533         IF_GNU_MAKE=""
50534     else
50535         IF_GNU_MAKE="#"
50536     fi
50537
50538
50539
50540     PLATFORM_UNIX=0
50541     PLATFORM_WIN32=0
50542     PLATFORM_MSDOS=0
50543     PLATFORM_MAC=0
50544     PLATFORM_MACOS=0
50545     PLATFORM_MACOSX=0
50546     PLATFORM_OS2=0
50547     PLATFORM_BEOS=0
50548
50549     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50550         case "${BAKEFILE_HOST}" in
50551             *-*-mingw32* )
50552                 PLATFORM_WIN32=1
50553             ;;
50554             *-pc-msdosdjgpp )
50555                 PLATFORM_MSDOS=1
50556             ;;
50557             *-pc-os2_emx | *-pc-os2-emx )
50558                 PLATFORM_OS2=1
50559             ;;
50560             *-*-darwin* )
50561                 PLATFORM_MAC=1
50562                 PLATFORM_MACOSX=1
50563             ;;
50564             *-*-beos* )
50565                 PLATFORM_BEOS=1
50566             ;;
50567             powerpc-apple-macos* )
50568                 PLATFORM_MAC=1
50569                 PLATFORM_MACOS=1
50570             ;;
50571             * )
50572                 PLATFORM_UNIX=1
50573             ;;
50574         esac
50575     else
50576         case "$BAKEFILE_FORCE_PLATFORM" in
50577             win32 )
50578                 PLATFORM_WIN32=1
50579             ;;
50580             msdos )
50581                 PLATFORM_MSDOS=1
50582             ;;
50583             os2 )
50584                 PLATFORM_OS2=1
50585             ;;
50586             darwin )
50587                 PLATFORM_MAC=1
50588                 PLATFORM_MACOSX=1
50589             ;;
50590             unix )
50591                 PLATFORM_UNIX=1
50592             ;;
50593             beos )
50594                 PLATFORM_BEOS=1
50595             ;;
50596             * )
50597                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
50598 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
50599    { (exit 1); exit 1; }; }
50600             ;;
50601         esac
50602     fi
50603
50604
50605
50606
50607
50608
50609
50610
50611
50612
50613
50614     # Check whether --enable-omf was given.
50615 if test "${enable_omf+set}" = set; then
50616   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50617 fi
50618
50619
50620     case "${BAKEFILE_HOST}" in
50621       *-*-darwin* )
50622                         if test "x$GCC" = "xyes"; then
50623             CFLAGS="$CFLAGS -fno-common"
50624             CXXFLAGS="$CXXFLAGS -fno-common"
50625         fi
50626         if test "x$XLCC" = "xyes"; then
50627             CFLAGS="$CFLAGS -qnocommon"
50628             CXXFLAGS="$CXXFLAGS -qnocommon"
50629         fi
50630         ;;
50631
50632       *-pc-os2_emx | *-pc-os2-emx )
50633         if test "x$bk_os2_use_omf" = "xyes" ; then
50634             AR=emxomfar
50635             RANLIB=:
50636             LDFLAGS="-Zomf $LDFLAGS"
50637             CFLAGS="-Zomf $CFLAGS"
50638             CXXFLAGS="-Zomf $CXXFLAGS"
50639             OS2_LIBEXT="lib"
50640         else
50641             OS2_LIBEXT="a"
50642         fi
50643         ;;
50644
50645       i*86-*-beos* )
50646         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50647         ;;
50648     esac
50649
50650
50651     SO_SUFFIX="so"
50652     SO_SUFFIX_MODULE="so"
50653     EXEEXT=""
50654     LIBPREFIX="lib"
50655     LIBEXT=".a"
50656     DLLPREFIX="lib"
50657     DLLPREFIX_MODULE=""
50658     DLLIMP_SUFFIX=""
50659     dlldir="$libdir"
50660
50661     case "${BAKEFILE_HOST}" in
50662                         ia64-hp-hpux* )
50663         ;;
50664         *-hp-hpux* )
50665             SO_SUFFIX="sl"
50666             SO_SUFFIX_MODULE="sl"
50667         ;;
50668         *-*-aix* )
50669                                                                         SO_SUFFIX="a"
50670             SO_SUFFIX_MODULE="a"
50671         ;;
50672         *-*-cygwin* )
50673             SO_SUFFIX="dll"
50674             SO_SUFFIX_MODULE="dll"
50675             DLLIMP_SUFFIX="dll.a"
50676             EXEEXT=".exe"
50677             DLLPREFIX="cyg"
50678             dlldir="$bindir"
50679         ;;
50680         *-*-mingw32* )
50681             SO_SUFFIX="dll"
50682             SO_SUFFIX_MODULE="dll"
50683             DLLIMP_SUFFIX="dll.a"
50684             EXEEXT=".exe"
50685             DLLPREFIX=""
50686             dlldir="$bindir"
50687         ;;
50688         *-pc-msdosdjgpp )
50689             EXEEXT=".exe"
50690             DLLPREFIX=""
50691             dlldir="$bindir"
50692         ;;
50693         *-pc-os2_emx | *-pc-os2-emx )
50694             SO_SUFFIX="dll"
50695             SO_SUFFIX_MODULE="dll"
50696             DLLIMP_SUFFIX=$OS2_LIBEXT
50697             EXEEXT=".exe"
50698             DLLPREFIX=""
50699             LIBPREFIX=""
50700             LIBEXT=".$OS2_LIBEXT"
50701             dlldir="$bindir"
50702         ;;
50703         *-*-darwin* )
50704             SO_SUFFIX="dylib"
50705             SO_SUFFIX_MODULE="bundle"
50706         ;;
50707     esac
50708
50709     if test "x$DLLIMP_SUFFIX" = "x" ; then
50710         DLLIMP_SUFFIX="$SO_SUFFIX"
50711     fi
50712
50713
50714
50715
50716
50717
50718
50719
50720
50721
50722
50723
50724         PIC_FLAG=""
50725     if test "x$GCC" = "xyes"; then
50726                 PIC_FLAG="-fPIC"
50727     fi
50728
50729         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50730     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50731     WINDOWS_IMPLIB=0
50732
50733     case "${BAKEFILE_HOST}" in
50734       *-hp-hpux* )
50735                 if test "x$GCC" != "xyes"; then
50736                         LDFLAGS="$LDFLAGS -L/usr/lib"
50737
50738             SHARED_LD_CC="${CC} -b -o"
50739             SHARED_LD_CXX="${CXX} -b -o"
50740             PIC_FLAG="+Z"
50741         fi
50742       ;;
50743
50744       *-*-linux* )
50745                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
50746             PIC_FLAG="-KPIC"
50747         elif test "x$SUNCXX" = "xyes"; then
50748             SHARED_LD_CC="${CC} -G -o"
50749             SHARED_LD_CXX="${CXX} -G -o"
50750             PIC_FLAG="-KPIC"
50751         fi
50752       ;;
50753
50754       *-*-solaris2* )
50755         if test "x$SUNCXX" = xyes ; then
50756             SHARED_LD_CC="${CC} -G -o"
50757             SHARED_LD_CXX="${CXX} -G -o"
50758             PIC_FLAG="-KPIC"
50759         fi
50760       ;;
50761
50762       *-*-darwin* )
50763
50764 D='$'
50765 cat <<EOF >shared-ld-sh
50766 #!/bin/sh
50767 #-----------------------------------------------------------------------------
50768 #-- Name:        distrib/mac/shared-ld-sh
50769 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50770 #-- Author:      Gilles Depeyrot
50771 #-- Copyright:   (c) 2002 Gilles Depeyrot
50772 #-- Licence:     any use permitted
50773 #-----------------------------------------------------------------------------
50774
50775 verbose=0
50776 args=""
50777 objects=""
50778 linking_flag="-dynamiclib"
50779 ldargs="-r -keep_private_externs -nostdlib"
50780
50781 if test "x${D}CXX" = "x"; then
50782     CXX="c++"
50783 fi
50784
50785 while test ${D}# -gt 0; do
50786     case ${D}1 in
50787
50788        -v)
50789         verbose=1
50790         ;;
50791
50792        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50793         # collect these options and values
50794         args="${D}{args} ${D}1 ${D}2"
50795         shift
50796         ;;
50797
50798        -arch|-isysroot)
50799         # collect these options and values
50800         ldargs="${D}{ldargs} ${D}1 ${D}2"
50801         shift
50802         ;;
50803
50804        -s|-Wl,*)
50805         # collect these load args
50806         ldargs="${D}{ldargs} ${D}1"
50807         ;;
50808
50809        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50810         # collect these options
50811         args="${D}{args} ${D}1"
50812         ;;
50813
50814        -dynamiclib|-bundle)
50815         linking_flag="${D}1"
50816         ;;
50817
50818        -*)
50819         echo "shared-ld: unhandled option '${D}1'"
50820         exit 1
50821         ;;
50822
50823         *.o | *.a | *.dylib)
50824         # collect object files
50825         objects="${D}{objects} ${D}1"
50826         ;;
50827
50828         *)
50829         echo "shared-ld: unhandled argument '${D}1'"
50830         exit 1
50831         ;;
50832
50833     esac
50834     shift
50835 done
50836
50837 status=0
50838
50839 #
50840 # Link one module containing all the others
50841 #
50842 if test ${D}{verbose} = 1; then
50843     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50844 fi
50845 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50846 status=${D}?
50847
50848 #
50849 # Link the shared library from the single module created, but only if the
50850 # previous command didn't fail:
50851 #
50852 if test ${D}{status} = 0; then
50853     if test ${D}{verbose} = 1; then
50854         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50855     fi
50856     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50857     status=${D}?
50858 fi
50859
50860 #
50861 # Remove intermediate module
50862 #
50863 rm -f master.${D}${D}.o
50864
50865 exit ${D}status
50866 EOF
50867
50868         chmod +x shared-ld-sh
50869
50870         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50871         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
50872
50873
50874                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50875 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50876 if test "${bakefile_cv_gcc31+set}" = set; then
50877   echo $ECHO_N "(cached) $ECHO_C" >&6
50878 else
50879
50880            cat >conftest.$ac_ext <<_ACEOF
50881 /* confdefs.h.  */
50882 _ACEOF
50883 cat confdefs.h >>conftest.$ac_ext
50884 cat >>conftest.$ac_ext <<_ACEOF
50885 /* end confdefs.h.  */
50886
50887 int
50888 main ()
50889 {
50890
50891                    #if (__GNUC__ < 3) || \
50892                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50893                        This is old gcc
50894                    #endif
50895
50896   ;
50897   return 0;
50898 }
50899 _ACEOF
50900 rm -f conftest.$ac_objext
50901 if { (ac_try="$ac_compile"
50902 case "(($ac_try" in
50903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50904   *) ac_try_echo=$ac_try;;
50905 esac
50906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50907   (eval "$ac_compile") 2>conftest.er1
50908   ac_status=$?
50909   grep -v '^ *+' conftest.er1 >conftest.err
50910   rm -f conftest.er1
50911   cat conftest.err >&5
50912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50913   (exit $ac_status); } && {
50914          test -z "$ac_c_werror_flag" ||
50915          test ! -s conftest.err
50916        } && test -s conftest.$ac_objext; then
50917
50918                    bakefile_cv_gcc31=yes
50919
50920 else
50921   echo "$as_me: failed program was:" >&5
50922 sed 's/^/| /' conftest.$ac_ext >&5
50923
50924
50925                    bakefile_cv_gcc31=no
50926
50927
50928 fi
50929
50930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50931
50932 fi
50933 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50934 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50935         if test "$bakefile_cv_gcc31" = "no"; then
50936                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50937             SHARED_LD_CXX="$SHARED_LD_CC"
50938         else
50939                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50940             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50941         fi
50942
50943         if test "x$GCC" == "xyes"; then
50944             PIC_FLAG="-dynamic -fPIC"
50945         fi
50946         if test "x$XLCC" = "xyes"; then
50947             PIC_FLAG="-dynamic -DPIC"
50948         fi
50949       ;;
50950
50951       *-*-aix* )
50952         if test "x$GCC" = "xyes"; then
50953                                                             PIC_FLAG=""
50954
50955                                                                                     case "${BAKEFILE_HOST}" in
50956                 *-*-aix5* )
50957                     LD_EXPFULL="-Wl,-bexpfull"
50958                     ;;
50959             esac
50960
50961             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50962             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50963         else
50964                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50965 set dummy makeC++SharedLib; ac_word=$2
50966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50968 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50969   echo $ECHO_N "(cached) $ECHO_C" >&6
50970 else
50971   if test -n "$AIX_CXX_LD"; then
50972   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50973 else
50974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50975 for as_dir in $PATH
50976 do
50977   IFS=$as_save_IFS
50978   test -z "$as_dir" && as_dir=.
50979   for ac_exec_ext in '' $ac_executable_extensions; do
50980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50981     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50983     break 2
50984   fi
50985 done
50986 done
50987 IFS=$as_save_IFS
50988
50989   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50990 fi
50991 fi
50992 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50993 if test -n "$AIX_CXX_LD"; then
50994   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50995 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50996 else
50997   { echo "$as_me:$LINENO: result: no" >&5
50998 echo "${ECHO_T}no" >&6; }
50999 fi
51000
51001
51002             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
51003             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
51004         fi
51005       ;;
51006
51007       *-*-beos* )
51008                         SHARED_LD_CC="${LD} -nostart -o"
51009         SHARED_LD_CXX="${LD} -nostart -o"
51010       ;;
51011
51012       *-*-irix* )
51013                 if test "x$GCC" != "xyes"; then
51014             PIC_FLAG="-KPIC"
51015         fi
51016       ;;
51017
51018       *-*-cygwin* | *-*-mingw32* )
51019         PIC_FLAG=""
51020         SHARED_LD_CC="\$(CC) -shared -o"
51021         SHARED_LD_CXX="\$(CXX) -shared -o"
51022         WINDOWS_IMPLIB=1
51023       ;;
51024
51025       *-pc-os2_emx | *-pc-os2-emx )
51026         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51027         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51028         PIC_FLAG=""
51029
51030 D='$'
51031 cat <<EOF >dllar.sh
51032 #!/bin/sh
51033 #
51034 # dllar - a tool to build both a .dll and an .a file
51035 # from a set of object (.o) files for EMX/OS2.
51036 #
51037 #  Written by Andrew Zabolotny, bit@freya.etu.ru
51038 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
51039 #
51040 #  This script will accept a set of files on the command line.
51041 #  All the public symbols from the .o files will be exported into
51042 #  a .DEF file, then linker will be run (through gcc) against them to
51043 #  build a shared library consisting of all given .o files. All libraries
51044 #  (.a) will be first decompressed into component .o files then act as
51045 #  described above. You can optionally give a description (-d "description")
51046 #  which will be put into .DLL. To see the list of accepted options (as well
51047 #  as command-line format) simply run this program without options. The .DLL
51048 #  is built to be imported by name (there is no guarantee that new versions
51049 #  of the library you build will have same ordinals for same symbols).
51050 #
51051 #  dllar is free software; you can redistribute it and/or modify
51052 #  it under the terms of the GNU General Public License as published by
51053 #  the Free Software Foundation; either version 2, or (at your option)
51054 #  any later version.
51055 #
51056 #  dllar is distributed in the hope that it will be useful,
51057 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
51058 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
51059 #  GNU General Public License for more details.
51060 #
51061 #  You should have received a copy of the GNU General Public License
51062 #  along with dllar; see the file COPYING.  If not, write to the Free
51063 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
51064 #  02111-1307, USA.
51065
51066 # To successfuly run this program you will need:
51067 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
51068 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
51069 #  - gcc
51070 #    (used to build the .dll)
51071 #  - emxexp
51072 #    (used to create .def file from .o files)
51073 #  - emximp
51074 #    (used to create .a file from .def file)
51075 #  - GNU text utilites (cat, sort, uniq)
51076 #    used to process emxexp output
51077 #  - GNU file utilities (mv, rm)
51078 #  - GNU sed
51079 #  - lxlite (optional, see flag below)
51080 #    (used for general .dll cleanup)
51081 #
51082
51083 flag_USE_LXLITE=1;
51084
51085 #
51086 # helper functions
51087 # basnam, variant of basename, which does _not_ remove the path, _iff_
51088 #                              second argument (suffix to remove) is given
51089 basnam(){
51090     case ${D}# in
51091     1)
51092         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
51093         ;;
51094     2)
51095         echo ${D}1 | sed 's/'${D}2'${D}//'
51096         ;;
51097     *)
51098         echo "error in basnam ${D}*"
51099         exit 8
51100         ;;
51101     esac
51102 }
51103
51104 # Cleanup temporary files and output
51105 CleanUp() {
51106     cd ${D}curDir
51107     for i in ${D}inputFiles ; do
51108         case ${D}i in
51109         *!)
51110             rm -rf \`basnam ${D}i !\`
51111             ;;
51112         *)
51113             ;;
51114         esac
51115     done
51116
51117     # Kill result in case of failure as there is just to many stupid make/nmake
51118     # things out there which doesn't do this.
51119     if [ ${D}# -eq 0 ]; then
51120         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
51121     fi
51122 }
51123
51124 # Print usage and exit script with rc=1.
51125 PrintHelp() {
51126  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
51127  echo '       [-name-mangler-script script.sh]'
51128  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
51129  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
51130  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
51131  echo '       [*.o] [*.a]'
51132  echo '*> "output_file" should have no extension.'
51133  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
51134  echo '   The import library name is derived from this and is set to "name".a,'
51135  echo '   unless overridden by -import'
51136  echo '*> "importlib_name" should have no extension.'
51137  echo '   If it has the .o, or .a extension, it is automatically removed.'
51138  echo '   This name is used as the import library name and may be longer and'
51139  echo '   more descriptive than the DLL name which has to follow the old '
51140  echo '   8.3 convention of FAT.'
51141  echo '*> "script.sh may be given to override the output_file name by a'
51142  echo '   different name. It is mainly useful if the regular make process'
51143  echo '   of some package does not take into account OS/2 restriction of'
51144  echo '   DLL name lengths. It takes the importlib name as input and is'
51145  echo '   supposed to procude a shorter name as output. The script should'
51146  echo '   expect to get importlib_name without extension and should produce'
51147  echo '   a (max.) 8 letter name without extension.'
51148  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
51149  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
51150  echo '   These flags will be put at the start of GCC command line.'
51151  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
51152  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
51153  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
51154  echo '   If the last character of a symbol is "*", all symbols beginning'
51155  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
51156  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
51157  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
51158  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
51159  echo '   C runtime DLLs.'
51160  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
51161  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
51162  echo '   unchanged to GCC at the end of command line.'
51163  echo '*> If you create a DLL from a library and you do not specify -o,'
51164  echo '   the basename for DLL and import library will be set to library name,'
51165  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
51166  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
51167  echo '   library will be renamed into gcc_s.a.'
51168  echo '--------'
51169  echo 'Example:'
51170  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
51171  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
51172  CleanUp
51173  exit 1
51174 }
51175
51176 # Execute a command.
51177 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
51178 # @Uses    Whatever CleanUp() uses.
51179 doCommand() {
51180     echo "${D}*"
51181     eval ${D}*
51182     rcCmd=${D}?
51183
51184     if [ ${D}rcCmd -ne 0 ]; then
51185         echo "command failed, exit code="${D}rcCmd
51186         CleanUp
51187         exit ${D}rcCmd
51188     fi
51189 }
51190
51191 # main routine
51192 # setup globals
51193 cmdLine=${D}*
51194 outFile=""
51195 outimpFile=""
51196 inputFiles=""
51197 renameScript=""
51198 description=""
51199 CC=gcc.exe
51200 CFLAGS="-s -Zcrtdll"
51201 EXTRA_CFLAGS=""
51202 EXPORT_BY_ORDINALS=0
51203 exclude_symbols=""
51204 library_flags=""
51205 curDir=\`pwd\`
51206 curDirS=curDir
51207 case ${D}curDirS in
51208 */)
51209   ;;
51210 *)
51211   curDirS=${D}{curDirS}"/"
51212   ;;
51213 esac
51214 # Parse commandline
51215 libsToLink=0
51216 omfLinking=0
51217 while [ ${D}1 ]; do
51218     case ${D}1 in
51219     -ord*)
51220         EXPORT_BY_ORDINALS=1;
51221         ;;
51222     -o*)
51223         shift
51224         outFile=${D}1
51225         ;;
51226     -i*)
51227         shift
51228         outimpFile=${D}1
51229         ;;
51230     -name-mangler-script)
51231         shift
51232         renameScript=${D}1
51233         ;;
51234     -d*)
51235         shift
51236         description=${D}1
51237         ;;
51238     -f*)
51239         shift
51240         CFLAGS=${D}1
51241         ;;
51242     -c*)
51243         shift
51244         CC=${D}1
51245         ;;
51246     -h*)
51247         PrintHelp
51248         ;;
51249     -ex*)
51250         shift
51251         exclude_symbols=${D}{exclude_symbols}${D}1" "
51252         ;;
51253     -libf*)
51254         shift
51255         library_flags=${D}{library_flags}${D}1" "
51256         ;;
51257     -nocrt*)
51258         CFLAGS="-s"
51259         ;;
51260     -nolxl*)
51261         flag_USE_LXLITE=0
51262         ;;
51263     -* | /*)
51264         case ${D}1 in
51265         -L* | -l*)
51266             libsToLink=1
51267             ;;
51268         -Zomf)
51269             omfLinking=1
51270             ;;
51271         *)
51272             ;;
51273         esac
51274         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51275         ;;
51276     *.dll)
51277         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
51278         if [ ${D}omfLinking -eq 1 ]; then
51279             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
51280         else
51281             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
51282         fi
51283         ;;
51284     *)
51285         found=0;
51286         if [ ${D}libsToLink -ne 0 ]; then
51287             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51288         else
51289             for file in ${D}1 ; do
51290                 if [ -f ${D}file ]; then
51291                     inputFiles="${D}{inputFiles} ${D}file"
51292                     found=1
51293                 fi
51294             done
51295             if [ ${D}found -eq 0 ]; then
51296                 echo "ERROR: No file(s) found: "${D}1
51297                 exit 8
51298             fi
51299         fi
51300       ;;
51301     esac
51302     shift
51303 done # iterate cmdline words
51304
51305 #
51306 if [ -z "${D}inputFiles" ]; then
51307     echo "dllar: no input files"
51308     PrintHelp
51309 fi
51310
51311 # Now extract all .o files from .a files
51312 newInputFiles=""
51313 for file in ${D}inputFiles ; do
51314     case ${D}file in
51315     *.a | *.lib)
51316         case ${D}file in
51317         *.a)
51318             suffix=".a"
51319             AR="ar"
51320             ;;
51321         *.lib)
51322             suffix=".lib"
51323             AR="emxomfar"
51324             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
51325             ;;
51326         *)
51327             ;;
51328         esac
51329         dirname=\`basnam ${D}file ${D}suffix\`"_%"
51330         mkdir ${D}dirname
51331         if [ ${D}? -ne 0 ]; then
51332             echo "Failed to create subdirectory ./${D}dirname"
51333             CleanUp
51334             exit 8;
51335         fi
51336         # Append '!' to indicate archive
51337         newInputFiles="${D}newInputFiles ${D}{dirname}!"
51338         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
51339         cd ${D}curDir
51340         found=0;
51341         for subfile in ${D}dirname/*.o* ; do
51342             if [ -f ${D}subfile ]; then
51343                 found=1
51344                 if [ -s ${D}subfile ]; then
51345                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
51346                     newInputFiles="${D}newInputFiles ${D}subfile"
51347                 fi
51348             fi
51349         done
51350         if [ ${D}found -eq 0 ]; then
51351             echo "WARNING: there are no files in archive \\'${D}file\\'"
51352         fi
51353         ;;
51354     *)
51355         newInputFiles="${D}{newInputFiles} ${D}file"
51356         ;;
51357     esac
51358 done
51359 inputFiles="${D}newInputFiles"
51360
51361 # Output filename(s).
51362 do_backup=0;
51363 if [ -z ${D}outFile ]; then
51364     do_backup=1;
51365     set outFile ${D}inputFiles; outFile=${D}2
51366 fi
51367
51368 # If it is an archive, remove the '!' and the '_%' suffixes
51369 case ${D}outFile in
51370 *_%!)
51371     outFile=\`basnam ${D}outFile _%!\`
51372     ;;
51373 *)
51374     ;;
51375 esac
51376 case ${D}outFile in
51377 *.dll)
51378     outFile=\`basnam ${D}outFile .dll\`
51379     ;;
51380 *.DLL)
51381     outFile=\`basnam ${D}outFile .DLL\`
51382     ;;
51383 *.o)
51384     outFile=\`basnam ${D}outFile .o\`
51385     ;;
51386 *.obj)
51387     outFile=\`basnam ${D}outFile .obj\`
51388     ;;
51389 *.a)
51390     outFile=\`basnam ${D}outFile .a\`
51391     ;;
51392 *.lib)
51393     outFile=\`basnam ${D}outFile .lib\`
51394     ;;
51395 *)
51396     ;;
51397 esac
51398 case ${D}outimpFile in
51399 *.a)
51400     outimpFile=\`basnam ${D}outimpFile .a\`
51401     ;;
51402 *.lib)
51403     outimpFile=\`basnam ${D}outimpFile .lib\`
51404     ;;
51405 *)
51406     ;;
51407 esac
51408 if [ -z ${D}outimpFile ]; then
51409     outimpFile=${D}outFile
51410 fi
51411 defFile="${D}{outFile}.def"
51412 arcFile="${D}{outimpFile}.a"
51413 arcFile2="${D}{outimpFile}.lib"
51414
51415 #create ${D}dllFile as something matching 8.3 restrictions,
51416 if [ -z ${D}renameScript ] ; then
51417     dllFile="${D}outFile"
51418 else
51419     dllFile=\`${D}renameScript ${D}outimpFile\`
51420 fi
51421
51422 if [ ${D}do_backup -ne 0 ] ; then
51423     if [ -f ${D}arcFile ] ; then
51424         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
51425     fi
51426     if [ -f ${D}arcFile2 ] ; then
51427         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
51428     fi
51429 fi
51430
51431 # Extract public symbols from all the object files.
51432 tmpdefFile=${D}{defFile}_%
51433 rm -f ${D}tmpdefFile
51434 for file in ${D}inputFiles ; do
51435     case ${D}file in
51436     *!)
51437         ;;
51438     *)
51439         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
51440         ;;
51441     esac
51442 done
51443
51444 # Create the def file.
51445 rm -f ${D}defFile
51446 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
51447 dllFile="${D}{dllFile}.dll"
51448 if [ ! -z ${D}description ]; then
51449     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
51450 fi
51451 echo "EXPORTS" >> ${D}defFile
51452
51453 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
51454 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
51455
51456 # Checks if the export is ok or not.
51457 for word in ${D}exclude_symbols; do
51458     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
51459     mv ${D}{tmpdefFile}% ${D}tmpdefFile
51460 done
51461
51462
51463 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51464     sed "=" < ${D}tmpdefFile | \\
51465     sed '
51466       N
51467       : loop
51468       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
51469       t loop
51470     ' > ${D}{tmpdefFile}%
51471     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
51472 else
51473     rm -f ${D}{tmpdefFile}%
51474 fi
51475 cat ${D}tmpdefFile >> ${D}defFile
51476 rm -f ${D}tmpdefFile
51477
51478 # Do linking, create implib, and apply lxlite.
51479 gccCmdl="";
51480 for file in ${D}inputFiles ; do
51481     case ${D}file in
51482     *!)
51483         ;;
51484     *)
51485         gccCmdl="${D}gccCmdl ${D}file"
51486         ;;
51487     esac
51488 done
51489 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
51490 touch "${D}{outFile}.dll"
51491
51492 doCommand "emximp -o ${D}arcFile ${D}defFile"
51493 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
51494     add_flags="";
51495     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51496         add_flags="-ynd"
51497     fi
51498     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
51499 fi
51500 doCommand "emxomf -s -l ${D}arcFile"
51501
51502 # Successful exit.
51503 CleanUp 1
51504 exit 0
51505 EOF
51506
51507         chmod +x dllar.sh
51508       ;;
51509
51510       powerpc-apple-macos* | \
51511       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
51512       *-*-mirbsd* | \
51513       *-*-sunos4* | \
51514       *-*-osf* | \
51515       *-*-dgux5* | \
51516       *-*-sysv5* | \
51517       *-pc-msdosdjgpp )
51518               ;;
51519
51520       *)
51521         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51522 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51523    { (exit 1); exit 1; }; }
51524     esac
51525
51526     if test "x$PIC_FLAG" != "x" ; then
51527         PIC_FLAG="$PIC_FLAG -DPIC"
51528     fi
51529
51530     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51531         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51532     fi
51533     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51534         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51535     fi
51536
51537
51538
51539
51540
51541
51542
51543
51544
51545     USE_SOVERSION=0
51546     USE_SOVERLINUX=0
51547     USE_SOVERSOLARIS=0
51548     USE_SOVERCYGWIN=0
51549     USE_SOTWOSYMLINKS=0
51550     USE_MACVERSION=0
51551     SONAME_FLAG=
51552
51553     case "${BAKEFILE_HOST}" in
51554       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
51555       *-*-k*bsd*-gnu | *-*-mirbsd* )
51556         if test "x$SUNCXX" = "xyes"; then
51557             SONAME_FLAG="-h "
51558         else
51559             SONAME_FLAG="-Wl,-soname,"
51560         fi
51561         USE_SOVERSION=1
51562         USE_SOVERLINUX=1
51563         USE_SOTWOSYMLINKS=1
51564       ;;
51565
51566       *-*-solaris2* )
51567         SONAME_FLAG="-h "
51568         USE_SOVERSION=1
51569         USE_SOVERSOLARIS=1
51570       ;;
51571
51572       *-*-darwin* )
51573         USE_MACVERSION=1
51574         USE_SOVERSION=1
51575         USE_SOTWOSYMLINKS=1
51576       ;;
51577
51578       *-*-cygwin* )
51579         USE_SOVERSION=1
51580         USE_SOVERCYGWIN=1
51581       ;;
51582     esac
51583
51584
51585
51586
51587
51588
51589
51590
51591
51592
51593     # Check whether --enable-dependency-tracking was given.
51594 if test "${enable_dependency_tracking+set}" = set; then
51595   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51596 fi
51597
51598
51599     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51600 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51601
51602     BK_DEPS=""
51603     if test "x$bk_use_trackdeps" = "xno" ; then
51604         DEPS_TRACKING=0
51605         { echo "$as_me:$LINENO: result: disabled" >&5
51606 echo "${ECHO_T}disabled" >&6; }
51607     else
51608         DEPS_TRACKING=1
51609
51610         if test "x$GCC" = "xyes"; then
51611             DEPSMODE=gcc
51612             case "${BAKEFILE_HOST}" in
51613                 *-*-darwin* )
51614                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51615                 ;;
51616                 * )
51617                     DEPSFLAG="-MMD"
51618                 ;;
51619             esac
51620             { echo "$as_me:$LINENO: result: gcc" >&5
51621 echo "${ECHO_T}gcc" >&6; }
51622         elif test "x$MWCC" = "xyes"; then
51623             DEPSMODE=mwcc
51624             DEPSFLAG="-MM"
51625             { echo "$as_me:$LINENO: result: mwcc" >&5
51626 echo "${ECHO_T}mwcc" >&6; }
51627         elif test "x$SUNCC" = "xyes"; then
51628             DEPSMODE=unixcc
51629             DEPSFLAG="-xM1"
51630             { echo "$as_me:$LINENO: result: Sun cc" >&5
51631 echo "${ECHO_T}Sun cc" >&6; }
51632         elif test "x$SGICC" = "xyes"; then
51633             DEPSMODE=unixcc
51634             DEPSFLAG="-M"
51635             { echo "$as_me:$LINENO: result: SGI cc" >&5
51636 echo "${ECHO_T}SGI cc" >&6; }
51637         elif test "x$HPCC" = "xyes"; then
51638             DEPSMODE=unixcc
51639             DEPSFLAG="+make"
51640             { echo "$as_me:$LINENO: result: HP cc" >&5
51641 echo "${ECHO_T}HP cc" >&6; }
51642         elif test "x$COMPAQCC" = "xyes"; then
51643             DEPSMODE=gcc
51644             DEPSFLAG="-MD"
51645             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51646 echo "${ECHO_T}Compaq cc" >&6; }
51647         else
51648             DEPS_TRACKING=0
51649             { echo "$as_me:$LINENO: result: none" >&5
51650 echo "${ECHO_T}none" >&6; }
51651         fi
51652
51653         if test $DEPS_TRACKING = 1 ; then
51654
51655 D='$'
51656 cat <<EOF >bk-deps
51657 #!/bin/sh
51658
51659 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51660 # script. It is used to track C/C++ files dependencies in portable way.
51661 #
51662 # Permission is given to use this file in any way.
51663
51664 DEPSMODE=${DEPSMODE}
51665 DEPSFLAG="${DEPSFLAG}"
51666 DEPSDIRBASE=.deps
51667
51668 if test ${D}DEPSMODE = gcc ; then
51669     ${D}* ${D}{DEPSFLAG}
51670     status=${D}?
51671
51672     # determine location of created files:
51673     while test ${D}# -gt 0; do
51674         case "${D}1" in
51675             -o )
51676                 shift
51677                 objfile=${D}1
51678             ;;
51679             -* )
51680             ;;
51681             * )
51682                 srcfile=${D}1
51683             ;;
51684         esac
51685         shift
51686     done
51687     objfilebase=\`basename ${D}objfile\`
51688     builddir=\`dirname ${D}objfile\`
51689     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51690     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51691     depsdir=${D}builddir/${D}DEPSDIRBASE
51692     mkdir -p ${D}depsdir
51693
51694     # if the compiler failed, we're done:
51695     if test ${D}{status} != 0 ; then
51696         rm -f ${D}depfile
51697         exit ${D}{status}
51698     fi
51699
51700     # move created file to the location we want it in:
51701     if test -f ${D}depfile ; then
51702         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51703         rm -f ${D}depfile
51704     else
51705         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51706         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
51707         if test ! -f ${D}depfile ; then
51708             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51709             depfile="${D}objfile.d"
51710         fi
51711         if test -f ${D}depfile ; then
51712             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51713             rm -f ${D}depfile
51714         fi
51715     fi
51716     exit 0
51717
51718 elif test ${D}DEPSMODE = mwcc ; then
51719     ${D}* || exit ${D}?
51720     # Run mwcc again with -MM and redirect into the dep file we want
51721     # NOTE: We can't use shift here because we need ${D}* to be valid
51722     prevarg=
51723     for arg in ${D}* ; do
51724         if test "${D}prevarg" = "-o"; then
51725             objfile=${D}arg
51726         else
51727             case "${D}arg" in
51728                 -* )
51729                 ;;
51730                 * )
51731                     srcfile=${D}arg
51732                 ;;
51733             esac
51734         fi
51735         prevarg="${D}arg"
51736     done
51737
51738     objfilebase=\`basename ${D}objfile\`
51739     builddir=\`dirname ${D}objfile\`
51740     depsdir=${D}builddir/${D}DEPSDIRBASE
51741     mkdir -p ${D}depsdir
51742
51743     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
51744     exit 0
51745
51746 elif test ${D}DEPSMODE = unixcc; then
51747     ${D}* || exit ${D}?
51748     # Run compiler again with deps flag and redirect into the dep file.
51749     # It doesn't work if the '-o FILE' option is used, but without it the
51750     # dependency file will contain the wrong name for the object. So it is
51751     # removed from the command line, and the dep file is fixed with sed.
51752     cmd=""
51753     while test ${D}# -gt 0; do
51754         case "${D}1" in
51755             -o )
51756                 shift
51757                 objfile=${D}1
51758             ;;
51759             * )
51760                 eval arg${D}#=\\${D}1
51761                 cmd="${D}cmd \\${D}arg${D}#"
51762             ;;
51763         esac
51764         shift
51765     done
51766
51767     objfilebase=\`basename ${D}objfile\`
51768     builddir=\`dirname ${D}objfile\`
51769     depsdir=${D}builddir/${D}DEPSDIRBASE
51770     mkdir -p ${D}depsdir
51771
51772     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
51773     exit 0
51774
51775 else
51776     ${D}*
51777     exit ${D}?
51778 fi
51779 EOF
51780
51781             chmod +x bk-deps
51782                                     BK_DEPS="`pwd`/bk-deps"
51783         fi
51784     fi
51785
51786
51787
51788
51789
51790     case ${BAKEFILE_HOST} in
51791         *-*-cygwin* | *-*-mingw32* )
51792                         if test -n "$ac_tool_prefix"; then
51793   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51794 set dummy ${ac_tool_prefix}windres; ac_word=$2
51795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51797 if test "${ac_cv_prog_WINDRES+set}" = set; then
51798   echo $ECHO_N "(cached) $ECHO_C" >&6
51799 else
51800   if test -n "$WINDRES"; then
51801   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51802 else
51803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51804 for as_dir in $PATH
51805 do
51806   IFS=$as_save_IFS
51807   test -z "$as_dir" && as_dir=.
51808   for ac_exec_ext in '' $ac_executable_extensions; do
51809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51810     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51812     break 2
51813   fi
51814 done
51815 done
51816 IFS=$as_save_IFS
51817
51818 fi
51819 fi
51820 WINDRES=$ac_cv_prog_WINDRES
51821 if test -n "$WINDRES"; then
51822   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51823 echo "${ECHO_T}$WINDRES" >&6; }
51824 else
51825   { echo "$as_me:$LINENO: result: no" >&5
51826 echo "${ECHO_T}no" >&6; }
51827 fi
51828
51829
51830 fi
51831 if test -z "$ac_cv_prog_WINDRES"; then
51832   ac_ct_WINDRES=$WINDRES
51833   # Extract the first word of "windres", so it can be a program name with args.
51834 set dummy windres; ac_word=$2
51835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51837 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51838   echo $ECHO_N "(cached) $ECHO_C" >&6
51839 else
51840   if test -n "$ac_ct_WINDRES"; then
51841   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51842 else
51843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51844 for as_dir in $PATH
51845 do
51846   IFS=$as_save_IFS
51847   test -z "$as_dir" && as_dir=.
51848   for ac_exec_ext in '' $ac_executable_extensions; do
51849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51850     ac_cv_prog_ac_ct_WINDRES="windres"
51851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51852     break 2
51853   fi
51854 done
51855 done
51856 IFS=$as_save_IFS
51857
51858 fi
51859 fi
51860 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51861 if test -n "$ac_ct_WINDRES"; then
51862   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51863 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51864 else
51865   { echo "$as_me:$LINENO: result: no" >&5
51866 echo "${ECHO_T}no" >&6; }
51867 fi
51868
51869   if test "x$ac_ct_WINDRES" = x; then
51870     WINDRES=""
51871   else
51872     case $cross_compiling:$ac_tool_warned in
51873 yes:)
51874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51875 whose name does not start with the host triplet.  If you think this
51876 configuration is useful to you, please write to autoconf@gnu.org." >&5
51877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51878 whose name does not start with the host triplet.  If you think this
51879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51880 ac_tool_warned=yes ;;
51881 esac
51882     WINDRES=$ac_ct_WINDRES
51883   fi
51884 else
51885   WINDRES="$ac_cv_prog_WINDRES"
51886 fi
51887
51888          ;;
51889
51890       *-*-darwin* | powerpc-apple-macos* )
51891             # Extract the first word of "Rez", so it can be a program name with args.
51892 set dummy Rez; ac_word=$2
51893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51895 if test "${ac_cv_prog_REZ+set}" = set; then
51896   echo $ECHO_N "(cached) $ECHO_C" >&6
51897 else
51898   if test -n "$REZ"; then
51899   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51900 else
51901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51902 for as_dir in $PATH
51903 do
51904   IFS=$as_save_IFS
51905   test -z "$as_dir" && as_dir=.
51906   for ac_exec_ext in '' $ac_executable_extensions; do
51907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51908     ac_cv_prog_REZ="Rez"
51909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51910     break 2
51911   fi
51912 done
51913 done
51914 IFS=$as_save_IFS
51915
51916   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51917 fi
51918 fi
51919 REZ=$ac_cv_prog_REZ
51920 if test -n "$REZ"; then
51921   { echo "$as_me:$LINENO: result: $REZ" >&5
51922 echo "${ECHO_T}$REZ" >&6; }
51923 else
51924   { echo "$as_me:$LINENO: result: no" >&5
51925 echo "${ECHO_T}no" >&6; }
51926 fi
51927
51928
51929             # Extract the first word of "SetFile", so it can be a program name with args.
51930 set dummy SetFile; ac_word=$2
51931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51933 if test "${ac_cv_prog_SETFILE+set}" = set; then
51934   echo $ECHO_N "(cached) $ECHO_C" >&6
51935 else
51936   if test -n "$SETFILE"; then
51937   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51938 else
51939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51940 for as_dir in $PATH
51941 do
51942   IFS=$as_save_IFS
51943   test -z "$as_dir" && as_dir=.
51944   for ac_exec_ext in '' $ac_executable_extensions; do
51945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51946     ac_cv_prog_SETFILE="SetFile"
51947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51948     break 2
51949   fi
51950 done
51951 done
51952 IFS=$as_save_IFS
51953
51954   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51955 fi
51956 fi
51957 SETFILE=$ac_cv_prog_SETFILE
51958 if test -n "$SETFILE"; then
51959   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51960 echo "${ECHO_T}$SETFILE" >&6; }
51961 else
51962   { echo "$as_me:$LINENO: result: no" >&5
51963 echo "${ECHO_T}no" >&6; }
51964 fi
51965
51966
51967         ;;
51968     esac
51969
51970
51971
51972
51973
51974
51975
51976
51977
51978     BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
51979
51980
51981 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
51982
51983
51984
51985     # Check whether --enable-precomp-headers was given.
51986 if test "${enable_precomp_headers+set}" = set; then
51987   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51988 fi
51989
51990
51991     GCC_PCH=0
51992     ICC_PCH=0
51993     USE_PCH=0
51994     BK_MAKE_PCH=""
51995
51996     case ${BAKEFILE_HOST} in
51997         *-*-cygwin* )
51998                                                 bk_use_pch="no"
51999             ;;
52000     esac
52001
52002     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
52003         if test "x$GCC" = "xyes"; then
52004                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
52005 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
52006             cat >conftest.$ac_ext <<_ACEOF
52007 /* confdefs.h.  */
52008 _ACEOF
52009 cat confdefs.h >>conftest.$ac_ext
52010 cat >>conftest.$ac_ext <<_ACEOF
52011 /* end confdefs.h.  */
52012
52013 int
52014 main ()
52015 {
52016
52017                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
52018                         There is no PCH support
52019                     #endif
52020                     #if (__GNUC__ < 3)
52021                         There is no PCH support
52022                     #endif
52023                     #if (__GNUC__ == 3) && \
52024                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
52025                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
52026                        ( defined(__INTEL_COMPILER) )
52027                         There is no PCH support
52028                     #endif
52029
52030   ;
52031   return 0;
52032 }
52033 _ACEOF
52034 rm -f conftest.$ac_objext
52035 if { (ac_try="$ac_compile"
52036 case "(($ac_try" in
52037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52038   *) ac_try_echo=$ac_try;;
52039 esac
52040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52041   (eval "$ac_compile") 2>conftest.er1
52042   ac_status=$?
52043   grep -v '^ *+' conftest.er1 >conftest.err
52044   rm -f conftest.er1
52045   cat conftest.err >&5
52046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52047   (exit $ac_status); } && {
52048          test -z "$ac_c_werror_flag" ||
52049          test ! -s conftest.err
52050        } && test -s conftest.$ac_objext; then
52051
52052                     { echo "$as_me:$LINENO: result: yes" >&5
52053 echo "${ECHO_T}yes" >&6; }
52054                     GCC_PCH=1
52055
52056 else
52057   echo "$as_me: failed program was:" >&5
52058 sed 's/^/| /' conftest.$ac_ext >&5
52059
52060
52061                     if test "$INTELCXX8" = "yes"; then
52062                         { echo "$as_me:$LINENO: result: yes" >&5
52063 echo "${ECHO_T}yes" >&6; }
52064                         ICC_PCH=1
52065                         if test "$INTELCXX10" = "yes"; then
52066                             ICC_PCH_CREATE_SWITCH="-pch-create"
52067                             ICC_PCH_USE_SWITCH="-pch-use"
52068                         else
52069                             ICC_PCH_CREATE_SWITCH="-create-pch"
52070                             ICC_PCH_USE_SWITCH="-use-pch"
52071                         fi
52072                     else
52073                         { echo "$as_me:$LINENO: result: no" >&5
52074 echo "${ECHO_T}no" >&6; }
52075                     fi
52076
52077 fi
52078
52079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52080             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
52081                 USE_PCH=1
52082
52083 D='$'
52084 cat <<EOF >bk-make-pch
52085 #!/bin/sh
52086
52087 # This script is part of Bakefile (http://www.bakefile.org) autoconf
52088 # script. It is used to generated precompiled headers.
52089 #
52090 # Permission is given to use this file in any way.
52091
52092 outfile="${D}{1}"
52093 header="${D}{2}"
52094 shift
52095 shift
52096
52097 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
52098
52099 compiler=""
52100 headerfile=""
52101
52102 while test ${D}{#} -gt 0; do
52103     add_to_cmdline=1
52104     case "${D}{1}" in
52105         -I* )
52106             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
52107             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
52108                 headerfile="${D}{incdir}/${D}{header}"
52109             fi
52110         ;;
52111         -use-pch|-use_pch|-pch-use )
52112             shift
52113             add_to_cmdline=0
52114         ;;
52115     esac
52116     if test ${D}add_to_cmdline = 1 ; then
52117         compiler="${D}{compiler} ${D}{1}"
52118     fi
52119     shift
52120 done
52121
52122 if test "x${D}{headerfile}" = "x" ; then
52123     echo "error: can't find header ${D}{header} in include paths" >&2
52124 else
52125     if test -f ${D}{outfile} ; then
52126         rm -f ${D}{outfile}
52127     else
52128         mkdir -p \`dirname ${D}{outfile}\`
52129     fi
52130     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
52131     mkdir -p ${D}{builddir}/.deps
52132     if test "x${GCC_PCH}" = "x1" ; then
52133         # can do this because gcc is >= 3.4:
52134         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
52135     elif test "x${ICC_PCH}" = "x1" ; then
52136         filename=pch_gen-${D}${D}
52137         file=${D}{filename}.c
52138         dfile=${D}{filename}.d
52139         cat > ${D}file <<EOT
52140 #include "${D}header"
52141 EOT
52142         # using -MF icc complains about differing command lines in creation/use
52143         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
52144           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
52145           rm -f ${D}file ${D}dfile ${D}{filename}.o
52146     fi
52147     exit ${D}{?}
52148 fi
52149 EOF
52150
52151                 chmod +x bk-make-pch
52152                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
52153             fi
52154         fi
52155     fi
52156
52157
52158
52159
52160
52161
52162
52163     COND_BUILD_DEBUG="#"
52164     if test "x$BUILD" = "xdebug" ; then
52165         COND_BUILD_DEBUG=""
52166     fi
52167
52168     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
52169     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
52170         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
52171     fi
52172
52173     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
52174     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
52175         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
52176     fi
52177
52178     COND_BUILD_DEBUG_UNICODE_0="#"
52179     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
52180         COND_BUILD_DEBUG_UNICODE_0=""
52181     fi
52182
52183     COND_BUILD_DEBUG_UNICODE_1="#"
52184     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52185         COND_BUILD_DEBUG_UNICODE_1=""
52186     fi
52187
52188     COND_BUILD_RELEASE="#"
52189     if test "x$BUILD" = "xrelease" ; then
52190         COND_BUILD_RELEASE=""
52191     fi
52192
52193     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
52194     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52195         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
52196     fi
52197
52198     COND_BUILD_RELEASE_UNICODE_0="#"
52199     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52200         COND_BUILD_RELEASE_UNICODE_0=""
52201     fi
52202
52203     COND_BUILD_RELEASE_UNICODE_1="#"
52204     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52205         COND_BUILD_RELEASE_UNICODE_1=""
52206     fi
52207
52208     COND_BUILD_debug="#"
52209     if test "x$BUILD" = "xdebug" ; then
52210         COND_BUILD_debug=""
52211     fi
52212
52213     COND_BUILD_debug_DEBUG_FLAG_default="#"
52214     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
52215         COND_BUILD_debug_DEBUG_FLAG_default=""
52216     fi
52217
52218     COND_BUILD_debug_DEBUG_INFO_default="#"
52219     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
52220         COND_BUILD_debug_DEBUG_INFO_default=""
52221     fi
52222
52223     COND_BUILD_debug_UNICODE_0="#"
52224     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
52225         COND_BUILD_debug_UNICODE_0=""
52226     fi
52227
52228     COND_BUILD_debug_UNICODE_1="#"
52229     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52230         COND_BUILD_debug_UNICODE_1=""
52231     fi
52232
52233     COND_BUILD_release="#"
52234     if test "x$BUILD" = "xrelease" ; then
52235         COND_BUILD_release=""
52236     fi
52237
52238     COND_BUILD_release_DEBUG_INFO_default="#"
52239     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52240         COND_BUILD_release_DEBUG_INFO_default=""
52241     fi
52242
52243     COND_BUILD_release_UNICODE_0="#"
52244     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52245         COND_BUILD_release_UNICODE_0=""
52246     fi
52247
52248     COND_BUILD_release_UNICODE_1="#"
52249     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52250         COND_BUILD_release_UNICODE_1=""
52251     fi
52252
52253     COND_DEBUG_FLAG_0="#"
52254     if test "x$DEBUG_FLAG" = "x0" ; then
52255         COND_DEBUG_FLAG_0=""
52256     fi
52257
52258     COND_DEBUG_FLAG_1="#"
52259     if test "x$DEBUG_FLAG" = "x1" ; then
52260         COND_DEBUG_FLAG_1=""
52261     fi
52262
52263     COND_DEBUG_INFO_0="#"
52264     if test "x$DEBUG_INFO" = "x0" ; then
52265         COND_DEBUG_INFO_0=""
52266     fi
52267
52268     COND_DEBUG_INFO_1="#"
52269     if test "x$DEBUG_INFO" = "x1" ; then
52270         COND_DEBUG_INFO_1=""
52271     fi
52272
52273     COND_DEPS_TRACKING_0="#"
52274     if test "x$DEPS_TRACKING" = "x0" ; then
52275         COND_DEPS_TRACKING_0=""
52276     fi
52277
52278     COND_DEPS_TRACKING_1="#"
52279     if test "x$DEPS_TRACKING" = "x1" ; then
52280         COND_DEPS_TRACKING_1=""
52281     fi
52282
52283     COND_GCC_PCH_1="#"
52284     if test "x$GCC_PCH" = "x1" ; then
52285         COND_GCC_PCH_1=""
52286     fi
52287
52288     COND_ICC_PCH_1="#"
52289     if test "x$ICC_PCH" = "x1" ; then
52290         COND_ICC_PCH_1=""
52291     fi
52292
52293     COND_MONOLITHIC_0="#"
52294     if test "x$MONOLITHIC" = "x0" ; then
52295         COND_MONOLITHIC_0=""
52296     fi
52297
52298     COND_MONOLITHIC_0_SHARED_0="#"
52299     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
52300         COND_MONOLITHIC_0_SHARED_0=""
52301     fi
52302
52303     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
52304     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
52305         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
52306     fi
52307
52308     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
52309     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
52310         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
52311     fi
52312
52313     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
52314     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52315         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
52316     fi
52317
52318     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
52319     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52320         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
52321     fi
52322
52323     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
52324     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52325         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
52326     fi
52327
52328     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1="#"
52329     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
52330         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1=""
52331     fi
52332
52333     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
52334     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
52335         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
52336     fi
52337
52338     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
52339     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
52340         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
52341     fi
52342
52343     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
52344     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52345         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
52346     fi
52347
52348     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
52349     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52350         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
52351     fi
52352
52353     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
52354     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52355         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
52356     fi
52357
52358     COND_MONOLITHIC_0_SHARED_1="#"
52359     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
52360         COND_MONOLITHIC_0_SHARED_1=""
52361     fi
52362
52363     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
52364     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
52365         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
52366     fi
52367
52368     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
52369     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
52370         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
52371     fi
52372
52373     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
52374     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52375         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
52376     fi
52377
52378     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
52379     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52380         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
52381     fi
52382
52383     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
52384     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52385         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
52386     fi
52387
52388     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1="#"
52389     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
52390         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1=""
52391     fi
52392
52393     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
52394     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
52395         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
52396     fi
52397
52398     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
52399     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
52400         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
52401     fi
52402
52403     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
52404     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
52405         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
52406     fi
52407
52408     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
52409     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
52410         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
52411     fi
52412
52413     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
52414     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52415         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
52416     fi
52417
52418     COND_MONOLITHIC_0_USE_AUI_1="#"
52419     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
52420         COND_MONOLITHIC_0_USE_AUI_1=""
52421     fi
52422
52423     COND_MONOLITHIC_0_USE_GUI_1="#"
52424     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
52425         COND_MONOLITHIC_0_USE_GUI_1=""
52426     fi
52427
52428     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
52429     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52430         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
52431     fi
52432
52433     COND_MONOLITHIC_0_USE_HTML_1="#"
52434     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
52435         COND_MONOLITHIC_0_USE_HTML_1=""
52436     fi
52437
52438     COND_MONOLITHIC_0_USE_MEDIA_1="#"
52439     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
52440         COND_MONOLITHIC_0_USE_MEDIA_1=""
52441     fi
52442
52443     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
52444     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
52445         COND_MONOLITHIC_0_USE_PROPGRID_1=""
52446     fi
52447
52448     COND_MONOLITHIC_0_USE_QA_1="#"
52449     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
52450         COND_MONOLITHIC_0_USE_QA_1=""
52451     fi
52452
52453     COND_MONOLITHIC_0_USE_RIBBON_1="#"
52454     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
52455         COND_MONOLITHIC_0_USE_RIBBON_1=""
52456     fi
52457
52458     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
52459     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52460         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
52461     fi
52462
52463     COND_MONOLITHIC_0_USE_STC_1="#"
52464     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
52465         COND_MONOLITHIC_0_USE_STC_1=""
52466     fi
52467
52468     COND_MONOLITHIC_0_USE_WEBVIEW_1="#"
52469     if test "x$MONOLITHIC" = "x0" -a "x$USE_WEBVIEW" = "x1" ; then
52470         COND_MONOLITHIC_0_USE_WEBVIEW_1=""
52471     fi
52472
52473     COND_MONOLITHIC_0_USE_XRC_1="#"
52474     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
52475         COND_MONOLITHIC_0_USE_XRC_1=""
52476     fi
52477
52478     COND_MONOLITHIC_1="#"
52479     if test "x$MONOLITHIC" = "x1" ; then
52480         COND_MONOLITHIC_1=""
52481     fi
52482
52483     COND_MONOLITHIC_1_SHARED_0="#"
52484     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
52485         COND_MONOLITHIC_1_SHARED_0=""
52486     fi
52487
52488     COND_MONOLITHIC_1_SHARED_1="#"
52489     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
52490         COND_MONOLITHIC_1_SHARED_1=""
52491     fi
52492
52493     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
52494     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
52495         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
52496     fi
52497
52498     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
52499     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
52500         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
52501     fi
52502
52503     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
52504     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52505         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
52506     fi
52507
52508     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
52509     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52510         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
52511     fi
52512
52513     COND_PLATFORM_MACOSX_1="#"
52514     if test "x$PLATFORM_MACOSX" = "x1" ; then
52515         COND_PLATFORM_MACOSX_1=""
52516     fi
52517
52518     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
52519     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
52520         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
52521     fi
52522
52523     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
52524     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52525         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
52526     fi
52527
52528     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52529     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52530         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52531     fi
52532
52533     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
52534     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52535         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
52536     fi
52537
52538     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52539     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52540         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52541     fi
52542
52543     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
52544     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52545         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
52546     fi
52547
52548     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52549     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52550         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52551     fi
52552
52553     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52554     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52555         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52556     fi
52557
52558     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
52559     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
52560         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
52561     fi
52562
52563     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
52564     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52565         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
52566     fi
52567
52568     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
52569     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52570         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
52571     fi
52572
52573     COND_PLATFORM_MACOS_1="#"
52574     if test "x$PLATFORM_MACOS" = "x1" ; then
52575         COND_PLATFORM_MACOS_1=""
52576     fi
52577
52578     COND_PLATFORM_MAC_0="#"
52579     if test "x$PLATFORM_MAC" = "x0" ; then
52580         COND_PLATFORM_MAC_0=""
52581     fi
52582
52583     COND_PLATFORM_MAC_1="#"
52584     if test "x$PLATFORM_MAC" = "x1" ; then
52585         COND_PLATFORM_MAC_1=""
52586     fi
52587
52588     COND_PLATFORM_MSDOS_0="#"
52589     if test "x$PLATFORM_MSDOS" = "x0" ; then
52590         COND_PLATFORM_MSDOS_0=""
52591     fi
52592
52593     COND_PLATFORM_MSDOS_1="#"
52594     if test "x$PLATFORM_MSDOS" = "x1" ; then
52595         COND_PLATFORM_MSDOS_1=""
52596     fi
52597
52598     COND_PLATFORM_OS2_1="#"
52599     if test "x$PLATFORM_OS2" = "x1" ; then
52600         COND_PLATFORM_OS2_1=""
52601     fi
52602
52603     COND_PLATFORM_UNIX_0="#"
52604     if test "x$PLATFORM_UNIX" = "x0" ; then
52605         COND_PLATFORM_UNIX_0=""
52606     fi
52607
52608     COND_PLATFORM_UNIX_1="#"
52609     if test "x$PLATFORM_UNIX" = "x1" ; then
52610         COND_PLATFORM_UNIX_1=""
52611     fi
52612
52613     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52614     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52615         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52616     fi
52617
52618     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52619     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52620         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52621     fi
52622
52623     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52624     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52625         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52626     fi
52627
52628     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52629     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52630         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52631     fi
52632
52633     COND_PLATFORM_WIN32_0="#"
52634     if test "x$PLATFORM_WIN32" = "x0" ; then
52635         COND_PLATFORM_WIN32_0=""
52636     fi
52637
52638     COND_PLATFORM_WIN32_1="#"
52639     if test "x$PLATFORM_WIN32" = "x1" ; then
52640         COND_PLATFORM_WIN32_1=""
52641     fi
52642
52643     COND_PLATFORM_WIN32_1_SHARED_0="#"
52644     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52645         COND_PLATFORM_WIN32_1_SHARED_0=""
52646     fi
52647
52648     COND_SHARED_0="#"
52649     if test "x$SHARED" = "x0" ; then
52650         COND_SHARED_0=""
52651     fi
52652
52653     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52654     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52655         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52656     fi
52657
52658     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52659     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52660         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52661     fi
52662
52663     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52664     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52665         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52666     fi
52667
52668     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52669     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52670         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52671     fi
52672
52673     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52674     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52675         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52676     fi
52677
52678     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52679     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52680         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52681     fi
52682
52683     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52684     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52685         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52686     fi
52687
52688     COND_SHARED_0_USE_STC_1="#"
52689     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52690         COND_SHARED_0_USE_STC_1=""
52691     fi
52692
52693     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
52694     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52695         COND_SHARED_0_wxUSE_EXPAT_builtin=""
52696     fi
52697
52698     COND_SHARED_0_wxUSE_REGEX_builtin="#"
52699     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52700         COND_SHARED_0_wxUSE_REGEX_builtin=""
52701     fi
52702
52703     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
52704     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52705         COND_SHARED_0_wxUSE_ZLIB_builtin=""
52706     fi
52707
52708     COND_SHARED_1="#"
52709     if test "x$SHARED" = "x1" ; then
52710         COND_SHARED_1=""
52711     fi
52712
52713     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52714     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52715         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52716     fi
52717
52718     COND_TOOLKIT_="#"
52719     if test "x$TOOLKIT" = "x" ; then
52720         COND_TOOLKIT_=""
52721     fi
52722
52723     COND_TOOLKIT_COCOA="#"
52724     if test "x$TOOLKIT" = "xCOCOA" ; then
52725         COND_TOOLKIT_COCOA=""
52726     fi
52727
52728     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52729     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52730         COND_TOOLKIT_COCOA_USE_GUI_1=""
52731     fi
52732
52733     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52734     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52735         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52736     fi
52737
52738     COND_TOOLKIT_DFB="#"
52739     if test "x$TOOLKIT" = "xDFB" ; then
52740         COND_TOOLKIT_DFB=""
52741     fi
52742
52743     COND_TOOLKIT_DFB_USE_GUI_1="#"
52744     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52745         COND_TOOLKIT_DFB_USE_GUI_1=""
52746     fi
52747
52748     COND_TOOLKIT_GTK="#"
52749     if test "x$TOOLKIT" = "xGTK" ; then
52750         COND_TOOLKIT_GTK=""
52751     fi
52752
52753     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52754     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52755         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52756     fi
52757
52758     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52759     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52760         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52761     fi
52762
52763     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52764     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52765         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52766     fi
52767
52768     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52769     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52770         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52771     fi
52772
52773     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52774     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52775         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52776     fi
52777
52778     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52779     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52780         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52781     fi
52782
52783     COND_TOOLKIT_GTK_USE_GUI_1="#"
52784     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52785         COND_TOOLKIT_GTK_USE_GUI_1=""
52786     fi
52787
52788     COND_TOOLKIT_MAC="#"
52789     if test "x$TOOLKIT" = "xMAC" ; then
52790         COND_TOOLKIT_MAC=""
52791     fi
52792
52793     COND_TOOLKIT_MGL="#"
52794     if test "x$TOOLKIT" = "xMGL" ; then
52795         COND_TOOLKIT_MGL=""
52796     fi
52797
52798     COND_TOOLKIT_MGL_USE_GUI_1="#"
52799     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52800         COND_TOOLKIT_MGL_USE_GUI_1=""
52801     fi
52802
52803     COND_TOOLKIT_MOTIF="#"
52804     if test "x$TOOLKIT" = "xMOTIF" ; then
52805         COND_TOOLKIT_MOTIF=""
52806     fi
52807
52808     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52809     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52810         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52811     fi
52812
52813     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52814     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52815         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52816     fi
52817
52818     COND_TOOLKIT_MSW="#"
52819     if test "x$TOOLKIT" = "xMSW" ; then
52820         COND_TOOLKIT_MSW=""
52821     fi
52822
52823     COND_TOOLKIT_MSW_USE_GUI_1="#"
52824     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52825         COND_TOOLKIT_MSW_USE_GUI_1=""
52826     fi
52827
52828     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52829     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52830         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52831     fi
52832
52833     COND_TOOLKIT_MSW_WXUNIV_0="#"
52834     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52835         COND_TOOLKIT_MSW_WXUNIV_0=""
52836     fi
52837
52838     COND_TOOLKIT_OSX_CARBON="#"
52839     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
52840         COND_TOOLKIT_OSX_CARBON=""
52841     fi
52842
52843     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52844     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52845         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52846     fi
52847
52848     COND_TOOLKIT_OSX_COCOA="#"
52849     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
52850         COND_TOOLKIT_OSX_COCOA=""
52851     fi
52852
52853     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52854     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52855         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52856     fi
52857
52858     COND_TOOLKIT_OSX_IPHONE="#"
52859     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
52860         COND_TOOLKIT_OSX_IPHONE=""
52861     fi
52862
52863     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52864     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52865         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52866     fi
52867
52868     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52869     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52870         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52871     fi
52872
52873     COND_TOOLKIT_PM="#"
52874     if test "x$TOOLKIT" = "xPM" ; then
52875         COND_TOOLKIT_PM=""
52876     fi
52877
52878     COND_TOOLKIT_PM_USE_GUI_1="#"
52879     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52880         COND_TOOLKIT_PM_USE_GUI_1=""
52881     fi
52882
52883     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52884     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52885         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52886     fi
52887
52888     COND_TOOLKIT_WINCE="#"
52889     if test "x$TOOLKIT" = "xWINCE" ; then
52890         COND_TOOLKIT_WINCE=""
52891     fi
52892
52893     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52894     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52895         COND_TOOLKIT_WINCE_USE_GUI_1=""
52896     fi
52897
52898     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52899     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52900         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52901     fi
52902
52903     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52904     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52905         COND_TOOLKIT_WINCE_WXUNIV_0=""
52906     fi
52907
52908     COND_TOOLKIT_X11="#"
52909     if test "x$TOOLKIT" = "xX11" ; then
52910         COND_TOOLKIT_X11=""
52911     fi
52912
52913     COND_TOOLKIT_X11_USE_GUI_1="#"
52914     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52915         COND_TOOLKIT_X11_USE_GUI_1=""
52916     fi
52917
52918     COND_UNICODE_1="#"
52919     if test "x$UNICODE" = "x1" ; then
52920         COND_UNICODE_1=""
52921     fi
52922
52923     COND_USE_CAIRO_1="#"
52924     if test "x$USE_CAIRO" = "x1" ; then
52925         COND_USE_CAIRO_1=""
52926     fi
52927
52928     COND_USE_EXCEPTIONS_0="#"
52929     if test "x$USE_EXCEPTIONS" = "x0" ; then
52930         COND_USE_EXCEPTIONS_0=""
52931     fi
52932
52933     COND_USE_EXCEPTIONS_1="#"
52934     if test "x$USE_EXCEPTIONS" = "x1" ; then
52935         COND_USE_EXCEPTIONS_1=""
52936     fi
52937
52938     COND_USE_GUI_0="#"
52939     if test "x$USE_GUI" = "x0" ; then
52940         COND_USE_GUI_0=""
52941     fi
52942
52943     COND_USE_GUI_1="#"
52944     if test "x$USE_GUI" = "x1" ; then
52945         COND_USE_GUI_1=""
52946     fi
52947
52948     COND_USE_GUI_1_USE_OPENGL_1="#"
52949     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52950         COND_USE_GUI_1_USE_OPENGL_1=""
52951     fi
52952
52953     COND_USE_GUI_1_WXUNIV_0="#"
52954     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52955         COND_USE_GUI_1_WXUNIV_0=""
52956     fi
52957
52958     COND_USE_GUI_1_WXUNIV_1="#"
52959     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52960         COND_USE_GUI_1_WXUNIV_1=""
52961     fi
52962
52963     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52964     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52965         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52966     fi
52967
52968     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52969     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52970         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52971     fi
52972
52973     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52974     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52975         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52976     fi
52977
52978     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52979     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52980         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52981     fi
52982
52983     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52984     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52985         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52986     fi
52987
52988     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52989     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52990         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52991     fi
52992
52993     COND_USE_OPENGL_1="#"
52994     if test "x$USE_OPENGL" = "x1" ; then
52995         COND_USE_OPENGL_1=""
52996     fi
52997
52998     COND_USE_PCH_1="#"
52999     if test "x$USE_PCH" = "x1" ; then
53000         COND_USE_PCH_1=""
53001     fi
53002
53003     COND_USE_PLUGINS_0="#"
53004     if test "x$USE_PLUGINS" = "x0" ; then
53005         COND_USE_PLUGINS_0=""
53006     fi
53007
53008     COND_USE_RTTI_0="#"
53009     if test "x$USE_RTTI" = "x0" ; then
53010         COND_USE_RTTI_0=""
53011     fi
53012
53013     COND_USE_RTTI_1="#"
53014     if test "x$USE_RTTI" = "x1" ; then
53015         COND_USE_RTTI_1=""
53016     fi
53017
53018     COND_USE_SOTWOSYMLINKS_1="#"
53019     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
53020         COND_USE_SOTWOSYMLINKS_1=""
53021     fi
53022
53023     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
53024     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
53025         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
53026     fi
53027
53028     COND_USE_SOVERLINUX_1="#"
53029     if test "x$USE_SOVERLINUX" = "x1" ; then
53030         COND_USE_SOVERLINUX_1=""
53031     fi
53032
53033     COND_USE_SOVERSION_0="#"
53034     if test "x$USE_SOVERSION" = "x0" ; then
53035         COND_USE_SOVERSION_0=""
53036     fi
53037
53038     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
53039     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
53040         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
53041     fi
53042
53043     COND_USE_SOVERSOLARIS_1="#"
53044     if test "x$USE_SOVERSOLARIS" = "x1" ; then
53045         COND_USE_SOVERSOLARIS_1=""
53046     fi
53047
53048     COND_USE_STC_1="#"
53049     if test "x$USE_STC" = "x1" ; then
53050         COND_USE_STC_1=""
53051     fi
53052
53053     COND_USE_THREADS_0="#"
53054     if test "x$USE_THREADS" = "x0" ; then
53055         COND_USE_THREADS_0=""
53056     fi
53057
53058     COND_USE_THREADS_1="#"
53059     if test "x$USE_THREADS" = "x1" ; then
53060         COND_USE_THREADS_1=""
53061     fi
53062
53063     COND_USE_XRC_1="#"
53064     if test "x$USE_XRC" = "x1" ; then
53065         COND_USE_XRC_1=""
53066     fi
53067
53068     COND_WINDOWS_IMPLIB_1="#"
53069     if test "x$WINDOWS_IMPLIB" = "x1" ; then
53070         COND_WINDOWS_IMPLIB_1=""
53071     fi
53072
53073     COND_WITH_PLUGIN_SDL_1="#"
53074     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
53075         COND_WITH_PLUGIN_SDL_1=""
53076     fi
53077
53078     COND_WXUNIV_0="#"
53079     if test "x$WXUNIV" = "x0" ; then
53080         COND_WXUNIV_0=""
53081     fi
53082
53083     COND_WXUNIV_1="#"
53084     if test "x$WXUNIV" = "x1" ; then
53085         COND_WXUNIV_1=""
53086     fi
53087
53088     COND_WXUSE_EXPAT_BUILTIN="#"
53089     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
53090         COND_WXUSE_EXPAT_BUILTIN=""
53091     fi
53092
53093     COND_WXUSE_LIBJPEG_BUILTIN="#"
53094     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
53095         COND_WXUSE_LIBJPEG_BUILTIN=""
53096     fi
53097
53098     COND_WXUSE_LIBPNG_BUILTIN="#"
53099     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53100         COND_WXUSE_LIBPNG_BUILTIN=""
53101     fi
53102
53103     COND_WXUSE_LIBTIFF_BUILTIN="#"
53104     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53105         COND_WXUSE_LIBTIFF_BUILTIN=""
53106     fi
53107
53108     COND_WXUSE_REGEX_BUILTIN="#"
53109     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
53110         COND_WXUSE_REGEX_BUILTIN=""
53111     fi
53112
53113     COND_WXUSE_ZLIB_BUILTIN="#"
53114     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
53115         COND_WXUSE_ZLIB_BUILTIN=""
53116     fi
53117
53118     COND_wxUSE_EXPAT_builtin="#"
53119     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
53120         COND_wxUSE_EXPAT_builtin=""
53121     fi
53122
53123     COND_wxUSE_LIBJPEG_builtin="#"
53124     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
53125         COND_wxUSE_LIBJPEG_builtin=""
53126     fi
53127
53128     COND_wxUSE_LIBPNG_builtin="#"
53129     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53130         COND_wxUSE_LIBPNG_builtin=""
53131     fi
53132
53133     COND_wxUSE_LIBTIFF_builtin="#"
53134     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53135         COND_wxUSE_LIBTIFF_builtin=""
53136     fi
53137
53138     COND_wxUSE_REGEX_builtin="#"
53139     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
53140         COND_wxUSE_REGEX_builtin=""
53141     fi
53142
53143     COND_wxUSE_ZLIB_builtin="#"
53144     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
53145         COND_wxUSE_ZLIB_builtin=""
53146     fi
53147
53148
53149
53150     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
53151         { { 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
53152 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;}
53153    { (exit 1); exit 1; }; }
53154     fi
53155
53156     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
53157         { { 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
53158 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;}
53159    { (exit 1); exit 1; }; }
53160     fi
53161
53162
53163 case ${INSTALL} in
53164   /* ) # Absolute
53165      ;;
53166   ?:* ) # Drive letter, considered as absolute.
53167      ;;
53168   *)
53169      INSTALL=`pwd`/${INSTALL} ;;
53170 esac
53171
53172 if test "$wxUSE_GUI" = "yes"; then
53173
53174 if test "$wxUSE_MSW" = 1 ; then
53175     if test "x$WINDRES" = "x"; then
53176         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
53177 echo "$as_me: error: Required windres program not found" >&2;}
53178    { (exit 1); exit 1; }; }
53179     fi
53180
53181     RESCOMP="$WINDRES"
53182 fi
53183
53184 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
53185             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
53186     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
53187
53188         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
53189
53190     # Extract the first word of "DeRez", so it can be a program name with args.
53191 set dummy DeRez; ac_word=$2
53192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53194 if test "${ac_cv_prog_DEREZ+set}" = set; then
53195   echo $ECHO_N "(cached) $ECHO_C" >&6
53196 else
53197   if test -n "$DEREZ"; then
53198   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
53199 else
53200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53201 for as_dir in $PATH
53202 do
53203   IFS=$as_save_IFS
53204   test -z "$as_dir" && as_dir=.
53205   for ac_exec_ext in '' $ac_executable_extensions; do
53206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53207     ac_cv_prog_DEREZ="DeRez"
53208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53209     break 2
53210   fi
53211 done
53212 done
53213 IFS=$as_save_IFS
53214
53215   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
53216 fi
53217 fi
53218 DEREZ=$ac_cv_prog_DEREZ
53219 if test -n "$DEREZ"; then
53220   { echo "$as_me:$LINENO: result: $DEREZ" >&5
53221 echo "${ECHO_T}$DEREZ" >&6; }
53222 else
53223   { echo "$as_me:$LINENO: result: no" >&5
53224 echo "${ECHO_T}no" >&6; }
53225 fi
53226
53227
53228
53229     MACSETFILE="\$(SETFILE)"
53230
53231             if test "$wxUSE_OSX_CARBON" = 1; then
53232         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
53233         RESCOMP="$REZ"
53234         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
53235     else
53236         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
53237         RESCOMP="cat /dev/null \| $REZ"
53238         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
53239     fi
53240
53241 else
53242         MACSETFILE="@true"
53243
53244     if test "$wxUSE_PM" = 1; then
53245         RESCOMP="emxbind"
53246         WXCONFIG_RESFLAGS="-ep"
53247
53248                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
53249     else
53250         POSTLINK_COMMAND="@true"
53251     fi
53252 fi
53253
53254 fi
53255
53256
53257 if test $GCC_PCH = 1
53258 then
53259     if test "$wx_cv_gcc_pch_bug" = yes; then
53260         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
53261 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
53262         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
53263 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
53264         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
53265 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
53266     fi
53267
53268     # Our WX_PRECOMP flag does not make sense for any language except C++ because
53269     # the headers that benefit from precompilation are mostly C++ headers.
53270     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
53271     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
53272     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
53273 fi
53274
53275
53276 if test "$wxUSE_MAC" = 1 ; then
53277     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
53278         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
53279         mv temp bk-deps
53280         chmod +x bk-deps
53281     fi
53282 fi
53283
53284 if test "$wxUSE_SHARED" = "yes"; then
53285                 case "${host}" in
53286       *-pc-os2_emx | *-pc-os2-emx )
53287         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53288         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53289         cp -p ${srcdir}/src/os2/dllnames.sh .
53290         cp -p ${srcdir}/src/os2/dllar.sh .
53291       ;;
53292     esac
53293 fi
53294 if test "$wxUSE_OMF" = "yes"; then
53295     case "${host}" in
53296       *-pc-os2_emx | *-pc-os2-emx )
53297         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
53298         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53299         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53300       ;;
53301     esac
53302 fi
53303
53304 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
53305
53306
53307 case "${host}" in
53308     *-*-solaris2* )
53309                         if test "$GCC" = yes; then
53310             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
53311             LIBS=`echo $LIBS | sed 's/-mt//'`
53312             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
53313         fi
53314         ;;
53315
53316     *-*-linux* )
53317                         if test "x$SUNCXX" = xyes; then
53318             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
53319             LIBS=`echo $LIBS | sed 's/-pthread//'`
53320             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
53321         fi
53322         ;;
53323 esac
53324
53325 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
53326 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
53327 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
53328 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
53329
53330 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
53331
53332
53333
53334
53335
53336
53337
53338
53339
53340
53341
53342
53343
53344
53345
53346
53347
53348
53349
53350
53351
53352
53353
53354
53355
53356
53357
53358
53359
53360
53361
53362
53363
53364
53365
53366
53367
53368
53369
53370
53371
53372
53373
53374
53375
53376
53377
53378
53379
53380
53381
53382
53383
53384
53385
53386
53387
53388
53389
53390
53391 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
53392 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
53393 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
53394 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
53395   echo $ECHO_N "(cached) $ECHO_C" >&6
53396 else
53397   cat >conftest.make <<\_ACEOF
53398 SHELL = /bin/sh
53399 all:
53400         @echo '@@@%%%=$(MAKE)=@@@%%%'
53401 _ACEOF
53402 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
53403 case `${MAKE-make} -f conftest.make 2>/dev/null` in
53404   *@@@%%%=?*=@@@%%%*)
53405     eval ac_cv_prog_make_${ac_make}_set=yes;;
53406   *)
53407     eval ac_cv_prog_make_${ac_make}_set=no;;
53408 esac
53409 rm -f conftest.make
53410 fi
53411 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
53412   { echo "$as_me:$LINENO: result: yes" >&5
53413 echo "${ECHO_T}yes" >&6; }
53414   SET_MAKE=
53415 else
53416   { echo "$as_me:$LINENO: result: no" >&5
53417 echo "${ECHO_T}no" >&6; }
53418   SET_MAKE="MAKE=${MAKE-make}"
53419 fi
53420
53421
53422
53423 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
53424
53425
53426 if test "$USE_WIN32" = 1; then
53427     ac_config_commands="$ac_config_commands rcdefs.h"
53428
53429 fi
53430
53431 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
53432
53433
53434 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
53435
53436
53437 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
53438
53439
53440 if test "$wx_cv_version_script" = "yes"; then
53441     ac_config_files="$ac_config_files version-script"
53442
53443 fi
53444 ac_config_files="$ac_config_files Makefile"
53445
53446
53447 ac_config_commands="$ac_config_commands wx-config"
53448
53449
53450
53451 if test "$wxWITH_SUBDIRS" != "no"; then
53452 if test "$wxUSE_GUI" = "yes"; then
53453     SUBDIRS="samples demos utils"
53454 else
53455             SUBDIRS="samples utils"
53456 fi
53457
53458
53459
53460 # Check whether --with-cppunit-prefix was given.
53461 if test "${with_cppunit_prefix+set}" = set; then
53462   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
53463 else
53464   cppunit_config_prefix=""
53465 fi
53466
53467
53468 # Check whether --with-cppunit-exec-prefix was given.
53469 if test "${with_cppunit_exec_prefix+set}" = set; then
53470   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
53471 else
53472   cppunit_config_exec_prefix=""
53473 fi
53474
53475
53476   if test x$cppunit_config_exec_prefix != x ; then
53477      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
53478      if test x${CPPUNIT_CONFIG+set} != xset ; then
53479         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
53480      fi
53481   fi
53482   if test x$cppunit_config_prefix != x ; then
53483      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
53484      if test x${CPPUNIT_CONFIG+set} != xset ; then
53485         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
53486      fi
53487   fi
53488
53489   # Extract the first word of "cppunit-config", so it can be a program name with args.
53490 set dummy cppunit-config; ac_word=$2
53491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53493 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
53494   echo $ECHO_N "(cached) $ECHO_C" >&6
53495 else
53496   case $CPPUNIT_CONFIG in
53497   [\\/]* | ?:[\\/]*)
53498   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
53499   ;;
53500   *)
53501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53502 for as_dir in $PATH
53503 do
53504   IFS=$as_save_IFS
53505   test -z "$as_dir" && as_dir=.
53506   for ac_exec_ext in '' $ac_executable_extensions; do
53507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53508     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53510     break 2
53511   fi
53512 done
53513 done
53514 IFS=$as_save_IFS
53515
53516   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
53517   ;;
53518 esac
53519 fi
53520 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
53521 if test -n "$CPPUNIT_CONFIG"; then
53522   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
53523 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
53524 else
53525   { echo "$as_me:$LINENO: result: no" >&5
53526 echo "${ECHO_T}no" >&6; }
53527 fi
53528
53529
53530   cppunit_version_min=1.8.0
53531
53532   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
53533 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
53534   no_cppunit=""
53535   if test "$CPPUNIT_CONFIG" = "no" ; then
53536     { echo "$as_me:$LINENO: result: no" >&5
53537 echo "${ECHO_T}no" >&6; }
53538     no_cppunit=yes
53539   else
53540     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
53541     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
53542     cppunit_version=`$CPPUNIT_CONFIG --version`
53543
53544     cppunit_major_version=`echo $cppunit_version | \
53545            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53546     cppunit_minor_version=`echo $cppunit_version | \
53547            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53548     cppunit_micro_version=`echo $cppunit_version | \
53549            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53550
53551     cppunit_major_min=`echo $cppunit_version_min | \
53552            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53553     cppunit_minor_min=`echo $cppunit_version_min | \
53554            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53555     cppunit_micro_min=`echo $cppunit_version_min | \
53556            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53557
53558     cppunit_version_proper=`expr \
53559         $cppunit_major_version \> $cppunit_major_min \| \
53560         $cppunit_major_version \= $cppunit_major_min \& \
53561         $cppunit_minor_version \> $cppunit_minor_min \| \
53562         $cppunit_major_version \= $cppunit_major_min \& \
53563         $cppunit_minor_version \= $cppunit_minor_min \& \
53564         $cppunit_micro_version \>= $cppunit_micro_min `
53565
53566     if test "$cppunit_version_proper" = "1" ; then
53567       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
53568 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
53569     else
53570       { echo "$as_me:$LINENO: result: no" >&5
53571 echo "${ECHO_T}no" >&6; }
53572       no_cppunit=yes
53573     fi
53574   fi
53575
53576   if test "x$no_cppunit" = x ; then
53577      SUBDIRS="$SUBDIRS tests"
53578   else
53579      CPPUNIT_CFLAGS=""
53580      CPPUNIT_LIBS=""
53581      :
53582   fi
53583
53584
53585
53586
53587
53588 for subdir in $SUBDIRS; do
53589     if test -d ${srcdir}/${subdir} ; then
53590         if test "$wxUSE_GUI" = "yes"; then
53591             if test ${subdir} = "samples"; then
53592                                                 makefiles="samples/Makefile.in $makefiles"
53593                 for sample in $SAMPLES_SUBDIRS; do
53594                     if test -d $srcdir/samples/$sample; then
53595                         makefiles="samples/$sample/Makefile.in $makefiles"
53596                     fi
53597                 done
53598             else
53599                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
53600                 eval "disabled=\$$disabled_var"
53601                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
53602                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
53603             fi
53604         else
53605                                     if test ${subdir} = "samples"; then
53606                                                 makefiles="samples/Makefile.in $makefiles"
53607                 for sample in `echo $SAMPLES_SUBDIRS`; do
53608                     if test -d $srcdir/samples/$sample; then
53609                         makefiles="samples/$sample/Makefile.in $makefiles"
53610                     fi
53611                 done
53612             elif test ${subdir} = "utils"; then
53613                 makefiles=""
53614                 for util in ifacecheck ; do
53615                     if test -d $srcdir/utils/$util ; then
53616                         makefiles="utils/$util/src/Makefile.in \
53617                                    $makefiles"
53618                     fi
53619                 done
53620             else
53621                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53622             fi
53623         fi
53624
53625         for mkin in $makefiles ; do
53626             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
53627             ac_config_files="$ac_config_files $mk"
53628
53629         done
53630     fi
53631 done
53632 fi
53633 cat >confcache <<\_ACEOF
53634 # This file is a shell script that caches the results of configure
53635 # tests run on this system so they can be shared between configure
53636 # scripts and configure runs, see configure's option --config-cache.
53637 # It is not useful on other systems.  If it contains results you don't
53638 # want to keep, you may remove or edit it.
53639 #
53640 # config.status only pays attention to the cache file if you give it
53641 # the --recheck option to rerun configure.
53642 #
53643 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53644 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53645 # following values.
53646
53647 _ACEOF
53648
53649 # The following way of writing the cache mishandles newlines in values,
53650 # but we know of no workaround that is simple, portable, and efficient.
53651 # So, we kill variables containing newlines.
53652 # Ultrix sh set writes to stderr and can't be redirected directly,
53653 # and sets the high bit in the cache file unless we assign to the vars.
53654 (
53655   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53656     eval ac_val=\$$ac_var
53657     case $ac_val in #(
53658     *${as_nl}*)
53659       case $ac_var in #(
53660       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53661 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53662       esac
53663       case $ac_var in #(
53664       _ | IFS | as_nl) ;; #(
53665       *) $as_unset $ac_var ;;
53666       esac ;;
53667     esac
53668   done
53669
53670   (set) 2>&1 |
53671     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53672     *${as_nl}ac_space=\ *)
53673       # `set' does not quote correctly, so add quotes (double-quote
53674       # substitution turns \\\\ into \\, and sed turns \\ into \).
53675       sed -n \
53676         "s/'/'\\\\''/g;
53677           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53678       ;; #(
53679     *)
53680       # `set' quotes correctly as required by POSIX, so do not add quotes.
53681       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53682       ;;
53683     esac |
53684     sort
53685 ) |
53686   sed '
53687      /^ac_cv_env_/b end
53688      t clear
53689      :clear
53690      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53691      t end
53692      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53693      :end' >>confcache
53694 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53695   if test -w "$cache_file"; then
53696     test "x$cache_file" != "x/dev/null" &&
53697       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53698 echo "$as_me: updating cache $cache_file" >&6;}
53699     cat confcache >$cache_file
53700   else
53701     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53702 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53703   fi
53704 fi
53705 rm -f confcache
53706
53707 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53708 # Let make expand exec_prefix.
53709 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53710
53711 DEFS=-DHAVE_CONFIG_H
53712
53713 ac_libobjs=
53714 ac_ltlibobjs=
53715 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53716   # 1. Remove the extension, and $U if already installed.
53717   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53718   ac_i=`echo "$ac_i" | sed "$ac_script"`
53719   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53720   #    will be set to the directory where LIBOBJS objects are built.
53721   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53722   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53723 done
53724 LIBOBJS=$ac_libobjs
53725
53726 LTLIBOBJS=$ac_ltlibobjs
53727
53728
53729
53730 : ${CONFIG_STATUS=./config.status}
53731 ac_clean_files_save=$ac_clean_files
53732 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53733 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53734 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53735 cat >$CONFIG_STATUS <<_ACEOF
53736 #! $SHELL
53737 # Generated by $as_me.
53738 # Run this file to recreate the current configuration.
53739 # Compiler output produced by configure, useful for debugging
53740 # configure, is in config.log if it exists.
53741
53742 debug=false
53743 ac_cs_recheck=false
53744 ac_cs_silent=false
53745 SHELL=\${CONFIG_SHELL-$SHELL}
53746 _ACEOF
53747
53748 cat >>$CONFIG_STATUS <<\_ACEOF
53749 ## --------------------- ##
53750 ## M4sh Initialization.  ##
53751 ## --------------------- ##
53752
53753 # Be more Bourne compatible
53754 DUALCASE=1; export DUALCASE # for MKS sh
53755 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53756   emulate sh
53757   NULLCMD=:
53758   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53759   # is contrary to our usage.  Disable this feature.
53760   alias -g '${1+"$@"}'='"$@"'
53761   setopt NO_GLOB_SUBST
53762 else
53763   case `(set -o) 2>/dev/null` in
53764   *posix*) set -o posix ;;
53765 esac
53766
53767 fi
53768
53769
53770
53771
53772 # PATH needs CR
53773 # Avoid depending upon Character Ranges.
53774 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53775 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53776 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53777 as_cr_digits='0123456789'
53778 as_cr_alnum=$as_cr_Letters$as_cr_digits
53779
53780 # The user is always right.
53781 if test "${PATH_SEPARATOR+set}" != set; then
53782   echo "#! /bin/sh" >conf$$.sh
53783   echo  "exit 0"   >>conf$$.sh
53784   chmod +x conf$$.sh
53785   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53786     PATH_SEPARATOR=';'
53787   else
53788     PATH_SEPARATOR=:
53789   fi
53790   rm -f conf$$.sh
53791 fi
53792
53793 # Support unset when possible.
53794 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53795   as_unset=unset
53796 else
53797   as_unset=false
53798 fi
53799
53800
53801 # IFS
53802 # We need space, tab and new line, in precisely that order.  Quoting is
53803 # there to prevent editors from complaining about space-tab.
53804 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53805 # splitting by setting IFS to empty value.)
53806 as_nl='
53807 '
53808 IFS=" ""        $as_nl"
53809
53810 # Find who we are.  Look in the path if we contain no directory separator.
53811 case $0 in
53812   *[\\/]* ) as_myself=$0 ;;
53813   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53814 for as_dir in $PATH
53815 do
53816   IFS=$as_save_IFS
53817   test -z "$as_dir" && as_dir=.
53818   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53819 done
53820 IFS=$as_save_IFS
53821
53822      ;;
53823 esac
53824 # We did not find ourselves, most probably we were run as `sh COMMAND'
53825 # in which case we are not to be found in the path.
53826 if test "x$as_myself" = x; then
53827   as_myself=$0
53828 fi
53829 if test ! -f "$as_myself"; then
53830   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53831   { (exit 1); exit 1; }
53832 fi
53833
53834 # Work around bugs in pre-3.0 UWIN ksh.
53835 for as_var in ENV MAIL MAILPATH
53836 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53837 done
53838 PS1='$ '
53839 PS2='> '
53840 PS4='+ '
53841
53842 # NLS nuisances.
53843 for as_var in \
53844   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53845   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53846   LC_TELEPHONE LC_TIME
53847 do
53848   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53849     eval $as_var=C; export $as_var
53850   else
53851     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53852   fi
53853 done
53854
53855 # Required to use basename.
53856 if expr a : '\(a\)' >/dev/null 2>&1 &&
53857    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53858   as_expr=expr
53859 else
53860   as_expr=false
53861 fi
53862
53863 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53864   as_basename=basename
53865 else
53866   as_basename=false
53867 fi
53868
53869
53870 # Name of the executable.
53871 as_me=`$as_basename -- "$0" ||
53872 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53873          X"$0" : 'X\(//\)$' \| \
53874          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53875 echo X/"$0" |
53876     sed '/^.*\/\([^/][^/]*\)\/*$/{
53877             s//\1/
53878             q
53879           }
53880           /^X\/\(\/\/\)$/{
53881             s//\1/
53882             q
53883           }
53884           /^X\/\(\/\).*/{
53885             s//\1/
53886             q
53887           }
53888           s/.*/./; q'`
53889
53890 # CDPATH.
53891 $as_unset CDPATH
53892
53893
53894
53895   as_lineno_1=$LINENO
53896   as_lineno_2=$LINENO
53897   test "x$as_lineno_1" != "x$as_lineno_2" &&
53898   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53899
53900   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53901   # uniformly replaced by the line number.  The first 'sed' inserts a
53902   # line-number line after each line using $LINENO; the second 'sed'
53903   # does the real work.  The second script uses 'N' to pair each
53904   # line-number line with the line containing $LINENO, and appends
53905   # trailing '-' during substitution so that $LINENO is not a special
53906   # case at line end.
53907   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53908   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53909   # E. McMahon (1931-1989) for sed's syntax.  :-)
53910   sed -n '
53911     p
53912     /[$]LINENO/=
53913   ' <$as_myself |
53914     sed '
53915       s/[$]LINENO.*/&-/
53916       t lineno
53917       b
53918       :lineno
53919       N
53920       :loop
53921       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53922       t loop
53923       s/-\n.*//
53924     ' >$as_me.lineno &&
53925   chmod +x "$as_me.lineno" ||
53926     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53927    { (exit 1); exit 1; }; }
53928
53929   # Don't try to exec as it changes $[0], causing all sort of problems
53930   # (the dirname of $[0] is not the place where we might find the
53931   # original and so on.  Autoconf is especially sensitive to this).
53932   . "./$as_me.lineno"
53933   # Exit status is that of the last command.
53934   exit
53935 }
53936
53937
53938 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53939   as_dirname=dirname
53940 else
53941   as_dirname=false
53942 fi
53943
53944 ECHO_C= ECHO_N= ECHO_T=
53945 case `echo -n x` in
53946 -n*)
53947   case `echo 'x\c'` in
53948   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53949   *)   ECHO_C='\c';;
53950   esac;;
53951 *)
53952   ECHO_N='-n';;
53953 esac
53954
53955 if expr a : '\(a\)' >/dev/null 2>&1 &&
53956    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53957   as_expr=expr
53958 else
53959   as_expr=false
53960 fi
53961
53962 rm -f conf$$ conf$$.exe conf$$.file
53963 if test -d conf$$.dir; then
53964   rm -f conf$$.dir/conf$$.file
53965 else
53966   rm -f conf$$.dir
53967   mkdir conf$$.dir
53968 fi
53969 echo >conf$$.file
53970 if ln -s conf$$.file conf$$ 2>/dev/null; then
53971   as_ln_s='ln -s'
53972   # ... but there are two gotchas:
53973   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53974   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53975   # In both cases, we have to default to `cp -p'.
53976   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53977     as_ln_s='cp -p'
53978 elif ln conf$$.file conf$$ 2>/dev/null; then
53979   as_ln_s=ln
53980 else
53981   as_ln_s='cp -p'
53982 fi
53983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53984 rmdir conf$$.dir 2>/dev/null
53985
53986 if mkdir -p . 2>/dev/null; then
53987   as_mkdir_p=:
53988 else
53989   test -d ./-p && rmdir ./-p
53990   as_mkdir_p=false
53991 fi
53992
53993 if test -x / >/dev/null 2>&1; then
53994   as_test_x='test -x'
53995 else
53996   if ls -dL / >/dev/null 2>&1; then
53997     as_ls_L_option=L
53998   else
53999     as_ls_L_option=
54000   fi
54001   as_test_x='
54002     eval sh -c '\''
54003       if test -d "$1"; then
54004         test -d "$1/.";
54005       else
54006         case $1 in
54007         -*)set "./$1";;
54008         esac;
54009         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
54010         ???[sx]*):;;*)false;;esac;fi
54011     '\'' sh
54012   '
54013 fi
54014 as_executable_p=$as_test_x
54015
54016 # Sed expression to map a string onto a valid CPP name.
54017 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
54018
54019 # Sed expression to map a string onto a valid variable name.
54020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
54021
54022
54023 exec 6>&1
54024
54025 # Save the log message, to keep $[0] and so on meaningful, and to
54026 # report actual input values of CONFIG_FILES etc. instead of their
54027 # values after options handling.
54028 ac_log="
54029 This file was extended by wxWidgets $as_me 2.9.3, which was
54030 generated by GNU Autoconf 2.61.  Invocation command line was
54031
54032   CONFIG_FILES    = $CONFIG_FILES
54033   CONFIG_HEADERS  = $CONFIG_HEADERS
54034   CONFIG_LINKS    = $CONFIG_LINKS
54035   CONFIG_COMMANDS = $CONFIG_COMMANDS
54036   $ $0 $@
54037
54038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
54039 "
54040
54041 _ACEOF
54042
54043 cat >>$CONFIG_STATUS <<_ACEOF
54044 # Files that config.status was made for.
54045 config_files="$ac_config_files"
54046 config_headers="$ac_config_headers"
54047 config_commands="$ac_config_commands"
54048
54049 _ACEOF
54050
54051 cat >>$CONFIG_STATUS <<\_ACEOF
54052 ac_cs_usage="\
54053 \`$as_me' instantiates files from templates according to the
54054 current configuration.
54055
54056 Usage: $0 [OPTIONS] [FILE]...
54057
54058   -h, --help       print this help, then exit
54059   -V, --version    print version number and configuration settings, then exit
54060   -q, --quiet      do not print progress messages
54061   -d, --debug      don't remove temporary files
54062       --recheck    update $as_me by reconfiguring in the same conditions
54063   --file=FILE[:TEMPLATE]
54064                    instantiate the configuration file FILE
54065   --header=FILE[:TEMPLATE]
54066                    instantiate the configuration header FILE
54067
54068 Configuration files:
54069 $config_files
54070
54071 Configuration headers:
54072 $config_headers
54073
54074 Configuration commands:
54075 $config_commands
54076
54077 Report bugs to <bug-autoconf@gnu.org>."
54078
54079 _ACEOF
54080 cat >>$CONFIG_STATUS <<_ACEOF
54081 ac_cs_version="\\
54082 wxWidgets config.status 2.9.3
54083 configured by $0, generated by GNU Autoconf 2.61,
54084   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
54085
54086 Copyright (C) 2006 Free Software Foundation, Inc.
54087 This config.status script is free software; the Free Software Foundation
54088 gives unlimited permission to copy, distribute and modify it."
54089
54090 ac_pwd='$ac_pwd'
54091 srcdir='$srcdir'
54092 INSTALL='$INSTALL'
54093 _ACEOF
54094
54095 cat >>$CONFIG_STATUS <<\_ACEOF
54096 # If no file are specified by the user, then we need to provide default
54097 # value.  By we need to know if files were specified by the user.
54098 ac_need_defaults=:
54099 while test $# != 0
54100 do
54101   case $1 in
54102   --*=*)
54103     ac_option=`expr "X$1" : 'X\([^=]*\)='`
54104     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
54105     ac_shift=:
54106     ;;
54107   *)
54108     ac_option=$1
54109     ac_optarg=$2
54110     ac_shift=shift
54111     ;;
54112   esac
54113
54114   case $ac_option in
54115   # Handling of the options.
54116   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
54117     ac_cs_recheck=: ;;
54118   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
54119     echo "$ac_cs_version"; exit ;;
54120   --debug | --debu | --deb | --de | --d | -d )
54121     debug=: ;;
54122   --file | --fil | --fi | --f )
54123     $ac_shift
54124     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
54125     ac_need_defaults=false;;
54126   --header | --heade | --head | --hea )
54127     $ac_shift
54128     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
54129     ac_need_defaults=false;;
54130   --he | --h)
54131     # Conflict between --help and --header
54132     { echo "$as_me: error: ambiguous option: $1
54133 Try \`$0 --help' for more information." >&2
54134    { (exit 1); exit 1; }; };;
54135   --help | --hel | -h )
54136     echo "$ac_cs_usage"; exit ;;
54137   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
54138   | -silent | --silent | --silen | --sile | --sil | --si | --s)
54139     ac_cs_silent=: ;;
54140
54141   # This is an error.
54142   -*) { echo "$as_me: error: unrecognized option: $1
54143 Try \`$0 --help' for more information." >&2
54144    { (exit 1); exit 1; }; } ;;
54145
54146   *) ac_config_targets="$ac_config_targets $1"
54147      ac_need_defaults=false ;;
54148
54149   esac
54150   shift
54151 done
54152
54153 ac_configure_extra_args=
54154
54155 if $ac_cs_silent; then
54156   exec 6>/dev/null
54157   ac_configure_extra_args="$ac_configure_extra_args --silent"
54158 fi
54159
54160 _ACEOF
54161 cat >>$CONFIG_STATUS <<_ACEOF
54162 if \$ac_cs_recheck; then
54163   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
54164   CONFIG_SHELL=$SHELL
54165   export CONFIG_SHELL
54166   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
54167 fi
54168
54169 _ACEOF
54170 cat >>$CONFIG_STATUS <<\_ACEOF
54171 exec 5>>config.log
54172 {
54173   echo
54174   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
54175 ## Running $as_me. ##
54176 _ASBOX
54177   echo "$ac_log"
54178 } >&5
54179
54180 _ACEOF
54181 cat >>$CONFIG_STATUS <<_ACEOF
54182 #
54183 # INIT-COMMANDS
54184 #
54185
54186             CPP="$CPP"
54187             infile="$srcdir/include/wx/msw/genrcdefs.h"
54188             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
54189
54190
54191  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54192  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54193  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54194                      LN_S="${LN_S}"
54195
54196
54197 _ACEOF
54198
54199 cat >>$CONFIG_STATUS <<\_ACEOF
54200
54201 # Handling of arguments.
54202 for ac_config_target in $ac_config_targets
54203 do
54204   case $ac_config_target in
54205     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
54206     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
54207     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
54208     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
54209     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
54210     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
54211     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
54212     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
54213     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
54214
54215   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
54216 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
54217    { (exit 1); exit 1; }; };;
54218   esac
54219 done
54220
54221
54222 # If the user did not use the arguments to specify the items to instantiate,
54223 # then the envvar interface is used.  Set only those that are not.
54224 # We use the long form for the default assignment because of an extremely
54225 # bizarre bug on SunOS 4.1.3.
54226 if $ac_need_defaults; then
54227   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54228   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54229   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
54230 fi
54231
54232 # Have a temporary directory for convenience.  Make it in the build tree
54233 # simply because there is no reason against having it here, and in addition,
54234 # creating and moving files from /tmp can sometimes cause problems.
54235 # Hook for its removal unless debugging.
54236 # Note that there is a small window in which the directory will not be cleaned:
54237 # after its creation but before its name has been assigned to `$tmp'.
54238 $debug ||
54239 {
54240   tmp=
54241   trap 'exit_status=$?
54242   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
54243 ' 0
54244   trap '{ (exit 1); exit 1; }' 1 2 13 15
54245 }
54246 # Create a (secure) tmp directory for tmp files.
54247
54248 {
54249   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
54250   test -n "$tmp" && test -d "$tmp"
54251 }  ||
54252 {
54253   tmp=./conf$$-$RANDOM
54254   (umask 077 && mkdir "$tmp")
54255 } ||
54256 {
54257    echo "$me: cannot create a temporary directory in ." >&2
54258    { (exit 1); exit 1; }
54259 }
54260
54261 #
54262 # Set up the sed scripts for CONFIG_FILES section.
54263 #
54264
54265 # No need to generate the scripts if there are no CONFIG_FILES.
54266 # This happens for instance when ./config.status config.h
54267 if test -n "$CONFIG_FILES"; then
54268
54269 _ACEOF
54270
54271
54272
54273 ac_delim='%!_!# '
54274 for ac_last_try in false false false false false :; do
54275   cat >conf$$subs.sed <<_ACEOF
54276 SHELL!$SHELL$ac_delim
54277 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
54278 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
54279 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
54280 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
54281 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
54282 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
54283 exec_prefix!$exec_prefix$ac_delim
54284 prefix!$prefix$ac_delim
54285 program_transform_name!$program_transform_name$ac_delim
54286 bindir!$bindir$ac_delim
54287 sbindir!$sbindir$ac_delim
54288 libexecdir!$libexecdir$ac_delim
54289 datarootdir!$datarootdir$ac_delim
54290 datadir!$datadir$ac_delim
54291 sysconfdir!$sysconfdir$ac_delim
54292 sharedstatedir!$sharedstatedir$ac_delim
54293 localstatedir!$localstatedir$ac_delim
54294 includedir!$includedir$ac_delim
54295 oldincludedir!$oldincludedir$ac_delim
54296 docdir!$docdir$ac_delim
54297 infodir!$infodir$ac_delim
54298 htmldir!$htmldir$ac_delim
54299 dvidir!$dvidir$ac_delim
54300 pdfdir!$pdfdir$ac_delim
54301 psdir!$psdir$ac_delim
54302 libdir!$libdir$ac_delim
54303 localedir!$localedir$ac_delim
54304 mandir!$mandir$ac_delim
54305 DEFS!$DEFS$ac_delim
54306 ECHO_C!$ECHO_C$ac_delim
54307 ECHO_N!$ECHO_N$ac_delim
54308 ECHO_T!$ECHO_T$ac_delim
54309 LIBS!$LIBS$ac_delim
54310 build_alias!$build_alias$ac_delim
54311 host_alias!$host_alias$ac_delim
54312 target_alias!$target_alias$ac_delim
54313 build!$build$ac_delim
54314 build_cpu!$build_cpu$ac_delim
54315 build_vendor!$build_vendor$ac_delim
54316 build_os!$build_os$ac_delim
54317 host!$host$ac_delim
54318 host_cpu!$host_cpu$ac_delim
54319 host_vendor!$host_vendor$ac_delim
54320 host_os!$host_os$ac_delim
54321 wx_top_builddir!$wx_top_builddir$ac_delim
54322 CC!$CC$ac_delim
54323 CFLAGS!$CFLAGS$ac_delim
54324 LDFLAGS!$LDFLAGS$ac_delim
54325 CPPFLAGS!$CPPFLAGS$ac_delim
54326 ac_ct_CC!$ac_ct_CC$ac_delim
54327 EXEEXT!$EXEEXT$ac_delim
54328 OBJEXT!$OBJEXT$ac_delim
54329 CPP!$CPP$ac_delim
54330 GREP!$GREP$ac_delim
54331 EGREP!$EGREP$ac_delim
54332 CXX!$CXX$ac_delim
54333 CXXFLAGS!$CXXFLAGS$ac_delim
54334 ac_ct_CXX!$ac_ct_CXX$ac_delim
54335 AR!$AR$ac_delim
54336 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
54337 CXXCPP!$CXXCPP$ac_delim
54338 subdirs!$subdirs$ac_delim
54339 PKG_CONFIG!$PKG_CONFIG$ac_delim
54340 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
54341 GTK_LIBS!$GTK_LIBS$ac_delim
54342 GTK_CONFIG!$GTK_CONFIG$ac_delim
54343 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
54344 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
54345 XMKMF!$XMKMF$ac_delim
54346 X_CFLAGS!$X_CFLAGS$ac_delim
54347 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
54348 X_LIBS!$X_LIBS$ac_delim
54349 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
54350 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
54351 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
54352 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
54353 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
54354 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
54355 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
54356 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
54357 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
54358 LIBICONV!$LIBICONV$ac_delim
54359 GXX_VERSION!$GXX_VERSION$ac_delim
54360 SDL_CONFIG!$SDL_CONFIG$ac_delim
54361 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
54362 SDL_LIBS!$SDL_LIBS$ac_delim
54363 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
54364 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
54365 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
54366 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
54367 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
54368 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
54369 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
54370 HILDON_LIBS!$HILDON_LIBS$ac_delim
54371 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
54372 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
54373 _ACEOF
54374
54375   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54376     break
54377   elif $ac_last_try; then
54378     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54380    { (exit 1); exit 1; }; }
54381   else
54382     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54383   fi
54384 done
54385
54386 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54387 if test -n "$ac_eof"; then
54388   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54389   ac_eof=`expr $ac_eof + 1`
54390 fi
54391
54392 cat >>$CONFIG_STATUS <<_ACEOF
54393 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
54394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54395 _ACEOF
54396 sed '
54397 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54398 s/^/s,@/; s/!/@,|#_!!_#|/
54399 :n
54400 t n
54401 s/'"$ac_delim"'$/,g/; t
54402 s/$/\\/; p
54403 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54404 ' >>$CONFIG_STATUS <conf$$subs.sed
54405 rm -f conf$$subs.sed
54406 cat >>$CONFIG_STATUS <<_ACEOF
54407 CEOF$ac_eof
54408 _ACEOF
54409
54410
54411 ac_delim='%!_!# '
54412 for ac_last_try in false false false false false :; do
54413   cat >conf$$subs.sed <<_ACEOF
54414 PYTHON!$PYTHON$ac_delim
54415 COND_PYTHON!$COND_PYTHON$ac_delim
54416 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
54417 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
54418 GST_CFLAGS!$GST_CFLAGS$ac_delim
54419 GST_LIBS!$GST_LIBS$ac_delim
54420 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
54421 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
54422 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
54423 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
54424 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
54425 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
54426 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
54427 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
54428 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
54429 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
54430 VENDOR!$VENDOR$ac_delim
54431 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
54432 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
54433 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
54434 WXUNIV!$WXUNIV$ac_delim
54435 MONOLITHIC!$MONOLITHIC$ac_delim
54436 USE_PLUGINS!$USE_PLUGINS$ac_delim
54437 CXXWARNINGS!$CXXWARNINGS$ac_delim
54438 EXTRALIBS!$EXTRALIBS$ac_delim
54439 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
54440 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
54441 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
54442 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
54443 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
54444 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
54445 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
54446 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
54447 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
54448 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
54449 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
54450 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
54451 UNICODE!$UNICODE$ac_delim
54452 DEBUG_INFO!$DEBUG_INFO$ac_delim
54453 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
54454 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
54455 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
54456 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
54457 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
54458 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
54459 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
54460 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
54461 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
54462 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
54463 RANLIB!$RANLIB$ac_delim
54464 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
54465 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
54466 INSTALL_DATA!$INSTALL_DATA$ac_delim
54467 LN_S!$LN_S$ac_delim
54468 SET_MAKE!$SET_MAKE$ac_delim
54469 MAKE_SET!$MAKE_SET$ac_delim
54470 AROPTIONS!$AROPTIONS$ac_delim
54471 STRIP!$STRIP$ac_delim
54472 NM!$NM$ac_delim
54473 INSTALL_DIR!$INSTALL_DIR$ac_delim
54474 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
54475 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
54476 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
54477 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
54478 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
54479 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
54480 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
54481 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
54482 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
54483 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
54484 SO_SUFFIX!$SO_SUFFIX$ac_delim
54485 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
54486 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
54487 LIBPREFIX!$LIBPREFIX$ac_delim
54488 LIBEXT!$LIBEXT$ac_delim
54489 DLLPREFIX!$DLLPREFIX$ac_delim
54490 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
54491 dlldir!$dlldir$ac_delim
54492 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
54493 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
54494 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
54495 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
54496 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
54497 PIC_FLAG!$PIC_FLAG$ac_delim
54498 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
54499 USE_SOVERSION!$USE_SOVERSION$ac_delim
54500 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
54501 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
54502 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
54503 USE_MACVERSION!$USE_MACVERSION$ac_delim
54504 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
54505 SONAME_FLAG!$SONAME_FLAG$ac_delim
54506 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
54507 BK_DEPS!$BK_DEPS$ac_delim
54508 WINDRES!$WINDRES$ac_delim
54509 REZ!$REZ$ac_delim
54510 SETFILE!$SETFILE$ac_delim
54511 _ACEOF
54512
54513   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54514     break
54515   elif $ac_last_try; then
54516     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54517 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54518    { (exit 1); exit 1; }; }
54519   else
54520     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54521   fi
54522 done
54523
54524 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54525 if test -n "$ac_eof"; then
54526   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54527   ac_eof=`expr $ac_eof + 1`
54528 fi
54529
54530 cat >>$CONFIG_STATUS <<_ACEOF
54531 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
54532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54533 _ACEOF
54534 sed '
54535 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54536 s/^/s,@/; s/!/@,|#_!!_#|/
54537 :n
54538 t n
54539 s/'"$ac_delim"'$/,g/; t
54540 s/$/\\/; p
54541 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54542 ' >>$CONFIG_STATUS <conf$$subs.sed
54543 rm -f conf$$subs.sed
54544 cat >>$CONFIG_STATUS <<_ACEOF
54545 CEOF$ac_eof
54546 _ACEOF
54547
54548
54549 ac_delim='%!_!# '
54550 for ac_last_try in false false false false false :; do
54551   cat >conf$$subs.sed <<_ACEOF
54552 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
54553 GCC_PCH!$GCC_PCH$ac_delim
54554 ICC_PCH!$ICC_PCH$ac_delim
54555 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
54556 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
54557 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
54558 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
54559 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
54560 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
54561 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
54562 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
54563 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
54564 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
54565 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
54566 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
54567 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
54568 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
54569 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
54570 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
54571 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
54572 COND_BUILD_release!$COND_BUILD_release$ac_delim
54573 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
54574 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
54575 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
54576 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
54577 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
54578 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
54579 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
54580 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
54581 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
54582 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
54583 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
54584 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
54585 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
54586 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
54587 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
54588 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
54589 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54590 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
54591 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1$ac_delim
54592 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
54593 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
54594 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
54595 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
54596 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
54597 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
54598 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
54599 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
54600 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
54601 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
54602 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
54603 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1$ac_delim
54604 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
54605 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
54606 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
54607 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54608 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54609 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54610 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54611 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54612 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54613 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54614 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
54615 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54616 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
54617 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54618 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54619 COND_MONOLITHIC_0_USE_WEBVIEW_1!$COND_MONOLITHIC_0_USE_WEBVIEW_1$ac_delim
54620 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54621 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54622 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54623 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54624 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54625 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54626 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54627 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54628 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54629 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
54630 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
54631 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54632 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
54633 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54634 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
54635 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54636 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
54637 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54638 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
54639 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54640 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54641 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
54642 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54643 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54644 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54645 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54646 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54647 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54648 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54649 _ACEOF
54650
54651   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54652     break
54653   elif $ac_last_try; then
54654     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54655 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54656    { (exit 1); exit 1; }; }
54657   else
54658     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54659   fi
54660 done
54661
54662 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54663 if test -n "$ac_eof"; then
54664   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54665   ac_eof=`expr $ac_eof + 1`
54666 fi
54667
54668 cat >>$CONFIG_STATUS <<_ACEOF
54669 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54671 _ACEOF
54672 sed '
54673 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54674 s/^/s,@/; s/!/@,|#_!!_#|/
54675 :n
54676 t n
54677 s/'"$ac_delim"'$/,g/; t
54678 s/$/\\/; p
54679 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54680 ' >>$CONFIG_STATUS <conf$$subs.sed
54681 rm -f conf$$subs.sed
54682 cat >>$CONFIG_STATUS <<_ACEOF
54683 CEOF$ac_eof
54684 _ACEOF
54685
54686
54687 ac_delim='%!_!# '
54688 for ac_last_try in false false false false false :; do
54689   cat >conf$$subs.sed <<_ACEOF
54690 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54691 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54692 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54693 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54694 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54695 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
54696 COND_SHARED_0!$COND_SHARED_0$ac_delim
54697 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54698 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54699 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54700 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54701 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54702 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54703 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54704 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54705 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
54706 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
54707 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
54708 COND_SHARED_1!$COND_SHARED_1$ac_delim
54709 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54710 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54711 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54712 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54713 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54714 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54715 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54716 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54717 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54718 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54719 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54720 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54721 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54722 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54723 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54724 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54725 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54726 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54727 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54728 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54729 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54730 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54731 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54732 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54733 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54734 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
54735 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54736 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
54737 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54738 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
54739 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54740 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
54741 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54742 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54743 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54744 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54745 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54746 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54747 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54748 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54749 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54750 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54751 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
54752 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54753 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54754 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54755 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54756 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54757 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54758 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54759 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54760 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54761 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54762 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54763 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54764 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54765 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54766 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54767 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54768 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54769 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54770 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
54771 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54772 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54773 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54774 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
54775 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54776 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54777 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54778 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54779 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54780 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54781 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54782 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54783 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54784 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54785 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54786 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54787 _ACEOF
54788
54789   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54790     break
54791   elif $ac_last_try; then
54792     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54794    { (exit 1); exit 1; }; }
54795   else
54796     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54797   fi
54798 done
54799
54800 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54801 if test -n "$ac_eof"; then
54802   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54803   ac_eof=`expr $ac_eof + 1`
54804 fi
54805
54806 cat >>$CONFIG_STATUS <<_ACEOF
54807 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54809 _ACEOF
54810 sed '
54811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54812 s/^/s,@/; s/!/@,|#_!!_#|/
54813 :n
54814 t n
54815 s/'"$ac_delim"'$/,g/; t
54816 s/$/\\/; p
54817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54818 ' >>$CONFIG_STATUS <conf$$subs.sed
54819 rm -f conf$$subs.sed
54820 cat >>$CONFIG_STATUS <<_ACEOF
54821 CEOF$ac_eof
54822 _ACEOF
54823
54824
54825 ac_delim='%!_!# '
54826 for ac_last_try in false false false false false :; do
54827   cat >conf$$subs.sed <<_ACEOF
54828 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54829 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54830 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54831 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
54832 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
54833 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
54834 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
54835 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
54836 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
54837 DEREZ!$DEREZ$ac_delim
54838 SHARED!$SHARED$ac_delim
54839 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54840 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54841 USE_GUI!$USE_GUI$ac_delim
54842 AFMINSTALL!$AFMINSTALL$ac_delim
54843 WIN32INSTALL!$WIN32INSTALL$ac_delim
54844 TOOLKIT!$TOOLKIT$ac_delim
54845 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54846 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54847 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54848 cross_compiling!$cross_compiling$ac_delim
54849 WIDGET_SET!$WIDGET_SET$ac_delim
54850 WX_RELEASE!$WX_RELEASE$ac_delim
54851 WX_VERSION!$WX_VERSION$ac_delim
54852 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54853 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54854 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54855 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54856 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54857 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54858 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54859 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
54860 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54861 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54862 GUIDIST!$GUIDIST$ac_delim
54863 DISTDIR!$DISTDIR$ac_delim
54864 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54865 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54866 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54867 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54868 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54869 RESCOMP!$RESCOMP$ac_delim
54870 RESFLAGS!$RESFLAGS$ac_delim
54871 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54872 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54873 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54874 LIBWXMACRES!$LIBWXMACRES$ac_delim
54875 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54876 MACSETFILE!$MACSETFILE$ac_delim
54877 GCC!$GCC$ac_delim
54878 DLLTOOL!$DLLTOOL$ac_delim
54879 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54880 LIBOBJS!$LIBOBJS$ac_delim
54881 LTLIBOBJS!$LTLIBOBJS$ac_delim
54882 _ACEOF
54883
54884   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
54885     break
54886   elif $ac_last_try; then
54887     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54888 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54889    { (exit 1); exit 1; }; }
54890   else
54891     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54892   fi
54893 done
54894
54895 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54896 if test -n "$ac_eof"; then
54897   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54898   ac_eof=`expr $ac_eof + 1`
54899 fi
54900
54901 cat >>$CONFIG_STATUS <<_ACEOF
54902 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54903 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54904 _ACEOF
54905 sed '
54906 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54907 s/^/s,@/; s/!/@,|#_!!_#|/
54908 :n
54909 t n
54910 s/'"$ac_delim"'$/,g/; t
54911 s/$/\\/; p
54912 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54913 ' >>$CONFIG_STATUS <conf$$subs.sed
54914 rm -f conf$$subs.sed
54915 cat >>$CONFIG_STATUS <<_ACEOF
54916 :end
54917 s/|#_!!_#|//g
54918 CEOF$ac_eof
54919 _ACEOF
54920
54921
54922 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54923 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54924 # trailing colons and then remove the whole line if VPATH becomes empty
54925 # (actually we leave an empty line to preserve line numbers).
54926 if test "x$srcdir" = x.; then
54927   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54928 s/:*\$(srcdir):*/:/
54929 s/:*\${srcdir}:*/:/
54930 s/:*@srcdir@:*/:/
54931 s/^\([^=]*=[     ]*\):*/\1/
54932 s/:*$//
54933 s/^[^=]*=[       ]*$//
54934 }'
54935 fi
54936
54937 cat >>$CONFIG_STATUS <<\_ACEOF
54938 fi # test -n "$CONFIG_FILES"
54939
54940
54941 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54942 do
54943   case $ac_tag in
54944   :[FHLC]) ac_mode=$ac_tag; continue;;
54945   esac
54946   case $ac_mode$ac_tag in
54947   :[FHL]*:*);;
54948   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54949 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54950    { (exit 1); exit 1; }; };;
54951   :[FH]-) ac_tag=-:-;;
54952   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54953   esac
54954   ac_save_IFS=$IFS
54955   IFS=:
54956   set x $ac_tag
54957   IFS=$ac_save_IFS
54958   shift
54959   ac_file=$1
54960   shift
54961
54962   case $ac_mode in
54963   :L) ac_source=$1;;
54964   :[FH])
54965     ac_file_inputs=
54966     for ac_f
54967     do
54968       case $ac_f in
54969       -) ac_f="$tmp/stdin";;
54970       *) # Look for the file first in the build tree, then in the source tree
54971          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54972          # because $ac_f cannot contain `:'.
54973          test -f "$ac_f" ||
54974            case $ac_f in
54975            [\\/$]*) false;;
54976            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54977            esac ||
54978            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54979 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54980    { (exit 1); exit 1; }; };;
54981       esac
54982       ac_file_inputs="$ac_file_inputs $ac_f"
54983     done
54984
54985     # Let's still pretend it is `configure' which instantiates (i.e., don't
54986     # use $as_me), people would be surprised to read:
54987     #    /* config.h.  Generated by config.status.  */
54988     configure_input="Generated from "`IFS=:
54989           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54990     if test x"$ac_file" != x-; then
54991       configure_input="$ac_file.  $configure_input"
54992       { echo "$as_me:$LINENO: creating $ac_file" >&5
54993 echo "$as_me: creating $ac_file" >&6;}
54994     fi
54995
54996     case $ac_tag in
54997     *:-:* | *:-) cat >"$tmp/stdin";;
54998     esac
54999     ;;
55000   esac
55001
55002   ac_dir=`$as_dirname -- "$ac_file" ||
55003 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55004          X"$ac_file" : 'X\(//\)[^/]' \| \
55005          X"$ac_file" : 'X\(//\)$' \| \
55006          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
55007 echo X"$ac_file" |
55008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55009             s//\1/
55010             q
55011           }
55012           /^X\(\/\/\)[^/].*/{
55013             s//\1/
55014             q
55015           }
55016           /^X\(\/\/\)$/{
55017             s//\1/
55018             q
55019           }
55020           /^X\(\/\).*/{
55021             s//\1/
55022             q
55023           }
55024           s/.*/./; q'`
55025   { as_dir="$ac_dir"
55026   case $as_dir in #(
55027   -*) as_dir=./$as_dir;;
55028   esac
55029   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55030     as_dirs=
55031     while :; do
55032       case $as_dir in #(
55033       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55034       *) as_qdir=$as_dir;;
55035       esac
55036       as_dirs="'$as_qdir' $as_dirs"
55037       as_dir=`$as_dirname -- "$as_dir" ||
55038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55039          X"$as_dir" : 'X\(//\)[^/]' \| \
55040          X"$as_dir" : 'X\(//\)$' \| \
55041          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55042 echo X"$as_dir" |
55043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55044             s//\1/
55045             q
55046           }
55047           /^X\(\/\/\)[^/].*/{
55048             s//\1/
55049             q
55050           }
55051           /^X\(\/\/\)$/{
55052             s//\1/
55053             q
55054           }
55055           /^X\(\/\).*/{
55056             s//\1/
55057             q
55058           }
55059           s/.*/./; q'`
55060       test -d "$as_dir" && break
55061     done
55062     test -z "$as_dirs" || eval "mkdir $as_dirs"
55063   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55064 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55065    { (exit 1); exit 1; }; }; }
55066   ac_builddir=.
55067
55068 case "$ac_dir" in
55069 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55070 *)
55071   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55072   # A ".." for each directory in $ac_dir_suffix.
55073   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55074   case $ac_top_builddir_sub in
55075   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55076   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55077   esac ;;
55078 esac
55079 ac_abs_top_builddir=$ac_pwd
55080 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55081 # for backward compatibility:
55082 ac_top_builddir=$ac_top_build_prefix
55083
55084 case $srcdir in
55085   .)  # We are building in place.
55086     ac_srcdir=.
55087     ac_top_srcdir=$ac_top_builddir_sub
55088     ac_abs_top_srcdir=$ac_pwd ;;
55089   [\\/]* | ?:[\\/]* )  # Absolute name.
55090     ac_srcdir=$srcdir$ac_dir_suffix;
55091     ac_top_srcdir=$srcdir
55092     ac_abs_top_srcdir=$srcdir ;;
55093   *) # Relative name.
55094     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55095     ac_top_srcdir=$ac_top_build_prefix$srcdir
55096     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55097 esac
55098 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55099
55100
55101   case $ac_mode in
55102   :F)
55103   #
55104   # CONFIG_FILE
55105   #
55106
55107   case $INSTALL in
55108   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
55109   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
55110   esac
55111 _ACEOF
55112
55113 cat >>$CONFIG_STATUS <<\_ACEOF
55114 # If the template does not know about datarootdir, expand it.
55115 # FIXME: This hack should be removed a few years after 2.60.
55116 ac_datarootdir_hack=; ac_datarootdir_seen=
55117
55118 case `sed -n '/datarootdir/ {
55119   p
55120   q
55121 }
55122 /@datadir@/p
55123 /@docdir@/p
55124 /@infodir@/p
55125 /@localedir@/p
55126 /@mandir@/p
55127 ' $ac_file_inputs` in
55128 *datarootdir*) ac_datarootdir_seen=yes;;
55129 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
55130   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
55131 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
55132 _ACEOF
55133 cat >>$CONFIG_STATUS <<_ACEOF
55134   ac_datarootdir_hack='
55135   s&@datadir@&$datadir&g
55136   s&@docdir@&$docdir&g
55137   s&@infodir@&$infodir&g
55138   s&@localedir@&$localedir&g
55139   s&@mandir@&$mandir&g
55140     s&\\\${datarootdir}&$datarootdir&g' ;;
55141 esac
55142 _ACEOF
55143
55144 # Neutralize VPATH when `$srcdir' = `.'.
55145 # Shell code in configure.ac might set extrasub.
55146 # FIXME: do we really want to maintain this feature?
55147 cat >>$CONFIG_STATUS <<_ACEOF
55148   sed "$ac_vpsub
55149 $extrasub
55150 _ACEOF
55151 cat >>$CONFIG_STATUS <<\_ACEOF
55152 :t
55153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55154 s&@configure_input@&$configure_input&;t t
55155 s&@top_builddir@&$ac_top_builddir_sub&;t t
55156 s&@srcdir@&$ac_srcdir&;t t
55157 s&@abs_srcdir@&$ac_abs_srcdir&;t t
55158 s&@top_srcdir@&$ac_top_srcdir&;t t
55159 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
55160 s&@builddir@&$ac_builddir&;t t
55161 s&@abs_builddir@&$ac_abs_builddir&;t t
55162 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
55163 s&@INSTALL@&$ac_INSTALL&;t t
55164 $ac_datarootdir_hack
55165 " $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
55166
55167 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
55168   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
55169   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
55170   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55171 which seems to be undefined.  Please make sure it is defined." >&5
55172 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55173 which seems to be undefined.  Please make sure it is defined." >&2;}
55174
55175   rm -f "$tmp/stdin"
55176   case $ac_file in
55177   -) cat "$tmp/out"; rm -f "$tmp/out";;
55178   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
55179   esac
55180  ;;
55181   :H)
55182   #
55183   # CONFIG_HEADER
55184   #
55185 _ACEOF
55186
55187 # Transform confdefs.h into a sed script `conftest.defines', that
55188 # substitutes the proper values into config.h.in to produce config.h.
55189 rm -f conftest.defines conftest.tail
55190 # First, append a space to every undef/define line, to ease matching.
55191 echo 's/$/ /' >conftest.defines
55192 # Then, protect against being on the right side of a sed subst, or in
55193 # an unquoted here document, in config.status.  If some macros were
55194 # called several times there might be several #defines for the same
55195 # symbol, which is useless.  But do not sort them, since the last
55196 # AC_DEFINE must be honored.
55197 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
55198 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
55199 # NAME is the cpp macro being defined, VALUE is the value it is being given.
55200 # PARAMS is the parameter list in the macro definition--in most cases, it's
55201 # just an empty string.
55202 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
55203 ac_dB='\\)[      (].*,\\1define\\2'
55204 ac_dC=' '
55205 ac_dD=' ,'
55206
55207 uniq confdefs.h |
55208   sed -n '
55209         t rset
55210         :rset
55211         s/^[     ]*#[    ]*define[       ][      ]*//
55212         t ok
55213         d
55214         :ok
55215         s/[\\&,]/\\&/g
55216         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
55217         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
55218   ' >>conftest.defines
55219
55220 # Remove the space that was appended to ease matching.
55221 # Then replace #undef with comments.  This is necessary, for
55222 # example, in the case of _POSIX_SOURCE, which is predefined and required
55223 # on some systems where configure will not decide to define it.
55224 # (The regexp can be short, since the line contains either #define or #undef.)
55225 echo 's/ $//
55226 s,^[     #]*u.*,/* & */,' >>conftest.defines
55227
55228 # Break up conftest.defines:
55229 ac_max_sed_lines=50
55230
55231 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
55232 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
55233 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
55234 # et cetera.
55235 ac_in='$ac_file_inputs'
55236 ac_out='"$tmp/out1"'
55237 ac_nxt='"$tmp/out2"'
55238
55239 while :
55240 do
55241   # Write a here document:
55242     cat >>$CONFIG_STATUS <<_ACEOF
55243     # First, check the format of the line:
55244     cat >"\$tmp/defines.sed" <<\\CEOF
55245 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
55246 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
55247 b
55248 :def
55249 _ACEOF
55250   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
55251   echo 'CEOF
55252     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
55253   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
55254   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
55255   grep . conftest.tail >/dev/null || break
55256   rm -f conftest.defines
55257   mv conftest.tail conftest.defines
55258 done
55259 rm -f conftest.defines conftest.tail
55260
55261 echo "ac_result=$ac_in" >>$CONFIG_STATUS
55262 cat >>$CONFIG_STATUS <<\_ACEOF
55263   if test x"$ac_file" != x-; then
55264     echo "/* $configure_input  */" >"$tmp/config.h"
55265     cat "$ac_result" >>"$tmp/config.h"
55266     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
55267       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
55268 echo "$as_me: $ac_file is unchanged" >&6;}
55269     else
55270       rm -f $ac_file
55271       mv "$tmp/config.h" $ac_file
55272     fi
55273   else
55274     echo "/* $configure_input  */"
55275     cat "$ac_result"
55276   fi
55277   rm -f "$tmp/out12"
55278  ;;
55279
55280   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
55281 echo "$as_me: executing $ac_file commands" >&6;}
55282  ;;
55283   esac
55284
55285
55286   case $ac_file$ac_mode in
55287     "rcdefs.h":C)
55288             mkdir -p $outdir &&
55289             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
55290          ;;
55291     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
55292     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
55293     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
55294     "wx-config":C)  rm -f wx-config
55295                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
55296                     ;;
55297
55298   esac
55299 done # for ac_tag
55300
55301
55302 { (exit 0); exit 0; }
55303 _ACEOF
55304 chmod +x $CONFIG_STATUS
55305 ac_clean_files=$ac_clean_files_save
55306
55307
55308 # configure is writing to config.log, and then calls config.status.
55309 # config.status does its own redirection, appending to config.log.
55310 # Unfortunately, on DOS this fails, as config.log is still kept open
55311 # by configure, so config.status won't be able to write to it; its
55312 # output is simply discarded.  So we exec the FD to /dev/null,
55313 # effectively closing config.log, so it can be properly (re)opened and
55314 # appended to by config.status.  When coming back to configure, we
55315 # need to make the FD available again.
55316 if test "$no_create" != yes; then
55317   ac_cs_success=:
55318   ac_config_status_args=
55319   test "$silent" = yes &&
55320     ac_config_status_args="$ac_config_status_args --quiet"
55321   exec 5>/dev/null
55322   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
55323   exec 5>>config.log
55324   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
55325   # would make configure fail if this is the last instruction.
55326   $ac_cs_success || { (exit 1); exit 1; }
55327 fi
55328
55329 #
55330 # CONFIG_SUBDIRS section.
55331 #
55332 if test "$no_recursion" != yes; then
55333
55334   # Remove --cache-file and --srcdir arguments so they do not pile up.
55335   ac_sub_configure_args=
55336   ac_prev=
55337   eval "set x $ac_configure_args"
55338   shift
55339   for ac_arg
55340   do
55341     if test -n "$ac_prev"; then
55342       ac_prev=
55343       continue
55344     fi
55345     case $ac_arg in
55346     -cache-file | --cache-file | --cache-fil | --cache-fi \
55347     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
55348       ac_prev=cache_file ;;
55349     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
55350     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
55351     | --c=*)
55352       ;;
55353     --config-cache | -C)
55354       ;;
55355     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
55356       ac_prev=srcdir ;;
55357     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
55358       ;;
55359     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
55360       ac_prev=prefix ;;
55361     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
55362       ;;
55363     *)
55364       case $ac_arg in
55365       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55366       esac
55367       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
55368     esac
55369   done
55370
55371   # Always prepend --prefix to ensure using the same prefix
55372   # in subdir configurations.
55373   ac_arg="--prefix=$prefix"
55374   case $ac_arg in
55375   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55376   esac
55377   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
55378
55379   # Pass --silent
55380   if test "$silent" = yes; then
55381     ac_sub_configure_args="--silent $ac_sub_configure_args"
55382   fi
55383
55384   ac_popdir=`pwd`
55385   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
55386
55387     # Do not complain, so a configure script can configure whichever
55388     # parts of a large source tree are present.
55389     test -d "$srcdir/$ac_dir" || continue
55390
55391     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
55392     echo "$as_me:$LINENO: $ac_msg" >&5
55393     echo "$ac_msg" >&6
55394     { as_dir="$ac_dir"
55395   case $as_dir in #(
55396   -*) as_dir=./$as_dir;;
55397   esac
55398   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55399     as_dirs=
55400     while :; do
55401       case $as_dir in #(
55402       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55403       *) as_qdir=$as_dir;;
55404       esac
55405       as_dirs="'$as_qdir' $as_dirs"
55406       as_dir=`$as_dirname -- "$as_dir" ||
55407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55408          X"$as_dir" : 'X\(//\)[^/]' \| \
55409          X"$as_dir" : 'X\(//\)$' \| \
55410          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55411 echo X"$as_dir" |
55412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55413             s//\1/
55414             q
55415           }
55416           /^X\(\/\/\)[^/].*/{
55417             s//\1/
55418             q
55419           }
55420           /^X\(\/\/\)$/{
55421             s//\1/
55422             q
55423           }
55424           /^X\(\/\).*/{
55425             s//\1/
55426             q
55427           }
55428           s/.*/./; q'`
55429       test -d "$as_dir" && break
55430     done
55431     test -z "$as_dirs" || eval "mkdir $as_dirs"
55432   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55433 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55434    { (exit 1); exit 1; }; }; }
55435     ac_builddir=.
55436
55437 case "$ac_dir" in
55438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55439 *)
55440   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55441   # A ".." for each directory in $ac_dir_suffix.
55442   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55443   case $ac_top_builddir_sub in
55444   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55445   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55446   esac ;;
55447 esac
55448 ac_abs_top_builddir=$ac_pwd
55449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55450 # for backward compatibility:
55451 ac_top_builddir=$ac_top_build_prefix
55452
55453 case $srcdir in
55454   .)  # We are building in place.
55455     ac_srcdir=.
55456     ac_top_srcdir=$ac_top_builddir_sub
55457     ac_abs_top_srcdir=$ac_pwd ;;
55458   [\\/]* | ?:[\\/]* )  # Absolute name.
55459     ac_srcdir=$srcdir$ac_dir_suffix;
55460     ac_top_srcdir=$srcdir
55461     ac_abs_top_srcdir=$srcdir ;;
55462   *) # Relative name.
55463     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55464     ac_top_srcdir=$ac_top_build_prefix$srcdir
55465     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55466 esac
55467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55468
55469
55470     cd "$ac_dir"
55471
55472     # Check for guested configure; otherwise get Cygnus style configure.
55473     if test -f "$ac_srcdir/configure.gnu"; then
55474       ac_sub_configure=$ac_srcdir/configure.gnu
55475     elif test -f "$ac_srcdir/configure"; then
55476       ac_sub_configure=$ac_srcdir/configure
55477     elif test -f "$ac_srcdir/configure.in"; then
55478       # This should be Cygnus configure.
55479       ac_sub_configure=$ac_aux_dir/configure
55480     else
55481       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
55482 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
55483       ac_sub_configure=
55484     fi
55485
55486     # The recursion is here.
55487     if test -n "$ac_sub_configure"; then
55488       # Make the cache file name correct relative to the subdirectory.
55489       case $cache_file in
55490       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
55491       *) # Relative name.
55492         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
55493       esac
55494
55495       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
55496 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
55497       # The eval makes quoting arguments work.
55498       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
55499            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
55500         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
55501 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
55502    { (exit 1); exit 1; }; }
55503     fi
55504
55505     cd "$ac_popdir"
55506   done
55507 fi
55508
55509
55510 echo
55511 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
55512 echo ""
55513 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
55514 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
55515 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
55516 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
55517 if test "$wxUSE_UNICODE" = "yes"; then
55518     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
55519         echo " (using UTF-8)"
55520     else
55521         echo " (using wchar_t)"
55522     fi
55523 else
55524     echo
55525 fi
55526
55527 echo "  What level of wxWidgets compatibility should be enabled?"
55528 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
55529 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
55530
55531 echo "  Which libraries should wxWidgets use?"
55532 echo "                                       STL                ${wxUSE_STL}"
55533 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
55534 echo "                                       png                ${wxUSE_LIBPNG-none}"
55535 echo "                                       regex              ${wxUSE_REGEX}"
55536 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
55537 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
55538 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
55539 fi
55540 echo "                                       zlib               ${wxUSE_ZLIB}"
55541 echo "                                       expat              ${wxUSE_EXPAT}"
55542 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
55543 echo "                                       sdl                ${wxUSE_LIBSDL}"
55544
55545 echo ""
55546