Add wxTimePickerCtrl 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-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1858   --enable-sash           use wxSashWindow class
1859   --enable-scrollbar      use wxScrollBar class and scrollable windows
1860   --enable-searchctrl     use wxSearchCtrl class
1861   --enable-slider         use wxSlider class
1862   --enable-spinbtn        use wxSpinButton class
1863   --enable-spinctrl       use wxSpinCtrl class
1864   --enable-splitter       use wxSplitterWindow class
1865   --enable-statbmp        use wxStaticBitmap class
1866   --enable-statbox        use wxStaticBox class
1867   --enable-statline       use wxStaticLine class
1868   --enable-stattext       use wxStaticText class
1869   --enable-statusbar      use wxStatusBar class
1870   --enable-taskbaricon    use wxTaskBarIcon class
1871   --enable-tbarnative     use native wxToolBar class
1872   --enable-textctrl       use wxTextCtrl class
1873   --enable-timepick       use wxTimePickerCtrl class
1874   --enable-tipwindow      use wxTipWindow class
1875   --enable-togglebtn      use wxToggleButton class
1876   --enable-toolbar        use wxToolBar class
1877   --enable-toolbook       use wxToolbook class
1878   --enable-treebook       use wxTreebook class
1879   --enable-treectrl       use wxTreeCtrl class
1880   --enable-treelist       use wxTreeListCtrl class
1881   --enable-commondlg      use all common dialogs
1882   --enable-aboutdlg       use wxAboutBox
1883   --enable-choicedlg      use wxChoiceDialog
1884   --enable-coldlg         use wxColourDialog
1885   --enable-filedlg        use wxFileDialog
1886   --enable-finddlg        use wxFindReplaceDialog
1887   --enable-fontdlg        use wxFontDialog
1888   --enable-dirdlg         use wxDirDialog
1889   --enable-msgdlg         use wxMessageDialog
1890   --enable-numberdlg      use wxNumberEntryDialog
1891   --enable-splash         use wxSplashScreen
1892   --enable-textdlg        use wxTextDialog
1893   --enable-tipdlg         use startup tips
1894   --enable-progressdlg    use wxProgressDialog
1895   --enable-wizarddlg      use wxWizard
1896   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1897   --enable-miniframe      use wxMiniFrame class
1898   --enable-tooltips       use wxToolTip class
1899   --enable-splines        use spline drawing code
1900   --enable-mousewheel     use mousewheel
1901   --enable-validators     use wxValidator and derived classes
1902   --enable-busyinfo       use wxBusyInfo
1903   --enable-hotkey         use wxWindow::RegisterHotKey()
1904   --enable-joystick       use wxJoystick
1905   --enable-metafiles      use wxMetaFile
1906   --enable-dragimage      use wxDragImage
1907   --enable-accessibility  enable accessibility support
1908   --enable-uiactionsim    use wxUIActionSimulator (experimental)
1909   --enable-dctransform    use wxDC::SetTransformMatrix and related
1910   --enable-webview-webkit use wxWebView WebKit backend
1911   --enable-palette        use wxPalette class
1912   --enable-image          use wxImage class
1913   --enable-gif            use gif images (GIF file format)
1914   --enable-pcx            use pcx images (PCX file format)
1915   --enable-tga            use tga images (TGA file format)
1916   --enable-iff            use iff images (IFF file format)
1917   --enable-pnm            use pnm images (PNM file format)
1918   --enable-xpm            use xpm images (XPM file format)
1919   --enable-ico_cur        use Windows ICO and CUR formats
1920   --enable-dccache        cache temporary wxDC objects (Win32 only)
1921   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1922   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1923   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1924   --enable-wxdib          use wxDIB class (Win32 only)
1925   --enable-webview-ie     use wxWebView IE backend (Win32 only)
1926   --enable-autoidman      use automatic ids management
1927   --disable-largefile     omit support for large files
1928   --disable-gtktest       do not try to compile and run a test GTK+ program
1929   --disable-gtktest       Do not try to compile and run a test GTK program
1930   --disable-sdltest       Do not try to compile and run a test SDL program
1931   --enable-omf            use OMF object format (OS/2)
1932   --disable-dependency-tracking
1933                           don't use dependency tracking even if the compiler
1934                           can
1935   --disable-precomp-headers
1936                           don't use precompiled headers even if compiler can
1937
1938 Optional Packages:
1939   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1940   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1941   --without-subdirs       don't generate makefiles for samples/demos/...
1942   --with-flavour=NAME     specify a name to identify this build
1943   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1944   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1945   --with-motif            use Motif/Lesstif
1946   --with-osx_carbon       use Mac OS X (Carbon)
1947   --with-osx_cocoa        use Mac OS X (Cocoa)
1948   --with-osx_iphone       use iPhone OS X port
1949   --with-osx              use Mac OS X (default port, currently Carbon)
1950   --with-carbon           same as --with-osx_carbon
1951   --with-cocoa            same as --with-osx_cocoa
1952   --with-iphone           same as --with-osx_iphone
1953   --with-mac              same as --with-osx
1954   --with-old_cocoa        use old, deprecated, Cocoa port
1955   --with-wine             use Wine
1956   --with-msw              use MS-Windows
1957   --with-pm               use OS/2 Presentation Manager
1958   --with-mgl              use SciTech MGL
1959   --with-directfb         use DirectFB
1960   --with-microwin         use MicroWindows
1961   --with-x11              use X11
1962   --with-libpng           use libpng (PNG image format)
1963   --with-libjpeg          use libjpeg (JPEG file format)
1964   --with-libtiff          use libtiff (TIFF file format)
1965   --with-libxpm           use libxpm (XPM file format)
1966   --with-libiconv         use libiconv (character conversion)
1967   --with-libmspack        use libmspack (CHM help files loading)
1968   --without-gtkprint      don't use GTK printing support
1969   --without-gnomeprint    don't use GNOME printing libraries
1970   --with-gnomevfs         use GNOME VFS for associating MIME types
1971   --with-hildon           use Hildon framework for Nokia 770/800/810
1972   --with-opengl           use OpenGL (or Mesa)
1973   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1974   --with-sdl              use SDL for audio on Unix
1975   --with-regex            enable support for wxRegEx class
1976   --with-zlib             use zlib for LZW compression
1977   --with-expat            enable XML support using expat parser
1978   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1979   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1980   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1981   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1982   --with-x                use the X Window System
1983   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1984   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1985   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1986   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1987   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1988
1989 Some influential environment variables:
1990   CC          C compiler command
1991   CFLAGS      C compiler flags
1992   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1993               nonstandard directory <lib dir>
1994   LIBS        libraries to pass to the linker, e.g. -l<library>
1995   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1996               you have headers in a nonstandard directory <include dir>
1997   CPP         C preprocessor
1998   CXX         C++ compiler command
1999   CXXFLAGS    C++ compiler flags
2000   CXXCPP      C++ preprocessor
2001   PKG_CONFIG  path to pkg-config utility
2002   DIRECTFB_CFLAGS
2003               C compiler flags for DIRECTFB, overriding pkg-config
2004   DIRECTFB_LIBS
2005               linker flags for DIRECTFB, overriding pkg-config
2006   XMKMF       Path to xmkmf, Makefile generator for X Window System
2007   PANGOX_CFLAGS
2008               C compiler flags for PANGOX, overriding pkg-config
2009   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
2010   PANGOFT2_CFLAGS
2011               C compiler flags for PANGOFT2, overriding pkg-config
2012   PANGOFT2_LIBS
2013               linker flags for PANGOFT2, overriding pkg-config
2014   PANGOXFT_CFLAGS
2015               C compiler flags for PANGOXFT, overriding pkg-config
2016   PANGOXFT_LIBS
2017               linker flags for PANGOXFT, overriding pkg-config
2018   GTKPRINT_CFLAGS
2019               C compiler flags for GTKPRINT, overriding pkg-config
2020   GTKPRINT_LIBS
2021               linker flags for GTKPRINT, overriding pkg-config
2022   LIBGNOMEPRINTUI_CFLAGS
2023               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2024   LIBGNOMEPRINTUI_LIBS
2025               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2026   GNOMEVFS_CFLAGS
2027               C compiler flags for GNOMEVFS, overriding pkg-config
2028   GNOMEVFS_LIBS
2029               linker flags for GNOMEVFS, overriding pkg-config
2030   HILDON_CFLAGS
2031               C compiler flags for HILDON, overriding pkg-config
2032   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2033   HILDON2_CFLAGS
2034               C compiler flags for HILDON2, overriding pkg-config
2035   HILDON2_LIBS
2036               linker flags for HILDON2, overriding pkg-config
2037   CAIRO_CFLAGS
2038               C compiler flags for CAIRO, overriding pkg-config
2039   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2040   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2041   GST_LIBS    linker flags for GST, overriding pkg-config
2042
2043 Use these variables to override the choices made by `configure' or to help
2044 it to find libraries and programs with nonstandard names/locations.
2045
2046 Report bugs to <wx-dev@lists.wxwidgets.org>.
2047 _ACEOF
2048 ac_status=$?
2049 fi
2050
2051 if test "$ac_init_help" = "recursive"; then
2052   # If there are subdirs, report their specific --help.
2053   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2054     test -d "$ac_dir" || continue
2055     ac_builddir=.
2056
2057 case "$ac_dir" in
2058 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2059 *)
2060   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2061   # A ".." for each directory in $ac_dir_suffix.
2062   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2063   case $ac_top_builddir_sub in
2064   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2065   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2066   esac ;;
2067 esac
2068 ac_abs_top_builddir=$ac_pwd
2069 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2070 # for backward compatibility:
2071 ac_top_builddir=$ac_top_build_prefix
2072
2073 case $srcdir in
2074   .)  # We are building in place.
2075     ac_srcdir=.
2076     ac_top_srcdir=$ac_top_builddir_sub
2077     ac_abs_top_srcdir=$ac_pwd ;;
2078   [\\/]* | ?:[\\/]* )  # Absolute name.
2079     ac_srcdir=$srcdir$ac_dir_suffix;
2080     ac_top_srcdir=$srcdir
2081     ac_abs_top_srcdir=$srcdir ;;
2082   *) # Relative name.
2083     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2084     ac_top_srcdir=$ac_top_build_prefix$srcdir
2085     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2086 esac
2087 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2088
2089     cd "$ac_dir" || { ac_status=$?; continue; }
2090     # Check for guested configure.
2091     if test -f "$ac_srcdir/configure.gnu"; then
2092       echo &&
2093       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2094     elif test -f "$ac_srcdir/configure"; then
2095       echo &&
2096       $SHELL "$ac_srcdir/configure" --help=recursive
2097     else
2098       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2099     fi || ac_status=$?
2100     cd "$ac_pwd" || { ac_status=$?; break; }
2101   done
2102 fi
2103
2104 test -n "$ac_init_help" && exit $ac_status
2105 if $ac_init_version; then
2106   cat <<\_ACEOF
2107 wxWidgets configure 2.9.3
2108 generated by GNU Autoconf 2.61
2109
2110 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2111 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2112 This configure script is free software; the Free Software Foundation
2113 gives unlimited permission to copy, distribute and modify it.
2114 _ACEOF
2115   exit
2116 fi
2117 cat >config.log <<_ACEOF
2118 This file contains any messages produced by compilers while
2119 running configure, to aid debugging if configure makes a mistake.
2120
2121 It was created by wxWidgets $as_me 2.9.3, which was
2122 generated by GNU Autoconf 2.61.  Invocation command line was
2123
2124   $ $0 $@
2125
2126 _ACEOF
2127 exec 5>>config.log
2128 {
2129 cat <<_ASUNAME
2130 ## --------- ##
2131 ## Platform. ##
2132 ## --------- ##
2133
2134 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2135 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2136 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2137 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2138 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2139
2140 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2141 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2142
2143 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2144 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2145 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2146 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2147 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2148 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2149 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2150
2151 _ASUNAME
2152
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156   IFS=$as_save_IFS
2157   test -z "$as_dir" && as_dir=.
2158   echo "PATH: $as_dir"
2159 done
2160 IFS=$as_save_IFS
2161
2162 } >&5
2163
2164 cat >&5 <<_ACEOF
2165
2166
2167 ## ----------- ##
2168 ## Core tests. ##
2169 ## ----------- ##
2170
2171 _ACEOF
2172
2173
2174 # Keep a trace of the command line.
2175 # Strip out --no-create and --no-recursion so they do not pile up.
2176 # Strip out --silent because we don't want to record it for future runs.
2177 # Also quote any args containing shell meta-characters.
2178 # Make two passes to allow for proper duplicate-argument suppression.
2179 ac_configure_args=
2180 ac_configure_args0=
2181 ac_configure_args1=
2182 ac_must_keep_next=false
2183 for ac_pass in 1 2
2184 do
2185   for ac_arg
2186   do
2187     case $ac_arg in
2188     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2189     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2190     | -silent | --silent | --silen | --sile | --sil)
2191       continue ;;
2192     *\'*)
2193       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194     esac
2195     case $ac_pass in
2196     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2197     2)
2198       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2199       if test $ac_must_keep_next = true; then
2200         ac_must_keep_next=false # Got value, back to normal.
2201       else
2202         case $ac_arg in
2203           *=* | --config-cache | -C | -disable-* | --disable-* \
2204           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2205           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2206           | -with-* | --with-* | -without-* | --without-* | --x)
2207             case "$ac_configure_args0 " in
2208               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209             esac
2210             ;;
2211           -* ) ac_must_keep_next=true ;;
2212         esac
2213       fi
2214       ac_configure_args="$ac_configure_args '$ac_arg'"
2215       ;;
2216     esac
2217   done
2218 done
2219 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2220 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2221
2222 # When interrupted or exit'd, cleanup temporary files, and complete
2223 # config.log.  We remove comments because anyway the quotes in there
2224 # would cause problems or look ugly.
2225 # WARNING: Use '\'' to represent an apostrophe within the trap.
2226 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2227 trap 'exit_status=$?
2228   # Save into config.log some information that might help in debugging.
2229   {
2230     echo
2231
2232     cat <<\_ASBOX
2233 ## ---------------- ##
2234 ## Cache variables. ##
2235 ## ---------------- ##
2236 _ASBOX
2237     echo
2238     # The following way of writing the cache mishandles newlines in values,
2239 (
2240   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2241     eval ac_val=\$$ac_var
2242     case $ac_val in #(
2243     *${as_nl}*)
2244       case $ac_var in #(
2245       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2246 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2247       esac
2248       case $ac_var in #(
2249       _ | IFS | as_nl) ;; #(
2250       *) $as_unset $ac_var ;;
2251       esac ;;
2252     esac
2253   done
2254   (set) 2>&1 |
2255     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2256     *${as_nl}ac_space=\ *)
2257       sed -n \
2258         "s/'\''/'\''\\\\'\'''\''/g;
2259           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2260       ;; #(
2261     *)
2262       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2263       ;;
2264     esac |
2265     sort
2266 )
2267     echo
2268
2269     cat <<\_ASBOX
2270 ## ----------------- ##
2271 ## Output variables. ##
2272 ## ----------------- ##
2273 _ASBOX
2274     echo
2275     for ac_var in $ac_subst_vars
2276     do
2277       eval ac_val=\$$ac_var
2278       case $ac_val in
2279       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280       esac
2281       echo "$ac_var='\''$ac_val'\''"
2282     done | sort
2283     echo
2284
2285     if test -n "$ac_subst_files"; then
2286       cat <<\_ASBOX
2287 ## ------------------- ##
2288 ## File substitutions. ##
2289 ## ------------------- ##
2290 _ASBOX
2291       echo
2292       for ac_var in $ac_subst_files
2293       do
2294         eval ac_val=\$$ac_var
2295         case $ac_val in
2296         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297         esac
2298         echo "$ac_var='\''$ac_val'\''"
2299       done | sort
2300       echo
2301     fi
2302
2303     if test -s confdefs.h; then
2304       cat <<\_ASBOX
2305 ## ----------- ##
2306 ## confdefs.h. ##
2307 ## ----------- ##
2308 _ASBOX
2309       echo
2310       cat confdefs.h
2311       echo
2312     fi
2313     test "$ac_signal" != 0 &&
2314       echo "$as_me: caught signal $ac_signal"
2315     echo "$as_me: exit $exit_status"
2316   } >&5
2317   rm -f core *.core core.conftest.* &&
2318     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2319     exit $exit_status
2320 ' 0
2321 for ac_signal in 1 2 13 15; do
2322   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2323 done
2324 ac_signal=0
2325
2326 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2327 rm -f -r conftest* confdefs.h
2328
2329 # Predefined preprocessor variables.
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_NAME "$PACKAGE_NAME"
2333 _ACEOF
2334
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2338 _ACEOF
2339
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2343 _ACEOF
2344
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_STRING "$PACKAGE_STRING"
2348 _ACEOF
2349
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2353 _ACEOF
2354
2355
2356 # Let the site file select an alternate cache file if it wants to.
2357 # Prefer explicitly selected file to automatically selected ones.
2358 if test -n "$CONFIG_SITE"; then
2359   set x "$CONFIG_SITE"
2360 elif test "x$prefix" != xNONE; then
2361   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2362 else
2363   set x "$ac_default_prefix/share/config.site" \
2364         "$ac_default_prefix/etc/config.site"
2365 fi
2366 shift
2367 for ac_site_file
2368 do
2369   if test -r "$ac_site_file"; then
2370     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2371 echo "$as_me: loading site script $ac_site_file" >&6;}
2372     sed 's/^/| /' "$ac_site_file" >&5
2373     . "$ac_site_file"
2374   fi
2375 done
2376
2377 if test -r "$cache_file"; then
2378   # Some versions of bash will fail to source /dev/null (special
2379   # files actually), so we avoid doing that.
2380   if test -f "$cache_file"; then
2381     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2382 echo "$as_me: loading cache $cache_file" >&6;}
2383     case $cache_file in
2384       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2385       *)                      . "./$cache_file";;
2386     esac
2387   fi
2388 else
2389   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2390 echo "$as_me: creating cache $cache_file" >&6;}
2391   >$cache_file
2392 fi
2393
2394 # Check that the precious variables saved in the cache have kept the same
2395 # value.
2396 ac_cache_corrupted=false
2397 for ac_var in $ac_precious_vars; do
2398   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2399   eval ac_new_set=\$ac_env_${ac_var}_set
2400   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2401   eval ac_new_val=\$ac_env_${ac_var}_value
2402   case $ac_old_set,$ac_new_set in
2403     set,)
2404       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2405 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2406       ac_cache_corrupted=: ;;
2407     ,set)
2408       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2409 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2410       ac_cache_corrupted=: ;;
2411     ,);;
2412     *)
2413       if test "x$ac_old_val" != "x$ac_new_val"; then
2414         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2415 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2417 echo "$as_me:   former value:  $ac_old_val" >&2;}
2418         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2419 echo "$as_me:   current value: $ac_new_val" >&2;}
2420         ac_cache_corrupted=:
2421       fi;;
2422   esac
2423   # Pass precious variables to config.status.
2424   if test "$ac_new_set" = set; then
2425     case $ac_new_val in
2426     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2427     *) ac_arg=$ac_var=$ac_new_val ;;
2428     esac
2429     case " $ac_configure_args " in
2430       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2431       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2432     esac
2433   fi
2434 done
2435 if $ac_cache_corrupted; then
2436   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2437 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2438   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2439 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2440    { (exit 1); exit 1; }; }
2441 fi
2442
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 ac_ext=c
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472
2473
2474
2475
2476
2477 ac_aux_dir=
2478 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2479   if test -f "$ac_dir/install-sh"; then
2480     ac_aux_dir=$ac_dir
2481     ac_install_sh="$ac_aux_dir/install-sh -c"
2482     break
2483   elif test -f "$ac_dir/install.sh"; then
2484     ac_aux_dir=$ac_dir
2485     ac_install_sh="$ac_aux_dir/install.sh -c"
2486     break
2487   elif test -f "$ac_dir/shtool"; then
2488     ac_aux_dir=$ac_dir
2489     ac_install_sh="$ac_aux_dir/shtool install -c"
2490     break
2491   fi
2492 done
2493 if test -z "$ac_aux_dir"; then
2494   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2495 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2496    { (exit 1); exit 1; }; }
2497 fi
2498
2499 # These three variables are undocumented and unsupported,
2500 # and are intended to be withdrawn in a future Autoconf release.
2501 # They can cause serious problems if a builder's source tree is in a directory
2502 # whose full name contains unusual characters.
2503 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2504 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2505 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2506
2507
2508 # Make sure we can run config.sub.
2509 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2510   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2511 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2512    { (exit 1); exit 1; }; }
2513
2514 { echo "$as_me:$LINENO: checking build system type" >&5
2515 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2516 if test "${ac_cv_build+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   ac_build_alias=$build_alias
2520 test "x$ac_build_alias" = x &&
2521   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2522 test "x$ac_build_alias" = x &&
2523   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2524 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2525    { (exit 1); exit 1; }; }
2526 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2527   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2528 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2529    { (exit 1); exit 1; }; }
2530
2531 fi
2532 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2533 echo "${ECHO_T}$ac_cv_build" >&6; }
2534 case $ac_cv_build in
2535 *-*-*) ;;
2536 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2537 echo "$as_me: error: invalid value of canonical build" >&2;}
2538    { (exit 1); exit 1; }; };;
2539 esac
2540 build=$ac_cv_build
2541 ac_save_IFS=$IFS; IFS='-'
2542 set x $ac_cv_build
2543 shift
2544 build_cpu=$1
2545 build_vendor=$2
2546 shift; shift
2547 # Remember, the first character of IFS is used to create $*,
2548 # except with old shells:
2549 build_os=$*
2550 IFS=$ac_save_IFS
2551 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2552
2553
2554 { echo "$as_me:$LINENO: checking host system type" >&5
2555 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2556 if test "${ac_cv_host+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   if test "x$host_alias" = x; then
2560   ac_cv_host=$ac_cv_build
2561 else
2562   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2563     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2564 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2565    { (exit 1); exit 1; }; }
2566 fi
2567
2568 fi
2569 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2570 echo "${ECHO_T}$ac_cv_host" >&6; }
2571 case $ac_cv_host in
2572 *-*-*) ;;
2573 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2574 echo "$as_me: error: invalid value of canonical host" >&2;}
2575    { (exit 1); exit 1; }; };;
2576 esac
2577 host=$ac_cv_host
2578 ac_save_IFS=$IFS; IFS='-'
2579 set x $ac_cv_host
2580 shift
2581 host_cpu=$1
2582 host_vendor=$2
2583 shift; shift
2584 # Remember, the first character of IFS is used to create $*,
2585 # except with old shells:
2586 host_os=$*
2587 IFS=$ac_save_IFS
2588 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2589
2590
2591
2592 if test "$cross_compiling" != "no"; then
2593     HOST_PREFIX="${host_alias}-"
2594     HOST_SUFFIX="-$host_alias"
2595 else
2596     HOST_PREFIX=
2597     HOST_SUFFIX=
2598 fi
2599
2600
2601 wx_major_version_number=2
2602 wx_minor_version_number=9
2603 wx_release_number=3
2604 wx_subrelease_number=0
2605
2606 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2607 WX_VERSION=$WX_RELEASE.$wx_release_number
2608 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2609
2610 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2611
2612
2613 wx_top_builddir="`pwd`"
2614
2615
2616
2617
2618 USE_UNIX=1
2619 USE_OS2=0
2620 USE_WIN32=0
2621 USE_DOS=0
2622 USE_BEOS=0
2623 USE_MAC=0
2624
2625 USE_AIX=
2626 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2627 USE_GNU=                            USE_HPUX=
2628 USE_LINUX=
2629 USE_NETBSD=
2630 USE_OPENBSD=
2631 USE_OSF=                            USE_SGI=
2632 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2633 USE_ULTRIX=
2634 USE_UNIXWARE=
2635
2636 USE_ALPHA=
2637
2638 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2639
2640 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
2641
2642 DEFAULT_wxUSE_OLD_COCOA=0
2643 DEFAULT_wxUSE_GTK=0
2644 DEFAULT_wxUSE_OSX_CARBON=0
2645 DEFAULT_wxUSE_OSX_COCOA=0
2646 DEFAULT_wxUSE_OSX_IPHONE=0
2647 DEFAULT_wxUSE_MGL=0
2648 DEFAULT_wxUSE_MICROWIN=0
2649 DEFAULT_wxUSE_MOTIF=0
2650 DEFAULT_wxUSE_MSW=0
2651 DEFAULT_wxUSE_PM=0
2652 DEFAULT_wxUSE_X11=0
2653 DEFAULT_wxUSE_DFB=0
2654
2655 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2656 DEFAULT_DEFAULT_wxUSE_GTK=0
2657 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2658 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2659 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2660 DEFAULT_DEFAULT_wxUSE_MGL=0
2661 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2662 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2663 DEFAULT_DEFAULT_wxUSE_MSW=0
2664 DEFAULT_DEFAULT_wxUSE_PM=0
2665 DEFAULT_DEFAULT_wxUSE_X11=0
2666 DEFAULT_DEFAULT_wxUSE_DFB=0
2667
2668 PROGRAM_EXT=
2669 SAMPLES_RPATH_FLAG=
2670 DYLIB_RPATH_INSTALL=
2671 DYLIB_RPATH_POSTLINK=
2672
2673 DEFAULT_STD_FLAG=yes
2674
2675 case "${host}" in
2676   *-hp-hpux* )
2677     USE_HPUX=1
2678     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2679     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2680     cat >>confdefs.h <<\_ACEOF
2681 #define __HPUX__ 1
2682 _ACEOF
2683
2684
2685             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2686   ;;
2687   *-*-linux* )
2688     USE_LINUX=1
2689     cat >>confdefs.h <<\_ACEOF
2690 #define __LINUX__ 1
2691 _ACEOF
2692
2693     TMP=`uname -m`
2694     if test "x$TMP" = "xalpha"; then
2695       USE_ALPHA=1
2696       cat >>confdefs.h <<\_ACEOF
2697 #define __ALPHA__ 1
2698 _ACEOF
2699
2700     fi
2701     DEFAULT_DEFAULT_wxUSE_GTK=1
2702   ;;
2703   *-*-gnu* | *-*-k*bsd*-gnu )
2704     USE_GNU=1
2705     TMP=`uname -m`
2706     if test "x$TMP" = "xalpha"; then
2707       USE_ALPHA=1
2708       cat >>confdefs.h <<\_ACEOF
2709 #define __ALPHA__ 1
2710 _ACEOF
2711
2712     fi
2713     DEFAULT_DEFAULT_wxUSE_GTK=1
2714   ;;
2715   *-*-irix5* | *-*-irix6* )
2716     USE_SGI=1
2717     USE_SVR4=1
2718     cat >>confdefs.h <<\_ACEOF
2719 #define __SGI__ 1
2720 _ACEOF
2721
2722     cat >>confdefs.h <<\_ACEOF
2723 #define __SVR4__ 1
2724 _ACEOF
2725
2726     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2727   ;;
2728   *-*-qnx*)
2729     USE_QNX=1
2730     cat >>confdefs.h <<\_ACEOF
2731 #define __QNX__ 1
2732 _ACEOF
2733
2734     DEFAULT_DEFAULT_wxUSE_X11=1
2735   ;;
2736   *-*-solaris2* )
2737     USE_SUN=1
2738     USE_SOLARIS=1
2739     USE_SVR4=1
2740     cat >>confdefs.h <<\_ACEOF
2741 #define __SUN__ 1
2742 _ACEOF
2743
2744     cat >>confdefs.h <<\_ACEOF
2745 #define __SOLARIS__ 1
2746 _ACEOF
2747
2748     cat >>confdefs.h <<\_ACEOF
2749 #define __SVR4__ 1
2750 _ACEOF
2751
2752     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2753     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2754   ;;
2755   *-*-sunos4* )
2756     USE_SUN=1
2757     USE_SUNOS=1
2758     USE_BSD=1
2759     cat >>confdefs.h <<\_ACEOF
2760 #define __SUN__ 1
2761 _ACEOF
2762
2763     cat >>confdefs.h <<\_ACEOF
2764 #define __SUNOS__ 1
2765 _ACEOF
2766
2767     cat >>confdefs.h <<\_ACEOF
2768 #define __BSD__ 1
2769 _ACEOF
2770
2771     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2772   ;;
2773   *-*-freebsd*)
2774     USE_BSD=1
2775     USE_FREEBSD=1
2776     cat >>confdefs.h <<\_ACEOF
2777 #define __FREEBSD__ 1
2778 _ACEOF
2779
2780     cat >>confdefs.h <<\_ACEOF
2781 #define __BSD__ 1
2782 _ACEOF
2783
2784     DEFAULT_DEFAULT_wxUSE_GTK=1
2785   ;;
2786   *-*-openbsd*|*-*-mirbsd*)
2787     USE_BSD=1
2788     USE_OPENBSD=1
2789     cat >>confdefs.h <<\_ACEOF
2790 #define __OPENBSD__ 1
2791 _ACEOF
2792
2793     cat >>confdefs.h <<\_ACEOF
2794 #define __BSD__ 1
2795 _ACEOF
2796
2797     DEFAULT_DEFAULT_wxUSE_GTK=1
2798   ;;
2799   *-*-netbsd*)
2800     USE_BSD=1
2801     USE_NETBSD=1
2802     cat >>confdefs.h <<\_ACEOF
2803 #define __NETBSD__ 1
2804 _ACEOF
2805
2806     cat >>confdefs.h <<\_ACEOF
2807 #define __BSD__ 1
2808 _ACEOF
2809
2810     DEFAULT_DEFAULT_wxUSE_GTK=1
2811     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2812
2813             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2814   ;;
2815   *-*-osf* )
2816     USE_ALPHA=1
2817     USE_OSF=1
2818     cat >>confdefs.h <<\_ACEOF
2819 #define __ALPHA__ 1
2820 _ACEOF
2821
2822     cat >>confdefs.h <<\_ACEOF
2823 #define __OSF__ 1
2824 _ACEOF
2825
2826     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2827     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2828   ;;
2829   *-*-dgux5* )
2830     USE_ALPHA=1
2831     USE_SVR4=1
2832     cat >>confdefs.h <<\_ACEOF
2833 #define __ALPHA__ 1
2834 _ACEOF
2835
2836     cat >>confdefs.h <<\_ACEOF
2837 #define __SVR4__ 1
2838 _ACEOF
2839
2840     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2841   ;;
2842   *-*-sysv5* )
2843     USE_SYSV=1
2844     USE_SVR4=1
2845     cat >>confdefs.h <<\_ACEOF
2846 #define __SYSV__ 1
2847 _ACEOF
2848
2849     cat >>confdefs.h <<\_ACEOF
2850 #define __SVR4__ 1
2851 _ACEOF
2852
2853     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2854   ;;
2855   *-*-aix* )
2856     USE_AIX=1
2857     USE_SYSV=1
2858     USE_SVR4=1
2859     cat >>confdefs.h <<\_ACEOF
2860 #define __AIX__ 1
2861 _ACEOF
2862
2863     cat >>confdefs.h <<\_ACEOF
2864 #define __SYSV__ 1
2865 _ACEOF
2866
2867     cat >>confdefs.h <<\_ACEOF
2868 #define __SVR4__ 1
2869 _ACEOF
2870
2871     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2872   ;;
2873
2874   *-*-*UnixWare*)
2875     USE_SYSV=1
2876     USE_SVR4=1
2877     USE_UNIXWARE=1
2878     cat >>confdefs.h <<\_ACEOF
2879 #define __UNIXWARE__ 1
2880 _ACEOF
2881
2882   ;;
2883
2884   *-*-cygwin* | *-*-mingw32* )
2885                 PROGRAM_EXT=".exe"
2886     DEFAULT_DEFAULT_wxUSE_MSW=1
2887   ;;
2888
2889   *-pc-msdosdjgpp )
2890     USE_UNIX=0
2891     USE_DOS=1
2892     cat >>confdefs.h <<\_ACEOF
2893 #define __DOS__ 1
2894 _ACEOF
2895
2896     PROGRAM_EXT=".exe"
2897     DEFAULT_DEFAULT_wxUSE_MGL=1
2898   ;;
2899
2900   *-pc-os2_emx | *-pc-os2-emx )
2901     cat >>confdefs.h <<\_ACEOF
2902 #define __EMX__ 1
2903 _ACEOF
2904
2905     USE_OS2=1
2906     cat >>confdefs.h <<\_ACEOF
2907 #define __OS2__ 1
2908 _ACEOF
2909
2910     PROGRAM_EXT=".exe"
2911     DEFAULT_DEFAULT_wxUSE_PM=1
2912         CXX=gcc
2913     LDFLAGS="$LDFLAGS -Zcrtdll"
2914                         ac_executable_extensions=".exe"
2915     export ac_executable_extensions
2916             ac_save_IFS="$IFS"
2917     IFS='\\'
2918     ac_TEMP_PATH=
2919     for ac_dir in $PATH; do
2920       IFS=$ac_save_IFS
2921       if test -z "$ac_TEMP_PATH"; then
2922         ac_TEMP_PATH="$ac_dir"
2923       else
2924         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2925       fi
2926     done
2927     export PATH="$ac_TEMP_PATH"
2928     unset ac_TEMP_PATH
2929     DEFAULT_STD_FLAG=no
2930   ;;
2931
2932   arm-apple-darwin*)
2933         USE_BSD=1
2934     USE_DARWIN=1
2935     cat >>confdefs.h <<\_ACEOF
2936 #define __BSD__ 1
2937 _ACEOF
2938
2939     cat >>confdefs.h <<\_ACEOF
2940 #define __DARWIN__ 1
2941 _ACEOF
2942
2943     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2944   ;;
2945
2946   *-*-darwin* )
2947         USE_BSD=1
2948     USE_DARWIN=1
2949     cat >>confdefs.h <<\_ACEOF
2950 #define __BSD__ 1
2951 _ACEOF
2952
2953     cat >>confdefs.h <<\_ACEOF
2954 #define __DARWIN__ 1
2955 _ACEOF
2956
2957     cat >>confdefs.h <<\_ACEOF
2958 #define TARGET_CARBON 1
2959 _ACEOF
2960
2961     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2962   ;;
2963
2964   *-*-beos* )
2965         USE_BEOS=1
2966     cat >>confdefs.h <<\_ACEOF
2967 #define __BEOS__ 1
2968 _ACEOF
2969
2970   ;;
2971
2972   *)
2973     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2974 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2975     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2976 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2977
2978     DEFAULT_DEFAULT_wxUSE_X11=1
2979     DEFAULT_wxUSE_SHARED=no
2980 esac
2981
2982
2983
2984 DEFAULT_wxUSE_ALL_FEATURES=yes
2985
2986 DEFAULT_wxUSE_STD_CONTAINERS=no
2987 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2988 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2989
2990 DEFAULT_wxUSE_DMALLOC=no
2991 DEFAULT_wxUSE_LIBGNOMEVFS=no
2992 DEFAULT_wxUSE_LIBHILDON=no
2993 DEFAULT_wxUSE_LIBHILDON2=no
2994 DEFAULT_wxUSE_LIBMSPACK=no
2995 DEFAULT_wxUSE_LIBSDL=no
2996
2997 DEFAULT_wxUSE_ACCESSIBILITY=no
2998 DEFAULT_wxUSE_IPV6=no
2999 DEFAULT_wxUSE_GSTREAMER8=no
3000
3001 DEFAULT_wxUSE_ARTPROVIDER_TANGO=auto
3002 DEFAULT_wxUSE_UNICODE_UTF8=auto
3003 DEFAULT_wxUSE_OPENGL=auto
3004 DEFAULT_wxUSE_MEDIACTRL=auto
3005 DEFAULT_wxUSE_COMPILER_TLS=auto
3006 DEFAULT_wxUSE_HOTKEY=auto
3007 DEFAULT_wxUSE_METAFILE=auto
3008
3009 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
3010
3011 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3012 DEFAULT_wxUSE_MAC_ARCH=no
3013
3014 DEFAULT_wxUSE_OFFICIAL_BUILD=no
3015
3016 DEFAULT_wxUSE_GTK2=yes
3017
3018 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3019
3020
3021
3022
3023
3024           enablestring=disable
3025           defaultval=
3026           if test -z "$defaultval"; then
3027               if test x"$enablestring" = xdisable; then
3028                   defaultval=yes
3029               else
3030                   defaultval=no
3031               fi
3032           fi
3033
3034           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3035 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3036           # Check whether --enable-gui was given.
3037 if test "${enable_gui+set}" = set; then
3038   enableval=$enable_gui;
3039                           if test "$enableval" = yes; then
3040                             wx_cv_use_gui='wxUSE_GUI=yes'
3041                           else
3042                             wx_cv_use_gui='wxUSE_GUI=no'
3043                           fi
3044
3045 else
3046
3047                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3048
3049 fi
3050
3051
3052           eval "$wx_cv_use_gui"
3053
3054           if test x"$enablestring" = xdisable; then
3055             if test $wxUSE_GUI = no; then
3056               result=yes
3057             else
3058               result=no
3059             fi
3060           else
3061             result=$wxUSE_GUI
3062           fi
3063
3064           { echo "$as_me:$LINENO: result: $result" >&5
3065 echo "${ECHO_T}$result" >&6; }
3066
3067
3068           enablestring=
3069           defaultval=
3070           if test -z "$defaultval"; then
3071               if test x"$enablestring" = xdisable; then
3072                   defaultval=yes
3073               else
3074                   defaultval=no
3075               fi
3076           fi
3077
3078           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3079 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3080           # Check whether --enable-monolithic was given.
3081 if test "${enable_monolithic+set}" = set; then
3082   enableval=$enable_monolithic;
3083                           if test "$enableval" = yes; then
3084                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3085                           else
3086                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3087                           fi
3088
3089 else
3090
3091                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3092
3093 fi
3094
3095
3096           eval "$wx_cv_use_monolithic"
3097
3098           if test x"$enablestring" = xdisable; then
3099             if test $wxUSE_MONOLITHIC = no; then
3100               result=yes
3101             else
3102               result=no
3103             fi
3104           else
3105             result=$wxUSE_MONOLITHIC
3106           fi
3107
3108           { echo "$as_me:$LINENO: result: $result" >&5
3109 echo "${ECHO_T}$result" >&6; }
3110
3111
3112           enablestring=
3113           defaultval=
3114           if test -z "$defaultval"; then
3115               if test x"$enablestring" = xdisable; then
3116                   defaultval=yes
3117               else
3118                   defaultval=no
3119               fi
3120           fi
3121
3122           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3123 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3124           # Check whether --enable-plugins was given.
3125 if test "${enable_plugins+set}" = set; then
3126   enableval=$enable_plugins;
3127                           if test "$enableval" = yes; then
3128                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3129                           else
3130                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3131                           fi
3132
3133 else
3134
3135                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3136
3137 fi
3138
3139
3140           eval "$wx_cv_use_plugins"
3141
3142           if test x"$enablestring" = xdisable; then
3143             if test $wxUSE_PLUGINS = no; then
3144               result=yes
3145             else
3146               result=no
3147             fi
3148           else
3149             result=$wxUSE_PLUGINS
3150           fi
3151
3152           { echo "$as_me:$LINENO: result: $result" >&5
3153 echo "${ECHO_T}$result" >&6; }
3154
3155
3156           withstring=without
3157           defaultval=$wxUSE_ALL_FEATURES
3158           if test -z "$defaultval"; then
3159               if test x"$withstring" = xwithout; then
3160                   defaultval=yes
3161               else
3162                   defaultval=no
3163               fi
3164           fi
3165           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3166 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3167
3168 # Check whether --with-subdirs was given.
3169 if test "${with_subdirs+set}" = set; then
3170   withval=$with_subdirs;
3171                         if test "$withval" = yes; then
3172                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3173                         else
3174                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3175                         fi
3176
3177 else
3178
3179                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3180
3181 fi
3182
3183
3184           eval "$wx_cv_use_subdirs"
3185
3186           if test x"$withstring" = xwithout; then
3187             if test $wxWITH_SUBDIRS = yes; then
3188               result=no
3189             else
3190               result=yes
3191             fi
3192           else
3193             result=$wxWITH_SUBDIRS
3194           fi
3195
3196           { echo "$as_me:$LINENO: result: $result" >&5
3197 echo "${ECHO_T}$result" >&6; }
3198
3199
3200 # Check whether --with-flavour was given.
3201 if test "${with_flavour+set}" = set; then
3202   withval=$with_flavour; WX_FLAVOUR="$withval"
3203 fi
3204
3205
3206           enablestring=
3207           defaultval=
3208           if test -z "$defaultval"; then
3209               if test x"$enablestring" = xdisable; then
3210                   defaultval=yes
3211               else
3212                   defaultval=no
3213               fi
3214           fi
3215
3216           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3217 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3218           # Check whether --enable-official_build was given.
3219 if test "${enable_official_build+set}" = set; then
3220   enableval=$enable_official_build;
3221                           if test "$enableval" = yes; then
3222                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3223                           else
3224                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3225                           fi
3226
3227 else
3228
3229                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3230
3231 fi
3232
3233
3234           eval "$wx_cv_use_official_build"
3235
3236           if test x"$enablestring" = xdisable; then
3237             if test $wxUSE_OFFICIAL_BUILD = no; then
3238               result=yes
3239             else
3240               result=no
3241             fi
3242           else
3243             result=$wxUSE_OFFICIAL_BUILD
3244           fi
3245
3246           { echo "$as_me:$LINENO: result: $result" >&5
3247 echo "${ECHO_T}$result" >&6; }
3248
3249 # Check whether --enable-vendor was given.
3250 if test "${enable_vendor+set}" = set; then
3251   enableval=$enable_vendor; VENDOR="$enableval"
3252 fi
3253
3254 if test "x$VENDOR" = "x"; then
3255     VENDOR="custom"
3256 fi
3257
3258
3259           enablestring=disable
3260           defaultval=
3261           if test -z "$defaultval"; then
3262               if test x"$enablestring" = xdisable; then
3263                   defaultval=yes
3264               else
3265                   defaultval=no
3266               fi
3267           fi
3268
3269           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3270 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3271           # Check whether --enable-all-features was given.
3272 if test "${enable_all_features+set}" = set; then
3273   enableval=$enable_all_features;
3274                           if test "$enableval" = yes; then
3275                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3276                           else
3277                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3278                           fi
3279
3280 else
3281
3282                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3283
3284 fi
3285
3286
3287           eval "$wx_cv_use_all_features"
3288
3289           if test x"$enablestring" = xdisable; then
3290             if test $wxUSE_ALL_FEATURES = no; then
3291               result=yes
3292             else
3293               result=no
3294             fi
3295           else
3296             result=$wxUSE_ALL_FEATURES
3297           fi
3298
3299           { echo "$as_me:$LINENO: result: $result" >&5
3300 echo "${ECHO_T}$result" >&6; }
3301
3302
3303 if test "$wxUSE_ALL_FEATURES" = "no"; then
3304                     DEFAULT_wxUSE_ARTPROVIDER_TANGO=no
3305     DEFAULT_wxUSE_MEDIACTRL=no
3306 fi
3307
3308
3309 if test "$wxUSE_GUI" = "yes"; then
3310
3311
3312           enablestring=
3313           defaultval=
3314           if test -z "$defaultval"; then
3315               if test x"$enablestring" = xdisable; then
3316                   defaultval=yes
3317               else
3318                   defaultval=no
3319               fi
3320           fi
3321
3322           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3323 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3324           # Check whether --enable-universal was given.
3325 if test "${enable_universal+set}" = set; then
3326   enableval=$enable_universal;
3327                           if test "$enableval" = yes; then
3328                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3329                           else
3330                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3331                           fi
3332
3333 else
3334
3335                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3336
3337 fi
3338
3339
3340           eval "$wx_cv_use_universal"
3341
3342           if test x"$enablestring" = xdisable; then
3343             if test $wxUSE_UNIVERSAL = no; then
3344               result=yes
3345             else
3346               result=no
3347             fi
3348           else
3349             result=$wxUSE_UNIVERSAL
3350           fi
3351
3352           { echo "$as_me:$LINENO: result: $result" >&5
3353 echo "${ECHO_T}$result" >&6; }
3354
3355 if test "$wxUSE_UNIVERSAL" = "yes"; then
3356
3357 # Check whether --with-themes was given.
3358 if test "${with_themes+set}" = set; then
3359   withval=$with_themes; wxUNIV_THEMES="$withval"
3360 fi
3361
3362 fi
3363
3364
3365 # Check whether --with-gtk was given.
3366 if test "${with_gtk+set}" = set; then
3367   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3368 fi
3369
3370
3371 # Check whether --with-motif was given.
3372 if test "${with_motif+set}" = set; then
3373   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3374 fi
3375
3376
3377 # Check whether --with-osx_carbon was given.
3378 if test "${with_osx_carbon+set}" = set; then
3379   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3380 fi
3381
3382
3383 # Check whether --with-osx_cocoa was given.
3384 if test "${with_osx_cocoa+set}" = set; then
3385   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3386 fi
3387
3388
3389 # Check whether --with-osx_iphone was given.
3390 if test "${with_osx_iphone+set}" = set; then
3391   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3392 fi
3393
3394
3395 # Check whether --with-osx was given.
3396 if test "${with_osx+set}" = set; then
3397   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3398 fi
3399
3400
3401 # Check whether --with-carbon was given.
3402 if test "${with_carbon+set}" = set; then
3403   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3404 fi
3405
3406
3407 # Check whether --with-cocoa was given.
3408 if test "${with_cocoa+set}" = set; then
3409   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3410 fi
3411
3412
3413 # Check whether --with-iphone was given.
3414 if test "${with_iphone+set}" = set; then
3415   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3416 fi
3417
3418
3419 # Check whether --with-mac was given.
3420 if test "${with_mac+set}" = set; then
3421   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3422 fi
3423
3424
3425 # Check whether --with-old_cocoa was given.
3426 if test "${with_old_cocoa+set}" = set; then
3427   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3428 fi
3429
3430
3431 # Check whether --with-wine was given.
3432 if test "${with_wine+set}" = set; then
3433   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3434 fi
3435
3436
3437 # Check whether --with-msw was given.
3438 if test "${with_msw+set}" = set; then
3439   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3440 fi
3441
3442
3443 # Check whether --with-pm was given.
3444 if test "${with_pm+set}" = set; then
3445   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3446 fi
3447
3448
3449 # Check whether --with-mgl was given.
3450 if test "${with_mgl+set}" = set; then
3451   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3452 fi
3453
3454
3455 # Check whether --with-directfb was given.
3456 if test "${with_directfb+set}" = set; then
3457   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3458 fi
3459
3460
3461 # Check whether --with-microwin was given.
3462 if test "${with_microwin+set}" = set; then
3463   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3464 fi
3465
3466
3467 # Check whether --with-x11 was given.
3468 if test "${with_x11+set}" = set; then
3469   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3470 fi
3471
3472
3473           enablestring=
3474           defaultval=
3475           if test -z "$defaultval"; then
3476               if test x"$enablestring" = xdisable; then
3477                   defaultval=yes
3478               else
3479                   defaultval=no
3480               fi
3481           fi
3482
3483           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3484 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3485           # Check whether --enable-nanox was given.
3486 if test "${enable_nanox+set}" = set; then
3487   enableval=$enable_nanox;
3488                           if test "$enableval" = yes; then
3489                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3490                           else
3491                             wx_cv_use_nanox='wxUSE_NANOX=no'
3492                           fi
3493
3494 else
3495
3496                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3497
3498 fi
3499
3500
3501           eval "$wx_cv_use_nanox"
3502
3503           if test x"$enablestring" = xdisable; then
3504             if test $wxUSE_NANOX = no; then
3505               result=yes
3506             else
3507               result=no
3508             fi
3509           else
3510             result=$wxUSE_NANOX
3511           fi
3512
3513           { echo "$as_me:$LINENO: result: $result" >&5
3514 echo "${ECHO_T}$result" >&6; }
3515
3516
3517 # Check whether --enable-gtk2 was given.
3518 if test "${enable_gtk2+set}" = set; then
3519   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3520 fi
3521
3522
3523           enablestring=
3524           defaultval=
3525           if test -z "$defaultval"; then
3526               if test x"$enablestring" = xdisable; then
3527                   defaultval=yes
3528               else
3529                   defaultval=no
3530               fi
3531           fi
3532
3533           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3534 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3535           # Check whether --enable-gpe was given.
3536 if test "${enable_gpe+set}" = set; then
3537   enableval=$enable_gpe;
3538                           if test "$enableval" = yes; then
3539                             wx_cv_use_gpe='wxUSE_GPE=yes'
3540                           else
3541                             wx_cv_use_gpe='wxUSE_GPE=no'
3542                           fi
3543
3544 else
3545
3546                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3547
3548 fi
3549
3550
3551           eval "$wx_cv_use_gpe"
3552
3553           if test x"$enablestring" = xdisable; then
3554             if test $wxUSE_GPE = no; then
3555               result=yes
3556             else
3557               result=no
3558             fi
3559           else
3560             result=$wxUSE_GPE
3561           fi
3562
3563           { echo "$as_me:$LINENO: result: $result" >&5
3564 echo "${ECHO_T}$result" >&6; }
3565
3566
3567
3568 { echo "$as_me:$LINENO: checking for toolkit" >&5
3569 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3570
3571
3572
3573 # In Wine, we need to default to MSW, not GTK or MOTIF
3574 if test "$wxUSE_WINE" = "yes"; then
3575     DEFAULT_DEFAULT_wxUSE_GTK=0
3576     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3577     DEFAULT_DEFAULT_wxUSE_MSW=1
3578     wxUSE_SHARED=no
3579     CC=${CC:-winegcc}
3580     CXX=${CXX:-wineg++}
3581 fi
3582
3583
3584 if test "$wxUSE_GUI" = "yes"; then
3585
3586     if test "$USE_BEOS" = 1; then
3587         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3588 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3589    { (exit 1); exit 1; }; }
3590     fi
3591
3592     if test "$TOOLKIT_GIVEN" = 1; then
3593             for toolkit in $ALL_TOOLKITS; do
3594         var=wxUSE_$toolkit
3595         eval "value=\$${var}"
3596         if test "x$value" = "xno"; then
3597           eval "$var=0"
3598         elif test "x$value" != "x"; then
3599           eval "$var=1"
3600         fi
3601
3602         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3603           eval "wx${toolkit}_VERSION=$value"
3604         fi
3605       done
3606     else
3607             for toolkit in $ALL_TOOLKITS; do
3608         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3609         eval "wxUSE_$toolkit=\$${var}"
3610       done
3611     fi
3612
3613             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3614                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3615                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3616
3617         case "${host}" in
3618       *-pc-os2_emx | *-pc-os2-emx )
3619         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3620     esac
3621
3622     case "$NUM_TOOLKITS" in
3623       1)
3624       ;;
3625       0)
3626         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3627 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3628    { (exit 1); exit 1; }; }
3629       ;;
3630       *)
3631         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3632 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3633    { (exit 1); exit 1; }; }
3634     esac
3635
3636     # to be removed when --disable-gtk2 isn't needed
3637     if test "x$wxUSE_GTK2" = "xyes"; then
3638         wxGTK_VERSION=2
3639         wxUSE_GTK1=0
3640     elif test "x$wxUSE_GTK2" = "xno"; then
3641         wxGTK_VERSION=1
3642         wxUSE_GTK1=1
3643     fi
3644
3645     for toolkit in $ALL_TOOLKITS; do
3646         var=wxUSE_$toolkit
3647         eval "value=\$${var}"
3648         if test "$value" = 1; then
3649           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3650           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3651 echo "${ECHO_T}$toolkit_echo" >&6; }
3652         fi
3653     done
3654 else
3655     if test "x$host_alias" != "x"; then
3656         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3657 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3658     else
3659         { echo "$as_me:$LINENO: result: base only" >&5
3660 echo "${ECHO_T}base only" >&6; }
3661     fi
3662 fi
3663
3664 wxUSE_MAC=0
3665 if test "$wxUSE_OSX_CARBON" = 1 \
3666        -o "$wxUSE_OSX_COCOA" = 1 \
3667        -o "$wxUSE_OSX_IPHONE" = 1; then
3668     wxUSE_MAC=1
3669 fi
3670
3671
3672
3673           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3674 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3675
3676 # Check whether --with-libpng was given.
3677 if test "${with_libpng+set}" = set; then
3678   withval=$with_libpng;
3679                         if test "$withval" = yes; then
3680                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3681                         elif test "$withval" = no; then
3682                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3683                         elif test "$withval" = sys; then
3684                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3685                         elif test "$withval" = builtin; then
3686                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3687                         else
3688                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3689 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3690    { (exit 1); exit 1; }; }
3691                         fi
3692
3693 else
3694
3695                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3696
3697 fi
3698
3699
3700           eval "$wx_cv_use_libpng"
3701
3702           if test "$wxUSE_LIBPNG" = yes; then
3703             { echo "$as_me:$LINENO: result: yes" >&5
3704 echo "${ECHO_T}yes" >&6; }
3705           elif test "$wxUSE_LIBPNG" = no; then
3706             { echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6; }
3708           elif test "$wxUSE_LIBPNG" = sys; then
3709             { echo "$as_me:$LINENO: result: system version" >&5
3710 echo "${ECHO_T}system version" >&6; }
3711           elif test "$wxUSE_LIBPNG" = builtin; then
3712             { echo "$as_me:$LINENO: result: builtin version" >&5
3713 echo "${ECHO_T}builtin version" >&6; }
3714           else
3715             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3716 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3717    { (exit 1); exit 1; }; }
3718           fi
3719
3720
3721           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3722 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3723
3724 # Check whether --with-libjpeg was given.
3725 if test "${with_libjpeg+set}" = set; then
3726   withval=$with_libjpeg;
3727                         if test "$withval" = yes; then
3728                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3729                         elif test "$withval" = no; then
3730                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3731                         elif test "$withval" = sys; then
3732                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3733                         elif test "$withval" = builtin; then
3734                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3735                         else
3736                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3737 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3738    { (exit 1); exit 1; }; }
3739                         fi
3740
3741 else
3742
3743                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3744
3745 fi
3746
3747
3748           eval "$wx_cv_use_libjpeg"
3749
3750           if test "$wxUSE_LIBJPEG" = yes; then
3751             { echo "$as_me:$LINENO: result: yes" >&5
3752 echo "${ECHO_T}yes" >&6; }
3753           elif test "$wxUSE_LIBJPEG" = no; then
3754             { echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6; }
3756           elif test "$wxUSE_LIBJPEG" = sys; then
3757             { echo "$as_me:$LINENO: result: system version" >&5
3758 echo "${ECHO_T}system version" >&6; }
3759           elif test "$wxUSE_LIBJPEG" = builtin; then
3760             { echo "$as_me:$LINENO: result: builtin version" >&5
3761 echo "${ECHO_T}builtin version" >&6; }
3762           else
3763             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3764 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3765    { (exit 1); exit 1; }; }
3766           fi
3767
3768
3769           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3770 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3771
3772 # Check whether --with-libtiff was given.
3773 if test "${with_libtiff+set}" = set; then
3774   withval=$with_libtiff;
3775                         if test "$withval" = yes; then
3776                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3777                         elif test "$withval" = no; then
3778                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3779                         elif test "$withval" = sys; then
3780                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3781                         elif test "$withval" = builtin; then
3782                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3783                         else
3784                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3785 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3786    { (exit 1); exit 1; }; }
3787                         fi
3788
3789 else
3790
3791                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3792
3793 fi
3794
3795
3796           eval "$wx_cv_use_libtiff"
3797
3798           if test "$wxUSE_LIBTIFF" = yes; then
3799             { echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6; }
3801           elif test "$wxUSE_LIBTIFF" = no; then
3802             { echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6; }
3804           elif test "$wxUSE_LIBTIFF" = sys; then
3805             { echo "$as_me:$LINENO: result: system version" >&5
3806 echo "${ECHO_T}system version" >&6; }
3807           elif test "$wxUSE_LIBTIFF" = builtin; then
3808             { echo "$as_me:$LINENO: result: builtin version" >&5
3809 echo "${ECHO_T}builtin version" >&6; }
3810           else
3811             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3812 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3813    { (exit 1); exit 1; }; }
3814           fi
3815
3816
3817           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3818 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3819
3820 # Check whether --with-libxpm was given.
3821 if test "${with_libxpm+set}" = set; then
3822   withval=$with_libxpm;
3823                         if test "$withval" = yes; then
3824                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3825                         elif test "$withval" = no; then
3826                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3827                         elif test "$withval" = sys; then
3828                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3829                         elif test "$withval" = builtin; then
3830                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3831                         else
3832                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3833 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3834    { (exit 1); exit 1; }; }
3835                         fi
3836
3837 else
3838
3839                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3840
3841 fi
3842
3843
3844           eval "$wx_cv_use_libxpm"
3845
3846           if test "$wxUSE_LIBXPM" = yes; then
3847             { echo "$as_me:$LINENO: result: yes" >&5
3848 echo "${ECHO_T}yes" >&6; }
3849           elif test "$wxUSE_LIBXPM" = no; then
3850             { echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6; }
3852           elif test "$wxUSE_LIBXPM" = sys; then
3853             { echo "$as_me:$LINENO: result: system version" >&5
3854 echo "${ECHO_T}system version" >&6; }
3855           elif test "$wxUSE_LIBXPM" = builtin; then
3856             { echo "$as_me:$LINENO: result: builtin version" >&5
3857 echo "${ECHO_T}builtin version" >&6; }
3858           else
3859             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3860 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3861    { (exit 1); exit 1; }; }
3862           fi
3863
3864
3865           withstring=
3866           defaultval=$wxUSE_ALL_FEATURES
3867           if test -z "$defaultval"; then
3868               if test x"$withstring" = xwithout; then
3869                   defaultval=yes
3870               else
3871                   defaultval=no
3872               fi
3873           fi
3874           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3875 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3876
3877 # Check whether --with-libiconv was given.
3878 if test "${with_libiconv+set}" = set; then
3879   withval=$with_libiconv;
3880                         if test "$withval" = yes; then
3881                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3882                         else
3883                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3884                         fi
3885
3886 else
3887
3888                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3889
3890 fi
3891
3892
3893           eval "$wx_cv_use_libiconv"
3894
3895           if test x"$withstring" = xwithout; then
3896             if test $wxUSE_LIBICONV = yes; then
3897               result=no
3898             else
3899               result=yes
3900             fi
3901           else
3902             result=$wxUSE_LIBICONV
3903           fi
3904
3905           { echo "$as_me:$LINENO: result: $result" >&5
3906 echo "${ECHO_T}$result" >&6; }
3907
3908
3909           withstring=
3910           defaultval=$wxUSE_ALL_FEATURES
3911           if test -z "$defaultval"; then
3912               if test x"$withstring" = xwithout; then
3913                   defaultval=yes
3914               else
3915                   defaultval=no
3916               fi
3917           fi
3918           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3919 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3920
3921 # Check whether --with-libmspack was given.
3922 if test "${with_libmspack+set}" = set; then
3923   withval=$with_libmspack;
3924                         if test "$withval" = yes; then
3925                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3926                         else
3927                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3928                         fi
3929
3930 else
3931
3932                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3933
3934 fi
3935
3936
3937           eval "$wx_cv_use_libmspack"
3938
3939           if test x"$withstring" = xwithout; then
3940             if test $wxUSE_LIBMSPACK = yes; then
3941               result=no
3942             else
3943               result=yes
3944             fi
3945           else
3946             result=$wxUSE_LIBMSPACK
3947           fi
3948
3949           { echo "$as_me:$LINENO: result: $result" >&5
3950 echo "${ECHO_T}$result" >&6; }
3951
3952
3953           withstring=without
3954           defaultval=$wxUSE_ALL_FEATURES
3955           if test -z "$defaultval"; then
3956               if test x"$withstring" = xwithout; then
3957                   defaultval=yes
3958               else
3959                   defaultval=no
3960               fi
3961           fi
3962           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3963 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3964
3965 # Check whether --with-gtkprint was given.
3966 if test "${with_gtkprint+set}" = set; then
3967   withval=$with_gtkprint;
3968                         if test "$withval" = yes; then
3969                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3970                         else
3971                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3972                         fi
3973
3974 else
3975
3976                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3977
3978 fi
3979
3980
3981           eval "$wx_cv_use_gtkprint"
3982
3983           if test x"$withstring" = xwithout; then
3984             if test $wxUSE_GTKPRINT = yes; then
3985               result=no
3986             else
3987               result=yes
3988             fi
3989           else
3990             result=$wxUSE_GTKPRINT
3991           fi
3992
3993           { echo "$as_me:$LINENO: result: $result" >&5
3994 echo "${ECHO_T}$result" >&6; }
3995
3996
3997           withstring=without
3998           defaultval=$wxUSE_ALL_FEATURES
3999           if test -z "$defaultval"; then
4000               if test x"$withstring" = xwithout; then
4001                   defaultval=yes
4002               else
4003                   defaultval=no
4004               fi
4005           fi
4006           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
4007 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
4008
4009 # Check whether --with-gnomeprint was given.
4010 if test "${with_gnomeprint+set}" = set; then
4011   withval=$with_gnomeprint;
4012                         if test "$withval" = yes; then
4013                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4014                         else
4015                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4016                         fi
4017
4018 else
4019
4020                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
4021
4022 fi
4023
4024
4025           eval "$wx_cv_use_gnomeprint"
4026
4027           if test x"$withstring" = xwithout; then
4028             if test $wxUSE_LIBGNOMEPRINT = yes; then
4029               result=no
4030             else
4031               result=yes
4032             fi
4033           else
4034             result=$wxUSE_LIBGNOMEPRINT
4035           fi
4036
4037           { echo "$as_me:$LINENO: result: $result" >&5
4038 echo "${ECHO_T}$result" >&6; }
4039
4040
4041           withstring=
4042           defaultval=$wxUSE_ALL_FEATURES
4043           if test -z "$defaultval"; then
4044               if test x"$withstring" = xwithout; then
4045                   defaultval=yes
4046               else
4047                   defaultval=no
4048               fi
4049           fi
4050           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4051 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4052
4053 # Check whether --with-gnomevfs was given.
4054 if test "${with_gnomevfs+set}" = set; then
4055   withval=$with_gnomevfs;
4056                         if test "$withval" = yes; then
4057                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4058                         else
4059                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4060                         fi
4061
4062 else
4063
4064                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4065
4066 fi
4067
4068
4069           eval "$wx_cv_use_gnomevfs"
4070
4071           if test x"$withstring" = xwithout; then
4072             if test $wxUSE_LIBGNOMEVFS = yes; then
4073               result=no
4074             else
4075               result=yes
4076             fi
4077           else
4078             result=$wxUSE_LIBGNOMEVFS
4079           fi
4080
4081           { echo "$as_me:$LINENO: result: $result" >&5
4082 echo "${ECHO_T}$result" >&6; }
4083
4084
4085           withstring=
4086           defaultval=$wxUSE_ALL_FEATURES
4087           if test -z "$defaultval"; then
4088               if test x"$withstring" = xwithout; then
4089                   defaultval=yes
4090               else
4091                   defaultval=no
4092               fi
4093           fi
4094           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4095 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4096
4097 # Check whether --with-hildon was given.
4098 if test "${with_hildon+set}" = set; then
4099   withval=$with_hildon;
4100                         if test "$withval" = yes; then
4101                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4102                         else
4103                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4104                         fi
4105
4106 else
4107
4108                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4109
4110 fi
4111
4112
4113           eval "$wx_cv_use_hildon"
4114
4115           if test x"$withstring" = xwithout; then
4116             if test $wxUSE_LIBHILDON = yes; then
4117               result=no
4118             else
4119               result=yes
4120             fi
4121           else
4122             result=$wxUSE_LIBHILDON
4123           fi
4124
4125           { echo "$as_me:$LINENO: result: $result" >&5
4126 echo "${ECHO_T}$result" >&6; }
4127
4128
4129           withstring=
4130           defaultval=$wxUSE_ALL_FEATURES
4131           if test -z "$defaultval"; then
4132               if test x"$withstring" = xwithout; then
4133                   defaultval=yes
4134               else
4135                   defaultval=no
4136               fi
4137           fi
4138           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4139 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4140
4141 # Check whether --with-opengl was given.
4142 if test "${with_opengl+set}" = set; then
4143   withval=$with_opengl;
4144                         if test "$withval" = yes; then
4145                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4146                         else
4147                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4148                         fi
4149
4150 else
4151
4152                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4153
4154 fi
4155
4156
4157           eval "$wx_cv_use_opengl"
4158
4159           if test x"$withstring" = xwithout; then
4160             if test $wxUSE_OPENGL = yes; then
4161               result=no
4162             else
4163               result=yes
4164             fi
4165           else
4166             result=$wxUSE_OPENGL
4167           fi
4168
4169           { echo "$as_me:$LINENO: result: $result" >&5
4170 echo "${ECHO_T}$result" >&6; }
4171
4172
4173 fi
4174
4175
4176           withstring=
4177           defaultval=$wxUSE_ALL_FEATURES
4178           if test -z "$defaultval"; then
4179               if test x"$withstring" = xwithout; then
4180                   defaultval=yes
4181               else
4182                   defaultval=no
4183               fi
4184           fi
4185           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4186 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4187
4188 # Check whether --with-dmalloc was given.
4189 if test "${with_dmalloc+set}" = set; then
4190   withval=$with_dmalloc;
4191                         if test "$withval" = yes; then
4192                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4193                         else
4194                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4195                         fi
4196
4197 else
4198
4199                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4200
4201 fi
4202
4203
4204           eval "$wx_cv_use_dmalloc"
4205
4206           if test x"$withstring" = xwithout; then
4207             if test $wxUSE_DMALLOC = yes; then
4208               result=no
4209             else
4210               result=yes
4211             fi
4212           else
4213             result=$wxUSE_DMALLOC
4214           fi
4215
4216           { echo "$as_me:$LINENO: result: $result" >&5
4217 echo "${ECHO_T}$result" >&6; }
4218
4219
4220           withstring=
4221           defaultval=$wxUSE_ALL_FEATURES
4222           if test -z "$defaultval"; then
4223               if test x"$withstring" = xwithout; then
4224                   defaultval=yes
4225               else
4226                   defaultval=no
4227               fi
4228           fi
4229           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4230 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4231
4232 # Check whether --with-sdl was given.
4233 if test "${with_sdl+set}" = set; then
4234   withval=$with_sdl;
4235                         if test "$withval" = yes; then
4236                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4237                         else
4238                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4239                         fi
4240
4241 else
4242
4243                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4244
4245 fi
4246
4247
4248           eval "$wx_cv_use_sdl"
4249
4250           if test x"$withstring" = xwithout; then
4251             if test $wxUSE_LIBSDL = yes; then
4252               result=no
4253             else
4254               result=yes
4255             fi
4256           else
4257             result=$wxUSE_LIBSDL
4258           fi
4259
4260           { echo "$as_me:$LINENO: result: $result" >&5
4261 echo "${ECHO_T}$result" >&6; }
4262
4263
4264           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4265 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4266
4267 # Check whether --with-regex was given.
4268 if test "${with_regex+set}" = set; then
4269   withval=$with_regex;
4270                         if test "$withval" = yes; then
4271                           wx_cv_use_regex='wxUSE_REGEX=yes'
4272                         elif test "$withval" = no; then
4273                           wx_cv_use_regex='wxUSE_REGEX=no'
4274                         elif test "$withval" = sys; then
4275                           wx_cv_use_regex='wxUSE_REGEX=sys'
4276                         elif test "$withval" = builtin; then
4277                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4278                         else
4279                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4280 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4281    { (exit 1); exit 1; }; }
4282                         fi
4283
4284 else
4285
4286                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4287
4288 fi
4289
4290
4291           eval "$wx_cv_use_regex"
4292
4293           if test "$wxUSE_REGEX" = yes; then
4294             { echo "$as_me:$LINENO: result: yes" >&5
4295 echo "${ECHO_T}yes" >&6; }
4296           elif test "$wxUSE_REGEX" = no; then
4297             { echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6; }
4299           elif test "$wxUSE_REGEX" = sys; then
4300             { echo "$as_me:$LINENO: result: system version" >&5
4301 echo "${ECHO_T}system version" >&6; }
4302           elif test "$wxUSE_REGEX" = builtin; then
4303             { echo "$as_me:$LINENO: result: builtin version" >&5
4304 echo "${ECHO_T}builtin version" >&6; }
4305           else
4306             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4307 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4308    { (exit 1); exit 1; }; }
4309           fi
4310
4311
4312           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4313 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4314
4315 # Check whether --with-zlib was given.
4316 if test "${with_zlib+set}" = set; then
4317   withval=$with_zlib;
4318                         if test "$withval" = yes; then
4319                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4320                         elif test "$withval" = no; then
4321                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4322                         elif test "$withval" = sys; then
4323                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4324                         elif test "$withval" = builtin; then
4325                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4326                         else
4327                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4328 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4329    { (exit 1); exit 1; }; }
4330                         fi
4331
4332 else
4333
4334                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4335
4336 fi
4337
4338
4339           eval "$wx_cv_use_zlib"
4340
4341           if test "$wxUSE_ZLIB" = yes; then
4342             { echo "$as_me:$LINENO: result: yes" >&5
4343 echo "${ECHO_T}yes" >&6; }
4344           elif test "$wxUSE_ZLIB" = no; then
4345             { echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6; }
4347           elif test "$wxUSE_ZLIB" = sys; then
4348             { echo "$as_me:$LINENO: result: system version" >&5
4349 echo "${ECHO_T}system version" >&6; }
4350           elif test "$wxUSE_ZLIB" = builtin; then
4351             { echo "$as_me:$LINENO: result: builtin version" >&5
4352 echo "${ECHO_T}builtin version" >&6; }
4353           else
4354             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4355 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4356    { (exit 1); exit 1; }; }
4357           fi
4358
4359
4360           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4361 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4362
4363 # Check whether --with-expat was given.
4364 if test "${with_expat+set}" = set; then
4365   withval=$with_expat;
4366                         if test "$withval" = yes; then
4367                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4368                         elif test "$withval" = no; then
4369                           wx_cv_use_expat='wxUSE_EXPAT=no'
4370                         elif test "$withval" = sys; then
4371                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4372                         elif test "$withval" = builtin; then
4373                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4374                         else
4375                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4376 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4377    { (exit 1); exit 1; }; }
4378                         fi
4379
4380 else
4381
4382                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4383
4384 fi
4385
4386
4387           eval "$wx_cv_use_expat"
4388
4389           if test "$wxUSE_EXPAT" = yes; then
4390             { echo "$as_me:$LINENO: result: yes" >&5
4391 echo "${ECHO_T}yes" >&6; }
4392           elif test "$wxUSE_EXPAT" = no; then
4393             { echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6; }
4395           elif test "$wxUSE_EXPAT" = sys; then
4396             { echo "$as_me:$LINENO: result: system version" >&5
4397 echo "${ECHO_T}system version" >&6; }
4398           elif test "$wxUSE_EXPAT" = builtin; then
4399             { echo "$as_me:$LINENO: result: builtin version" >&5
4400 echo "${ECHO_T}builtin version" >&6; }
4401           else
4402             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4403 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4404    { (exit 1); exit 1; }; }
4405           fi
4406
4407
4408 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4409 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4410
4411 # Check whether --with-macosx-sdk was given.
4412 if test "${with_macosx_sdk+set}" = set; then
4413   withval=$with_macosx_sdk;
4414         wxUSE_MACOSX_SDK=$withval
4415         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4416
4417 fi
4418
4419 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4420 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4421
4422 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4423 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4424
4425 # Check whether --with-macosx-version-min was given.
4426 if test "${with_macosx_version_min+set}" = set; then
4427   withval=$with_macosx_version_min;
4428         wxUSE_MACOSX_VERSION_MIN=$withval
4429         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4430
4431 fi
4432
4433 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4434 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4435
4436
4437 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4438 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4439 # Check whether --enable-debug was given.
4440 if test "${enable_debug+set}" = set; then
4441   enableval=$enable_debug;
4442         if test "$enableval" = yes; then
4443             wxUSE_DEBUG=yes
4444         elif test "$enableval" = no; then
4445             wxUSE_DEBUG=no
4446         elif test "$enableval" = max; then
4447             wxUSE_DEBUG=yes
4448             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4449         else
4450             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4451 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4452    { (exit 1); exit 1; }; }
4453         fi
4454
4455 else
4456   wxUSE_DEBUG=default
4457
4458 fi
4459
4460
4461 case "$wxUSE_DEBUG" in
4462     yes)
4463                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4464         DEFAULT_wxUSE_DEBUG_INFO=yes
4465
4466                         DEFAULT_wxUSE_OPTIMISE=no
4467         ;;
4468
4469     no)
4470                         DEFAULT_wxUSE_DEBUG_FLAG=no
4471         DEFAULT_wxUSE_DEBUG_INFO=no
4472         ;;
4473
4474     default)
4475                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4476         DEFAULT_wxUSE_DEBUG_INFO=no
4477         ;;
4478 esac
4479
4480
4481           enablestring=disable
4482           defaultval=
4483           if test -z "$defaultval"; then
4484               if test x"$enablestring" = xdisable; then
4485                   defaultval=yes
4486               else
4487                   defaultval=no
4488               fi
4489           fi
4490
4491           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4492 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4493           # Check whether --enable-debug_flag was given.
4494 if test "${enable_debug_flag+set}" = set; then
4495   enableval=$enable_debug_flag;
4496                           if test "$enableval" = yes; then
4497                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4498                           else
4499                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4500                           fi
4501
4502 else
4503
4504                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4505
4506 fi
4507
4508
4509           eval "$wx_cv_use_debug_flag"
4510
4511           if test x"$enablestring" = xdisable; then
4512             if test $wxUSE_DEBUG_FLAG = no; then
4513               result=yes
4514             else
4515               result=no
4516             fi
4517           else
4518             result=$wxUSE_DEBUG_FLAG
4519           fi
4520
4521           { echo "$as_me:$LINENO: result: $result" >&5
4522 echo "${ECHO_T}$result" >&6; }
4523
4524
4525           enablestring=
4526           defaultval=
4527           if test -z "$defaultval"; then
4528               if test x"$enablestring" = xdisable; then
4529                   defaultval=yes
4530               else
4531                   defaultval=no
4532               fi
4533           fi
4534
4535           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4536 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4537           # Check whether --enable-debug_info was given.
4538 if test "${enable_debug_info+set}" = set; then
4539   enableval=$enable_debug_info;
4540                           if test "$enableval" = yes; then
4541                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4542                           else
4543                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4544                           fi
4545
4546 else
4547
4548                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4549
4550 fi
4551
4552
4553           eval "$wx_cv_use_debug_info"
4554
4555           if test x"$enablestring" = xdisable; then
4556             if test $wxUSE_DEBUG_INFO = no; then
4557               result=yes
4558             else
4559               result=no
4560             fi
4561           else
4562             result=$wxUSE_DEBUG_INFO
4563           fi
4564
4565           { echo "$as_me:$LINENO: result: $result" >&5
4566 echo "${ECHO_T}$result" >&6; }
4567
4568
4569
4570
4571           enablestring=
4572           defaultval=
4573           if test -z "$defaultval"; then
4574               if test x"$enablestring" = xdisable; then
4575                   defaultval=yes
4576               else
4577                   defaultval=no
4578               fi
4579           fi
4580
4581           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4582 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4583           # Check whether --enable-debug_gdb was given.
4584 if test "${enable_debug_gdb+set}" = set; then
4585   enableval=$enable_debug_gdb;
4586                           if test "$enableval" = yes; then
4587                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4588                           else
4589                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4590                           fi
4591
4592 else
4593
4594                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4595
4596 fi
4597
4598
4599           eval "$wx_cv_use_debug_gdb"
4600
4601           if test x"$enablestring" = xdisable; then
4602             if test $wxUSE_DEBUG_GDB = no; then
4603               result=yes
4604             else
4605               result=no
4606             fi
4607           else
4608             result=$wxUSE_DEBUG_GDB
4609           fi
4610
4611           { echo "$as_me:$LINENO: result: $result" >&5
4612 echo "${ECHO_T}$result" >&6; }
4613
4614
4615           enablestring=
4616           defaultval=
4617           if test -z "$defaultval"; then
4618               if test x"$enablestring" = xdisable; then
4619                   defaultval=yes
4620               else
4621                   defaultval=no
4622               fi
4623           fi
4624
4625           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4626 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4627           # Check whether --enable-debug_cntxt was given.
4628 if test "${enable_debug_cntxt+set}" = set; then
4629   enableval=$enable_debug_cntxt;
4630                           if test "$enableval" = yes; then
4631                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4632                           else
4633                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4634                           fi
4635
4636 else
4637
4638                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4639
4640 fi
4641
4642
4643           eval "$wx_cv_use_debug_cntxt"
4644
4645           if test x"$enablestring" = xdisable; then
4646             if test $wxUSE_DEBUG_CONTEXT = no; then
4647               result=yes
4648             else
4649               result=no
4650             fi
4651           else
4652             result=$wxUSE_DEBUG_CONTEXT
4653           fi
4654
4655           { echo "$as_me:$LINENO: result: $result" >&5
4656 echo "${ECHO_T}$result" >&6; }
4657
4658
4659           enablestring=
4660           defaultval=
4661           if test -z "$defaultval"; then
4662               if test x"$enablestring" = xdisable; then
4663                   defaultval=yes
4664               else
4665                   defaultval=no
4666               fi
4667           fi
4668
4669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4670 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4671           # Check whether --enable-mem_tracing was given.
4672 if test "${enable_mem_tracing+set}" = set; then
4673   enableval=$enable_mem_tracing;
4674                           if test "$enableval" = yes; then
4675                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4676                           else
4677                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4678                           fi
4679
4680 else
4681
4682                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4683
4684 fi
4685
4686
4687           eval "$wx_cv_use_mem_tracing"
4688
4689           if test x"$enablestring" = xdisable; then
4690             if test $wxUSE_MEM_TRACING = no; then
4691               result=yes
4692             else
4693               result=no
4694             fi
4695           else
4696             result=$wxUSE_MEM_TRACING
4697           fi
4698
4699           { echo "$as_me:$LINENO: result: $result" >&5
4700 echo "${ECHO_T}$result" >&6; }
4701
4702
4703
4704
4705           enablestring=disable
4706           defaultval=
4707           if test -z "$defaultval"; then
4708               if test x"$enablestring" = xdisable; then
4709                   defaultval=yes
4710               else
4711                   defaultval=no
4712               fi
4713           fi
4714
4715           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4716 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4717           # Check whether --enable-shared was given.
4718 if test "${enable_shared+set}" = set; then
4719   enableval=$enable_shared;
4720                           if test "$enableval" = yes; then
4721                             wx_cv_use_shared='wxUSE_SHARED=yes'
4722                           else
4723                             wx_cv_use_shared='wxUSE_SHARED=no'
4724                           fi
4725
4726 else
4727
4728                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4729
4730 fi
4731
4732
4733           eval "$wx_cv_use_shared"
4734
4735           if test x"$enablestring" = xdisable; then
4736             if test $wxUSE_SHARED = no; then
4737               result=yes
4738             else
4739               result=no
4740             fi
4741           else
4742             result=$wxUSE_SHARED
4743           fi
4744
4745           { echo "$as_me:$LINENO: result: $result" >&5
4746 echo "${ECHO_T}$result" >&6; }
4747
4748
4749           enablestring=
4750           defaultval=
4751           if test -z "$defaultval"; then
4752               if test x"$enablestring" = xdisable; then
4753                   defaultval=yes
4754               else
4755                   defaultval=no
4756               fi
4757           fi
4758
4759           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4760 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4761           # Check whether --enable-stl was given.
4762 if test "${enable_stl+set}" = set; then
4763   enableval=$enable_stl;
4764                           if test "$enableval" = yes; then
4765                             wx_cv_use_stl='wxUSE_STL=yes'
4766                           else
4767                             wx_cv_use_stl='wxUSE_STL=no'
4768                           fi
4769
4770 else
4771
4772                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4773
4774 fi
4775
4776
4777           eval "$wx_cv_use_stl"
4778
4779           if test x"$enablestring" = xdisable; then
4780             if test $wxUSE_STL = no; then
4781               result=yes
4782             else
4783               result=no
4784             fi
4785           else
4786             result=$wxUSE_STL
4787           fi
4788
4789           { echo "$as_me:$LINENO: result: $result" >&5
4790 echo "${ECHO_T}$result" >&6; }
4791
4792 if test "$wxUSE_STL" = "yes"; then
4793     DEFAULT_wxUSE_STD_CONTAINERS=yes
4794     DEFAULT_wxUSE_STD_IOSTREAM=yes
4795     DEFAULT_wxUSE_STD_STRING=yes
4796 fi
4797
4798           enablestring=
4799           defaultval=
4800           if test -z "$defaultval"; then
4801               if test x"$enablestring" = xdisable; then
4802                   defaultval=yes
4803               else
4804                   defaultval=no
4805               fi
4806           fi
4807
4808           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_containers" >&5
4809 echo $ECHO_N "checking for --${enablestring:-enable}-std_containers... $ECHO_C" >&6; }
4810           # Check whether --enable-std_containers was given.
4811 if test "${enable_std_containers+set}" = set; then
4812   enableval=$enable_std_containers;
4813                           if test "$enableval" = yes; then
4814                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=yes'
4815                           else
4816                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=no'
4817                           fi
4818
4819 else
4820
4821                           wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=${'DEFAULT_wxUSE_STD_CONTAINERS":-$defaultval}"
4822
4823 fi
4824
4825
4826           eval "$wx_cv_use_std_containers"
4827
4828           if test x"$enablestring" = xdisable; then
4829             if test $wxUSE_STD_CONTAINERS = no; then
4830               result=yes
4831             else
4832               result=no
4833             fi
4834           else
4835             result=$wxUSE_STD_CONTAINERS
4836           fi
4837
4838           { echo "$as_me:$LINENO: result: $result" >&5
4839 echo "${ECHO_T}$result" >&6; }
4840
4841
4842           enablestring=
4843           defaultval=
4844           if test -z "$defaultval"; then
4845               if test x"$enablestring" = xdisable; then
4846                   defaultval=yes
4847               else
4848                   defaultval=no
4849               fi
4850           fi
4851
4852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4853 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4854           # Check whether --enable-std_iostreams was given.
4855 if test "${enable_std_iostreams+set}" = set; then
4856   enableval=$enable_std_iostreams;
4857                           if test "$enableval" = yes; then
4858                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4859                           else
4860                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4861                           fi
4862
4863 else
4864
4865                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4866
4867 fi
4868
4869
4870           eval "$wx_cv_use_std_iostreams"
4871
4872           if test x"$enablestring" = xdisable; then
4873             if test $wxUSE_STD_IOSTREAM = no; then
4874               result=yes
4875             else
4876               result=no
4877             fi
4878           else
4879             result=$wxUSE_STD_IOSTREAM
4880           fi
4881
4882           { echo "$as_me:$LINENO: result: $result" >&5
4883 echo "${ECHO_T}$result" >&6; }
4884
4885
4886           enablestring=
4887           defaultval=
4888           if test -z "$defaultval"; then
4889               if test x"$enablestring" = xdisable; then
4890                   defaultval=yes
4891               else
4892                   defaultval=no
4893               fi
4894           fi
4895
4896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4897 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4898           # Check whether --enable-std_string was given.
4899 if test "${enable_std_string+set}" = set; then
4900   enableval=$enable_std_string;
4901                           if test "$enableval" = yes; then
4902                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4903                           else
4904                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4905                           fi
4906
4907 else
4908
4909                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4910
4911 fi
4912
4913
4914           eval "$wx_cv_use_std_string"
4915
4916           if test x"$enablestring" = xdisable; then
4917             if test $wxUSE_STD_STRING = no; then
4918               result=yes
4919             else
4920               result=no
4921             fi
4922           else
4923             result=$wxUSE_STD_STRING
4924           fi
4925
4926           { echo "$as_me:$LINENO: result: $result" >&5
4927 echo "${ECHO_T}$result" >&6; }
4928
4929
4930           enablestring=
4931           defaultval=
4932           if test -z "$defaultval"; then
4933               if test x"$enablestring" = xdisable; then
4934                   defaultval=yes
4935               else
4936                   defaultval=no
4937               fi
4938           fi
4939
4940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string_conv_in_wxstring" >&5
4941 echo $ECHO_N "checking for --${enablestring:-enable}-std_string_conv_in_wxstring... $ECHO_C" >&6; }
4942           # Check whether --enable-std_string_conv_in_wxstring was given.
4943 if test "${enable_std_string_conv_in_wxstring+set}" = set; then
4944   enableval=$enable_std_string_conv_in_wxstring;
4945                           if test "$enableval" = yes; then
4946                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=yes'
4947                           else
4948                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=no'
4949                           fi
4950
4951 else
4952
4953                           wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=${'DEFAULT_wxUSE_STD_STRING_CONV_IN_WXSTRING":-$defaultval}"
4954
4955 fi
4956
4957
4958           eval "$wx_cv_use_std_string_conv_in_wxstring"
4959
4960           if test x"$enablestring" = xdisable; then
4961             if test $wxUSE_STD_STRING_CONV_IN_WXSTRING = no; then
4962               result=yes
4963             else
4964               result=no
4965             fi
4966           else
4967             result=$wxUSE_STD_STRING_CONV_IN_WXSTRING
4968           fi
4969
4970           { echo "$as_me:$LINENO: result: $result" >&5
4971 echo "${ECHO_T}$result" >&6; }
4972
4973
4974           enablestring=disable
4975           defaultval=
4976           if test -z "$defaultval"; then
4977               if test x"$enablestring" = xdisable; then
4978                   defaultval=yes
4979               else
4980                   defaultval=no
4981               fi
4982           fi
4983
4984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4985 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4986           # Check whether --enable-unicode was given.
4987 if test "${enable_unicode+set}" = set; then
4988   enableval=$enable_unicode;
4989                           if test "$enableval" = yes; then
4990                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4991                           else
4992                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4993                           fi
4994
4995 else
4996
4997                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4998
4999 fi
5000
5001
5002           eval "$wx_cv_use_unicode"
5003
5004           if test x"$enablestring" = xdisable; then
5005             if test $wxUSE_UNICODE = no; then
5006               result=yes
5007             else
5008               result=no
5009             fi
5010           else
5011             result=$wxUSE_UNICODE
5012           fi
5013
5014           { echo "$as_me:$LINENO: result: $result" >&5
5015 echo "${ECHO_T}$result" >&6; }
5016
5017
5018           enablestring=
5019           defaultval=
5020           if test -z "$defaultval"; then
5021               if test x"$enablestring" = xdisable; then
5022                   defaultval=yes
5023               else
5024                   defaultval=no
5025               fi
5026           fi
5027
5028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5029 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
5030           # Check whether --enable-mslu was given.
5031 if test "${enable_mslu+set}" = set; then
5032   enableval=$enable_mslu;
5033                           if test "$enableval" = yes; then
5034                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5035                           else
5036                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5037                           fi
5038
5039 else
5040
5041                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
5042
5043 fi
5044
5045
5046           eval "$wx_cv_use_mslu"
5047
5048           if test x"$enablestring" = xdisable; then
5049             if test $wxUSE_UNICODE_MSLU = no; then
5050               result=yes
5051             else
5052               result=no
5053             fi
5054           else
5055             result=$wxUSE_UNICODE_MSLU
5056           fi
5057
5058           { echo "$as_me:$LINENO: result: $result" >&5
5059 echo "${ECHO_T}$result" >&6; }
5060
5061
5062           enablestring=
5063           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5064 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
5065           # Check whether --enable-utf8 was given.
5066 if test "${enable_utf8+set}" = set; then
5067   enableval=$enable_utf8;
5068                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
5069
5070 else
5071
5072                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
5073
5074 fi
5075
5076
5077           eval "$wx_cv_use_utf8"
5078
5079           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5080 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
5081
5082
5083           enablestring=
5084           defaultval=
5085           if test -z "$defaultval"; then
5086               if test x"$enablestring" = xdisable; then
5087                   defaultval=yes
5088               else
5089                   defaultval=no
5090               fi
5091           fi
5092
5093           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5094 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5095           # Check whether --enable-utf8only was given.
5096 if test "${enable_utf8only+set}" = set; then
5097   enableval=$enable_utf8only;
5098                           if test "$enableval" = yes; then
5099                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5100                           else
5101                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5102                           fi
5103
5104 else
5105
5106                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5107
5108 fi
5109
5110
5111           eval "$wx_cv_use_utf8only"
5112
5113           if test x"$enablestring" = xdisable; then
5114             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
5115               result=yes
5116             else
5117               result=no
5118             fi
5119           else
5120             result=$wxUSE_UNICODE_UTF8_LOCALE
5121           fi
5122
5123           { echo "$as_me:$LINENO: result: $result" >&5
5124 echo "${ECHO_T}$result" >&6; }
5125
5126
5127           enablestring=
5128           defaultval=
5129           if test -z "$defaultval"; then
5130               if test x"$enablestring" = xdisable; then
5131                   defaultval=yes
5132               else
5133                   defaultval=no
5134               fi
5135           fi
5136
5137           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5138 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5139           # Check whether --enable-extended_rtti was given.
5140 if test "${enable_extended_rtti+set}" = set; then
5141   enableval=$enable_extended_rtti;
5142                           if test "$enableval" = yes; then
5143                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5144                           else
5145                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5146                           fi
5147
5148 else
5149
5150                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5151
5152 fi
5153
5154
5155           eval "$wx_cv_use_extended_rtti"
5156
5157           if test x"$enablestring" = xdisable; then
5158             if test $wxUSE_EXTENDED_RTTI = no; then
5159               result=yes
5160             else
5161               result=no
5162             fi
5163           else
5164             result=$wxUSE_EXTENDED_RTTI
5165           fi
5166
5167           { echo "$as_me:$LINENO: result: $result" >&5
5168 echo "${ECHO_T}$result" >&6; }
5169
5170 if test "$USE_OS2" = 1; then
5171     DEFAULT_wxUSE_OMF=no
5172
5173           enablestring=
5174           defaultval=
5175           if test -z "$defaultval"; then
5176               if test x"$enablestring" = xdisable; then
5177                   defaultval=yes
5178               else
5179                   defaultval=no
5180               fi
5181           fi
5182
5183           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5184 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5185           # Check whether --enable-omf was given.
5186 if test "${enable_omf+set}" = set; then
5187   enableval=$enable_omf;
5188                           if test "$enableval" = yes; then
5189                             wx_cv_use_omf='wxUSE_OMF=yes'
5190                           else
5191                             wx_cv_use_omf='wxUSE_OMF=no'
5192                           fi
5193
5194 else
5195
5196                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5197
5198 fi
5199
5200
5201           eval "$wx_cv_use_omf"
5202
5203           if test x"$enablestring" = xdisable; then
5204             if test $wxUSE_OMF = no; then
5205               result=yes
5206             else
5207               result=no
5208             fi
5209           else
5210             result=$wxUSE_OMF
5211           fi
5212
5213           { echo "$as_me:$LINENO: result: $result" >&5
5214 echo "${ECHO_T}$result" >&6; }
5215
5216 fi
5217
5218
5219           enablestring=disable
5220           defaultval=
5221           if test -z "$defaultval"; then
5222               if test x"$enablestring" = xdisable; then
5223                   defaultval=yes
5224               else
5225                   defaultval=no
5226               fi
5227           fi
5228
5229           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5230 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5231           # Check whether --enable-optimise was given.
5232 if test "${enable_optimise+set}" = set; then
5233   enableval=$enable_optimise;
5234                           if test "$enableval" = yes; then
5235                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5236                           else
5237                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5238                           fi
5239
5240 else
5241
5242                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5243
5244 fi
5245
5246
5247           eval "$wx_cv_use_optimise"
5248
5249           if test x"$enablestring" = xdisable; then
5250             if test $wxUSE_OPTIMISE = no; then
5251               result=yes
5252             else
5253               result=no
5254             fi
5255           else
5256             result=$wxUSE_OPTIMISE
5257           fi
5258
5259           { echo "$as_me:$LINENO: result: $result" >&5
5260 echo "${ECHO_T}$result" >&6; }
5261
5262
5263
5264           enablestring=
5265           defaultval=
5266           if test -z "$defaultval"; then
5267               if test x"$enablestring" = xdisable; then
5268                   defaultval=yes
5269               else
5270                   defaultval=no
5271               fi
5272           fi
5273
5274           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5275 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5276           # Check whether --enable-profile was given.
5277 if test "${enable_profile+set}" = set; then
5278   enableval=$enable_profile;
5279                           if test "$enableval" = yes; then
5280                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5281                           else
5282                             wx_cv_use_profile='wxUSE_PROFILE=no'
5283                           fi
5284
5285 else
5286
5287                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5288
5289 fi
5290
5291
5292           eval "$wx_cv_use_profile"
5293
5294           if test x"$enablestring" = xdisable; then
5295             if test $wxUSE_PROFILE = no; then
5296               result=yes
5297             else
5298               result=no
5299             fi
5300           else
5301             result=$wxUSE_PROFILE
5302           fi
5303
5304           { echo "$as_me:$LINENO: result: $result" >&5
5305 echo "${ECHO_T}$result" >&6; }
5306
5307
5308           enablestring=
5309           defaultval=
5310           if test -z "$defaultval"; then
5311               if test x"$enablestring" = xdisable; then
5312                   defaultval=yes
5313               else
5314                   defaultval=no
5315               fi
5316           fi
5317
5318           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5319 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5320           # Check whether --enable-no_rtti was given.
5321 if test "${enable_no_rtti+set}" = set; then
5322   enableval=$enable_no_rtti;
5323                           if test "$enableval" = yes; then
5324                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5325                           else
5326                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5327                           fi
5328
5329 else
5330
5331                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5332
5333 fi
5334
5335
5336           eval "$wx_cv_use_no_rtti"
5337
5338           if test x"$enablestring" = xdisable; then
5339             if test $wxUSE_NO_RTTI = no; then
5340               result=yes
5341             else
5342               result=no
5343             fi
5344           else
5345             result=$wxUSE_NO_RTTI
5346           fi
5347
5348           { echo "$as_me:$LINENO: result: $result" >&5
5349 echo "${ECHO_T}$result" >&6; }
5350
5351
5352           enablestring=
5353           defaultval=
5354           if test -z "$defaultval"; then
5355               if test x"$enablestring" = xdisable; then
5356                   defaultval=yes
5357               else
5358                   defaultval=no
5359               fi
5360           fi
5361
5362           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5363 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5364           # Check whether --enable-no_exceptions was given.
5365 if test "${enable_no_exceptions+set}" = set; then
5366   enableval=$enable_no_exceptions;
5367                           if test "$enableval" = yes; then
5368                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5369                           else
5370                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5371                           fi
5372
5373 else
5374
5375                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5376
5377 fi
5378
5379
5380           eval "$wx_cv_use_no_exceptions"
5381
5382           if test x"$enablestring" = xdisable; then
5383             if test $wxUSE_NO_EXCEPTIONS = no; then
5384               result=yes
5385             else
5386               result=no
5387             fi
5388           else
5389             result=$wxUSE_NO_EXCEPTIONS
5390           fi
5391
5392           { echo "$as_me:$LINENO: result: $result" >&5
5393 echo "${ECHO_T}$result" >&6; }
5394
5395
5396           enablestring=
5397           defaultval=
5398           if test -z "$defaultval"; then
5399               if test x"$enablestring" = xdisable; then
5400                   defaultval=yes
5401               else
5402                   defaultval=no
5403               fi
5404           fi
5405
5406           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5407 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5408           # Check whether --enable-permissive was given.
5409 if test "${enable_permissive+set}" = set; then
5410   enableval=$enable_permissive;
5411                           if test "$enableval" = yes; then
5412                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5413                           else
5414                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5415                           fi
5416
5417 else
5418
5419                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5420
5421 fi
5422
5423
5424           eval "$wx_cv_use_permissive"
5425
5426           if test x"$enablestring" = xdisable; then
5427             if test $wxUSE_PERMISSIVE = no; then
5428               result=yes
5429             else
5430               result=no
5431             fi
5432           else
5433             result=$wxUSE_PERMISSIVE
5434           fi
5435
5436           { echo "$as_me:$LINENO: result: $result" >&5
5437 echo "${ECHO_T}$result" >&6; }
5438
5439
5440           enablestring=
5441           defaultval=
5442           if test -z "$defaultval"; then
5443               if test x"$enablestring" = xdisable; then
5444                   defaultval=yes
5445               else
5446                   defaultval=no
5447               fi
5448           fi
5449
5450           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5451 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5452           # Check whether --enable-no_deps was given.
5453 if test "${enable_no_deps+set}" = set; then
5454   enableval=$enable_no_deps;
5455                           if test "$enableval" = yes; then
5456                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5457                           else
5458                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5459                           fi
5460
5461 else
5462
5463                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5464
5465 fi
5466
5467
5468           eval "$wx_cv_use_no_deps"
5469
5470           if test x"$enablestring" = xdisable; then
5471             if test $wxUSE_NO_DEPS = no; then
5472               result=yes
5473             else
5474               result=no
5475             fi
5476           else
5477             result=$wxUSE_NO_DEPS
5478           fi
5479
5480           { echo "$as_me:$LINENO: result: $result" >&5
5481 echo "${ECHO_T}$result" >&6; }
5482
5483
5484           enablestring=disable
5485           defaultval=
5486           if test -z "$defaultval"; then
5487               if test x"$enablestring" = xdisable; then
5488                   defaultval=yes
5489               else
5490                   defaultval=no
5491               fi
5492           fi
5493
5494           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5495 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5496           # Check whether --enable-vararg_macros was given.
5497 if test "${enable_vararg_macros+set}" = set; then
5498   enableval=$enable_vararg_macros;
5499                           if test "$enableval" = yes; then
5500                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5501                           else
5502                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5503                           fi
5504
5505 else
5506
5507                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5508
5509 fi
5510
5511
5512           eval "$wx_cv_use_vararg_macros"
5513
5514           if test x"$enablestring" = xdisable; then
5515             if test $wxUSE_VARARG_MACROS = no; then
5516               result=yes
5517             else
5518               result=no
5519             fi
5520           else
5521             result=$wxUSE_VARARG_MACROS
5522           fi
5523
5524           { echo "$as_me:$LINENO: result: $result" >&5
5525 echo "${ECHO_T}$result" >&6; }
5526
5527
5528
5529           enablestring=
5530           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5531 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5532           # Check whether --enable-universal_binary was given.
5533 if test "${enable_universal_binary+set}" = set; then
5534   enableval=$enable_universal_binary;
5535                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5536
5537 else
5538
5539                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5540
5541 fi
5542
5543
5544           eval "$wx_cv_use_universal_binary"
5545
5546           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5547 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5548
5549
5550           enablestring=
5551           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-macosx_arch" >&5
5552 echo $ECHO_N "checking for --${enablestring:-enable}-macosx_arch... $ECHO_C" >&6; }
5553           # Check whether --enable-macosx_arch was given.
5554 if test "${enable_macosx_arch+set}" = set; then
5555   enableval=$enable_macosx_arch;
5556                           wx_cv_use_macosx_arch="wxUSE_MAC_ARCH='$enableval'"
5557
5558 else
5559
5560                           wx_cv_use_macosx_arch='wxUSE_MAC_ARCH='$DEFAULT_wxUSE_MAC_ARCH
5561
5562 fi
5563
5564
5565           eval "$wx_cv_use_macosx_arch"
5566
5567           { echo "$as_me:$LINENO: result: $wxUSE_MAC_ARCH" >&5
5568 echo "${ECHO_T}$wxUSE_MAC_ARCH" >&6; }
5569
5570
5571
5572           enablestring=
5573           defaultval=
5574           if test -z "$defaultval"; then
5575               if test x"$enablestring" = xdisable; then
5576                   defaultval=yes
5577               else
5578                   defaultval=no
5579               fi
5580           fi
5581
5582           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5583 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5584           # Check whether --enable-compat26 was given.
5585 if test "${enable_compat26+set}" = set; then
5586   enableval=$enable_compat26;
5587                           if test "$enableval" = yes; then
5588                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5589                           else
5590                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5591                           fi
5592
5593 else
5594
5595                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5596
5597 fi
5598
5599
5600           eval "$wx_cv_use_compat26"
5601
5602           if test x"$enablestring" = xdisable; then
5603             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5604               result=yes
5605             else
5606               result=no
5607             fi
5608           else
5609             result=$WXWIN_COMPATIBILITY_2_6
5610           fi
5611
5612           { echo "$as_me:$LINENO: result: $result" >&5
5613 echo "${ECHO_T}$result" >&6; }
5614
5615
5616           enablestring=disable
5617           defaultval=
5618           if test -z "$defaultval"; then
5619               if test x"$enablestring" = xdisable; then
5620                   defaultval=yes
5621               else
5622                   defaultval=no
5623               fi
5624           fi
5625
5626           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5627 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5628           # Check whether --enable-compat28 was given.
5629 if test "${enable_compat28+set}" = set; then
5630   enableval=$enable_compat28;
5631                           if test "$enableval" = yes; then
5632                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5633                           else
5634                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5635                           fi
5636
5637 else
5638
5639                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5640
5641 fi
5642
5643
5644           eval "$wx_cv_use_compat28"
5645
5646           if test x"$enablestring" = xdisable; then
5647             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5648               result=yes
5649             else
5650               result=no
5651             fi
5652           else
5653             result=$WXWIN_COMPATIBILITY_2_8
5654           fi
5655
5656           { echo "$as_me:$LINENO: result: $result" >&5
5657 echo "${ECHO_T}$result" >&6; }
5658
5659
5660
5661           enablestring=disable
5662           defaultval=
5663           if test -z "$defaultval"; then
5664               if test x"$enablestring" = xdisable; then
5665                   defaultval=yes
5666               else
5667                   defaultval=no
5668               fi
5669           fi
5670
5671           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5672 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5673           # Check whether --enable-rpath was given.
5674 if test "${enable_rpath+set}" = set; then
5675   enableval=$enable_rpath;
5676                           if test "$enableval" = yes; then
5677                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5678                           else
5679                             wx_cv_use_rpath='wxUSE_RPATH=no'
5680                           fi
5681
5682 else
5683
5684                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5685
5686 fi
5687
5688
5689           eval "$wx_cv_use_rpath"
5690
5691           if test x"$enablestring" = xdisable; then
5692             if test $wxUSE_RPATH = no; then
5693               result=yes
5694             else
5695               result=no
5696             fi
5697           else
5698             result=$wxUSE_RPATH
5699           fi
5700
5701           { echo "$as_me:$LINENO: result: $result" >&5
5702 echo "${ECHO_T}$result" >&6; }
5703
5704
5705
5706           enablestring=
5707           defaultval=
5708           if test -z "$defaultval"; then
5709               if test x"$enablestring" = xdisable; then
5710                   defaultval=yes
5711               else
5712                   defaultval=no
5713               fi
5714           fi
5715
5716           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5717 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5718           # Check whether --enable-objc_uniquifying was given.
5719 if test "${enable_objc_uniquifying+set}" = set; then
5720   enableval=$enable_objc_uniquifying;
5721                           if test "$enableval" = yes; then
5722                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5723                           else
5724                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5725                           fi
5726
5727 else
5728
5729                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5730
5731 fi
5732
5733
5734           eval "$wx_cv_use_objc_uniquifying"
5735
5736           if test x"$enablestring" = xdisable; then
5737             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5738               result=yes
5739             else
5740               result=no
5741             fi
5742           else
5743             result=$wxUSE_OBJC_UNIQUIFYING
5744           fi
5745
5746           { echo "$as_me:$LINENO: result: $result" >&5
5747 echo "${ECHO_T}$result" >&6; }
5748
5749
5750
5751           enablestring=disable
5752           defaultval=
5753           if test -z "$defaultval"; then
5754               if test x"$enablestring" = xdisable; then
5755                   defaultval=yes
5756               else
5757                   defaultval=no
5758               fi
5759           fi
5760
5761           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5762 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5763           # Check whether --enable-visibility was given.
5764 if test "${enable_visibility+set}" = set; then
5765   enableval=$enable_visibility;
5766                           if test "$enableval" = yes; then
5767                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5768                           else
5769                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5770                           fi
5771
5772 else
5773
5774                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5775
5776 fi
5777
5778
5779           eval "$wx_cv_use_visibility"
5780
5781           if test x"$enablestring" = xdisable; then
5782             if test $wxUSE_VISIBILITY = no; then
5783               result=yes
5784             else
5785               result=no
5786             fi
5787           else
5788             result=$wxUSE_VISIBILITY
5789           fi
5790
5791           { echo "$as_me:$LINENO: result: $result" >&5
5792 echo "${ECHO_T}$result" >&6; }
5793
5794
5795           enablestring=disable
5796           defaultval=
5797           if test -z "$defaultval"; then
5798               if test x"$enablestring" = xdisable; then
5799                   defaultval=yes
5800               else
5801                   defaultval=no
5802               fi
5803           fi
5804
5805           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5806 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5807           # Check whether --enable-tls was given.
5808 if test "${enable_tls+set}" = set; then
5809   enableval=$enable_tls;
5810                           if test "$enableval" = yes; then
5811                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5812                           else
5813                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5814                           fi
5815
5816 else
5817
5818                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5819
5820 fi
5821
5822
5823           eval "$wx_cv_use_tls"
5824
5825           if test x"$enablestring" = xdisable; then
5826             if test $wxUSE_COMPILER_TLS = no; then
5827               result=yes
5828             else
5829               result=no
5830             fi
5831           else
5832             result=$wxUSE_COMPILER_TLS
5833           fi
5834
5835           { echo "$as_me:$LINENO: result: $result" >&5
5836 echo "${ECHO_T}$result" >&6; }
5837
5838
5839
5840
5841           enablestring=
5842           defaultval=$wxUSE_ALL_FEATURES
5843           if test -z "$defaultval"; then
5844               if test x"$enablestring" = xdisable; then
5845                   defaultval=yes
5846               else
5847                   defaultval=no
5848               fi
5849           fi
5850
5851           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5852 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5853           # Check whether --enable-intl was given.
5854 if test "${enable_intl+set}" = set; then
5855   enableval=$enable_intl;
5856                           if test "$enableval" = yes; then
5857                             wx_cv_use_intl='wxUSE_INTL=yes'
5858                           else
5859                             wx_cv_use_intl='wxUSE_INTL=no'
5860                           fi
5861
5862 else
5863
5864                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5865
5866 fi
5867
5868
5869           eval "$wx_cv_use_intl"
5870
5871           if test x"$enablestring" = xdisable; then
5872             if test $wxUSE_INTL = no; then
5873               result=yes
5874             else
5875               result=no
5876             fi
5877           else
5878             result=$wxUSE_INTL
5879           fi
5880
5881           { echo "$as_me:$LINENO: result: $result" >&5
5882 echo "${ECHO_T}$result" >&6; }
5883
5884
5885           enablestring=
5886           defaultval=$wxUSE_ALL_FEATURES
5887           if test -z "$defaultval"; then
5888               if test x"$enablestring" = xdisable; then
5889                   defaultval=yes
5890               else
5891                   defaultval=no
5892               fi
5893           fi
5894
5895           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5896 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5897           # Check whether --enable-xlocale was given.
5898 if test "${enable_xlocale+set}" = set; then
5899   enableval=$enable_xlocale;
5900                           if test "$enableval" = yes; then
5901                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5902                           else
5903                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5904                           fi
5905
5906 else
5907
5908                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5909
5910 fi
5911
5912
5913           eval "$wx_cv_use_xlocale"
5914
5915           if test x"$enablestring" = xdisable; then
5916             if test $wxUSE_XLOCALE = no; then
5917               result=yes
5918             else
5919               result=no
5920             fi
5921           else
5922             result=$wxUSE_XLOCALE
5923           fi
5924
5925           { echo "$as_me:$LINENO: result: $result" >&5
5926 echo "${ECHO_T}$result" >&6; }
5927
5928
5929           enablestring=
5930           defaultval=$wxUSE_ALL_FEATURES
5931           if test -z "$defaultval"; then
5932               if test x"$enablestring" = xdisable; then
5933                   defaultval=yes
5934               else
5935                   defaultval=no
5936               fi
5937           fi
5938
5939           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5940 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5941           # Check whether --enable-config was given.
5942 if test "${enable_config+set}" = set; then
5943   enableval=$enable_config;
5944                           if test "$enableval" = yes; then
5945                             wx_cv_use_config='wxUSE_CONFIG=yes'
5946                           else
5947                             wx_cv_use_config='wxUSE_CONFIG=no'
5948                           fi
5949
5950 else
5951
5952                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5953
5954 fi
5955
5956
5957           eval "$wx_cv_use_config"
5958
5959           if test x"$enablestring" = xdisable; then
5960             if test $wxUSE_CONFIG = no; then
5961               result=yes
5962             else
5963               result=no
5964             fi
5965           else
5966             result=$wxUSE_CONFIG
5967           fi
5968
5969           { echo "$as_me:$LINENO: result: $result" >&5
5970 echo "${ECHO_T}$result" >&6; }
5971
5972
5973
5974           enablestring=
5975           defaultval=$wxUSE_ALL_FEATURES
5976           if test -z "$defaultval"; then
5977               if test x"$enablestring" = xdisable; then
5978                   defaultval=yes
5979               else
5980                   defaultval=no
5981               fi
5982           fi
5983
5984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5985 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5986           # Check whether --enable-protocols was given.
5987 if test "${enable_protocols+set}" = set; then
5988   enableval=$enable_protocols;
5989                           if test "$enableval" = yes; then
5990                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5991                           else
5992                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5993                           fi
5994
5995 else
5996
5997                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5998
5999 fi
6000
6001
6002           eval "$wx_cv_use_protocols"
6003
6004           if test x"$enablestring" = xdisable; then
6005             if test $wxUSE_PROTOCOL = no; then
6006               result=yes
6007             else
6008               result=no
6009             fi
6010           else
6011             result=$wxUSE_PROTOCOL
6012           fi
6013
6014           { echo "$as_me:$LINENO: result: $result" >&5
6015 echo "${ECHO_T}$result" >&6; }
6016
6017
6018           enablestring=
6019           defaultval=$wxUSE_ALL_FEATURES
6020           if test -z "$defaultval"; then
6021               if test x"$enablestring" = xdisable; then
6022                   defaultval=yes
6023               else
6024                   defaultval=no
6025               fi
6026           fi
6027
6028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6029 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6030           # Check whether --enable-ftp was given.
6031 if test "${enable_ftp+set}" = set; then
6032   enableval=$enable_ftp;
6033                           if test "$enableval" = yes; then
6034                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6035                           else
6036                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6037                           fi
6038
6039 else
6040
6041                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6042
6043 fi
6044
6045
6046           eval "$wx_cv_use_ftp"
6047
6048           if test x"$enablestring" = xdisable; then
6049             if test $wxUSE_PROTOCOL_FTP = no; then
6050               result=yes
6051             else
6052               result=no
6053             fi
6054           else
6055             result=$wxUSE_PROTOCOL_FTP
6056           fi
6057
6058           { echo "$as_me:$LINENO: result: $result" >&5
6059 echo "${ECHO_T}$result" >&6; }
6060
6061
6062           enablestring=
6063           defaultval=$wxUSE_ALL_FEATURES
6064           if test -z "$defaultval"; then
6065               if test x"$enablestring" = xdisable; then
6066                   defaultval=yes
6067               else
6068                   defaultval=no
6069               fi
6070           fi
6071
6072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6073 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6074           # Check whether --enable-http was given.
6075 if test "${enable_http+set}" = set; then
6076   enableval=$enable_http;
6077                           if test "$enableval" = yes; then
6078                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6079                           else
6080                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6081                           fi
6082
6083 else
6084
6085                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6086
6087 fi
6088
6089
6090           eval "$wx_cv_use_http"
6091
6092           if test x"$enablestring" = xdisable; then
6093             if test $wxUSE_PROTOCOL_HTTP = no; then
6094               result=yes
6095             else
6096               result=no
6097             fi
6098           else
6099             result=$wxUSE_PROTOCOL_HTTP
6100           fi
6101
6102           { echo "$as_me:$LINENO: result: $result" >&5
6103 echo "${ECHO_T}$result" >&6; }
6104
6105
6106           enablestring=
6107           defaultval=$wxUSE_ALL_FEATURES
6108           if test -z "$defaultval"; then
6109               if test x"$enablestring" = xdisable; then
6110                   defaultval=yes
6111               else
6112                   defaultval=no
6113               fi
6114           fi
6115
6116           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6117 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6118           # Check whether --enable-fileproto was given.
6119 if test "${enable_fileproto+set}" = set; then
6120   enableval=$enable_fileproto;
6121                           if test "$enableval" = yes; then
6122                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6123                           else
6124                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6125                           fi
6126
6127 else
6128
6129                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6130
6131 fi
6132
6133
6134           eval "$wx_cv_use_fileproto"
6135
6136           if test x"$enablestring" = xdisable; then
6137             if test $wxUSE_PROTOCOL_FILE = no; then
6138               result=yes
6139             else
6140               result=no
6141             fi
6142           else
6143             result=$wxUSE_PROTOCOL_FILE
6144           fi
6145
6146           { echo "$as_me:$LINENO: result: $result" >&5
6147 echo "${ECHO_T}$result" >&6; }
6148
6149
6150           enablestring=
6151           defaultval=$wxUSE_ALL_FEATURES
6152           if test -z "$defaultval"; then
6153               if test x"$enablestring" = xdisable; then
6154                   defaultval=yes
6155               else
6156                   defaultval=no
6157               fi
6158           fi
6159
6160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6161 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6162           # Check whether --enable-sockets was given.
6163 if test "${enable_sockets+set}" = set; then
6164   enableval=$enable_sockets;
6165                           if test "$enableval" = yes; then
6166                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6167                           else
6168                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6169                           fi
6170
6171 else
6172
6173                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6174
6175 fi
6176
6177
6178           eval "$wx_cv_use_sockets"
6179
6180           if test x"$enablestring" = xdisable; then
6181             if test $wxUSE_SOCKETS = no; then
6182               result=yes
6183             else
6184               result=no
6185             fi
6186           else
6187             result=$wxUSE_SOCKETS
6188           fi
6189
6190           { echo "$as_me:$LINENO: result: $result" >&5
6191 echo "${ECHO_T}$result" >&6; }
6192
6193
6194           enablestring=
6195           defaultval=$wxUSE_ALL_FEATURES
6196           if test -z "$defaultval"; then
6197               if test x"$enablestring" = xdisable; then
6198                   defaultval=yes
6199               else
6200                   defaultval=no
6201               fi
6202           fi
6203
6204           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6205 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6206           # Check whether --enable-ipv6 was given.
6207 if test "${enable_ipv6+set}" = set; then
6208   enableval=$enable_ipv6;
6209                           if test "$enableval" = yes; then
6210                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6211                           else
6212                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6213                           fi
6214
6215 else
6216
6217                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6218
6219 fi
6220
6221
6222           eval "$wx_cv_use_ipv6"
6223
6224           if test x"$enablestring" = xdisable; then
6225             if test $wxUSE_IPV6 = no; then
6226               result=yes
6227             else
6228               result=no
6229             fi
6230           else
6231             result=$wxUSE_IPV6
6232           fi
6233
6234           { echo "$as_me:$LINENO: result: $result" >&5
6235 echo "${ECHO_T}$result" >&6; }
6236
6237
6238           enablestring=
6239           defaultval=$wxUSE_ALL_FEATURES
6240           if test -z "$defaultval"; then
6241               if test x"$enablestring" = xdisable; then
6242                   defaultval=yes
6243               else
6244                   defaultval=no
6245               fi
6246           fi
6247
6248           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6249 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6250           # Check whether --enable-ole was given.
6251 if test "${enable_ole+set}" = set; then
6252   enableval=$enable_ole;
6253                           if test "$enableval" = yes; then
6254                             wx_cv_use_ole='wxUSE_OLE=yes'
6255                           else
6256                             wx_cv_use_ole='wxUSE_OLE=no'
6257                           fi
6258
6259 else
6260
6261                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6262
6263 fi
6264
6265
6266           eval "$wx_cv_use_ole"
6267
6268           if test x"$enablestring" = xdisable; then
6269             if test $wxUSE_OLE = no; then
6270               result=yes
6271             else
6272               result=no
6273             fi
6274           else
6275             result=$wxUSE_OLE
6276           fi
6277
6278           { echo "$as_me:$LINENO: result: $result" >&5
6279 echo "${ECHO_T}$result" >&6; }
6280
6281
6282           enablestring=
6283           defaultval=$wxUSE_ALL_FEATURES
6284           if test -z "$defaultval"; then
6285               if test x"$enablestring" = xdisable; then
6286                   defaultval=yes
6287               else
6288                   defaultval=no
6289               fi
6290           fi
6291
6292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6293 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6294           # Check whether --enable-dataobj was given.
6295 if test "${enable_dataobj+set}" = set; then
6296   enableval=$enable_dataobj;
6297                           if test "$enableval" = yes; then
6298                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6299                           else
6300                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6301                           fi
6302
6303 else
6304
6305                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6306
6307 fi
6308
6309
6310           eval "$wx_cv_use_dataobj"
6311
6312           if test x"$enablestring" = xdisable; then
6313             if test $wxUSE_DATAOBJ = no; then
6314               result=yes
6315             else
6316               result=no
6317             fi
6318           else
6319             result=$wxUSE_DATAOBJ
6320           fi
6321
6322           { echo "$as_me:$LINENO: result: $result" >&5
6323 echo "${ECHO_T}$result" >&6; }
6324
6325
6326
6327           enablestring=
6328           defaultval=$wxUSE_ALL_FEATURES
6329           if test -z "$defaultval"; then
6330               if test x"$enablestring" = xdisable; then
6331                   defaultval=yes
6332               else
6333                   defaultval=no
6334               fi
6335           fi
6336
6337           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6338 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6339           # Check whether --enable-ipc was given.
6340 if test "${enable_ipc+set}" = set; then
6341   enableval=$enable_ipc;
6342                           if test "$enableval" = yes; then
6343                             wx_cv_use_ipc='wxUSE_IPC=yes'
6344                           else
6345                             wx_cv_use_ipc='wxUSE_IPC=no'
6346                           fi
6347
6348 else
6349
6350                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6351
6352 fi
6353
6354
6355           eval "$wx_cv_use_ipc"
6356
6357           if test x"$enablestring" = xdisable; then
6358             if test $wxUSE_IPC = no; then
6359               result=yes
6360             else
6361               result=no
6362             fi
6363           else
6364             result=$wxUSE_IPC
6365           fi
6366
6367           { echo "$as_me:$LINENO: result: $result" >&5
6368 echo "${ECHO_T}$result" >&6; }
6369
6370
6371
6372           enablestring=
6373           defaultval=$wxUSE_ALL_FEATURES
6374           if test -z "$defaultval"; then
6375               if test x"$enablestring" = xdisable; then
6376                   defaultval=yes
6377               else
6378                   defaultval=no
6379               fi
6380           fi
6381
6382           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6383 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6384           # Check whether --enable-baseevtloop was given.
6385 if test "${enable_baseevtloop+set}" = set; then
6386   enableval=$enable_baseevtloop;
6387                           if test "$enableval" = yes; then
6388                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6389                           else
6390                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6391                           fi
6392
6393 else
6394
6395                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6396
6397 fi
6398
6399
6400           eval "$wx_cv_use_baseevtloop"
6401
6402           if test x"$enablestring" = xdisable; then
6403             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6404               result=yes
6405             else
6406               result=no
6407             fi
6408           else
6409             result=$wxUSE_CONSOLE_EVENTLOOP
6410           fi
6411
6412           { echo "$as_me:$LINENO: result: $result" >&5
6413 echo "${ECHO_T}$result" >&6; }
6414
6415
6416           enablestring=
6417           defaultval=$wxUSE_ALL_FEATURES
6418           if test -z "$defaultval"; then
6419               if test x"$enablestring" = xdisable; then
6420                   defaultval=yes
6421               else
6422                   defaultval=no
6423               fi
6424           fi
6425
6426           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6427 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6428           # Check whether --enable-epollloop was given.
6429 if test "${enable_epollloop+set}" = set; then
6430   enableval=$enable_epollloop;
6431                           if test "$enableval" = yes; then
6432                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6433                           else
6434                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6435                           fi
6436
6437 else
6438
6439                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6440
6441 fi
6442
6443
6444           eval "$wx_cv_use_epollloop"
6445
6446           if test x"$enablestring" = xdisable; then
6447             if test $wxUSE_EPOLL_DISPATCHER = no; then
6448               result=yes
6449             else
6450               result=no
6451             fi
6452           else
6453             result=$wxUSE_EPOLL_DISPATCHER
6454           fi
6455
6456           { echo "$as_me:$LINENO: result: $result" >&5
6457 echo "${ECHO_T}$result" >&6; }
6458
6459
6460           enablestring=
6461           defaultval=$wxUSE_ALL_FEATURES
6462           if test -z "$defaultval"; then
6463               if test x"$enablestring" = xdisable; then
6464                   defaultval=yes
6465               else
6466                   defaultval=no
6467               fi
6468           fi
6469
6470           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6471 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6472           # Check whether --enable-selectloop was given.
6473 if test "${enable_selectloop+set}" = set; then
6474   enableval=$enable_selectloop;
6475                           if test "$enableval" = yes; then
6476                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6477                           else
6478                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6479                           fi
6480
6481 else
6482
6483                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6484
6485 fi
6486
6487
6488           eval "$wx_cv_use_selectloop"
6489
6490           if test x"$enablestring" = xdisable; then
6491             if test $wxUSE_SELECT_DISPATCHER = no; then
6492               result=yes
6493             else
6494               result=no
6495             fi
6496           else
6497             result=$wxUSE_SELECT_DISPATCHER
6498           fi
6499
6500           { echo "$as_me:$LINENO: result: $result" >&5
6501 echo "${ECHO_T}$result" >&6; }
6502
6503
6504
6505           enablestring=
6506           defaultval=$wxUSE_ALL_FEATURES
6507           if test -z "$defaultval"; then
6508               if test x"$enablestring" = xdisable; then
6509                   defaultval=yes
6510               else
6511                   defaultval=no
6512               fi
6513           fi
6514
6515           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6516 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6517           # Check whether --enable-any was given.
6518 if test "${enable_any+set}" = set; then
6519   enableval=$enable_any;
6520                           if test "$enableval" = yes; then
6521                             wx_cv_use_any='wxUSE_ANY=yes'
6522                           else
6523                             wx_cv_use_any='wxUSE_ANY=no'
6524                           fi
6525
6526 else
6527
6528                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6529
6530 fi
6531
6532
6533           eval "$wx_cv_use_any"
6534
6535           if test x"$enablestring" = xdisable; then
6536             if test $wxUSE_ANY = no; then
6537               result=yes
6538             else
6539               result=no
6540             fi
6541           else
6542             result=$wxUSE_ANY
6543           fi
6544
6545           { echo "$as_me:$LINENO: result: $result" >&5
6546 echo "${ECHO_T}$result" >&6; }
6547
6548
6549           enablestring=
6550           defaultval=$wxUSE_ALL_FEATURES
6551           if test -z "$defaultval"; then
6552               if test x"$enablestring" = xdisable; then
6553                   defaultval=yes
6554               else
6555                   defaultval=no
6556               fi
6557           fi
6558
6559           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6560 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6561           # Check whether --enable-apple_ieee was given.
6562 if test "${enable_apple_ieee+set}" = set; then
6563   enableval=$enable_apple_ieee;
6564                           if test "$enableval" = yes; then
6565                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6566                           else
6567                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6568                           fi
6569
6570 else
6571
6572                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6573
6574 fi
6575
6576
6577           eval "$wx_cv_use_apple_ieee"
6578
6579           if test x"$enablestring" = xdisable; then
6580             if test $wxUSE_APPLE_IEEE = no; then
6581               result=yes
6582             else
6583               result=no
6584             fi
6585           else
6586             result=$wxUSE_APPLE_IEEE
6587           fi
6588
6589           { echo "$as_me:$LINENO: result: $result" >&5
6590 echo "${ECHO_T}$result" >&6; }
6591
6592
6593           enablestring=
6594           defaultval=$wxUSE_ALL_FEATURES
6595           if test -z "$defaultval"; then
6596               if test x"$enablestring" = xdisable; then
6597                   defaultval=yes
6598               else
6599                   defaultval=no
6600               fi
6601           fi
6602
6603           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6604 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6605           # Check whether --enable-arcstream was given.
6606 if test "${enable_arcstream+set}" = set; then
6607   enableval=$enable_arcstream;
6608                           if test "$enableval" = yes; then
6609                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6610                           else
6611                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6612                           fi
6613
6614 else
6615
6616                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6617
6618 fi
6619
6620
6621           eval "$wx_cv_use_arcstream"
6622
6623           if test x"$enablestring" = xdisable; then
6624             if test $wxUSE_ARCHIVE_STREAMS = no; then
6625               result=yes
6626             else
6627               result=no
6628             fi
6629           else
6630             result=$wxUSE_ARCHIVE_STREAMS
6631           fi
6632
6633           { echo "$as_me:$LINENO: result: $result" >&5
6634 echo "${ECHO_T}$result" >&6; }
6635
6636
6637           enablestring=
6638           defaultval=$wxUSE_ALL_FEATURES
6639           if test -z "$defaultval"; then
6640               if test x"$enablestring" = xdisable; then
6641                   defaultval=yes
6642               else
6643                   defaultval=no
6644               fi
6645           fi
6646
6647           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6648 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6649           # Check whether --enable-base64 was given.
6650 if test "${enable_base64+set}" = set; then
6651   enableval=$enable_base64;
6652                           if test "$enableval" = yes; then
6653                             wx_cv_use_base64='wxUSE_BASE64=yes'
6654                           else
6655                             wx_cv_use_base64='wxUSE_BASE64=no'
6656                           fi
6657
6658 else
6659
6660                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6661
6662 fi
6663
6664
6665           eval "$wx_cv_use_base64"
6666
6667           if test x"$enablestring" = xdisable; then
6668             if test $wxUSE_BASE64 = no; then
6669               result=yes
6670             else
6671               result=no
6672             fi
6673           else
6674             result=$wxUSE_BASE64
6675           fi
6676
6677           { echo "$as_me:$LINENO: result: $result" >&5
6678 echo "${ECHO_T}$result" >&6; }
6679
6680
6681           enablestring=
6682           defaultval=$wxUSE_ALL_FEATURES
6683           if test -z "$defaultval"; then
6684               if test x"$enablestring" = xdisable; then
6685                   defaultval=yes
6686               else
6687                   defaultval=no
6688               fi
6689           fi
6690
6691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6692 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6693           # Check whether --enable-backtrace was given.
6694 if test "${enable_backtrace+set}" = set; then
6695   enableval=$enable_backtrace;
6696                           if test "$enableval" = yes; then
6697                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6698                           else
6699                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6700                           fi
6701
6702 else
6703
6704                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6705
6706 fi
6707
6708
6709           eval "$wx_cv_use_backtrace"
6710
6711           if test x"$enablestring" = xdisable; then
6712             if test $wxUSE_STACKWALKER = no; then
6713               result=yes
6714             else
6715               result=no
6716             fi
6717           else
6718             result=$wxUSE_STACKWALKER
6719           fi
6720
6721           { echo "$as_me:$LINENO: result: $result" >&5
6722 echo "${ECHO_T}$result" >&6; }
6723
6724
6725           enablestring=
6726           defaultval=$wxUSE_ALL_FEATURES
6727           if test -z "$defaultval"; then
6728               if test x"$enablestring" = xdisable; then
6729                   defaultval=yes
6730               else
6731                   defaultval=no
6732               fi
6733           fi
6734
6735           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6736 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6737           # Check whether --enable-catch_segvs was given.
6738 if test "${enable_catch_segvs+set}" = set; then
6739   enableval=$enable_catch_segvs;
6740                           if test "$enableval" = yes; then
6741                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6742                           else
6743                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6744                           fi
6745
6746 else
6747
6748                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6749
6750 fi
6751
6752
6753           eval "$wx_cv_use_catch_segvs"
6754
6755           if test x"$enablestring" = xdisable; then
6756             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6757               result=yes
6758             else
6759               result=no
6760             fi
6761           else
6762             result=$wxUSE_ON_FATAL_EXCEPTION
6763           fi
6764
6765           { echo "$as_me:$LINENO: result: $result" >&5
6766 echo "${ECHO_T}$result" >&6; }
6767
6768
6769           enablestring=
6770           defaultval=$wxUSE_ALL_FEATURES
6771           if test -z "$defaultval"; then
6772               if test x"$enablestring" = xdisable; then
6773                   defaultval=yes
6774               else
6775                   defaultval=no
6776               fi
6777           fi
6778
6779           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6780 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6781           # Check whether --enable-cmdline was given.
6782 if test "${enable_cmdline+set}" = set; then
6783   enableval=$enable_cmdline;
6784                           if test "$enableval" = yes; then
6785                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6786                           else
6787                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6788                           fi
6789
6790 else
6791
6792                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6793
6794 fi
6795
6796
6797           eval "$wx_cv_use_cmdline"
6798
6799           if test x"$enablestring" = xdisable; then
6800             if test $wxUSE_CMDLINE_PARSER = no; then
6801               result=yes
6802             else
6803               result=no
6804             fi
6805           else
6806             result=$wxUSE_CMDLINE_PARSER
6807           fi
6808
6809           { echo "$as_me:$LINENO: result: $result" >&5
6810 echo "${ECHO_T}$result" >&6; }
6811
6812
6813           enablestring=
6814           defaultval=$wxUSE_ALL_FEATURES
6815           if test -z "$defaultval"; then
6816               if test x"$enablestring" = xdisable; then
6817                   defaultval=yes
6818               else
6819                   defaultval=no
6820               fi
6821           fi
6822
6823           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6824 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6825           # Check whether --enable-datetime was given.
6826 if test "${enable_datetime+set}" = set; then
6827   enableval=$enable_datetime;
6828                           if test "$enableval" = yes; then
6829                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6830                           else
6831                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6832                           fi
6833
6834 else
6835
6836                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6837
6838 fi
6839
6840
6841           eval "$wx_cv_use_datetime"
6842
6843           if test x"$enablestring" = xdisable; then
6844             if test $wxUSE_DATETIME = no; then
6845               result=yes
6846             else
6847               result=no
6848             fi
6849           else
6850             result=$wxUSE_DATETIME
6851           fi
6852
6853           { echo "$as_me:$LINENO: result: $result" >&5
6854 echo "${ECHO_T}$result" >&6; }
6855
6856
6857           enablestring=
6858           defaultval=$wxUSE_ALL_FEATURES
6859           if test -z "$defaultval"; then
6860               if test x"$enablestring" = xdisable; then
6861                   defaultval=yes
6862               else
6863                   defaultval=no
6864               fi
6865           fi
6866
6867           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6868 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6869           # Check whether --enable-debugreport was given.
6870 if test "${enable_debugreport+set}" = set; then
6871   enableval=$enable_debugreport;
6872                           if test "$enableval" = yes; then
6873                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6874                           else
6875                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6876                           fi
6877
6878 else
6879
6880                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6881
6882 fi
6883
6884
6885           eval "$wx_cv_use_debugreport"
6886
6887           if test x"$enablestring" = xdisable; then
6888             if test $wxUSE_DEBUGREPORT = no; then
6889               result=yes
6890             else
6891               result=no
6892             fi
6893           else
6894             result=$wxUSE_DEBUGREPORT
6895           fi
6896
6897           { echo "$as_me:$LINENO: result: $result" >&5
6898 echo "${ECHO_T}$result" >&6; }
6899
6900
6901           enablestring=
6902           defaultval=$wxUSE_ALL_FEATURES
6903           if test -z "$defaultval"; then
6904               if test x"$enablestring" = xdisable; then
6905                   defaultval=yes
6906               else
6907                   defaultval=no
6908               fi
6909           fi
6910
6911           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6912 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6913           # Check whether --enable-dialupman was given.
6914 if test "${enable_dialupman+set}" = set; then
6915   enableval=$enable_dialupman;
6916                           if test "$enableval" = yes; then
6917                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6918                           else
6919                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6920                           fi
6921
6922 else
6923
6924                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6925
6926 fi
6927
6928
6929           eval "$wx_cv_use_dialupman"
6930
6931           if test x"$enablestring" = xdisable; then
6932             if test $wxUSE_DIALUP_MANAGER = no; then
6933               result=yes
6934             else
6935               result=no
6936             fi
6937           else
6938             result=$wxUSE_DIALUP_MANAGER
6939           fi
6940
6941           { echo "$as_me:$LINENO: result: $result" >&5
6942 echo "${ECHO_T}$result" >&6; }
6943
6944
6945           enablestring=
6946           defaultval=$wxUSE_ALL_FEATURES
6947           if test -z "$defaultval"; then
6948               if test x"$enablestring" = xdisable; then
6949                   defaultval=yes
6950               else
6951                   defaultval=no
6952               fi
6953           fi
6954
6955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6956 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6957           # Check whether --enable-dynlib was given.
6958 if test "${enable_dynlib+set}" = set; then
6959   enableval=$enable_dynlib;
6960                           if test "$enableval" = yes; then
6961                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6962                           else
6963                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6964                           fi
6965
6966 else
6967
6968                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6969
6970 fi
6971
6972
6973           eval "$wx_cv_use_dynlib"
6974
6975           if test x"$enablestring" = xdisable; then
6976             if test $wxUSE_DYNLIB_CLASS = no; then
6977               result=yes
6978             else
6979               result=no
6980             fi
6981           else
6982             result=$wxUSE_DYNLIB_CLASS
6983           fi
6984
6985           { echo "$as_me:$LINENO: result: $result" >&5
6986 echo "${ECHO_T}$result" >&6; }
6987
6988
6989           enablestring=
6990           defaultval=$wxUSE_ALL_FEATURES
6991           if test -z "$defaultval"; then
6992               if test x"$enablestring" = xdisable; then
6993                   defaultval=yes
6994               else
6995                   defaultval=no
6996               fi
6997           fi
6998
6999           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7000 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7001           # Check whether --enable-dynamicloader was given.
7002 if test "${enable_dynamicloader+set}" = set; then
7003   enableval=$enable_dynamicloader;
7004                           if test "$enableval" = yes; then
7005                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7006                           else
7007                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7008                           fi
7009
7010 else
7011
7012                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7013
7014 fi
7015
7016
7017           eval "$wx_cv_use_dynamicloader"
7018
7019           if test x"$enablestring" = xdisable; then
7020             if test $wxUSE_DYNAMIC_LOADER = no; then
7021               result=yes
7022             else
7023               result=no
7024             fi
7025           else
7026             result=$wxUSE_DYNAMIC_LOADER
7027           fi
7028
7029           { echo "$as_me:$LINENO: result: $result" >&5
7030 echo "${ECHO_T}$result" >&6; }
7031
7032
7033           enablestring=
7034           defaultval=$wxUSE_ALL_FEATURES
7035           if test -z "$defaultval"; then
7036               if test x"$enablestring" = xdisable; then
7037                   defaultval=yes
7038               else
7039                   defaultval=no
7040               fi
7041           fi
7042
7043           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7044 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7045           # Check whether --enable-exceptions was given.
7046 if test "${enable_exceptions+set}" = set; then
7047   enableval=$enable_exceptions;
7048                           if test "$enableval" = yes; then
7049                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7050                           else
7051                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7052                           fi
7053
7054 else
7055
7056                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7057
7058 fi
7059
7060
7061           eval "$wx_cv_use_exceptions"
7062
7063           if test x"$enablestring" = xdisable; then
7064             if test $wxUSE_EXCEPTIONS = no; then
7065               result=yes
7066             else
7067               result=no
7068             fi
7069           else
7070             result=$wxUSE_EXCEPTIONS
7071           fi
7072
7073           { echo "$as_me:$LINENO: result: $result" >&5
7074 echo "${ECHO_T}$result" >&6; }
7075
7076
7077           enablestring=
7078           defaultval=$wxUSE_ALL_FEATURES
7079           if test -z "$defaultval"; then
7080               if test x"$enablestring" = xdisable; then
7081                   defaultval=yes
7082               else
7083                   defaultval=no
7084               fi
7085           fi
7086
7087           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7088 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7089           # Check whether --enable-ffile was given.
7090 if test "${enable_ffile+set}" = set; then
7091   enableval=$enable_ffile;
7092                           if test "$enableval" = yes; then
7093                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7094                           else
7095                             wx_cv_use_ffile='wxUSE_FFILE=no'
7096                           fi
7097
7098 else
7099
7100                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7101
7102 fi
7103
7104
7105           eval "$wx_cv_use_ffile"
7106
7107           if test x"$enablestring" = xdisable; then
7108             if test $wxUSE_FFILE = no; then
7109               result=yes
7110             else
7111               result=no
7112             fi
7113           else
7114             result=$wxUSE_FFILE
7115           fi
7116
7117           { echo "$as_me:$LINENO: result: $result" >&5
7118 echo "${ECHO_T}$result" >&6; }
7119
7120
7121           enablestring=
7122           defaultval=$wxUSE_ALL_FEATURES
7123           if test -z "$defaultval"; then
7124               if test x"$enablestring" = xdisable; then
7125                   defaultval=yes
7126               else
7127                   defaultval=no
7128               fi
7129           fi
7130
7131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7132 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7133           # Check whether --enable-file was given.
7134 if test "${enable_file+set}" = set; then
7135   enableval=$enable_file;
7136                           if test "$enableval" = yes; then
7137                             wx_cv_use_file='wxUSE_FILE=yes'
7138                           else
7139                             wx_cv_use_file='wxUSE_FILE=no'
7140                           fi
7141
7142 else
7143
7144                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7145
7146 fi
7147
7148
7149           eval "$wx_cv_use_file"
7150
7151           if test x"$enablestring" = xdisable; then
7152             if test $wxUSE_FILE = no; then
7153               result=yes
7154             else
7155               result=no
7156             fi
7157           else
7158             result=$wxUSE_FILE
7159           fi
7160
7161           { echo "$as_me:$LINENO: result: $result" >&5
7162 echo "${ECHO_T}$result" >&6; }
7163
7164
7165           enablestring=
7166           defaultval=$wxUSE_ALL_FEATURES
7167           if test -z "$defaultval"; then
7168               if test x"$enablestring" = xdisable; then
7169                   defaultval=yes
7170               else
7171                   defaultval=no
7172               fi
7173           fi
7174
7175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
7176 echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7177           # Check whether --enable-filehistory was given.
7178 if test "${enable_filehistory+set}" = set; then
7179   enableval=$enable_filehistory;
7180                           if test "$enableval" = yes; then
7181                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7182                           else
7183                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7184                           fi
7185
7186 else
7187
7188                           wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7189
7190 fi
7191
7192
7193           eval "$wx_cv_use_filehistory"
7194
7195           if test x"$enablestring" = xdisable; then
7196             if test $wxUSE_FILE_HISTORY = no; then
7197               result=yes
7198             else
7199               result=no
7200             fi
7201           else
7202             result=$wxUSE_FILE_HISTORY
7203           fi
7204
7205           { echo "$as_me:$LINENO: result: $result" >&5
7206 echo "${ECHO_T}$result" >&6; }
7207
7208
7209           enablestring=
7210           defaultval=$wxUSE_ALL_FEATURES
7211           if test -z "$defaultval"; then
7212               if test x"$enablestring" = xdisable; then
7213                   defaultval=yes
7214               else
7215                   defaultval=no
7216               fi
7217           fi
7218
7219           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7220 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7221           # Check whether --enable-filesystem was given.
7222 if test "${enable_filesystem+set}" = set; then
7223   enableval=$enable_filesystem;
7224                           if test "$enableval" = yes; then
7225                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7226                           else
7227                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7228                           fi
7229
7230 else
7231
7232                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7233
7234 fi
7235
7236
7237           eval "$wx_cv_use_filesystem"
7238
7239           if test x"$enablestring" = xdisable; then
7240             if test $wxUSE_FILESYSTEM = no; then
7241               result=yes
7242             else
7243               result=no
7244             fi
7245           else
7246             result=$wxUSE_FILESYSTEM
7247           fi
7248
7249           { echo "$as_me:$LINENO: result: $result" >&5
7250 echo "${ECHO_T}$result" >&6; }
7251
7252
7253           enablestring=
7254           defaultval=$wxUSE_ALL_FEATURES
7255           if test -z "$defaultval"; then
7256               if test x"$enablestring" = xdisable; then
7257                   defaultval=yes
7258               else
7259                   defaultval=no
7260               fi
7261           fi
7262
7263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7264 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7265           # Check whether --enable-fontenum was given.
7266 if test "${enable_fontenum+set}" = set; then
7267   enableval=$enable_fontenum;
7268                           if test "$enableval" = yes; then
7269                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7270                           else
7271                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7272                           fi
7273
7274 else
7275
7276                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7277
7278 fi
7279
7280
7281           eval "$wx_cv_use_fontenum"
7282
7283           if test x"$enablestring" = xdisable; then
7284             if test $wxUSE_FONTENUM = no; then
7285               result=yes
7286             else
7287               result=no
7288             fi
7289           else
7290             result=$wxUSE_FONTENUM
7291           fi
7292
7293           { echo "$as_me:$LINENO: result: $result" >&5
7294 echo "${ECHO_T}$result" >&6; }
7295
7296
7297           enablestring=
7298           defaultval=$wxUSE_ALL_FEATURES
7299           if test -z "$defaultval"; then
7300               if test x"$enablestring" = xdisable; then
7301                   defaultval=yes
7302               else
7303                   defaultval=no
7304               fi
7305           fi
7306
7307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7308 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7309           # Check whether --enable-fontmap was given.
7310 if test "${enable_fontmap+set}" = set; then
7311   enableval=$enable_fontmap;
7312                           if test "$enableval" = yes; then
7313                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7314                           else
7315                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7316                           fi
7317
7318 else
7319
7320                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7321
7322 fi
7323
7324
7325           eval "$wx_cv_use_fontmap"
7326
7327           if test x"$enablestring" = xdisable; then
7328             if test $wxUSE_FONTMAP = no; then
7329               result=yes
7330             else
7331               result=no
7332             fi
7333           else
7334             result=$wxUSE_FONTMAP
7335           fi
7336
7337           { echo "$as_me:$LINENO: result: $result" >&5
7338 echo "${ECHO_T}$result" >&6; }
7339
7340
7341           enablestring=
7342           defaultval=$wxUSE_ALL_FEATURES
7343           if test -z "$defaultval"; then
7344               if test x"$enablestring" = xdisable; then
7345                   defaultval=yes
7346               else
7347                   defaultval=no
7348               fi
7349           fi
7350
7351           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7352 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7353           # Check whether --enable-fs_archive was given.
7354 if test "${enable_fs_archive+set}" = set; then
7355   enableval=$enable_fs_archive;
7356                           if test "$enableval" = yes; then
7357                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7358                           else
7359                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7360                           fi
7361
7362 else
7363
7364                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7365
7366 fi
7367
7368
7369           eval "$wx_cv_use_fs_archive"
7370
7371           if test x"$enablestring" = xdisable; then
7372             if test $wxUSE_FS_ARCHIVE = no; then
7373               result=yes
7374             else
7375               result=no
7376             fi
7377           else
7378             result=$wxUSE_FS_ARCHIVE
7379           fi
7380
7381           { echo "$as_me:$LINENO: result: $result" >&5
7382 echo "${ECHO_T}$result" >&6; }
7383
7384
7385           enablestring=
7386           defaultval=$wxUSE_ALL_FEATURES
7387           if test -z "$defaultval"; then
7388               if test x"$enablestring" = xdisable; then
7389                   defaultval=yes
7390               else
7391                   defaultval=no
7392               fi
7393           fi
7394
7395           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7396 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7397           # Check whether --enable-fs_inet was given.
7398 if test "${enable_fs_inet+set}" = set; then
7399   enableval=$enable_fs_inet;
7400                           if test "$enableval" = yes; then
7401                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7402                           else
7403                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7404                           fi
7405
7406 else
7407
7408                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7409
7410 fi
7411
7412
7413           eval "$wx_cv_use_fs_inet"
7414
7415           if test x"$enablestring" = xdisable; then
7416             if test $wxUSE_FS_INET = no; then
7417               result=yes
7418             else
7419               result=no
7420             fi
7421           else
7422             result=$wxUSE_FS_INET
7423           fi
7424
7425           { echo "$as_me:$LINENO: result: $result" >&5
7426 echo "${ECHO_T}$result" >&6; }
7427
7428
7429           enablestring=
7430           defaultval=$wxUSE_ALL_FEATURES
7431           if test -z "$defaultval"; then
7432               if test x"$enablestring" = xdisable; then
7433                   defaultval=yes
7434               else
7435                   defaultval=no
7436               fi
7437           fi
7438
7439           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7440 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7441           # Check whether --enable-fs_zip was given.
7442 if test "${enable_fs_zip+set}" = set; then
7443   enableval=$enable_fs_zip;
7444                           if test "$enableval" = yes; then
7445                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7446                           else
7447                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7448                           fi
7449
7450 else
7451
7452                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7453
7454 fi
7455
7456
7457           eval "$wx_cv_use_fs_zip"
7458
7459           if test x"$enablestring" = xdisable; then
7460             if test $wxUSE_FS_ZIP = no; then
7461               result=yes
7462             else
7463               result=no
7464             fi
7465           else
7466             result=$wxUSE_FS_ZIP
7467           fi
7468
7469           { echo "$as_me:$LINENO: result: $result" >&5
7470 echo "${ECHO_T}$result" >&6; }
7471
7472
7473           enablestring=
7474           defaultval=$wxUSE_ALL_FEATURES
7475           if test -z "$defaultval"; then
7476               if test x"$enablestring" = xdisable; then
7477                   defaultval=yes
7478               else
7479                   defaultval=no
7480               fi
7481           fi
7482
7483           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7484 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7485           # Check whether --enable-fswatcher was given.
7486 if test "${enable_fswatcher+set}" = set; then
7487   enableval=$enable_fswatcher;
7488                           if test "$enableval" = yes; then
7489                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7490                           else
7491                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7492                           fi
7493
7494 else
7495
7496                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7497
7498 fi
7499
7500
7501           eval "$wx_cv_use_fswatcher"
7502
7503           if test x"$enablestring" = xdisable; then
7504             if test $wxUSE_FSWATCHER = no; then
7505               result=yes
7506             else
7507               result=no
7508             fi
7509           else
7510             result=$wxUSE_FSWATCHER
7511           fi
7512
7513           { echo "$as_me:$LINENO: result: $result" >&5
7514 echo "${ECHO_T}$result" >&6; }
7515
7516
7517           enablestring=
7518           defaultval=$wxUSE_ALL_FEATURES
7519           if test -z "$defaultval"; then
7520               if test x"$enablestring" = xdisable; then
7521                   defaultval=yes
7522               else
7523                   defaultval=no
7524               fi
7525           fi
7526
7527           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7528 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7529           # Check whether --enable-geometry was given.
7530 if test "${enable_geometry+set}" = set; then
7531   enableval=$enable_geometry;
7532                           if test "$enableval" = yes; then
7533                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7534                           else
7535                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7536                           fi
7537
7538 else
7539
7540                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7541
7542 fi
7543
7544
7545           eval "$wx_cv_use_geometry"
7546
7547           if test x"$enablestring" = xdisable; then
7548             if test $wxUSE_GEOMETRY = no; then
7549               result=yes
7550             else
7551               result=no
7552             fi
7553           else
7554             result=$wxUSE_GEOMETRY
7555           fi
7556
7557           { echo "$as_me:$LINENO: result: $result" >&5
7558 echo "${ECHO_T}$result" >&6; }
7559
7560
7561           enablestring=
7562           defaultval=$wxUSE_ALL_FEATURES
7563           if test -z "$defaultval"; then
7564               if test x"$enablestring" = xdisable; then
7565                   defaultval=yes
7566               else
7567                   defaultval=no
7568               fi
7569           fi
7570
7571           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7572 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7573           # Check whether --enable-log was given.
7574 if test "${enable_log+set}" = set; then
7575   enableval=$enable_log;
7576                           if test "$enableval" = yes; then
7577                             wx_cv_use_log='wxUSE_LOG=yes'
7578                           else
7579                             wx_cv_use_log='wxUSE_LOG=no'
7580                           fi
7581
7582 else
7583
7584                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7585
7586 fi
7587
7588
7589           eval "$wx_cv_use_log"
7590
7591           if test x"$enablestring" = xdisable; then
7592             if test $wxUSE_LOG = no; then
7593               result=yes
7594             else
7595               result=no
7596             fi
7597           else
7598             result=$wxUSE_LOG
7599           fi
7600
7601           { echo "$as_me:$LINENO: result: $result" >&5
7602 echo "${ECHO_T}$result" >&6; }
7603
7604
7605           enablestring=
7606           defaultval=$wxUSE_ALL_FEATURES
7607           if test -z "$defaultval"; then
7608               if test x"$enablestring" = xdisable; then
7609                   defaultval=yes
7610               else
7611                   defaultval=no
7612               fi
7613           fi
7614
7615           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7616 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7617           # Check whether --enable-longlong was given.
7618 if test "${enable_longlong+set}" = set; then
7619   enableval=$enable_longlong;
7620                           if test "$enableval" = yes; then
7621                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7622                           else
7623                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7624                           fi
7625
7626 else
7627
7628                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7629
7630 fi
7631
7632
7633           eval "$wx_cv_use_longlong"
7634
7635           if test x"$enablestring" = xdisable; then
7636             if test $wxUSE_LONGLONG = no; then
7637               result=yes
7638             else
7639               result=no
7640             fi
7641           else
7642             result=$wxUSE_LONGLONG
7643           fi
7644
7645           { echo "$as_me:$LINENO: result: $result" >&5
7646 echo "${ECHO_T}$result" >&6; }
7647
7648
7649           enablestring=
7650           defaultval=$wxUSE_ALL_FEATURES
7651           if test -z "$defaultval"; then
7652               if test x"$enablestring" = xdisable; then
7653                   defaultval=yes
7654               else
7655                   defaultval=no
7656               fi
7657           fi
7658
7659           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7660 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7661           # Check whether --enable-mimetype was given.
7662 if test "${enable_mimetype+set}" = set; then
7663   enableval=$enable_mimetype;
7664                           if test "$enableval" = yes; then
7665                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7666                           else
7667                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7668                           fi
7669
7670 else
7671
7672                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7673
7674 fi
7675
7676
7677           eval "$wx_cv_use_mimetype"
7678
7679           if test x"$enablestring" = xdisable; then
7680             if test $wxUSE_MIMETYPE = no; then
7681               result=yes
7682             else
7683               result=no
7684             fi
7685           else
7686             result=$wxUSE_MIMETYPE
7687           fi
7688
7689           { echo "$as_me:$LINENO: result: $result" >&5
7690 echo "${ECHO_T}$result" >&6; }
7691
7692
7693           enablestring=
7694           defaultval=$wxUSE_ALL_FEATURES
7695           if test -z "$defaultval"; then
7696               if test x"$enablestring" = xdisable; then
7697                   defaultval=yes
7698               else
7699                   defaultval=no
7700               fi
7701           fi
7702
7703           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7704 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7705           # Check whether --enable-printfposparam was given.
7706 if test "${enable_printfposparam+set}" = set; then
7707   enableval=$enable_printfposparam;
7708                           if test "$enableval" = yes; then
7709                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7710                           else
7711                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7712                           fi
7713
7714 else
7715
7716                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7717
7718 fi
7719
7720
7721           eval "$wx_cv_use_printfposparam"
7722
7723           if test x"$enablestring" = xdisable; then
7724             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7725               result=yes
7726             else
7727               result=no
7728             fi
7729           else
7730             result=$wxUSE_PRINTF_POS_PARAMS
7731           fi
7732
7733           { echo "$as_me:$LINENO: result: $result" >&5
7734 echo "${ECHO_T}$result" >&6; }
7735
7736
7737           enablestring=
7738           defaultval=$wxUSE_ALL_FEATURES
7739           if test -z "$defaultval"; then
7740               if test x"$enablestring" = xdisable; then
7741                   defaultval=yes
7742               else
7743                   defaultval=no
7744               fi
7745           fi
7746
7747           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7748 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7749           # Check whether --enable-snglinst was given.
7750 if test "${enable_snglinst+set}" = set; then
7751   enableval=$enable_snglinst;
7752                           if test "$enableval" = yes; then
7753                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7754                           else
7755                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7756                           fi
7757
7758 else
7759
7760                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7761
7762 fi
7763
7764
7765           eval "$wx_cv_use_snglinst"
7766
7767           if test x"$enablestring" = xdisable; then
7768             if test $wxUSE_SNGLINST_CHECKER = no; then
7769               result=yes
7770             else
7771               result=no
7772             fi
7773           else
7774             result=$wxUSE_SNGLINST_CHECKER
7775           fi
7776
7777           { echo "$as_me:$LINENO: result: $result" >&5
7778 echo "${ECHO_T}$result" >&6; }
7779
7780
7781           enablestring=
7782           defaultval=$wxUSE_ALL_FEATURES
7783           if test -z "$defaultval"; then
7784               if test x"$enablestring" = xdisable; then
7785                   defaultval=yes
7786               else
7787                   defaultval=no
7788               fi
7789           fi
7790
7791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7792 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7793           # Check whether --enable-sound was given.
7794 if test "${enable_sound+set}" = set; then
7795   enableval=$enable_sound;
7796                           if test "$enableval" = yes; then
7797                             wx_cv_use_sound='wxUSE_SOUND=yes'
7798                           else
7799                             wx_cv_use_sound='wxUSE_SOUND=no'
7800                           fi
7801
7802 else
7803
7804                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7805
7806 fi
7807
7808
7809           eval "$wx_cv_use_sound"
7810
7811           if test x"$enablestring" = xdisable; then
7812             if test $wxUSE_SOUND = no; then
7813               result=yes
7814             else
7815               result=no
7816             fi
7817           else
7818             result=$wxUSE_SOUND
7819           fi
7820
7821           { echo "$as_me:$LINENO: result: $result" >&5
7822 echo "${ECHO_T}$result" >&6; }
7823
7824
7825           enablestring=
7826           defaultval=$wxUSE_ALL_FEATURES
7827           if test -z "$defaultval"; then
7828               if test x"$enablestring" = xdisable; then
7829                   defaultval=yes
7830               else
7831                   defaultval=no
7832               fi
7833           fi
7834
7835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7836 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7837           # Check whether --enable-stdpaths was given.
7838 if test "${enable_stdpaths+set}" = set; then
7839   enableval=$enable_stdpaths;
7840                           if test "$enableval" = yes; then
7841                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7842                           else
7843                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7844                           fi
7845
7846 else
7847
7848                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7849
7850 fi
7851
7852
7853           eval "$wx_cv_use_stdpaths"
7854
7855           if test x"$enablestring" = xdisable; then
7856             if test $wxUSE_STDPATHS = no; then
7857               result=yes
7858             else
7859               result=no
7860             fi
7861           else
7862             result=$wxUSE_STDPATHS
7863           fi
7864
7865           { echo "$as_me:$LINENO: result: $result" >&5
7866 echo "${ECHO_T}$result" >&6; }
7867
7868
7869           enablestring=
7870           defaultval=$wxUSE_ALL_FEATURES
7871           if test -z "$defaultval"; then
7872               if test x"$enablestring" = xdisable; then
7873                   defaultval=yes
7874               else
7875                   defaultval=no
7876               fi
7877           fi
7878
7879           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7880 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7881           # Check whether --enable-stopwatch was given.
7882 if test "${enable_stopwatch+set}" = set; then
7883   enableval=$enable_stopwatch;
7884                           if test "$enableval" = yes; then
7885                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7886                           else
7887                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7888                           fi
7889
7890 else
7891
7892                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7893
7894 fi
7895
7896
7897           eval "$wx_cv_use_stopwatch"
7898
7899           if test x"$enablestring" = xdisable; then
7900             if test $wxUSE_STOPWATCH = no; then
7901               result=yes
7902             else
7903               result=no
7904             fi
7905           else
7906             result=$wxUSE_STOPWATCH
7907           fi
7908
7909           { echo "$as_me:$LINENO: result: $result" >&5
7910 echo "${ECHO_T}$result" >&6; }
7911
7912
7913           enablestring=
7914           defaultval=$wxUSE_ALL_FEATURES
7915           if test -z "$defaultval"; then
7916               if test x"$enablestring" = xdisable; then
7917                   defaultval=yes
7918               else
7919                   defaultval=no
7920               fi
7921           fi
7922
7923           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7924 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7925           # Check whether --enable-streams was given.
7926 if test "${enable_streams+set}" = set; then
7927   enableval=$enable_streams;
7928                           if test "$enableval" = yes; then
7929                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7930                           else
7931                             wx_cv_use_streams='wxUSE_STREAMS=no'
7932                           fi
7933
7934 else
7935
7936                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7937
7938 fi
7939
7940
7941           eval "$wx_cv_use_streams"
7942
7943           if test x"$enablestring" = xdisable; then
7944             if test $wxUSE_STREAMS = no; then
7945               result=yes
7946             else
7947               result=no
7948             fi
7949           else
7950             result=$wxUSE_STREAMS
7951           fi
7952
7953           { echo "$as_me:$LINENO: result: $result" >&5
7954 echo "${ECHO_T}$result" >&6; }
7955
7956
7957           enablestring=
7958           defaultval=$wxUSE_ALL_FEATURES
7959           if test -z "$defaultval"; then
7960               if test x"$enablestring" = xdisable; then
7961                   defaultval=yes
7962               else
7963                   defaultval=no
7964               fi
7965           fi
7966
7967           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
7968 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
7969           # Check whether --enable-sysoptions was given.
7970 if test "${enable_sysoptions+set}" = set; then
7971   enableval=$enable_sysoptions;
7972                           if test "$enableval" = yes; then
7973                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
7974                           else
7975                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
7976                           fi
7977
7978 else
7979
7980                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7981
7982 fi
7983
7984
7985           eval "$wx_cv_use_sysoptions"
7986
7987           if test x"$enablestring" = xdisable; then
7988             if test $wxUSE_SYSTEM_OPTIONS = no; then
7989               result=yes
7990             else
7991               result=no
7992             fi
7993           else
7994             result=$wxUSE_SYSTEM_OPTIONS
7995           fi
7996
7997           { echo "$as_me:$LINENO: result: $result" >&5
7998 echo "${ECHO_T}$result" >&6; }
7999
8000
8001           enablestring=
8002           defaultval=$wxUSE_ALL_FEATURES
8003           if test -z "$defaultval"; then
8004               if test x"$enablestring" = xdisable; then
8005                   defaultval=yes
8006               else
8007                   defaultval=no
8008               fi
8009           fi
8010
8011           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8012 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8013           # Check whether --enable-tarstream was given.
8014 if test "${enable_tarstream+set}" = set; then
8015   enableval=$enable_tarstream;
8016                           if test "$enableval" = yes; then
8017                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8018                           else
8019                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8020                           fi
8021
8022 else
8023
8024                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8025
8026 fi
8027
8028
8029           eval "$wx_cv_use_tarstream"
8030
8031           if test x"$enablestring" = xdisable; then
8032             if test $wxUSE_TARSTREAM = no; then
8033               result=yes
8034             else
8035               result=no
8036             fi
8037           else
8038             result=$wxUSE_TARSTREAM
8039           fi
8040
8041           { echo "$as_me:$LINENO: result: $result" >&5
8042 echo "${ECHO_T}$result" >&6; }
8043
8044
8045           enablestring=
8046           defaultval=$wxUSE_ALL_FEATURES
8047           if test -z "$defaultval"; then
8048               if test x"$enablestring" = xdisable; then
8049                   defaultval=yes
8050               else
8051                   defaultval=no
8052               fi
8053           fi
8054
8055           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8056 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8057           # Check whether --enable-textbuf was given.
8058 if test "${enable_textbuf+set}" = set; then
8059   enableval=$enable_textbuf;
8060                           if test "$enableval" = yes; then
8061                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8062                           else
8063                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8064                           fi
8065
8066 else
8067
8068                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8069
8070 fi
8071
8072
8073           eval "$wx_cv_use_textbuf"
8074
8075           if test x"$enablestring" = xdisable; then
8076             if test $wxUSE_TEXTBUFFER = no; then
8077               result=yes
8078             else
8079               result=no
8080             fi
8081           else
8082             result=$wxUSE_TEXTBUFFER
8083           fi
8084
8085           { echo "$as_me:$LINENO: result: $result" >&5
8086 echo "${ECHO_T}$result" >&6; }
8087
8088
8089           enablestring=
8090           defaultval=$wxUSE_ALL_FEATURES
8091           if test -z "$defaultval"; then
8092               if test x"$enablestring" = xdisable; then
8093                   defaultval=yes
8094               else
8095                   defaultval=no
8096               fi
8097           fi
8098
8099           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8100 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8101           # Check whether --enable-textfile was given.
8102 if test "${enable_textfile+set}" = set; then
8103   enableval=$enable_textfile;
8104                           if test "$enableval" = yes; then
8105                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8106                           else
8107                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8108                           fi
8109
8110 else
8111
8112                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8113
8114 fi
8115
8116
8117           eval "$wx_cv_use_textfile"
8118
8119           if test x"$enablestring" = xdisable; then
8120             if test $wxUSE_TEXTFILE = no; then
8121               result=yes
8122             else
8123               result=no
8124             fi
8125           else
8126             result=$wxUSE_TEXTFILE
8127           fi
8128
8129           { echo "$as_me:$LINENO: result: $result" >&5
8130 echo "${ECHO_T}$result" >&6; }
8131
8132
8133           enablestring=
8134           defaultval=$wxUSE_ALL_FEATURES
8135           if test -z "$defaultval"; then
8136               if test x"$enablestring" = xdisable; then
8137                   defaultval=yes
8138               else
8139                   defaultval=no
8140               fi
8141           fi
8142
8143           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8144 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8145           # Check whether --enable-timer was given.
8146 if test "${enable_timer+set}" = set; then
8147   enableval=$enable_timer;
8148                           if test "$enableval" = yes; then
8149                             wx_cv_use_timer='wxUSE_TIMER=yes'
8150                           else
8151                             wx_cv_use_timer='wxUSE_TIMER=no'
8152                           fi
8153
8154 else
8155
8156                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8157
8158 fi
8159
8160
8161           eval "$wx_cv_use_timer"
8162
8163           if test x"$enablestring" = xdisable; then
8164             if test $wxUSE_TIMER = no; then
8165               result=yes
8166             else
8167               result=no
8168             fi
8169           else
8170             result=$wxUSE_TIMER
8171           fi
8172
8173           { echo "$as_me:$LINENO: result: $result" >&5
8174 echo "${ECHO_T}$result" >&6; }
8175
8176
8177           enablestring=
8178           defaultval=$wxUSE_ALL_FEATURES
8179           if test -z "$defaultval"; then
8180               if test x"$enablestring" = xdisable; then
8181                   defaultval=yes
8182               else
8183                   defaultval=no
8184               fi
8185           fi
8186
8187           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8188 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8189           # Check whether --enable-variant was given.
8190 if test "${enable_variant+set}" = set; then
8191   enableval=$enable_variant;
8192                           if test "$enableval" = yes; then
8193                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8194                           else
8195                             wx_cv_use_variant='wxUSE_VARIANT=no'
8196                           fi
8197
8198 else
8199
8200                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8201
8202 fi
8203
8204
8205           eval "$wx_cv_use_variant"
8206
8207           if test x"$enablestring" = xdisable; then
8208             if test $wxUSE_VARIANT = no; then
8209               result=yes
8210             else
8211               result=no
8212             fi
8213           else
8214             result=$wxUSE_VARIANT
8215           fi
8216
8217           { echo "$as_me:$LINENO: result: $result" >&5
8218 echo "${ECHO_T}$result" >&6; }
8219
8220
8221           enablestring=
8222           defaultval=$wxUSE_ALL_FEATURES
8223           if test -z "$defaultval"; then
8224               if test x"$enablestring" = xdisable; then
8225                   defaultval=yes
8226               else
8227                   defaultval=no
8228               fi
8229           fi
8230
8231           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8232 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8233           # Check whether --enable-zipstream was given.
8234 if test "${enable_zipstream+set}" = set; then
8235   enableval=$enable_zipstream;
8236                           if test "$enableval" = yes; then
8237                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8238                           else
8239                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8240                           fi
8241
8242 else
8243
8244                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8245
8246 fi
8247
8248
8249           eval "$wx_cv_use_zipstream"
8250
8251           if test x"$enablestring" = xdisable; then
8252             if test $wxUSE_ZIPSTREAM = no; then
8253               result=yes
8254             else
8255               result=no
8256             fi
8257           else
8258             result=$wxUSE_ZIPSTREAM
8259           fi
8260
8261           { echo "$as_me:$LINENO: result: $result" >&5
8262 echo "${ECHO_T}$result" >&6; }
8263
8264
8265
8266           enablestring=
8267           defaultval=$wxUSE_ALL_FEATURES
8268           if test -z "$defaultval"; then
8269               if test x"$enablestring" = xdisable; then
8270                   defaultval=yes
8271               else
8272                   defaultval=no
8273               fi
8274           fi
8275
8276           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8277 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8278           # Check whether --enable-url was given.
8279 if test "${enable_url+set}" = set; then
8280   enableval=$enable_url;
8281                           if test "$enableval" = yes; then
8282                             wx_cv_use_url='wxUSE_URL=yes'
8283                           else
8284                             wx_cv_use_url='wxUSE_URL=no'
8285                           fi
8286
8287 else
8288
8289                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8290
8291 fi
8292
8293
8294           eval "$wx_cv_use_url"
8295
8296           if test x"$enablestring" = xdisable; then
8297             if test $wxUSE_URL = no; then
8298               result=yes
8299             else
8300               result=no
8301             fi
8302           else
8303             result=$wxUSE_URL
8304           fi
8305
8306           { echo "$as_me:$LINENO: result: $result" >&5
8307 echo "${ECHO_T}$result" >&6; }
8308
8309
8310           enablestring=
8311           defaultval=$wxUSE_ALL_FEATURES
8312           if test -z "$defaultval"; then
8313               if test x"$enablestring" = xdisable; then
8314                   defaultval=yes
8315               else
8316                   defaultval=no
8317               fi
8318           fi
8319
8320           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8321 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8322           # Check whether --enable-protocol was given.
8323 if test "${enable_protocol+set}" = set; then
8324   enableval=$enable_protocol;
8325                           if test "$enableval" = yes; then
8326                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8327                           else
8328                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8329                           fi
8330
8331 else
8332
8333                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8334
8335 fi
8336
8337
8338           eval "$wx_cv_use_protocol"
8339
8340           if test x"$enablestring" = xdisable; then
8341             if test $wxUSE_PROTOCOL = no; then
8342               result=yes
8343             else
8344               result=no
8345             fi
8346           else
8347             result=$wxUSE_PROTOCOL
8348           fi
8349
8350           { echo "$as_me:$LINENO: result: $result" >&5
8351 echo "${ECHO_T}$result" >&6; }
8352
8353
8354           enablestring=
8355           defaultval=$wxUSE_ALL_FEATURES
8356           if test -z "$defaultval"; then
8357               if test x"$enablestring" = xdisable; then
8358                   defaultval=yes
8359               else
8360                   defaultval=no
8361               fi
8362           fi
8363
8364           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8365 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8366           # Check whether --enable-protocol_http was given.
8367 if test "${enable_protocol_http+set}" = set; then
8368   enableval=$enable_protocol_http;
8369                           if test "$enableval" = yes; then
8370                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8371                           else
8372                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8373                           fi
8374
8375 else
8376
8377                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8378
8379 fi
8380
8381
8382           eval "$wx_cv_use_protocol_http"
8383
8384           if test x"$enablestring" = xdisable; then
8385             if test $wxUSE_PROTOCOL_HTTP = no; then
8386               result=yes
8387             else
8388               result=no
8389             fi
8390           else
8391             result=$wxUSE_PROTOCOL_HTTP
8392           fi
8393
8394           { echo "$as_me:$LINENO: result: $result" >&5
8395 echo "${ECHO_T}$result" >&6; }
8396
8397
8398           enablestring=
8399           defaultval=$wxUSE_ALL_FEATURES
8400           if test -z "$defaultval"; then
8401               if test x"$enablestring" = xdisable; then
8402                   defaultval=yes
8403               else
8404                   defaultval=no
8405               fi
8406           fi
8407
8408           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8409 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8410           # Check whether --enable-protocol_ftp was given.
8411 if test "${enable_protocol_ftp+set}" = set; then
8412   enableval=$enable_protocol_ftp;
8413                           if test "$enableval" = yes; then
8414                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8415                           else
8416                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8417                           fi
8418
8419 else
8420
8421                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8422
8423 fi
8424
8425
8426           eval "$wx_cv_use_protocol_ftp"
8427
8428           if test x"$enablestring" = xdisable; then
8429             if test $wxUSE_PROTOCOL_FTP = no; then
8430               result=yes
8431             else
8432               result=no
8433             fi
8434           else
8435             result=$wxUSE_PROTOCOL_FTP
8436           fi
8437
8438           { echo "$as_me:$LINENO: result: $result" >&5
8439 echo "${ECHO_T}$result" >&6; }
8440
8441
8442           enablestring=
8443           defaultval=$wxUSE_ALL_FEATURES
8444           if test -z "$defaultval"; then
8445               if test x"$enablestring" = xdisable; then
8446                   defaultval=yes
8447               else
8448                   defaultval=no
8449               fi
8450           fi
8451
8452           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8453 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8454           # Check whether --enable-protocol_file was given.
8455 if test "${enable_protocol_file+set}" = set; then
8456   enableval=$enable_protocol_file;
8457                           if test "$enableval" = yes; then
8458                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8459                           else
8460                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8461                           fi
8462
8463 else
8464
8465                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8466
8467 fi
8468
8469
8470           eval "$wx_cv_use_protocol_file"
8471
8472           if test x"$enablestring" = xdisable; then
8473             if test $wxUSE_PROTOCOL_FILE = no; then
8474               result=yes
8475             else
8476               result=no
8477             fi
8478           else
8479             result=$wxUSE_PROTOCOL_FILE
8480           fi
8481
8482           { echo "$as_me:$LINENO: result: $result" >&5
8483 echo "${ECHO_T}$result" >&6; }
8484
8485
8486
8487           enablestring=
8488           defaultval=$wxUSE_ALL_FEATURES
8489           if test -z "$defaultval"; then
8490               if test x"$enablestring" = xdisable; then
8491                   defaultval=yes
8492               else
8493                   defaultval=no
8494               fi
8495           fi
8496
8497           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8498 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8499           # Check whether --enable-threads was given.
8500 if test "${enable_threads+set}" = set; then
8501   enableval=$enable_threads;
8502                           if test "$enableval" = yes; then
8503                             wx_cv_use_threads='wxUSE_THREADS=yes'
8504                           else
8505                             wx_cv_use_threads='wxUSE_THREADS=no'
8506                           fi
8507
8508 else
8509
8510                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8511
8512 fi
8513
8514
8515           eval "$wx_cv_use_threads"
8516
8517           if test x"$enablestring" = xdisable; then
8518             if test $wxUSE_THREADS = no; then
8519               result=yes
8520             else
8521               result=no
8522             fi
8523           else
8524             result=$wxUSE_THREADS
8525           fi
8526
8527           { echo "$as_me:$LINENO: result: $result" >&5
8528 echo "${ECHO_T}$result" >&6; }
8529
8530
8531
8532           enablestring=
8533           defaultval=
8534           if test -z "$defaultval"; then
8535               if test x"$enablestring" = xdisable; then
8536                   defaultval=yes
8537               else
8538                   defaultval=no
8539               fi
8540           fi
8541
8542           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8543 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8544           # Check whether --enable-iniconf was given.
8545 if test "${enable_iniconf+set}" = set; then
8546   enableval=$enable_iniconf;
8547                           if test "$enableval" = yes; then
8548                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8549                           else
8550                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8551                           fi
8552
8553 else
8554
8555                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8556
8557 fi
8558
8559
8560           eval "$wx_cv_use_iniconf"
8561
8562           if test x"$enablestring" = xdisable; then
8563             if test $wxUSE_INICONF = no; then
8564               result=yes
8565             else
8566               result=no
8567             fi
8568           else
8569             result=$wxUSE_INICONF
8570           fi
8571
8572           { echo "$as_me:$LINENO: result: $result" >&5
8573 echo "${ECHO_T}$result" >&6; }
8574
8575
8576           enablestring=
8577           defaultval=$wxUSE_ALL_FEATURES
8578           if test -z "$defaultval"; then
8579               if test x"$enablestring" = xdisable; then
8580                   defaultval=yes
8581               else
8582                   defaultval=no
8583               fi
8584           fi
8585
8586           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8587 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8588           # Check whether --enable-regkey was given.
8589 if test "${enable_regkey+set}" = set; then
8590   enableval=$enable_regkey;
8591                           if test "$enableval" = yes; then
8592                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8593                           else
8594                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8595                           fi
8596
8597 else
8598
8599                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8600
8601 fi
8602
8603
8604           eval "$wx_cv_use_regkey"
8605
8606           if test x"$enablestring" = xdisable; then
8607             if test $wxUSE_REGKEY = no; then
8608               result=yes
8609             else
8610               result=no
8611             fi
8612           else
8613             result=$wxUSE_REGKEY
8614           fi
8615
8616           { echo "$as_me:$LINENO: result: $result" >&5
8617 echo "${ECHO_T}$result" >&6; }
8618
8619
8620 if test "$wxUSE_GUI" = "yes"; then
8621
8622
8623
8624           enablestring=
8625           defaultval=$wxUSE_ALL_FEATURES
8626           if test -z "$defaultval"; then
8627               if test x"$enablestring" = xdisable; then
8628                   defaultval=yes
8629               else
8630                   defaultval=no
8631               fi
8632           fi
8633
8634           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8635 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8636           # Check whether --enable-docview was given.
8637 if test "${enable_docview+set}" = set; then
8638   enableval=$enable_docview;
8639                           if test "$enableval" = yes; then
8640                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8641                           else
8642                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8643                           fi
8644
8645 else
8646
8647                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8648
8649 fi
8650
8651
8652           eval "$wx_cv_use_docview"
8653
8654           if test x"$enablestring" = xdisable; then
8655             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8656               result=yes
8657             else
8658               result=no
8659             fi
8660           else
8661             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8662           fi
8663
8664           { echo "$as_me:$LINENO: result: $result" >&5
8665 echo "${ECHO_T}$result" >&6; }
8666
8667
8668           enablestring=
8669           defaultval=$wxUSE_ALL_FEATURES
8670           if test -z "$defaultval"; then
8671               if test x"$enablestring" = xdisable; then
8672                   defaultval=yes
8673               else
8674                   defaultval=no
8675               fi
8676           fi
8677
8678           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8679 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8680           # Check whether --enable-help was given.
8681 if test "${enable_help+set}" = set; then
8682   enableval=$enable_help;
8683                           if test "$enableval" = yes; then
8684                             wx_cv_use_help='wxUSE_HELP=yes'
8685                           else
8686                             wx_cv_use_help='wxUSE_HELP=no'
8687                           fi
8688
8689 else
8690
8691                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8692
8693 fi
8694
8695
8696           eval "$wx_cv_use_help"
8697
8698           if test x"$enablestring" = xdisable; then
8699             if test $wxUSE_HELP = no; then
8700               result=yes
8701             else
8702               result=no
8703             fi
8704           else
8705             result=$wxUSE_HELP
8706           fi
8707
8708           { echo "$as_me:$LINENO: result: $result" >&5
8709 echo "${ECHO_T}$result" >&6; }
8710
8711
8712           enablestring=
8713           defaultval=$wxUSE_ALL_FEATURES
8714           if test -z "$defaultval"; then
8715               if test x"$enablestring" = xdisable; then
8716                   defaultval=yes
8717               else
8718                   defaultval=no
8719               fi
8720           fi
8721
8722           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8723 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8724           # Check whether --enable-mshtmlhelp was given.
8725 if test "${enable_mshtmlhelp+set}" = set; then
8726   enableval=$enable_mshtmlhelp;
8727                           if test "$enableval" = yes; then
8728                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8729                           else
8730                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8731                           fi
8732
8733 else
8734
8735                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8736
8737 fi
8738
8739
8740           eval "$wx_cv_use_mshtmlhelp"
8741
8742           if test x"$enablestring" = xdisable; then
8743             if test $wxUSE_MS_HTML_HELP = no; then
8744               result=yes
8745             else
8746               result=no
8747             fi
8748           else
8749             result=$wxUSE_MS_HTML_HELP
8750           fi
8751
8752           { echo "$as_me:$LINENO: result: $result" >&5
8753 echo "${ECHO_T}$result" >&6; }
8754
8755
8756           enablestring=
8757           defaultval=$wxUSE_ALL_FEATURES
8758           if test -z "$defaultval"; then
8759               if test x"$enablestring" = xdisable; then
8760                   defaultval=yes
8761               else
8762                   defaultval=no
8763               fi
8764           fi
8765
8766           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8767 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8768           # Check whether --enable-html was given.
8769 if test "${enable_html+set}" = set; then
8770   enableval=$enable_html;
8771                           if test "$enableval" = yes; then
8772                             wx_cv_use_html='wxUSE_HTML=yes'
8773                           else
8774                             wx_cv_use_html='wxUSE_HTML=no'
8775                           fi
8776
8777 else
8778
8779                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8780
8781 fi
8782
8783
8784           eval "$wx_cv_use_html"
8785
8786           if test x"$enablestring" = xdisable; then
8787             if test $wxUSE_HTML = no; then
8788               result=yes
8789             else
8790               result=no
8791             fi
8792           else
8793             result=$wxUSE_HTML
8794           fi
8795
8796           { echo "$as_me:$LINENO: result: $result" >&5
8797 echo "${ECHO_T}$result" >&6; }
8798
8799
8800           enablestring=
8801           defaultval=$wxUSE_ALL_FEATURES
8802           if test -z "$defaultval"; then
8803               if test x"$enablestring" = xdisable; then
8804                   defaultval=yes
8805               else
8806                   defaultval=no
8807               fi
8808           fi
8809
8810           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8811 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8812           # Check whether --enable-htmlhelp was given.
8813 if test "${enable_htmlhelp+set}" = set; then
8814   enableval=$enable_htmlhelp;
8815                           if test "$enableval" = yes; then
8816                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8817                           else
8818                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8819                           fi
8820
8821 else
8822
8823                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8824
8825 fi
8826
8827
8828           eval "$wx_cv_use_htmlhelp"
8829
8830           if test x"$enablestring" = xdisable; then
8831             if test $wxUSE_WXHTML_HELP = no; then
8832               result=yes
8833             else
8834               result=no
8835             fi
8836           else
8837             result=$wxUSE_WXHTML_HELP
8838           fi
8839
8840           { echo "$as_me:$LINENO: result: $result" >&5
8841 echo "${ECHO_T}$result" >&6; }
8842
8843
8844           enablestring=
8845           defaultval=$wxUSE_ALL_FEATURES
8846           if test -z "$defaultval"; then
8847               if test x"$enablestring" = xdisable; then
8848                   defaultval=yes
8849               else
8850                   defaultval=no
8851               fi
8852           fi
8853
8854           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8855 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8856           # Check whether --enable-xrc was given.
8857 if test "${enable_xrc+set}" = set; then
8858   enableval=$enable_xrc;
8859                           if test "$enableval" = yes; then
8860                             wx_cv_use_xrc='wxUSE_XRC=yes'
8861                           else
8862                             wx_cv_use_xrc='wxUSE_XRC=no'
8863                           fi
8864
8865 else
8866
8867                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8868
8869 fi
8870
8871
8872           eval "$wx_cv_use_xrc"
8873
8874           if test x"$enablestring" = xdisable; then
8875             if test $wxUSE_XRC = no; then
8876               result=yes
8877             else
8878               result=no
8879             fi
8880           else
8881             result=$wxUSE_XRC
8882           fi
8883
8884           { echo "$as_me:$LINENO: result: $result" >&5
8885 echo "${ECHO_T}$result" >&6; }
8886
8887
8888           enablestring=
8889           defaultval=$wxUSE_ALL_FEATURES
8890           if test -z "$defaultval"; then
8891               if test x"$enablestring" = xdisable; then
8892                   defaultval=yes
8893               else
8894                   defaultval=no
8895               fi
8896           fi
8897
8898           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8899 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8900           # Check whether --enable-aui was given.
8901 if test "${enable_aui+set}" = set; then
8902   enableval=$enable_aui;
8903                           if test "$enableval" = yes; then
8904                             wx_cv_use_aui='wxUSE_AUI=yes'
8905                           else
8906                             wx_cv_use_aui='wxUSE_AUI=no'
8907                           fi
8908
8909 else
8910
8911                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8912
8913 fi
8914
8915
8916           eval "$wx_cv_use_aui"
8917
8918           if test x"$enablestring" = xdisable; then
8919             if test $wxUSE_AUI = no; then
8920               result=yes
8921             else
8922               result=no
8923             fi
8924           else
8925             result=$wxUSE_AUI
8926           fi
8927
8928           { echo "$as_me:$LINENO: result: $result" >&5
8929 echo "${ECHO_T}$result" >&6; }
8930
8931
8932           enablestring=
8933           defaultval=$wxUSE_ALL_FEATURES
8934           if test -z "$defaultval"; then
8935               if test x"$enablestring" = xdisable; then
8936                   defaultval=yes
8937               else
8938                   defaultval=no
8939               fi
8940           fi
8941
8942           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8943 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8944           # Check whether --enable-propgrid was given.
8945 if test "${enable_propgrid+set}" = set; then
8946   enableval=$enable_propgrid;
8947                           if test "$enableval" = yes; then
8948                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8949                           else
8950                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8951                           fi
8952
8953 else
8954
8955                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8956
8957 fi
8958
8959
8960           eval "$wx_cv_use_propgrid"
8961
8962           if test x"$enablestring" = xdisable; then
8963             if test $wxUSE_PROPGRID = no; then
8964               result=yes
8965             else
8966               result=no
8967             fi
8968           else
8969             result=$wxUSE_PROPGRID
8970           fi
8971
8972           { echo "$as_me:$LINENO: result: $result" >&5
8973 echo "${ECHO_T}$result" >&6; }
8974
8975
8976           enablestring=
8977           defaultval=$wxUSE_ALL_FEATURES
8978           if test -z "$defaultval"; then
8979               if test x"$enablestring" = xdisable; then
8980                   defaultval=yes
8981               else
8982                   defaultval=no
8983               fi
8984           fi
8985
8986           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
8987 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
8988           # Check whether --enable-ribbon was given.
8989 if test "${enable_ribbon+set}" = set; then
8990   enableval=$enable_ribbon;
8991                           if test "$enableval" = yes; then
8992                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
8993                           else
8994                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
8995                           fi
8996
8997 else
8998
8999                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
9000
9001 fi
9002
9003
9004           eval "$wx_cv_use_ribbon"
9005
9006           if test x"$enablestring" = xdisable; then
9007             if test $wxUSE_RIBBON = no; then
9008               result=yes
9009             else
9010               result=no
9011             fi
9012           else
9013             result=$wxUSE_RIBBON
9014           fi
9015
9016           { echo "$as_me:$LINENO: result: $result" >&5
9017 echo "${ECHO_T}$result" >&6; }
9018
9019
9020           enablestring=
9021           defaultval=$wxUSE_ALL_FEATURES
9022           if test -z "$defaultval"; then
9023               if test x"$enablestring" = xdisable; then
9024                   defaultval=yes
9025               else
9026                   defaultval=no
9027               fi
9028           fi
9029
9030           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9031 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9032           # Check whether --enable-stc was given.
9033 if test "${enable_stc+set}" = set; then
9034   enableval=$enable_stc;
9035                           if test "$enableval" = yes; then
9036                             wx_cv_use_stc='wxUSE_STC=yes'
9037                           else
9038                             wx_cv_use_stc='wxUSE_STC=no'
9039                           fi
9040
9041 else
9042
9043                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9044
9045 fi
9046
9047
9048           eval "$wx_cv_use_stc"
9049
9050           if test x"$enablestring" = xdisable; then
9051             if test $wxUSE_STC = no; then
9052               result=yes
9053             else
9054               result=no
9055             fi
9056           else
9057             result=$wxUSE_STC
9058           fi
9059
9060           { echo "$as_me:$LINENO: result: $result" >&5
9061 echo "${ECHO_T}$result" >&6; }
9062
9063
9064           enablestring=
9065           defaultval=$wxUSE_ALL_FEATURES
9066           if test -z "$defaultval"; then
9067               if test x"$enablestring" = xdisable; then
9068                   defaultval=yes
9069               else
9070                   defaultval=no
9071               fi
9072           fi
9073
9074           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9075 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9076           # Check whether --enable-constraints was given.
9077 if test "${enable_constraints+set}" = set; then
9078   enableval=$enable_constraints;
9079                           if test "$enableval" = yes; then
9080                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9081                           else
9082                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9083                           fi
9084
9085 else
9086
9087                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9088
9089 fi
9090
9091
9092           eval "$wx_cv_use_constraints"
9093
9094           if test x"$enablestring" = xdisable; then
9095             if test $wxUSE_CONSTRAINTS = no; then
9096               result=yes
9097             else
9098               result=no
9099             fi
9100           else
9101             result=$wxUSE_CONSTRAINTS
9102           fi
9103
9104           { echo "$as_me:$LINENO: result: $result" >&5
9105 echo "${ECHO_T}$result" >&6; }
9106
9107
9108           enablestring=
9109           defaultval=$wxUSE_ALL_FEATURES
9110           if test -z "$defaultval"; then
9111               if test x"$enablestring" = xdisable; then
9112                   defaultval=yes
9113               else
9114                   defaultval=no
9115               fi
9116           fi
9117
9118           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9119 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9120           # Check whether --enable-loggui was given.
9121 if test "${enable_loggui+set}" = set; then
9122   enableval=$enable_loggui;
9123                           if test "$enableval" = yes; then
9124                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9125                           else
9126                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9127                           fi
9128
9129 else
9130
9131                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9132
9133 fi
9134
9135
9136           eval "$wx_cv_use_loggui"
9137
9138           if test x"$enablestring" = xdisable; then
9139             if test $wxUSE_LOGGUI = no; then
9140               result=yes
9141             else
9142               result=no
9143             fi
9144           else
9145             result=$wxUSE_LOGGUI
9146           fi
9147
9148           { echo "$as_me:$LINENO: result: $result" >&5
9149 echo "${ECHO_T}$result" >&6; }
9150
9151
9152           enablestring=
9153           defaultval=$wxUSE_ALL_FEATURES
9154           if test -z "$defaultval"; then
9155               if test x"$enablestring" = xdisable; then
9156                   defaultval=yes
9157               else
9158                   defaultval=no
9159               fi
9160           fi
9161
9162           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9163 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9164           # Check whether --enable-logwin was given.
9165 if test "${enable_logwin+set}" = set; then
9166   enableval=$enable_logwin;
9167                           if test "$enableval" = yes; then
9168                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9169                           else
9170                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9171                           fi
9172
9173 else
9174
9175                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9176
9177 fi
9178
9179
9180           eval "$wx_cv_use_logwin"
9181
9182           if test x"$enablestring" = xdisable; then
9183             if test $wxUSE_LOGWINDOW = no; then
9184               result=yes
9185             else
9186               result=no
9187             fi
9188           else
9189             result=$wxUSE_LOGWINDOW
9190           fi
9191
9192           { echo "$as_me:$LINENO: result: $result" >&5
9193 echo "${ECHO_T}$result" >&6; }
9194
9195
9196           enablestring=
9197           defaultval=$wxUSE_ALL_FEATURES
9198           if test -z "$defaultval"; then
9199               if test x"$enablestring" = xdisable; then
9200                   defaultval=yes
9201               else
9202                   defaultval=no
9203               fi
9204           fi
9205
9206           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9207 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9208           # Check whether --enable-logdialog was given.
9209 if test "${enable_logdialog+set}" = set; then
9210   enableval=$enable_logdialog;
9211                           if test "$enableval" = yes; then
9212                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9213                           else
9214                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9215                           fi
9216
9217 else
9218
9219                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9220
9221 fi
9222
9223
9224           eval "$wx_cv_use_logdialog"
9225
9226           if test x"$enablestring" = xdisable; then
9227             if test $wxUSE_LOGDIALOG = no; then
9228               result=yes
9229             else
9230               result=no
9231             fi
9232           else
9233             result=$wxUSE_LOGDIALOG
9234           fi
9235
9236           { echo "$as_me:$LINENO: result: $result" >&5
9237 echo "${ECHO_T}$result" >&6; }
9238
9239
9240           enablestring=
9241           defaultval=$wxUSE_ALL_FEATURES
9242           if test -z "$defaultval"; then
9243               if test x"$enablestring" = xdisable; then
9244                   defaultval=yes
9245               else
9246                   defaultval=no
9247               fi
9248           fi
9249
9250           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9251 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9252           # Check whether --enable-mdi was given.
9253 if test "${enable_mdi+set}" = set; then
9254   enableval=$enable_mdi;
9255                           if test "$enableval" = yes; then
9256                             wx_cv_use_mdi='wxUSE_MDI=yes'
9257                           else
9258                             wx_cv_use_mdi='wxUSE_MDI=no'
9259                           fi
9260
9261 else
9262
9263                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9264
9265 fi
9266
9267
9268           eval "$wx_cv_use_mdi"
9269
9270           if test x"$enablestring" = xdisable; then
9271             if test $wxUSE_MDI = no; then
9272               result=yes
9273             else
9274               result=no
9275             fi
9276           else
9277             result=$wxUSE_MDI
9278           fi
9279
9280           { echo "$as_me:$LINENO: result: $result" >&5
9281 echo "${ECHO_T}$result" >&6; }
9282
9283
9284           enablestring=
9285           defaultval=$wxUSE_ALL_FEATURES
9286           if test -z "$defaultval"; then
9287               if test x"$enablestring" = xdisable; then
9288                   defaultval=yes
9289               else
9290                   defaultval=no
9291               fi
9292           fi
9293
9294           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9295 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9296           # Check whether --enable-mdidoc was given.
9297 if test "${enable_mdidoc+set}" = set; then
9298   enableval=$enable_mdidoc;
9299                           if test "$enableval" = yes; then
9300                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9301                           else
9302                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9303                           fi
9304
9305 else
9306
9307                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9308
9309 fi
9310
9311
9312           eval "$wx_cv_use_mdidoc"
9313
9314           if test x"$enablestring" = xdisable; then
9315             if test $wxUSE_MDI_ARCHITECTURE = no; then
9316               result=yes
9317             else
9318               result=no
9319             fi
9320           else
9321             result=$wxUSE_MDI_ARCHITECTURE
9322           fi
9323
9324           { echo "$as_me:$LINENO: result: $result" >&5
9325 echo "${ECHO_T}$result" >&6; }
9326
9327
9328           enablestring=
9329           defaultval=$wxUSE_ALL_FEATURES
9330           if test -z "$defaultval"; then
9331               if test x"$enablestring" = xdisable; then
9332                   defaultval=yes
9333               else
9334                   defaultval=no
9335               fi
9336           fi
9337
9338           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9339 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9340           # Check whether --enable-mediactrl was given.
9341 if test "${enable_mediactrl+set}" = set; then
9342   enableval=$enable_mediactrl;
9343                           if test "$enableval" = yes; then
9344                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9345                           else
9346                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9347                           fi
9348
9349 else
9350
9351                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9352
9353 fi
9354
9355
9356           eval "$wx_cv_use_mediactrl"
9357
9358           if test x"$enablestring" = xdisable; then
9359             if test $wxUSE_MEDIACTRL = no; then
9360               result=yes
9361             else
9362               result=no
9363             fi
9364           else
9365             result=$wxUSE_MEDIACTRL
9366           fi
9367
9368           { echo "$as_me:$LINENO: result: $result" >&5
9369 echo "${ECHO_T}$result" >&6; }
9370
9371
9372           enablestring=
9373           defaultval=$wxUSE_ALL_FEATURES
9374           if test -z "$defaultval"; then
9375               if test x"$enablestring" = xdisable; then
9376                   defaultval=yes
9377               else
9378                   defaultval=no
9379               fi
9380           fi
9381
9382           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9383 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9384           # Check whether --enable-gstreamer8 was given.
9385 if test "${enable_gstreamer8+set}" = set; then
9386   enableval=$enable_gstreamer8;
9387                           if test "$enableval" = yes; then
9388                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9389                           else
9390                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9391                           fi
9392
9393 else
9394
9395                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9396
9397 fi
9398
9399
9400           eval "$wx_cv_use_gstreamer8"
9401
9402           if test x"$enablestring" = xdisable; then
9403             if test $wxUSE_GSTREAMER8 = no; then
9404               result=yes
9405             else
9406               result=no
9407             fi
9408           else
9409             result=$wxUSE_GSTREAMER8
9410           fi
9411
9412           { echo "$as_me:$LINENO: result: $result" >&5
9413 echo "${ECHO_T}$result" >&6; }
9414
9415
9416           enablestring=
9417           defaultval=$wxUSE_ALL_FEATURES
9418           if test -z "$defaultval"; then
9419               if test x"$enablestring" = xdisable; then
9420                   defaultval=yes
9421               else
9422                   defaultval=no
9423               fi
9424           fi
9425
9426           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9427 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9428           # Check whether --enable-richtext was given.
9429 if test "${enable_richtext+set}" = set; then
9430   enableval=$enable_richtext;
9431                           if test "$enableval" = yes; then
9432                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9433                           else
9434                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9435                           fi
9436
9437 else
9438
9439                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9440
9441 fi
9442
9443
9444           eval "$wx_cv_use_richtext"
9445
9446           if test x"$enablestring" = xdisable; then
9447             if test $wxUSE_RICHTEXT = no; then
9448               result=yes
9449             else
9450               result=no
9451             fi
9452           else
9453             result=$wxUSE_RICHTEXT
9454           fi
9455
9456           { echo "$as_me:$LINENO: result: $result" >&5
9457 echo "${ECHO_T}$result" >&6; }
9458
9459
9460           enablestring=
9461           defaultval=$wxUSE_ALL_FEATURES
9462           if test -z "$defaultval"; then
9463               if test x"$enablestring" = xdisable; then
9464                   defaultval=yes
9465               else
9466                   defaultval=no
9467               fi
9468           fi
9469
9470           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9471 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9472           # Check whether --enable-postscript was given.
9473 if test "${enable_postscript+set}" = set; then
9474   enableval=$enable_postscript;
9475                           if test "$enableval" = yes; then
9476                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9477                           else
9478                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9479                           fi
9480
9481 else
9482
9483                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9484
9485 fi
9486
9487
9488           eval "$wx_cv_use_postscript"
9489
9490           if test x"$enablestring" = xdisable; then
9491             if test $wxUSE_POSTSCRIPT = no; then
9492               result=yes
9493             else
9494               result=no
9495             fi
9496           else
9497             result=$wxUSE_POSTSCRIPT
9498           fi
9499
9500           { echo "$as_me:$LINENO: result: $result" >&5
9501 echo "${ECHO_T}$result" >&6; }
9502
9503
9504           enablestring=
9505           defaultval=$wxUSE_ALL_FEATURES
9506           if test -z "$defaultval"; then
9507               if test x"$enablestring" = xdisable; then
9508                   defaultval=yes
9509               else
9510                   defaultval=no
9511               fi
9512           fi
9513
9514           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9515 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9516           # Check whether --enable-printarch was given.
9517 if test "${enable_printarch+set}" = set; then
9518   enableval=$enable_printarch;
9519                           if test "$enableval" = yes; then
9520                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9521                           else
9522                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9523                           fi
9524
9525 else
9526
9527                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9528
9529 fi
9530
9531
9532           eval "$wx_cv_use_printarch"
9533
9534           if test x"$enablestring" = xdisable; then
9535             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9536               result=yes
9537             else
9538               result=no
9539             fi
9540           else
9541             result=$wxUSE_PRINTING_ARCHITECTURE
9542           fi
9543
9544           { echo "$as_me:$LINENO: result: $result" >&5
9545 echo "${ECHO_T}$result" >&6; }
9546
9547
9548           enablestring=
9549           defaultval=$wxUSE_ALL_FEATURES
9550           if test -z "$defaultval"; then
9551               if test x"$enablestring" = xdisable; then
9552                   defaultval=yes
9553               else
9554                   defaultval=no
9555               fi
9556           fi
9557
9558           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9559 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9560           # Check whether --enable-svg was given.
9561 if test "${enable_svg+set}" = set; then
9562   enableval=$enable_svg;
9563                           if test "$enableval" = yes; then
9564                             wx_cv_use_svg='wxUSE_SVG=yes'
9565                           else
9566                             wx_cv_use_svg='wxUSE_SVG=no'
9567                           fi
9568
9569 else
9570
9571                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9572
9573 fi
9574
9575
9576           eval "$wx_cv_use_svg"
9577
9578           if test x"$enablestring" = xdisable; then
9579             if test $wxUSE_SVG = no; then
9580               result=yes
9581             else
9582               result=no
9583             fi
9584           else
9585             result=$wxUSE_SVG
9586           fi
9587
9588           { echo "$as_me:$LINENO: result: $result" >&5
9589 echo "${ECHO_T}$result" >&6; }
9590
9591
9592           enablestring=
9593           defaultval=$wxUSE_ALL_FEATURES
9594           if test -z "$defaultval"; then
9595               if test x"$enablestring" = xdisable; then
9596                   defaultval=yes
9597               else
9598                   defaultval=no
9599               fi
9600           fi
9601
9602           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9603 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9604           # Check whether --enable-webkit was given.
9605 if test "${enable_webkit+set}" = set; then
9606   enableval=$enable_webkit;
9607                           if test "$enableval" = yes; then
9608                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9609                           else
9610                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9611                           fi
9612
9613 else
9614
9615                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9616
9617 fi
9618
9619
9620           eval "$wx_cv_use_webkit"
9621
9622           if test x"$enablestring" = xdisable; then
9623             if test $wxUSE_WEBKIT = no; then
9624               result=yes
9625             else
9626               result=no
9627             fi
9628           else
9629             result=$wxUSE_WEBKIT
9630           fi
9631
9632           { echo "$as_me:$LINENO: result: $result" >&5
9633 echo "${ECHO_T}$result" >&6; }
9634
9635
9636           enablestring=
9637           defaultval=$wxUSE_ALL_FEATURES
9638           if test -z "$defaultval"; then
9639               if test x"$enablestring" = xdisable; then
9640                   defaultval=yes
9641               else
9642                   defaultval=no
9643               fi
9644           fi
9645
9646           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webview" >&5
9647 echo $ECHO_N "checking for --${enablestring:-enable}-webview... $ECHO_C" >&6; }
9648           # Check whether --enable-webview was given.
9649 if test "${enable_webview+set}" = set; then
9650   enableval=$enable_webview;
9651                           if test "$enableval" = yes; then
9652                             wx_cv_use_webview='wxUSE_WEBVIEW=yes'
9653                           else
9654                             wx_cv_use_webview='wxUSE_WEBVIEW=no'
9655                           fi
9656
9657 else
9658
9659                           wx_cv_use_webview='wxUSE_WEBVIEW=${'DEFAULT_wxUSE_WEBVIEW":-$defaultval}"
9660
9661 fi
9662
9663
9664           eval "$wx_cv_use_webview"
9665
9666           if test x"$enablestring" = xdisable; then
9667             if test $wxUSE_WEBVIEW = no; then
9668               result=yes
9669             else
9670               result=no
9671             fi
9672           else
9673             result=$wxUSE_WEBVIEW
9674           fi
9675
9676           { echo "$as_me:$LINENO: result: $result" >&5
9677 echo "${ECHO_T}$result" >&6; }
9678
9679
9680 if test "$wxUSE_MAC" != 1; then
9681
9682           enablestring=
9683           defaultval=$wxUSE_ALL_FEATURES
9684           if test -z "$defaultval"; then
9685               if test x"$enablestring" = xdisable; then
9686                   defaultval=yes
9687               else
9688                   defaultval=no
9689               fi
9690           fi
9691
9692           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9693 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9694           # Check whether --enable-graphics_ctx was given.
9695 if test "${enable_graphics_ctx+set}" = set; then
9696   enableval=$enable_graphics_ctx;
9697                           if test "$enableval" = yes; then
9698                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9699                           else
9700                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9701                           fi
9702
9703 else
9704
9705                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9706
9707 fi
9708
9709
9710           eval "$wx_cv_use_graphics_ctx"
9711
9712           if test x"$enablestring" = xdisable; then
9713             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9714               result=yes
9715             else
9716               result=no
9717             fi
9718           else
9719             result=$wxUSE_GRAPHICS_CONTEXT
9720           fi
9721
9722           { echo "$as_me:$LINENO: result: $result" >&5
9723 echo "${ECHO_T}$result" >&6; }
9724
9725 fi
9726
9727
9728
9729           enablestring=
9730           defaultval=$wxUSE_ALL_FEATURES
9731           if test -z "$defaultval"; then
9732               if test x"$enablestring" = xdisable; then
9733                   defaultval=yes
9734               else
9735                   defaultval=no
9736               fi
9737           fi
9738
9739           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9740 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9741           # Check whether --enable-clipboard was given.
9742 if test "${enable_clipboard+set}" = set; then
9743   enableval=$enable_clipboard;
9744                           if test "$enableval" = yes; then
9745                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9746                           else
9747                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9748                           fi
9749
9750 else
9751
9752                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9753
9754 fi
9755
9756
9757           eval "$wx_cv_use_clipboard"
9758
9759           if test x"$enablestring" = xdisable; then
9760             if test $wxUSE_CLIPBOARD = no; then
9761               result=yes
9762             else
9763               result=no
9764             fi
9765           else
9766             result=$wxUSE_CLIPBOARD
9767           fi
9768
9769           { echo "$as_me:$LINENO: result: $result" >&5
9770 echo "${ECHO_T}$result" >&6; }
9771
9772
9773           enablestring=
9774           defaultval=$wxUSE_ALL_FEATURES
9775           if test -z "$defaultval"; then
9776               if test x"$enablestring" = xdisable; then
9777                   defaultval=yes
9778               else
9779                   defaultval=no
9780               fi
9781           fi
9782
9783           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9784 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9785           # Check whether --enable-dnd was given.
9786 if test "${enable_dnd+set}" = set; then
9787   enableval=$enable_dnd;
9788                           if test "$enableval" = yes; then
9789                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9790                           else
9791                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9792                           fi
9793
9794 else
9795
9796                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9797
9798 fi
9799
9800
9801           eval "$wx_cv_use_dnd"
9802
9803           if test x"$enablestring" = xdisable; then
9804             if test $wxUSE_DRAG_AND_DROP = no; then
9805               result=yes
9806             else
9807               result=no
9808             fi
9809           else
9810             result=$wxUSE_DRAG_AND_DROP
9811           fi
9812
9813           { echo "$as_me:$LINENO: result: $result" >&5
9814 echo "${ECHO_T}$result" >&6; }
9815
9816
9817
9818 DEFAULT_wxUSE_CONTROLS=none
9819
9820           enablestring=disable
9821           defaultval=
9822           if test -z "$defaultval"; then
9823               if test x"$enablestring" = xdisable; then
9824                   defaultval=yes
9825               else
9826                   defaultval=no
9827               fi
9828           fi
9829
9830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9831 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9832           # Check whether --enable-controls was given.
9833 if test "${enable_controls+set}" = set; then
9834   enableval=$enable_controls;
9835                           if test "$enableval" = yes; then
9836                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9837                           else
9838                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9839                           fi
9840
9841 else
9842
9843                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9844
9845 fi
9846
9847
9848           eval "$wx_cv_use_controls"
9849
9850           if test x"$enablestring" = xdisable; then
9851             if test $wxUSE_CONTROLS = no; then
9852               result=yes
9853             else
9854               result=no
9855             fi
9856           else
9857             result=$wxUSE_CONTROLS
9858           fi
9859
9860           { echo "$as_me:$LINENO: result: $result" >&5
9861 echo "${ECHO_T}$result" >&6; }
9862
9863
9864 if test "$wxUSE_CONTROLS" = "no"; then
9865     DEFAULT_wxUSE_ACCEL=no
9866     DEFAULT_wxUSE_ANIMATIONCTRL=no
9867     DEFAULT_wxUSE_BANNERWINDOW=no
9868     DEFAULT_wxUSE_BMPBUTTON=no
9869     DEFAULT_wxUSE_BUTTON=no
9870     DEFAULT_wxUSE_CALCTRL=no
9871     DEFAULT_wxUSE_CARET=no
9872     DEFAULT_wxUSE_CHECKBOX=no
9873     DEFAULT_wxUSE_CHECKLISTBOX=no
9874     DEFAULT_wxUSE_CHOICE=no
9875     DEFAULT_wxUSE_CHOICEBOOK=no
9876     DEFAULT_wxUSE_COLLPANE=no
9877     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9878     DEFAULT_wxUSE_COMBOBOX=no
9879     DEFAULT_wxUSE_COMBOBOX=no
9880     DEFAULT_wxUSE_COMMANDLINKBUTTON=no
9881     DEFAULT_wxUSE_DATAVIEWCTRL=no
9882     DEFAULT_wxUSE_DATEPICKCTRL=no
9883     DEFAULT_wxUSE_DETECT_SM=no
9884     DEFAULT_wxUSE_DIRPICKERCTRL=no
9885     DEFAULT_wxUSE_DISPLAY=no
9886     DEFAULT_wxUSE_FILECTRL=no
9887     DEFAULT_wxUSE_FILEPICKERCTRL=no
9888     DEFAULT_wxUSE_FONTPICKERCTRL=no
9889     DEFAULT_wxUSE_GAUGE=no
9890     DEFAULT_wxUSE_GRID=no
9891     DEFAULT_wxUSE_HEADERCTRL=no
9892     DEFAULT_wxUSE_HYPERLINKCTRL=no
9893     DEFAULT_wxUSE_IMAGLIST=no
9894     DEFAULT_wxUSE_LISTBOOK=no
9895     DEFAULT_wxUSE_LISTBOX=no
9896     DEFAULT_wxUSE_LISTCTRL=no
9897     DEFAULT_wxUSE_MARKUP=no
9898     DEFAULT_wxUSE_NOTEBOOK=no
9899     DEFAULT_wxUSE_POPUPWIN=no
9900     DEFAULT_wxUSE_RADIOBOX=no
9901     DEFAULT_wxUSE_RADIOBTN=no
9902     DEFAULT_wxUSE_RICHMSGDLG=no
9903     DEFAULT_wxUSE_REARRANGECTRL=no
9904     DEFAULT_wxUSE_SASH=no
9905     DEFAULT_wxUSE_SCROLLBAR=no
9906     DEFAULT_wxUSE_SEARCHCTRL=no
9907     DEFAULT_wxUSE_SLIDER=no
9908     DEFAULT_wxUSE_SPINBTN=no
9909     DEFAULT_wxUSE_SPINCTRL=no
9910     DEFAULT_wxUSE_SPLITTER=no
9911     DEFAULT_wxUSE_STATBMP=no
9912     DEFAULT_wxUSE_STATBOX=no
9913     DEFAULT_wxUSE_STATLINE=no
9914     DEFAULT_wxUSE_STATUSBAR=no
9915     DEFAULT_wxUSE_TIMEPICKCTRL=no
9916     DEFAULT_wxUSE_TIPWINDOW=no
9917     DEFAULT_wxUSE_TOGGLEBTN=no
9918     DEFAULT_wxUSE_TOOLBAR=no
9919     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9920     DEFAULT_wxUSE_TOOLBOOK=no
9921     DEFAULT_wxUSE_TOOLTIPS=no
9922     DEFAULT_wxUSE_TREEBOOK=no
9923     DEFAULT_wxUSE_TREECTRL=no
9924     DEFAULT_wxUSE_TREELISTCTRL=no
9925 fi
9926
9927
9928           enablestring=
9929           defaultval=$wxUSE_ALL_FEATURES
9930           if test -z "$defaultval"; then
9931               if test x"$enablestring" = xdisable; then
9932                   defaultval=yes
9933               else
9934                   defaultval=no
9935               fi
9936           fi
9937
9938           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-markup" >&5
9939 echo $ECHO_N "checking for --${enablestring:-enable}-markup... $ECHO_C" >&6; }
9940           # Check whether --enable-markup was given.
9941 if test "${enable_markup+set}" = set; then
9942   enableval=$enable_markup;
9943                           if test "$enableval" = yes; then
9944                             wx_cv_use_markup='wxUSE_MARKUP=yes'
9945                           else
9946                             wx_cv_use_markup='wxUSE_MARKUP=no'
9947                           fi
9948
9949 else
9950
9951                           wx_cv_use_markup='wxUSE_MARKUP=${'DEFAULT_wxUSE_MARKUP":-$defaultval}"
9952
9953 fi
9954
9955
9956           eval "$wx_cv_use_markup"
9957
9958           if test x"$enablestring" = xdisable; then
9959             if test $wxUSE_MARKUP = no; then
9960               result=yes
9961             else
9962               result=no
9963             fi
9964           else
9965             result=$wxUSE_MARKUP
9966           fi
9967
9968           { echo "$as_me:$LINENO: result: $result" >&5
9969 echo "${ECHO_T}$result" >&6; }
9970
9971
9972
9973           enablestring=
9974           defaultval=$wxUSE_ALL_FEATURES
9975           if test -z "$defaultval"; then
9976               if test x"$enablestring" = xdisable; then
9977                   defaultval=yes
9978               else
9979                   defaultval=no
9980               fi
9981           fi
9982
9983           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9984 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9985           # Check whether --enable-accel was given.
9986 if test "${enable_accel+set}" = set; then
9987   enableval=$enable_accel;
9988                           if test "$enableval" = yes; then
9989                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9990                           else
9991                             wx_cv_use_accel='wxUSE_ACCEL=no'
9992                           fi
9993
9994 else
9995
9996                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9997
9998 fi
9999
10000
10001           eval "$wx_cv_use_accel"
10002
10003           if test x"$enablestring" = xdisable; then
10004             if test $wxUSE_ACCEL = no; then
10005               result=yes
10006             else
10007               result=no
10008             fi
10009           else
10010             result=$wxUSE_ACCEL
10011           fi
10012
10013           { echo "$as_me:$LINENO: result: $result" >&5
10014 echo "${ECHO_T}$result" >&6; }
10015
10016
10017           enablestring=
10018           defaultval=$wxUSE_ALL_FEATURES
10019           if test -z "$defaultval"; then
10020               if test x"$enablestring" = xdisable; then
10021                   defaultval=yes
10022               else
10023                   defaultval=no
10024               fi
10025           fi
10026
10027           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10028 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10029           # Check whether --enable-animatectrl was given.
10030 if test "${enable_animatectrl+set}" = set; then
10031   enableval=$enable_animatectrl;
10032                           if test "$enableval" = yes; then
10033                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10034                           else
10035                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10036                           fi
10037
10038 else
10039
10040                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10041
10042 fi
10043
10044
10045           eval "$wx_cv_use_animatectrl"
10046
10047           if test x"$enablestring" = xdisable; then
10048             if test $wxUSE_ANIMATIONCTRL = no; then
10049               result=yes
10050             else
10051               result=no
10052             fi
10053           else
10054             result=$wxUSE_ANIMATIONCTRL
10055           fi
10056
10057           { echo "$as_me:$LINENO: result: $result" >&5
10058 echo "${ECHO_T}$result" >&6; }
10059
10060
10061           enablestring=
10062           defaultval=$wxUSE_ALL_FEATURES
10063           if test -z "$defaultval"; then
10064               if test x"$enablestring" = xdisable; then
10065                   defaultval=yes
10066               else
10067                   defaultval=no
10068               fi
10069           fi
10070
10071           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bannerwindow" >&5
10072 echo $ECHO_N "checking for --${enablestring:-enable}-bannerwindow... $ECHO_C" >&6; }
10073           # Check whether --enable-bannerwindow was given.
10074 if test "${enable_bannerwindow+set}" = set; then
10075   enableval=$enable_bannerwindow;
10076                           if test "$enableval" = yes; then
10077                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=yes'
10078                           else
10079                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=no'
10080                           fi
10081
10082 else
10083
10084                           wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=${'DEFAULT_wxUSE_BANNERWINDOW":-$defaultval}"
10085
10086 fi
10087
10088
10089           eval "$wx_cv_use_bannerwindow"
10090
10091           if test x"$enablestring" = xdisable; then
10092             if test $wxUSE_BANNERWINDOW = no; then
10093               result=yes
10094             else
10095               result=no
10096             fi
10097           else
10098             result=$wxUSE_BANNERWINDOW
10099           fi
10100
10101           { echo "$as_me:$LINENO: result: $result" >&5
10102 echo "${ECHO_T}$result" >&6; }
10103
10104
10105           enablestring=
10106           defaultval=$wxUSE_ALL_FEATURES
10107           if test -z "$defaultval"; then
10108               if test x"$enablestring" = xdisable; then
10109                   defaultval=yes
10110               else
10111                   defaultval=no
10112               fi
10113           fi
10114
10115           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-artstd" >&5
10116 echo $ECHO_N "checking for --${enablestring:-enable}-artstd... $ECHO_C" >&6; }
10117           # Check whether --enable-artstd was given.
10118 if test "${enable_artstd+set}" = set; then
10119   enableval=$enable_artstd;
10120                           if test "$enableval" = yes; then
10121                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=yes'
10122                           else
10123                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=no'
10124                           fi
10125
10126 else
10127
10128                           wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=${'DEFAULT_wxUSE_ARTPROVIDER_STD":-$defaultval}"
10129
10130 fi
10131
10132
10133           eval "$wx_cv_use_artstd"
10134
10135           if test x"$enablestring" = xdisable; then
10136             if test $wxUSE_ARTPROVIDER_STD = no; then
10137               result=yes
10138             else
10139               result=no
10140             fi
10141           else
10142             result=$wxUSE_ARTPROVIDER_STD
10143           fi
10144
10145           { echo "$as_me:$LINENO: result: $result" >&5
10146 echo "${ECHO_T}$result" >&6; }
10147
10148
10149           enablestring=
10150           defaultval=$wxUSE_ALL_FEATURES
10151           if test -z "$defaultval"; then
10152               if test x"$enablestring" = xdisable; then
10153                   defaultval=yes
10154               else
10155                   defaultval=no
10156               fi
10157           fi
10158
10159           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arttango" >&5
10160 echo $ECHO_N "checking for --${enablestring:-enable}-arttango... $ECHO_C" >&6; }
10161           # Check whether --enable-arttango was given.
10162 if test "${enable_arttango+set}" = set; then
10163   enableval=$enable_arttango;
10164                           if test "$enableval" = yes; then
10165                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=yes'
10166                           else
10167                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=no'
10168                           fi
10169
10170 else
10171
10172                           wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=${'DEFAULT_wxUSE_ARTPROVIDER_TANGO":-$defaultval}"
10173
10174 fi
10175
10176
10177           eval "$wx_cv_use_arttango"
10178
10179           if test x"$enablestring" = xdisable; then
10180             if test $wxUSE_ARTPROVIDER_TANGO = no; then
10181               result=yes
10182             else
10183               result=no
10184             fi
10185           else
10186             result=$wxUSE_ARTPROVIDER_TANGO
10187           fi
10188
10189           { echo "$as_me:$LINENO: result: $result" >&5
10190 echo "${ECHO_T}$result" >&6; }
10191
10192
10193           enablestring=
10194           defaultval=$wxUSE_ALL_FEATURES
10195           if test -z "$defaultval"; then
10196               if test x"$enablestring" = xdisable; then
10197                   defaultval=yes
10198               else
10199                   defaultval=no
10200               fi
10201           fi
10202
10203           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10204 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10205           # Check whether --enable-bmpbutton was given.
10206 if test "${enable_bmpbutton+set}" = set; then
10207   enableval=$enable_bmpbutton;
10208                           if test "$enableval" = yes; then
10209                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10210                           else
10211                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10212                           fi
10213
10214 else
10215
10216                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10217
10218 fi
10219
10220
10221           eval "$wx_cv_use_bmpbutton"
10222
10223           if test x"$enablestring" = xdisable; then
10224             if test $wxUSE_BMPBUTTON = no; then
10225               result=yes
10226             else
10227               result=no
10228             fi
10229           else
10230             result=$wxUSE_BMPBUTTON
10231           fi
10232
10233           { echo "$as_me:$LINENO: result: $result" >&5
10234 echo "${ECHO_T}$result" >&6; }
10235
10236
10237           enablestring=
10238           defaultval=$wxUSE_ALL_FEATURES
10239           if test -z "$defaultval"; then
10240               if test x"$enablestring" = xdisable; then
10241                   defaultval=yes
10242               else
10243                   defaultval=no
10244               fi
10245           fi
10246
10247           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10248 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10249           # Check whether --enable-bmpcombobox was given.
10250 if test "${enable_bmpcombobox+set}" = set; then
10251   enableval=$enable_bmpcombobox;
10252                           if test "$enableval" = yes; then
10253                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10254                           else
10255                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10256                           fi
10257
10258 else
10259
10260                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10261
10262 fi
10263
10264
10265           eval "$wx_cv_use_bmpcombobox"
10266
10267           if test x"$enablestring" = xdisable; then
10268             if test $wxUSE_BITMAPCOMBOBOX = no; then
10269               result=yes
10270             else
10271               result=no
10272             fi
10273           else
10274             result=$wxUSE_BITMAPCOMBOBOX
10275           fi
10276
10277           { echo "$as_me:$LINENO: result: $result" >&5
10278 echo "${ECHO_T}$result" >&6; }
10279
10280
10281           enablestring=
10282           defaultval=$wxUSE_ALL_FEATURES
10283           if test -z "$defaultval"; then
10284               if test x"$enablestring" = xdisable; then
10285                   defaultval=yes
10286               else
10287                   defaultval=no
10288               fi
10289           fi
10290
10291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10292 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10293           # Check whether --enable-button was given.
10294 if test "${enable_button+set}" = set; then
10295   enableval=$enable_button;
10296                           if test "$enableval" = yes; then
10297                             wx_cv_use_button='wxUSE_BUTTON=yes'
10298                           else
10299                             wx_cv_use_button='wxUSE_BUTTON=no'
10300                           fi
10301
10302 else
10303
10304                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10305
10306 fi
10307
10308
10309           eval "$wx_cv_use_button"
10310
10311           if test x"$enablestring" = xdisable; then
10312             if test $wxUSE_BUTTON = no; then
10313               result=yes
10314             else
10315               result=no
10316             fi
10317           else
10318             result=$wxUSE_BUTTON
10319           fi
10320
10321           { echo "$as_me:$LINENO: result: $result" >&5
10322 echo "${ECHO_T}$result" >&6; }
10323
10324
10325           enablestring=
10326           defaultval=$wxUSE_ALL_FEATURES
10327           if test -z "$defaultval"; then
10328               if test x"$enablestring" = xdisable; then
10329                   defaultval=yes
10330               else
10331                   defaultval=no
10332               fi
10333           fi
10334
10335           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10336 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10337           # Check whether --enable-calendar was given.
10338 if test "${enable_calendar+set}" = set; then
10339   enableval=$enable_calendar;
10340                           if test "$enableval" = yes; then
10341                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10342                           else
10343                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10344                           fi
10345
10346 else
10347
10348                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10349
10350 fi
10351
10352
10353           eval "$wx_cv_use_calendar"
10354
10355           if test x"$enablestring" = xdisable; then
10356             if test $wxUSE_CALCTRL = no; then
10357               result=yes
10358             else
10359               result=no
10360             fi
10361           else
10362             result=$wxUSE_CALCTRL
10363           fi
10364
10365           { echo "$as_me:$LINENO: result: $result" >&5
10366 echo "${ECHO_T}$result" >&6; }
10367
10368
10369           enablestring=
10370           defaultval=$wxUSE_ALL_FEATURES
10371           if test -z "$defaultval"; then
10372               if test x"$enablestring" = xdisable; then
10373                   defaultval=yes
10374               else
10375                   defaultval=no
10376               fi
10377           fi
10378
10379           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10380 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10381           # Check whether --enable-caret was given.
10382 if test "${enable_caret+set}" = set; then
10383   enableval=$enable_caret;
10384                           if test "$enableval" = yes; then
10385                             wx_cv_use_caret='wxUSE_CARET=yes'
10386                           else
10387                             wx_cv_use_caret='wxUSE_CARET=no'
10388                           fi
10389
10390 else
10391
10392                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10393
10394 fi
10395
10396
10397           eval "$wx_cv_use_caret"
10398
10399           if test x"$enablestring" = xdisable; then
10400             if test $wxUSE_CARET = no; then
10401               result=yes
10402             else
10403               result=no
10404             fi
10405           else
10406             result=$wxUSE_CARET
10407           fi
10408
10409           { echo "$as_me:$LINENO: result: $result" >&5
10410 echo "${ECHO_T}$result" >&6; }
10411
10412
10413           enablestring=
10414           defaultval=$wxUSE_ALL_FEATURES
10415           if test -z "$defaultval"; then
10416               if test x"$enablestring" = xdisable; then
10417                   defaultval=yes
10418               else
10419                   defaultval=no
10420               fi
10421           fi
10422
10423           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10424 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10425           # Check whether --enable-checkbox was given.
10426 if test "${enable_checkbox+set}" = set; then
10427   enableval=$enable_checkbox;
10428                           if test "$enableval" = yes; then
10429                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10430                           else
10431                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10432                           fi
10433
10434 else
10435
10436                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10437
10438 fi
10439
10440
10441           eval "$wx_cv_use_checkbox"
10442
10443           if test x"$enablestring" = xdisable; then
10444             if test $wxUSE_CHECKBOX = no; then
10445               result=yes
10446             else
10447               result=no
10448             fi
10449           else
10450             result=$wxUSE_CHECKBOX
10451           fi
10452
10453           { echo "$as_me:$LINENO: result: $result" >&5
10454 echo "${ECHO_T}$result" >&6; }
10455
10456
10457           enablestring=
10458           defaultval=$wxUSE_ALL_FEATURES
10459           if test -z "$defaultval"; then
10460               if test x"$enablestring" = xdisable; then
10461                   defaultval=yes
10462               else
10463                   defaultval=no
10464               fi
10465           fi
10466
10467           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10468 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10469           # Check whether --enable-checklst was given.
10470 if test "${enable_checklst+set}" = set; then
10471   enableval=$enable_checklst;
10472                           if test "$enableval" = yes; then
10473                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10474                           else
10475                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10476                           fi
10477
10478 else
10479
10480                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10481
10482 fi
10483
10484
10485           eval "$wx_cv_use_checklst"
10486
10487           if test x"$enablestring" = xdisable; then
10488             if test $wxUSE_CHECKLST = no; then
10489               result=yes
10490             else
10491               result=no
10492             fi
10493           else
10494             result=$wxUSE_CHECKLST
10495           fi
10496
10497           { echo "$as_me:$LINENO: result: $result" >&5
10498 echo "${ECHO_T}$result" >&6; }
10499
10500
10501           enablestring=
10502           defaultval=$wxUSE_ALL_FEATURES
10503           if test -z "$defaultval"; then
10504               if test x"$enablestring" = xdisable; then
10505                   defaultval=yes
10506               else
10507                   defaultval=no
10508               fi
10509           fi
10510
10511           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10512 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10513           # Check whether --enable-choice was given.
10514 if test "${enable_choice+set}" = set; then
10515   enableval=$enable_choice;
10516                           if test "$enableval" = yes; then
10517                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10518                           else
10519                             wx_cv_use_choice='wxUSE_CHOICE=no'
10520                           fi
10521
10522 else
10523
10524                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10525
10526 fi
10527
10528
10529           eval "$wx_cv_use_choice"
10530
10531           if test x"$enablestring" = xdisable; then
10532             if test $wxUSE_CHOICE = no; then
10533               result=yes
10534             else
10535               result=no
10536             fi
10537           else
10538             result=$wxUSE_CHOICE
10539           fi
10540
10541           { echo "$as_me:$LINENO: result: $result" >&5
10542 echo "${ECHO_T}$result" >&6; }
10543
10544
10545           enablestring=
10546           defaultval=$wxUSE_ALL_FEATURES
10547           if test -z "$defaultval"; then
10548               if test x"$enablestring" = xdisable; then
10549                   defaultval=yes
10550               else
10551                   defaultval=no
10552               fi
10553           fi
10554
10555           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10556 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10557           # Check whether --enable-choicebook was given.
10558 if test "${enable_choicebook+set}" = set; then
10559   enableval=$enable_choicebook;
10560                           if test "$enableval" = yes; then
10561                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10562                           else
10563                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10564                           fi
10565
10566 else
10567
10568                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10569
10570 fi
10571
10572
10573           eval "$wx_cv_use_choicebook"
10574
10575           if test x"$enablestring" = xdisable; then
10576             if test $wxUSE_CHOICEBOOK = no; then
10577               result=yes
10578             else
10579               result=no
10580             fi
10581           else
10582             result=$wxUSE_CHOICEBOOK
10583           fi
10584
10585           { echo "$as_me:$LINENO: result: $result" >&5
10586 echo "${ECHO_T}$result" >&6; }
10587
10588
10589           enablestring=
10590           defaultval=$wxUSE_ALL_FEATURES
10591           if test -z "$defaultval"; then
10592               if test x"$enablestring" = xdisable; then
10593                   defaultval=yes
10594               else
10595                   defaultval=no
10596               fi
10597           fi
10598
10599           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10600 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10601           # Check whether --enable-collpane was given.
10602 if test "${enable_collpane+set}" = set; then
10603   enableval=$enable_collpane;
10604                           if test "$enableval" = yes; then
10605                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10606                           else
10607                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10608                           fi
10609
10610 else
10611
10612                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10613
10614 fi
10615
10616
10617           eval "$wx_cv_use_collpane"
10618
10619           if test x"$enablestring" = xdisable; then
10620             if test $wxUSE_COLLPANE = no; then
10621               result=yes
10622             else
10623               result=no
10624             fi
10625           else
10626             result=$wxUSE_COLLPANE
10627           fi
10628
10629           { echo "$as_me:$LINENO: result: $result" >&5
10630 echo "${ECHO_T}$result" >&6; }
10631
10632
10633           enablestring=
10634           defaultval=$wxUSE_ALL_FEATURES
10635           if test -z "$defaultval"; then
10636               if test x"$enablestring" = xdisable; then
10637                   defaultval=yes
10638               else
10639                   defaultval=no
10640               fi
10641           fi
10642
10643           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10644 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10645           # Check whether --enable-colourpicker was given.
10646 if test "${enable_colourpicker+set}" = set; then
10647   enableval=$enable_colourpicker;
10648                           if test "$enableval" = yes; then
10649                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10650                           else
10651                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10652                           fi
10653
10654 else
10655
10656                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10657
10658 fi
10659
10660
10661           eval "$wx_cv_use_colourpicker"
10662
10663           if test x"$enablestring" = xdisable; then
10664             if test $wxUSE_COLOURPICKERCTRL = no; then
10665               result=yes
10666             else
10667               result=no
10668             fi
10669           else
10670             result=$wxUSE_COLOURPICKERCTRL
10671           fi
10672
10673           { echo "$as_me:$LINENO: result: $result" >&5
10674 echo "${ECHO_T}$result" >&6; }
10675
10676
10677           enablestring=
10678           defaultval=$wxUSE_ALL_FEATURES
10679           if test -z "$defaultval"; then
10680               if test x"$enablestring" = xdisable; then
10681                   defaultval=yes
10682               else
10683                   defaultval=no
10684               fi
10685           fi
10686
10687           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10688 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10689           # Check whether --enable-combobox was given.
10690 if test "${enable_combobox+set}" = set; then
10691   enableval=$enable_combobox;
10692                           if test "$enableval" = yes; then
10693                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10694                           else
10695                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10696                           fi
10697
10698 else
10699
10700                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10701
10702 fi
10703
10704
10705           eval "$wx_cv_use_combobox"
10706
10707           if test x"$enablestring" = xdisable; then
10708             if test $wxUSE_COMBOBOX = no; then
10709               result=yes
10710             else
10711               result=no
10712             fi
10713           else
10714             result=$wxUSE_COMBOBOX
10715           fi
10716
10717           { echo "$as_me:$LINENO: result: $result" >&5
10718 echo "${ECHO_T}$result" >&6; }
10719
10720
10721           enablestring=
10722           defaultval=$wxUSE_ALL_FEATURES
10723           if test -z "$defaultval"; then
10724               if test x"$enablestring" = xdisable; then
10725                   defaultval=yes
10726               else
10727                   defaultval=no
10728               fi
10729           fi
10730
10731           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10732 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10733           # Check whether --enable-comboctrl was given.
10734 if test "${enable_comboctrl+set}" = set; then
10735   enableval=$enable_comboctrl;
10736                           if test "$enableval" = yes; then
10737                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10738                           else
10739                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10740                           fi
10741
10742 else
10743
10744                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10745
10746 fi
10747
10748
10749           eval "$wx_cv_use_comboctrl"
10750
10751           if test x"$enablestring" = xdisable; then
10752             if test $wxUSE_COMBOCTRL = no; then
10753               result=yes
10754             else
10755               result=no
10756             fi
10757           else
10758             result=$wxUSE_COMBOCTRL
10759           fi
10760
10761           { echo "$as_me:$LINENO: result: $result" >&5
10762 echo "${ECHO_T}$result" >&6; }
10763
10764
10765           enablestring=
10766           defaultval=$wxUSE_ALL_FEATURES
10767           if test -z "$defaultval"; then
10768               if test x"$enablestring" = xdisable; then
10769                   defaultval=yes
10770               else
10771                   defaultval=no
10772               fi
10773           fi
10774
10775           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commandlinkbutton" >&5
10776 echo $ECHO_N "checking for --${enablestring:-enable}-commandlinkbutton... $ECHO_C" >&6; }
10777           # Check whether --enable-commandlinkbutton was given.
10778 if test "${enable_commandlinkbutton+set}" = set; then
10779   enableval=$enable_commandlinkbutton;
10780                           if test "$enableval" = yes; then
10781                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=yes'
10782                           else
10783                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=no'
10784                           fi
10785
10786 else
10787
10788                           wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=${'DEFAULT_wxUSE_COMMANDLINKBUTTON":-$defaultval}"
10789
10790 fi
10791
10792
10793           eval "$wx_cv_use_commandlinkbutton"
10794
10795           if test x"$enablestring" = xdisable; then
10796             if test $wxUSE_COMMANDLINKBUTTON = no; then
10797               result=yes
10798             else
10799               result=no
10800             fi
10801           else
10802             result=$wxUSE_COMMANDLINKBUTTON
10803           fi
10804
10805           { echo "$as_me:$LINENO: result: $result" >&5
10806 echo "${ECHO_T}$result" >&6; }
10807
10808
10809           enablestring=
10810           defaultval=$wxUSE_ALL_FEATURES
10811           if test -z "$defaultval"; then
10812               if test x"$enablestring" = xdisable; then
10813                   defaultval=yes
10814               else
10815                   defaultval=no
10816               fi
10817           fi
10818
10819           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10820 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10821           # Check whether --enable-dataviewctrl was given.
10822 if test "${enable_dataviewctrl+set}" = set; then
10823   enableval=$enable_dataviewctrl;
10824                           if test "$enableval" = yes; then
10825                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10826                           else
10827                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10828                           fi
10829
10830 else
10831
10832                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10833
10834 fi
10835
10836
10837           eval "$wx_cv_use_dataviewctrl"
10838
10839           if test x"$enablestring" = xdisable; then
10840             if test $wxUSE_DATAVIEWCTRL = no; then
10841               result=yes
10842             else
10843               result=no
10844             fi
10845           else
10846             result=$wxUSE_DATAVIEWCTRL
10847           fi
10848
10849           { echo "$as_me:$LINENO: result: $result" >&5
10850 echo "${ECHO_T}$result" >&6; }
10851
10852
10853           enablestring=
10854           defaultval=$wxUSE_ALL_FEATURES
10855           if test -z "$defaultval"; then
10856               if test x"$enablestring" = xdisable; then
10857                   defaultval=yes
10858               else
10859                   defaultval=no
10860               fi
10861           fi
10862
10863           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10864 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10865           # Check whether --enable-datepick was given.
10866 if test "${enable_datepick+set}" = set; then
10867   enableval=$enable_datepick;
10868                           if test "$enableval" = yes; then
10869                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10870                           else
10871                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10872                           fi
10873
10874 else
10875
10876                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10877
10878 fi
10879
10880
10881           eval "$wx_cv_use_datepick"
10882
10883           if test x"$enablestring" = xdisable; then
10884             if test $wxUSE_DATEPICKCTRL = no; then
10885               result=yes
10886             else
10887               result=no
10888             fi
10889           else
10890             result=$wxUSE_DATEPICKCTRL
10891           fi
10892
10893           { echo "$as_me:$LINENO: result: $result" >&5
10894 echo "${ECHO_T}$result" >&6; }
10895
10896
10897           enablestring=
10898           defaultval=$wxUSE_ALL_FEATURES
10899           if test -z "$defaultval"; then
10900               if test x"$enablestring" = xdisable; then
10901                   defaultval=yes
10902               else
10903                   defaultval=no
10904               fi
10905           fi
10906
10907           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10908 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10909           # Check whether --enable-detect_sm was given.
10910 if test "${enable_detect_sm+set}" = set; then
10911   enableval=$enable_detect_sm;
10912                           if test "$enableval" = yes; then
10913                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10914                           else
10915                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10916                           fi
10917
10918 else
10919
10920                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10921
10922 fi
10923
10924
10925           eval "$wx_cv_use_detect_sm"
10926
10927           if test x"$enablestring" = xdisable; then
10928             if test $wxUSE_DETECT_SM = no; then
10929               result=yes
10930             else
10931               result=no
10932             fi
10933           else
10934             result=$wxUSE_DETECT_SM
10935           fi
10936
10937           { echo "$as_me:$LINENO: result: $result" >&5
10938 echo "${ECHO_T}$result" >&6; }
10939
10940
10941           enablestring=
10942           defaultval=$wxUSE_ALL_FEATURES
10943           if test -z "$defaultval"; then
10944               if test x"$enablestring" = xdisable; then
10945                   defaultval=yes
10946               else
10947                   defaultval=no
10948               fi
10949           fi
10950
10951           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10952 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10953           # Check whether --enable-dirpicker was given.
10954 if test "${enable_dirpicker+set}" = set; then
10955   enableval=$enable_dirpicker;
10956                           if test "$enableval" = yes; then
10957                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10958                           else
10959                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10960                           fi
10961
10962 else
10963
10964                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10965
10966 fi
10967
10968
10969           eval "$wx_cv_use_dirpicker"
10970
10971           if test x"$enablestring" = xdisable; then
10972             if test $wxUSE_DIRPICKERCTRL = no; then
10973               result=yes
10974             else
10975               result=no
10976             fi
10977           else
10978             result=$wxUSE_DIRPICKERCTRL
10979           fi
10980
10981           { echo "$as_me:$LINENO: result: $result" >&5
10982 echo "${ECHO_T}$result" >&6; }
10983
10984
10985           enablestring=
10986           defaultval=$wxUSE_ALL_FEATURES
10987           if test -z "$defaultval"; then
10988               if test x"$enablestring" = xdisable; then
10989                   defaultval=yes
10990               else
10991                   defaultval=no
10992               fi
10993           fi
10994
10995           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10996 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10997           # Check whether --enable-display was given.
10998 if test "${enable_display+set}" = set; then
10999   enableval=$enable_display;
11000                           if test "$enableval" = yes; then
11001                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11002                           else
11003                             wx_cv_use_display='wxUSE_DISPLAY=no'
11004                           fi
11005
11006 else
11007
11008                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11009
11010 fi
11011
11012
11013           eval "$wx_cv_use_display"
11014
11015           if test x"$enablestring" = xdisable; then
11016             if test $wxUSE_DISPLAY = no; then
11017               result=yes
11018             else
11019               result=no
11020             fi
11021           else
11022             result=$wxUSE_DISPLAY
11023           fi
11024
11025           { echo "$as_me:$LINENO: result: $result" >&5
11026 echo "${ECHO_T}$result" >&6; }
11027
11028
11029           enablestring=
11030           defaultval=$wxUSE_ALL_FEATURES
11031           if test -z "$defaultval"; then
11032               if test x"$enablestring" = xdisable; then
11033                   defaultval=yes
11034               else
11035                   defaultval=no
11036               fi
11037           fi
11038
11039           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11040 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11041           # Check whether --enable-editablebox was given.
11042 if test "${enable_editablebox+set}" = set; then
11043   enableval=$enable_editablebox;
11044                           if test "$enableval" = yes; then
11045                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11046                           else
11047                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11048                           fi
11049
11050 else
11051
11052                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11053
11054 fi
11055
11056
11057           eval "$wx_cv_use_editablebox"
11058
11059           if test x"$enablestring" = xdisable; then
11060             if test $wxUSE_EDITABLELISTBOX = no; then
11061               result=yes
11062             else
11063               result=no
11064             fi
11065           else
11066             result=$wxUSE_EDITABLELISTBOX
11067           fi
11068
11069           { echo "$as_me:$LINENO: result: $result" >&5
11070 echo "${ECHO_T}$result" >&6; }
11071
11072
11073           enablestring=
11074           defaultval=$wxUSE_ALL_FEATURES
11075           if test -z "$defaultval"; then
11076               if test x"$enablestring" = xdisable; then
11077                   defaultval=yes
11078               else
11079                   defaultval=no
11080               fi
11081           fi
11082
11083           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
11084 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
11085           # Check whether --enable-filectrl was given.
11086 if test "${enable_filectrl+set}" = set; then
11087   enableval=$enable_filectrl;
11088                           if test "$enableval" = yes; then
11089                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
11090                           else
11091                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
11092                           fi
11093
11094 else
11095
11096                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
11097
11098 fi
11099
11100
11101           eval "$wx_cv_use_filectrl"
11102
11103           if test x"$enablestring" = xdisable; then
11104             if test $wxUSE_FILECTRL = no; then
11105               result=yes
11106             else
11107               result=no
11108             fi
11109           else
11110             result=$wxUSE_FILECTRL
11111           fi
11112
11113           { echo "$as_me:$LINENO: result: $result" >&5
11114 echo "${ECHO_T}$result" >&6; }
11115
11116
11117           enablestring=
11118           defaultval=$wxUSE_ALL_FEATURES
11119           if test -z "$defaultval"; then
11120               if test x"$enablestring" = xdisable; then
11121                   defaultval=yes
11122               else
11123                   defaultval=no
11124               fi
11125           fi
11126
11127           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11128 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11129           # Check whether --enable-filepicker was given.
11130 if test "${enable_filepicker+set}" = set; then
11131   enableval=$enable_filepicker;
11132                           if test "$enableval" = yes; then
11133                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11134                           else
11135                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11136                           fi
11137
11138 else
11139
11140                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11141
11142 fi
11143
11144
11145           eval "$wx_cv_use_filepicker"
11146
11147           if test x"$enablestring" = xdisable; then
11148             if test $wxUSE_FILEPICKERCTRL = no; then
11149               result=yes
11150             else
11151               result=no
11152             fi
11153           else
11154             result=$wxUSE_FILEPICKERCTRL
11155           fi
11156
11157           { echo "$as_me:$LINENO: result: $result" >&5
11158 echo "${ECHO_T}$result" >&6; }
11159
11160
11161           enablestring=
11162           defaultval=$wxUSE_ALL_FEATURES
11163           if test -z "$defaultval"; then
11164               if test x"$enablestring" = xdisable; then
11165                   defaultval=yes
11166               else
11167                   defaultval=no
11168               fi
11169           fi
11170
11171           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11172 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11173           # Check whether --enable-fontpicker was given.
11174 if test "${enable_fontpicker+set}" = set; then
11175   enableval=$enable_fontpicker;
11176                           if test "$enableval" = yes; then
11177                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11178                           else
11179                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11180                           fi
11181
11182 else
11183
11184                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11185
11186 fi
11187
11188
11189           eval "$wx_cv_use_fontpicker"
11190
11191           if test x"$enablestring" = xdisable; then
11192             if test $wxUSE_FONTPICKERCTRL = no; then
11193               result=yes
11194             else
11195               result=no
11196             fi
11197           else
11198             result=$wxUSE_FONTPICKERCTRL
11199           fi
11200
11201           { echo "$as_me:$LINENO: result: $result" >&5
11202 echo "${ECHO_T}$result" >&6; }
11203
11204
11205           enablestring=
11206           defaultval=$wxUSE_ALL_FEATURES
11207           if test -z "$defaultval"; then
11208               if test x"$enablestring" = xdisable; then
11209                   defaultval=yes
11210               else
11211                   defaultval=no
11212               fi
11213           fi
11214
11215           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11216 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11217           # Check whether --enable-gauge was given.
11218 if test "${enable_gauge+set}" = set; then
11219   enableval=$enable_gauge;
11220                           if test "$enableval" = yes; then
11221                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11222                           else
11223                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11224                           fi
11225
11226 else
11227
11228                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11229
11230 fi
11231
11232
11233           eval "$wx_cv_use_gauge"
11234
11235           if test x"$enablestring" = xdisable; then
11236             if test $wxUSE_GAUGE = no; then
11237               result=yes
11238             else
11239               result=no
11240             fi
11241           else
11242             result=$wxUSE_GAUGE
11243           fi
11244
11245           { echo "$as_me:$LINENO: result: $result" >&5
11246 echo "${ECHO_T}$result" >&6; }
11247
11248
11249           enablestring=
11250           defaultval=$wxUSE_ALL_FEATURES
11251           if test -z "$defaultval"; then
11252               if test x"$enablestring" = xdisable; then
11253                   defaultval=yes
11254               else
11255                   defaultval=no
11256               fi
11257           fi
11258
11259           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11260 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11261           # Check whether --enable-grid was given.
11262 if test "${enable_grid+set}" = set; then
11263   enableval=$enable_grid;
11264                           if test "$enableval" = yes; then
11265                             wx_cv_use_grid='wxUSE_GRID=yes'
11266                           else
11267                             wx_cv_use_grid='wxUSE_GRID=no'
11268                           fi
11269
11270 else
11271
11272                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11273
11274 fi
11275
11276
11277           eval "$wx_cv_use_grid"
11278
11279           if test x"$enablestring" = xdisable; then
11280             if test $wxUSE_GRID = no; then
11281               result=yes
11282             else
11283               result=no
11284             fi
11285           else
11286             result=$wxUSE_GRID
11287           fi
11288
11289           { echo "$as_me:$LINENO: result: $result" >&5
11290 echo "${ECHO_T}$result" >&6; }
11291
11292
11293           enablestring=
11294           defaultval=$wxUSE_ALL_FEATURES
11295           if test -z "$defaultval"; then
11296               if test x"$enablestring" = xdisable; then
11297                   defaultval=yes
11298               else
11299                   defaultval=no
11300               fi
11301           fi
11302
11303           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
11304 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
11305           # Check whether --enable-headerctrl was given.
11306 if test "${enable_headerctrl+set}" = set; then
11307   enableval=$enable_headerctrl;
11308                           if test "$enableval" = yes; then
11309                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
11310                           else
11311                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
11312                           fi
11313
11314 else
11315
11316                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
11317
11318 fi
11319
11320
11321           eval "$wx_cv_use_headerctrl"
11322
11323           if test x"$enablestring" = xdisable; then
11324             if test $wxUSE_HEADERCTRL = no; then
11325               result=yes
11326             else
11327               result=no
11328             fi
11329           else
11330             result=$wxUSE_HEADERCTRL
11331           fi
11332
11333           { echo "$as_me:$LINENO: result: $result" >&5
11334 echo "${ECHO_T}$result" >&6; }
11335
11336
11337           enablestring=
11338           defaultval=$wxUSE_ALL_FEATURES
11339           if test -z "$defaultval"; then
11340               if test x"$enablestring" = xdisable; then
11341                   defaultval=yes
11342               else
11343                   defaultval=no
11344               fi
11345           fi
11346
11347           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11348 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11349           # Check whether --enable-hyperlink was given.
11350 if test "${enable_hyperlink+set}" = set; then
11351   enableval=$enable_hyperlink;
11352                           if test "$enableval" = yes; then
11353                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11354                           else
11355                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11356                           fi
11357
11358 else
11359
11360                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11361
11362 fi
11363
11364
11365           eval "$wx_cv_use_hyperlink"
11366
11367           if test x"$enablestring" = xdisable; then
11368             if test $wxUSE_HYPERLINKCTRL = no; then
11369               result=yes
11370             else
11371               result=no
11372             fi
11373           else
11374             result=$wxUSE_HYPERLINKCTRL
11375           fi
11376
11377           { echo "$as_me:$LINENO: result: $result" >&5
11378 echo "${ECHO_T}$result" >&6; }
11379
11380
11381           enablestring=
11382           defaultval=$wxUSE_ALL_FEATURES
11383           if test -z "$defaultval"; then
11384               if test x"$enablestring" = xdisable; then
11385                   defaultval=yes
11386               else
11387                   defaultval=no
11388               fi
11389           fi
11390
11391           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11392 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11393           # Check whether --enable-imaglist was given.
11394 if test "${enable_imaglist+set}" = set; then
11395   enableval=$enable_imaglist;
11396                           if test "$enableval" = yes; then
11397                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11398                           else
11399                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11400                           fi
11401
11402 else
11403
11404                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11405
11406 fi
11407
11408
11409           eval "$wx_cv_use_imaglist"
11410
11411           if test x"$enablestring" = xdisable; then
11412             if test $wxUSE_IMAGLIST = no; then
11413               result=yes
11414             else
11415               result=no
11416             fi
11417           else
11418             result=$wxUSE_IMAGLIST
11419           fi
11420
11421           { echo "$as_me:$LINENO: result: $result" >&5
11422 echo "${ECHO_T}$result" >&6; }
11423
11424
11425           enablestring=
11426           defaultval=$wxUSE_ALL_FEATURES
11427           if test -z "$defaultval"; then
11428               if test x"$enablestring" = xdisable; then
11429                   defaultval=yes
11430               else
11431                   defaultval=no
11432               fi
11433           fi
11434
11435           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11436 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11437           # Check whether --enable-infobar was given.
11438 if test "${enable_infobar+set}" = set; then
11439   enableval=$enable_infobar;
11440                           if test "$enableval" = yes; then
11441                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11442                           else
11443                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11444                           fi
11445
11446 else
11447
11448                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11449
11450 fi
11451
11452
11453           eval "$wx_cv_use_infobar"
11454
11455           if test x"$enablestring" = xdisable; then
11456             if test $wxUSE_INFOBAR = no; then
11457               result=yes
11458             else
11459               result=no
11460             fi
11461           else
11462             result=$wxUSE_INFOBAR
11463           fi
11464
11465           { echo "$as_me:$LINENO: result: $result" >&5
11466 echo "${ECHO_T}$result" >&6; }
11467
11468
11469           enablestring=
11470           defaultval=$wxUSE_ALL_FEATURES
11471           if test -z "$defaultval"; then
11472               if test x"$enablestring" = xdisable; then
11473                   defaultval=yes
11474               else
11475                   defaultval=no
11476               fi
11477           fi
11478
11479           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11480 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11481           # Check whether --enable-listbook was given.
11482 if test "${enable_listbook+set}" = set; then
11483   enableval=$enable_listbook;
11484                           if test "$enableval" = yes; then
11485                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11486                           else
11487                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11488                           fi
11489
11490 else
11491
11492                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11493
11494 fi
11495
11496
11497           eval "$wx_cv_use_listbook"
11498
11499           if test x"$enablestring" = xdisable; then
11500             if test $wxUSE_LISTBOOK = no; then
11501               result=yes
11502             else
11503               result=no
11504             fi
11505           else
11506             result=$wxUSE_LISTBOOK
11507           fi
11508
11509           { echo "$as_me:$LINENO: result: $result" >&5
11510 echo "${ECHO_T}$result" >&6; }
11511
11512
11513           enablestring=
11514           defaultval=$wxUSE_ALL_FEATURES
11515           if test -z "$defaultval"; then
11516               if test x"$enablestring" = xdisable; then
11517                   defaultval=yes
11518               else
11519                   defaultval=no
11520               fi
11521           fi
11522
11523           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11524 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11525           # Check whether --enable-listbox was given.
11526 if test "${enable_listbox+set}" = set; then
11527   enableval=$enable_listbox;
11528                           if test "$enableval" = yes; then
11529                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11530                           else
11531                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11532                           fi
11533
11534 else
11535
11536                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11537
11538 fi
11539
11540
11541           eval "$wx_cv_use_listbox"
11542
11543           if test x"$enablestring" = xdisable; then
11544             if test $wxUSE_LISTBOX = no; then
11545               result=yes
11546             else
11547               result=no
11548             fi
11549           else
11550             result=$wxUSE_LISTBOX
11551           fi
11552
11553           { echo "$as_me:$LINENO: result: $result" >&5
11554 echo "${ECHO_T}$result" >&6; }
11555
11556
11557           enablestring=
11558           defaultval=$wxUSE_ALL_FEATURES
11559           if test -z "$defaultval"; then
11560               if test x"$enablestring" = xdisable; then
11561                   defaultval=yes
11562               else
11563                   defaultval=no
11564               fi
11565           fi
11566
11567           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11568 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11569           # Check whether --enable-listctrl was given.
11570 if test "${enable_listctrl+set}" = set; then
11571   enableval=$enable_listctrl;
11572                           if test "$enableval" = yes; then
11573                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11574                           else
11575                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11576                           fi
11577
11578 else
11579
11580                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11581
11582 fi
11583
11584
11585           eval "$wx_cv_use_listctrl"
11586
11587           if test x"$enablestring" = xdisable; then
11588             if test $wxUSE_LISTCTRL = no; then
11589               result=yes
11590             else
11591               result=no
11592             fi
11593           else
11594             result=$wxUSE_LISTCTRL
11595           fi
11596
11597           { echo "$as_me:$LINENO: result: $result" >&5
11598 echo "${ECHO_T}$result" >&6; }
11599
11600
11601           enablestring=
11602           defaultval=$wxUSE_ALL_FEATURES
11603           if test -z "$defaultval"; then
11604               if test x"$enablestring" = xdisable; then
11605                   defaultval=yes
11606               else
11607                   defaultval=no
11608               fi
11609           fi
11610
11611           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11612 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11613           # Check whether --enable-notebook was given.
11614 if test "${enable_notebook+set}" = set; then
11615   enableval=$enable_notebook;
11616                           if test "$enableval" = yes; then
11617                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11618                           else
11619                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11620                           fi
11621
11622 else
11623
11624                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11625
11626 fi
11627
11628
11629           eval "$wx_cv_use_notebook"
11630
11631           if test x"$enablestring" = xdisable; then
11632             if test $wxUSE_NOTEBOOK = no; then
11633               result=yes
11634             else
11635               result=no
11636             fi
11637           else
11638             result=$wxUSE_NOTEBOOK
11639           fi
11640
11641           { echo "$as_me:$LINENO: result: $result" >&5
11642 echo "${ECHO_T}$result" >&6; }
11643
11644
11645           enablestring=
11646           defaultval=$wxUSE_ALL_FEATURES
11647           if test -z "$defaultval"; then
11648               if test x"$enablestring" = xdisable; then
11649                   defaultval=yes
11650               else
11651                   defaultval=no
11652               fi
11653           fi
11654
11655           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11656 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11657           # Check whether --enable-notifmsg was given.
11658 if test "${enable_notifmsg+set}" = set; then
11659   enableval=$enable_notifmsg;
11660                           if test "$enableval" = yes; then
11661                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11662                           else
11663                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11664                           fi
11665
11666 else
11667
11668                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11669
11670 fi
11671
11672
11673           eval "$wx_cv_use_notifmsg"
11674
11675           if test x"$enablestring" = xdisable; then
11676             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11677               result=yes
11678             else
11679               result=no
11680             fi
11681           else
11682             result=$wxUSE_NOTIFICATION_MESSAGE
11683           fi
11684
11685           { echo "$as_me:$LINENO: result: $result" >&5
11686 echo "${ECHO_T}$result" >&6; }
11687
11688
11689           enablestring=
11690           defaultval=$wxUSE_ALL_FEATURES
11691           if test -z "$defaultval"; then
11692               if test x"$enablestring" = xdisable; then
11693                   defaultval=yes
11694               else
11695                   defaultval=no
11696               fi
11697           fi
11698
11699           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11700 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11701           # Check whether --enable-odcombobox was given.
11702 if test "${enable_odcombobox+set}" = set; then
11703   enableval=$enable_odcombobox;
11704                           if test "$enableval" = yes; then
11705                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11706                           else
11707                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11708                           fi
11709
11710 else
11711
11712                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11713
11714 fi
11715
11716
11717           eval "$wx_cv_use_odcombobox"
11718
11719           if test x"$enablestring" = xdisable; then
11720             if test $wxUSE_ODCOMBOBOX = no; then
11721               result=yes
11722             else
11723               result=no
11724             fi
11725           else
11726             result=$wxUSE_ODCOMBOBOX
11727           fi
11728
11729           { echo "$as_me:$LINENO: result: $result" >&5
11730 echo "${ECHO_T}$result" >&6; }
11731
11732
11733           enablestring=
11734           defaultval=$wxUSE_ALL_FEATURES
11735           if test -z "$defaultval"; then
11736               if test x"$enablestring" = xdisable; then
11737                   defaultval=yes
11738               else
11739                   defaultval=no
11740               fi
11741           fi
11742
11743           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11744 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11745           # Check whether --enable-popupwin was given.
11746 if test "${enable_popupwin+set}" = set; then
11747   enableval=$enable_popupwin;
11748                           if test "$enableval" = yes; then
11749                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11750                           else
11751                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11752                           fi
11753
11754 else
11755
11756                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11757
11758 fi
11759
11760
11761           eval "$wx_cv_use_popupwin"
11762
11763           if test x"$enablestring" = xdisable; then
11764             if test $wxUSE_POPUPWIN = no; then
11765               result=yes
11766             else
11767               result=no
11768             fi
11769           else
11770             result=$wxUSE_POPUPWIN
11771           fi
11772
11773           { echo "$as_me:$LINENO: result: $result" >&5
11774 echo "${ECHO_T}$result" >&6; }
11775
11776
11777           enablestring=
11778           defaultval=$wxUSE_ALL_FEATURES
11779           if test -z "$defaultval"; then
11780               if test x"$enablestring" = xdisable; then
11781                   defaultval=yes
11782               else
11783                   defaultval=no
11784               fi
11785           fi
11786
11787           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11788 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11789           # Check whether --enable-radiobox was given.
11790 if test "${enable_radiobox+set}" = set; then
11791   enableval=$enable_radiobox;
11792                           if test "$enableval" = yes; then
11793                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11794                           else
11795                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11796                           fi
11797
11798 else
11799
11800                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11801
11802 fi
11803
11804
11805           eval "$wx_cv_use_radiobox"
11806
11807           if test x"$enablestring" = xdisable; then
11808             if test $wxUSE_RADIOBOX = no; then
11809               result=yes
11810             else
11811               result=no
11812             fi
11813           else
11814             result=$wxUSE_RADIOBOX
11815           fi
11816
11817           { echo "$as_me:$LINENO: result: $result" >&5
11818 echo "${ECHO_T}$result" >&6; }
11819
11820
11821           enablestring=
11822           defaultval=$wxUSE_ALL_FEATURES
11823           if test -z "$defaultval"; then
11824               if test x"$enablestring" = xdisable; then
11825                   defaultval=yes
11826               else
11827                   defaultval=no
11828               fi
11829           fi
11830
11831           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11832 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11833           # Check whether --enable-radiobtn was given.
11834 if test "${enable_radiobtn+set}" = set; then
11835   enableval=$enable_radiobtn;
11836                           if test "$enableval" = yes; then
11837                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11838                           else
11839                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11840                           fi
11841
11842 else
11843
11844                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11845
11846 fi
11847
11848
11849           eval "$wx_cv_use_radiobtn"
11850
11851           if test x"$enablestring" = xdisable; then
11852             if test $wxUSE_RADIOBTN = no; then
11853               result=yes
11854             else
11855               result=no
11856             fi
11857           else
11858             result=$wxUSE_RADIOBTN
11859           fi
11860
11861           { echo "$as_me:$LINENO: result: $result" >&5
11862 echo "${ECHO_T}$result" >&6; }
11863
11864
11865           enablestring=
11866           defaultval=$wxUSE_ALL_FEATURES
11867           if test -z "$defaultval"; then
11868               if test x"$enablestring" = xdisable; then
11869                   defaultval=yes
11870               else
11871                   defaultval=no
11872               fi
11873           fi
11874
11875           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richmsgdlg" >&5
11876 echo $ECHO_N "checking for --${enablestring:-enable}-richmsgdlg... $ECHO_C" >&6; }
11877           # Check whether --enable-richmsgdlg was given.
11878 if test "${enable_richmsgdlg+set}" = set; then
11879   enableval=$enable_richmsgdlg;
11880                           if test "$enableval" = yes; then
11881                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=yes'
11882                           else
11883                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=no'
11884                           fi
11885
11886 else
11887
11888                           wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=${'DEFAULT_wxUSE_RICHMSGDLG":-$defaultval}"
11889
11890 fi
11891
11892
11893           eval "$wx_cv_use_richmsgdlg"
11894
11895           if test x"$enablestring" = xdisable; then
11896             if test $wxUSE_RICHMSGDLG = no; then
11897               result=yes
11898             else
11899               result=no
11900             fi
11901           else
11902             result=$wxUSE_RICHMSGDLG
11903           fi
11904
11905           { echo "$as_me:$LINENO: result: $result" >&5
11906 echo "${ECHO_T}$result" >&6; }
11907
11908
11909           enablestring=
11910           defaultval=$wxUSE_ALL_FEATURES
11911           if test -z "$defaultval"; then
11912               if test x"$enablestring" = xdisable; then
11913                   defaultval=yes
11914               else
11915                   defaultval=no
11916               fi
11917           fi
11918
11919           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11920 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11921           # Check whether --enable-rearrangectrl was given.
11922 if test "${enable_rearrangectrl+set}" = set; then
11923   enableval=$enable_rearrangectrl;
11924                           if test "$enableval" = yes; then
11925                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11926                           else
11927                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11928                           fi
11929
11930 else
11931
11932                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11933
11934 fi
11935
11936
11937           eval "$wx_cv_use_rearrangectrl"
11938
11939           if test x"$enablestring" = xdisable; then
11940             if test $wxUSE_REARRANGECTRL = no; then
11941               result=yes
11942             else
11943               result=no
11944             fi
11945           else
11946             result=$wxUSE_REARRANGECTRL
11947           fi
11948
11949           { echo "$as_me:$LINENO: result: $result" >&5
11950 echo "${ECHO_T}$result" >&6; }
11951
11952
11953           enablestring=
11954           defaultval=$wxUSE_ALL_FEATURES
11955           if test -z "$defaultval"; then
11956               if test x"$enablestring" = xdisable; then
11957                   defaultval=yes
11958               else
11959                   defaultval=no
11960               fi
11961           fi
11962
11963           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11964 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11965           # Check whether --enable-sash was given.
11966 if test "${enable_sash+set}" = set; then
11967   enableval=$enable_sash;
11968                           if test "$enableval" = yes; then
11969                             wx_cv_use_sash='wxUSE_SASH=yes'
11970                           else
11971                             wx_cv_use_sash='wxUSE_SASH=no'
11972                           fi
11973
11974 else
11975
11976                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11977
11978 fi
11979
11980
11981           eval "$wx_cv_use_sash"
11982
11983           if test x"$enablestring" = xdisable; then
11984             if test $wxUSE_SASH = no; then
11985               result=yes
11986             else
11987               result=no
11988             fi
11989           else
11990             result=$wxUSE_SASH
11991           fi
11992
11993           { echo "$as_me:$LINENO: result: $result" >&5
11994 echo "${ECHO_T}$result" >&6; }
11995
11996
11997           enablestring=
11998           defaultval=$wxUSE_ALL_FEATURES
11999           if test -z "$defaultval"; then
12000               if test x"$enablestring" = xdisable; then
12001                   defaultval=yes
12002               else
12003                   defaultval=no
12004               fi
12005           fi
12006
12007           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12008 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12009           # Check whether --enable-scrollbar was given.
12010 if test "${enable_scrollbar+set}" = set; then
12011   enableval=$enable_scrollbar;
12012                           if test "$enableval" = yes; then
12013                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12014                           else
12015                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12016                           fi
12017
12018 else
12019
12020                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12021
12022 fi
12023
12024
12025           eval "$wx_cv_use_scrollbar"
12026
12027           if test x"$enablestring" = xdisable; then
12028             if test $wxUSE_SCROLLBAR = no; then
12029               result=yes
12030             else
12031               result=no
12032             fi
12033           else
12034             result=$wxUSE_SCROLLBAR
12035           fi
12036
12037           { echo "$as_me:$LINENO: result: $result" >&5
12038 echo "${ECHO_T}$result" >&6; }
12039
12040
12041           enablestring=
12042           defaultval=$wxUSE_ALL_FEATURES
12043           if test -z "$defaultval"; then
12044               if test x"$enablestring" = xdisable; then
12045                   defaultval=yes
12046               else
12047                   defaultval=no
12048               fi
12049           fi
12050
12051           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12052 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12053           # Check whether --enable-searchctrl was given.
12054 if test "${enable_searchctrl+set}" = set; then
12055   enableval=$enable_searchctrl;
12056                           if test "$enableval" = yes; then
12057                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12058                           else
12059                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12060                           fi
12061
12062 else
12063
12064                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12065
12066 fi
12067
12068
12069           eval "$wx_cv_use_searchctrl"
12070
12071           if test x"$enablestring" = xdisable; then
12072             if test $wxUSE_SEARCHCTRL = no; then
12073               result=yes
12074             else
12075               result=no
12076             fi
12077           else
12078             result=$wxUSE_SEARCHCTRL
12079           fi
12080
12081           { echo "$as_me:$LINENO: result: $result" >&5
12082 echo "${ECHO_T}$result" >&6; }
12083
12084
12085           enablestring=
12086           defaultval=$wxUSE_ALL_FEATURES
12087           if test -z "$defaultval"; then
12088               if test x"$enablestring" = xdisable; then
12089                   defaultval=yes
12090               else
12091                   defaultval=no
12092               fi
12093           fi
12094
12095           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12096 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12097           # Check whether --enable-slider was given.
12098 if test "${enable_slider+set}" = set; then
12099   enableval=$enable_slider;
12100                           if test "$enableval" = yes; then
12101                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12102                           else
12103                             wx_cv_use_slider='wxUSE_SLIDER=no'
12104                           fi
12105
12106 else
12107
12108                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12109
12110 fi
12111
12112
12113           eval "$wx_cv_use_slider"
12114
12115           if test x"$enablestring" = xdisable; then
12116             if test $wxUSE_SLIDER = no; then
12117               result=yes
12118             else
12119               result=no
12120             fi
12121           else
12122             result=$wxUSE_SLIDER
12123           fi
12124
12125           { echo "$as_me:$LINENO: result: $result" >&5
12126 echo "${ECHO_T}$result" >&6; }
12127
12128
12129           enablestring=
12130           defaultval=$wxUSE_ALL_FEATURES
12131           if test -z "$defaultval"; then
12132               if test x"$enablestring" = xdisable; then
12133                   defaultval=yes
12134               else
12135                   defaultval=no
12136               fi
12137           fi
12138
12139           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12140 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12141           # Check whether --enable-spinbtn was given.
12142 if test "${enable_spinbtn+set}" = set; then
12143   enableval=$enable_spinbtn;
12144                           if test "$enableval" = yes; then
12145                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12146                           else
12147                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12148                           fi
12149
12150 else
12151
12152                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12153
12154 fi
12155
12156
12157           eval "$wx_cv_use_spinbtn"
12158
12159           if test x"$enablestring" = xdisable; then
12160             if test $wxUSE_SPINBTN = no; then
12161               result=yes
12162             else
12163               result=no
12164             fi
12165           else
12166             result=$wxUSE_SPINBTN
12167           fi
12168
12169           { echo "$as_me:$LINENO: result: $result" >&5
12170 echo "${ECHO_T}$result" >&6; }
12171
12172
12173           enablestring=
12174           defaultval=$wxUSE_ALL_FEATURES
12175           if test -z "$defaultval"; then
12176               if test x"$enablestring" = xdisable; then
12177                   defaultval=yes
12178               else
12179                   defaultval=no
12180               fi
12181           fi
12182
12183           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12184 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12185           # Check whether --enable-spinctrl was given.
12186 if test "${enable_spinctrl+set}" = set; then
12187   enableval=$enable_spinctrl;
12188                           if test "$enableval" = yes; then
12189                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12190                           else
12191                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12192                           fi
12193
12194 else
12195
12196                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12197
12198 fi
12199
12200
12201           eval "$wx_cv_use_spinctrl"
12202
12203           if test x"$enablestring" = xdisable; then
12204             if test $wxUSE_SPINCTRL = no; then
12205               result=yes
12206             else
12207               result=no
12208             fi
12209           else
12210             result=$wxUSE_SPINCTRL
12211           fi
12212
12213           { echo "$as_me:$LINENO: result: $result" >&5
12214 echo "${ECHO_T}$result" >&6; }
12215
12216
12217           enablestring=
12218           defaultval=$wxUSE_ALL_FEATURES
12219           if test -z "$defaultval"; then
12220               if test x"$enablestring" = xdisable; then
12221                   defaultval=yes
12222               else
12223                   defaultval=no
12224               fi
12225           fi
12226
12227           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12228 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12229           # Check whether --enable-splitter was given.
12230 if test "${enable_splitter+set}" = set; then
12231   enableval=$enable_splitter;
12232                           if test "$enableval" = yes; then
12233                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12234                           else
12235                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12236                           fi
12237
12238 else
12239
12240                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12241
12242 fi
12243
12244
12245           eval "$wx_cv_use_splitter"
12246
12247           if test x"$enablestring" = xdisable; then
12248             if test $wxUSE_SPLITTER = no; then
12249               result=yes
12250             else
12251               result=no
12252             fi
12253           else
12254             result=$wxUSE_SPLITTER
12255           fi
12256
12257           { echo "$as_me:$LINENO: result: $result" >&5
12258 echo "${ECHO_T}$result" >&6; }
12259
12260
12261           enablestring=
12262           defaultval=$wxUSE_ALL_FEATURES
12263           if test -z "$defaultval"; then
12264               if test x"$enablestring" = xdisable; then
12265                   defaultval=yes
12266               else
12267                   defaultval=no
12268               fi
12269           fi
12270
12271           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12272 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12273           # Check whether --enable-statbmp was given.
12274 if test "${enable_statbmp+set}" = set; then
12275   enableval=$enable_statbmp;
12276                           if test "$enableval" = yes; then
12277                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12278                           else
12279                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12280                           fi
12281
12282 else
12283
12284                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12285
12286 fi
12287
12288
12289           eval "$wx_cv_use_statbmp"
12290
12291           if test x"$enablestring" = xdisable; then
12292             if test $wxUSE_STATBMP = no; then
12293               result=yes
12294             else
12295               result=no
12296             fi
12297           else
12298             result=$wxUSE_STATBMP
12299           fi
12300
12301           { echo "$as_me:$LINENO: result: $result" >&5
12302 echo "${ECHO_T}$result" >&6; }
12303
12304
12305           enablestring=
12306           defaultval=$wxUSE_ALL_FEATURES
12307           if test -z "$defaultval"; then
12308               if test x"$enablestring" = xdisable; then
12309                   defaultval=yes
12310               else
12311                   defaultval=no
12312               fi
12313           fi
12314
12315           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12316 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12317           # Check whether --enable-statbox was given.
12318 if test "${enable_statbox+set}" = set; then
12319   enableval=$enable_statbox;
12320                           if test "$enableval" = yes; then
12321                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12322                           else
12323                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12324                           fi
12325
12326 else
12327
12328                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12329
12330 fi
12331
12332
12333           eval "$wx_cv_use_statbox"
12334
12335           if test x"$enablestring" = xdisable; then
12336             if test $wxUSE_STATBOX = no; then
12337               result=yes
12338             else
12339               result=no
12340             fi
12341           else
12342             result=$wxUSE_STATBOX
12343           fi
12344
12345           { echo "$as_me:$LINENO: result: $result" >&5
12346 echo "${ECHO_T}$result" >&6; }
12347
12348
12349           enablestring=
12350           defaultval=$wxUSE_ALL_FEATURES
12351           if test -z "$defaultval"; then
12352               if test x"$enablestring" = xdisable; then
12353                   defaultval=yes
12354               else
12355                   defaultval=no
12356               fi
12357           fi
12358
12359           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12360 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12361           # Check whether --enable-statline was given.
12362 if test "${enable_statline+set}" = set; then
12363   enableval=$enable_statline;
12364                           if test "$enableval" = yes; then
12365                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12366                           else
12367                             wx_cv_use_statline='wxUSE_STATLINE=no'
12368                           fi
12369
12370 else
12371
12372                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12373
12374 fi
12375
12376
12377           eval "$wx_cv_use_statline"
12378
12379           if test x"$enablestring" = xdisable; then
12380             if test $wxUSE_STATLINE = no; then
12381               result=yes
12382             else
12383               result=no
12384             fi
12385           else
12386             result=$wxUSE_STATLINE
12387           fi
12388
12389           { echo "$as_me:$LINENO: result: $result" >&5
12390 echo "${ECHO_T}$result" >&6; }
12391
12392
12393           enablestring=
12394           defaultval=$wxUSE_ALL_FEATURES
12395           if test -z "$defaultval"; then
12396               if test x"$enablestring" = xdisable; then
12397                   defaultval=yes
12398               else
12399                   defaultval=no
12400               fi
12401           fi
12402
12403           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12404 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12405           # Check whether --enable-stattext was given.
12406 if test "${enable_stattext+set}" = set; then
12407   enableval=$enable_stattext;
12408                           if test "$enableval" = yes; then
12409                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12410                           else
12411                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12412                           fi
12413
12414 else
12415
12416                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12417
12418 fi
12419
12420
12421           eval "$wx_cv_use_stattext"
12422
12423           if test x"$enablestring" = xdisable; then
12424             if test $wxUSE_STATTEXT = no; then
12425               result=yes
12426             else
12427               result=no
12428             fi
12429           else
12430             result=$wxUSE_STATTEXT
12431           fi
12432
12433           { echo "$as_me:$LINENO: result: $result" >&5
12434 echo "${ECHO_T}$result" >&6; }
12435
12436
12437           enablestring=
12438           defaultval=$wxUSE_ALL_FEATURES
12439           if test -z "$defaultval"; then
12440               if test x"$enablestring" = xdisable; then
12441                   defaultval=yes
12442               else
12443                   defaultval=no
12444               fi
12445           fi
12446
12447           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12448 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12449           # Check whether --enable-statusbar was given.
12450 if test "${enable_statusbar+set}" = set; then
12451   enableval=$enable_statusbar;
12452                           if test "$enableval" = yes; then
12453                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12454                           else
12455                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12456                           fi
12457
12458 else
12459
12460                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12461
12462 fi
12463
12464
12465           eval "$wx_cv_use_statusbar"
12466
12467           if test x"$enablestring" = xdisable; then
12468             if test $wxUSE_STATUSBAR = no; then
12469               result=yes
12470             else
12471               result=no
12472             fi
12473           else
12474             result=$wxUSE_STATUSBAR
12475           fi
12476
12477           { echo "$as_me:$LINENO: result: $result" >&5
12478 echo "${ECHO_T}$result" >&6; }
12479
12480
12481           enablestring=
12482           defaultval=$wxUSE_ALL_FEATURES
12483           if test -z "$defaultval"; then
12484               if test x"$enablestring" = xdisable; then
12485                   defaultval=yes
12486               else
12487                   defaultval=no
12488               fi
12489           fi
12490
12491           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12492 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12493           # Check whether --enable-taskbaricon was given.
12494 if test "${enable_taskbaricon+set}" = set; then
12495   enableval=$enable_taskbaricon;
12496                           if test "$enableval" = yes; then
12497                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12498                           else
12499                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12500                           fi
12501
12502 else
12503
12504                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12505
12506 fi
12507
12508
12509           eval "$wx_cv_use_taskbaricon"
12510
12511           if test x"$enablestring" = xdisable; then
12512             if test $wxUSE_TASKBARICON = no; then
12513               result=yes
12514             else
12515               result=no
12516             fi
12517           else
12518             result=$wxUSE_TASKBARICON
12519           fi
12520
12521           { echo "$as_me:$LINENO: result: $result" >&5
12522 echo "${ECHO_T}$result" >&6; }
12523
12524
12525           enablestring=
12526           defaultval=$wxUSE_ALL_FEATURES
12527           if test -z "$defaultval"; then
12528               if test x"$enablestring" = xdisable; then
12529                   defaultval=yes
12530               else
12531                   defaultval=no
12532               fi
12533           fi
12534
12535           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12536 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12537           # Check whether --enable-tbarnative was given.
12538 if test "${enable_tbarnative+set}" = set; then
12539   enableval=$enable_tbarnative;
12540                           if test "$enableval" = yes; then
12541                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12542                           else
12543                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12544                           fi
12545
12546 else
12547
12548                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12549
12550 fi
12551
12552
12553           eval "$wx_cv_use_tbarnative"
12554
12555           if test x"$enablestring" = xdisable; then
12556             if test $wxUSE_TOOLBAR_NATIVE = no; then
12557               result=yes
12558             else
12559               result=no
12560             fi
12561           else
12562             result=$wxUSE_TOOLBAR_NATIVE
12563           fi
12564
12565           { echo "$as_me:$LINENO: result: $result" >&5
12566 echo "${ECHO_T}$result" >&6; }
12567
12568
12569           enablestring=
12570           defaultval=$wxUSE_ALL_FEATURES
12571           if test -z "$defaultval"; then
12572               if test x"$enablestring" = xdisable; then
12573                   defaultval=yes
12574               else
12575                   defaultval=no
12576               fi
12577           fi
12578
12579           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12580 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12581           # Check whether --enable-textctrl was given.
12582 if test "${enable_textctrl+set}" = set; then
12583   enableval=$enable_textctrl;
12584                           if test "$enableval" = yes; then
12585                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12586                           else
12587                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12588                           fi
12589
12590 else
12591
12592                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12593
12594 fi
12595
12596
12597           eval "$wx_cv_use_textctrl"
12598
12599           if test x"$enablestring" = xdisable; then
12600             if test $wxUSE_TEXTCTRL = no; then
12601               result=yes
12602             else
12603               result=no
12604             fi
12605           else
12606             result=$wxUSE_TEXTCTRL
12607           fi
12608
12609           { echo "$as_me:$LINENO: result: $result" >&5
12610 echo "${ECHO_T}$result" >&6; }
12611
12612
12613           enablestring=
12614           defaultval=$wxUSE_ALL_FEATURES
12615           if test -z "$defaultval"; then
12616               if test x"$enablestring" = xdisable; then
12617                   defaultval=yes
12618               else
12619                   defaultval=no
12620               fi
12621           fi
12622
12623           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
12624 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
12625           # Check whether --enable-datepick was given.
12626 if test "${enable_datepick+set}" = set; then
12627   enableval=$enable_datepick;
12628                           if test "$enableval" = yes; then
12629                             wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=yes'
12630                           else
12631                             wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=no'
12632                           fi
12633
12634 else
12635
12636                           wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=${'DEFAULT_wxUSE_TIMEPICKCTRL":-$defaultval}"
12637
12638 fi
12639
12640
12641           eval "$wx_cv_use_datepick"
12642
12643           if test x"$enablestring" = xdisable; then
12644             if test $wxUSE_TIMEPICKCTRL = no; then
12645               result=yes
12646             else
12647               result=no
12648             fi
12649           else
12650             result=$wxUSE_TIMEPICKCTRL
12651           fi
12652
12653           { echo "$as_me:$LINENO: result: $result" >&5
12654 echo "${ECHO_T}$result" >&6; }
12655
12656
12657           enablestring=
12658           defaultval=$wxUSE_ALL_FEATURES
12659           if test -z "$defaultval"; then
12660               if test x"$enablestring" = xdisable; then
12661                   defaultval=yes
12662               else
12663                   defaultval=no
12664               fi
12665           fi
12666
12667           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12668 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12669           # Check whether --enable-tipwindow was given.
12670 if test "${enable_tipwindow+set}" = set; then
12671   enableval=$enable_tipwindow;
12672                           if test "$enableval" = yes; then
12673                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12674                           else
12675                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12676                           fi
12677
12678 else
12679
12680                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12681
12682 fi
12683
12684
12685           eval "$wx_cv_use_tipwindow"
12686
12687           if test x"$enablestring" = xdisable; then
12688             if test $wxUSE_TIPWINDOW = no; then
12689               result=yes
12690             else
12691               result=no
12692             fi
12693           else
12694             result=$wxUSE_TIPWINDOW
12695           fi
12696
12697           { echo "$as_me:$LINENO: result: $result" >&5
12698 echo "${ECHO_T}$result" >&6; }
12699
12700
12701           enablestring=
12702           defaultval=$wxUSE_ALL_FEATURES
12703           if test -z "$defaultval"; then
12704               if test x"$enablestring" = xdisable; then
12705                   defaultval=yes
12706               else
12707                   defaultval=no
12708               fi
12709           fi
12710
12711           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12712 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12713           # Check whether --enable-togglebtn was given.
12714 if test "${enable_togglebtn+set}" = set; then
12715   enableval=$enable_togglebtn;
12716                           if test "$enableval" = yes; then
12717                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12718                           else
12719                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12720                           fi
12721
12722 else
12723
12724                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12725
12726 fi
12727
12728
12729           eval "$wx_cv_use_togglebtn"
12730
12731           if test x"$enablestring" = xdisable; then
12732             if test $wxUSE_TOGGLEBTN = no; then
12733               result=yes
12734             else
12735               result=no
12736             fi
12737           else
12738             result=$wxUSE_TOGGLEBTN
12739           fi
12740
12741           { echo "$as_me:$LINENO: result: $result" >&5
12742 echo "${ECHO_T}$result" >&6; }
12743
12744
12745           enablestring=
12746           defaultval=$wxUSE_ALL_FEATURES
12747           if test -z "$defaultval"; then
12748               if test x"$enablestring" = xdisable; then
12749                   defaultval=yes
12750               else
12751                   defaultval=no
12752               fi
12753           fi
12754
12755           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12756 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12757           # Check whether --enable-toolbar was given.
12758 if test "${enable_toolbar+set}" = set; then
12759   enableval=$enable_toolbar;
12760                           if test "$enableval" = yes; then
12761                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12762                           else
12763                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12764                           fi
12765
12766 else
12767
12768                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12769
12770 fi
12771
12772
12773           eval "$wx_cv_use_toolbar"
12774
12775           if test x"$enablestring" = xdisable; then
12776             if test $wxUSE_TOOLBAR = no; then
12777               result=yes
12778             else
12779               result=no
12780             fi
12781           else
12782             result=$wxUSE_TOOLBAR
12783           fi
12784
12785           { echo "$as_me:$LINENO: result: $result" >&5
12786 echo "${ECHO_T}$result" >&6; }
12787
12788
12789           enablestring=
12790           defaultval=$wxUSE_ALL_FEATURES
12791           if test -z "$defaultval"; then
12792               if test x"$enablestring" = xdisable; then
12793                   defaultval=yes
12794               else
12795                   defaultval=no
12796               fi
12797           fi
12798
12799           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12800 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12801           # Check whether --enable-toolbook was given.
12802 if test "${enable_toolbook+set}" = set; then
12803   enableval=$enable_toolbook;
12804                           if test "$enableval" = yes; then
12805                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12806                           else
12807                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12808                           fi
12809
12810 else
12811
12812                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12813
12814 fi
12815
12816
12817           eval "$wx_cv_use_toolbook"
12818
12819           if test x"$enablestring" = xdisable; then
12820             if test $wxUSE_TOOLBOOK = no; then
12821               result=yes
12822             else
12823               result=no
12824             fi
12825           else
12826             result=$wxUSE_TOOLBOOK
12827           fi
12828
12829           { echo "$as_me:$LINENO: result: $result" >&5
12830 echo "${ECHO_T}$result" >&6; }
12831
12832
12833           enablestring=
12834           defaultval=$wxUSE_ALL_FEATURES
12835           if test -z "$defaultval"; then
12836               if test x"$enablestring" = xdisable; then
12837                   defaultval=yes
12838               else
12839                   defaultval=no
12840               fi
12841           fi
12842
12843           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12844 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12845           # Check whether --enable-treebook was given.
12846 if test "${enable_treebook+set}" = set; then
12847   enableval=$enable_treebook;
12848                           if test "$enableval" = yes; then
12849                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12850                           else
12851                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12852                           fi
12853
12854 else
12855
12856                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12857
12858 fi
12859
12860
12861           eval "$wx_cv_use_treebook"
12862
12863           if test x"$enablestring" = xdisable; then
12864             if test $wxUSE_TREEBOOK = no; then
12865               result=yes
12866             else
12867               result=no
12868             fi
12869           else
12870             result=$wxUSE_TREEBOOK
12871           fi
12872
12873           { echo "$as_me:$LINENO: result: $result" >&5
12874 echo "${ECHO_T}$result" >&6; }
12875
12876
12877           enablestring=
12878           defaultval=$wxUSE_ALL_FEATURES
12879           if test -z "$defaultval"; then
12880               if test x"$enablestring" = xdisable; then
12881                   defaultval=yes
12882               else
12883                   defaultval=no
12884               fi
12885           fi
12886
12887           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12888 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12889           # Check whether --enable-treectrl was given.
12890 if test "${enable_treectrl+set}" = set; then
12891   enableval=$enable_treectrl;
12892                           if test "$enableval" = yes; then
12893                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12894                           else
12895                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12896                           fi
12897
12898 else
12899
12900                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12901
12902 fi
12903
12904
12905           eval "$wx_cv_use_treectrl"
12906
12907           if test x"$enablestring" = xdisable; then
12908             if test $wxUSE_TREECTRL = no; then
12909               result=yes
12910             else
12911               result=no
12912             fi
12913           else
12914             result=$wxUSE_TREECTRL
12915           fi
12916
12917           { echo "$as_me:$LINENO: result: $result" >&5
12918 echo "${ECHO_T}$result" >&6; }
12919
12920
12921           enablestring=
12922           defaultval=$wxUSE_ALL_FEATURES
12923           if test -z "$defaultval"; then
12924               if test x"$enablestring" = xdisable; then
12925                   defaultval=yes
12926               else
12927                   defaultval=no
12928               fi
12929           fi
12930
12931           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treelist" >&5
12932 echo $ECHO_N "checking for --${enablestring:-enable}-treelist... $ECHO_C" >&6; }
12933           # Check whether --enable-treelist was given.
12934 if test "${enable_treelist+set}" = set; then
12935   enableval=$enable_treelist;
12936                           if test "$enableval" = yes; then
12937                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=yes'
12938                           else
12939                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=no'
12940                           fi
12941
12942 else
12943
12944                           wx_cv_use_treelist='wxUSE_TREELISTCTRL=${'DEFAULT_wxUSE_TREELISTCTRL":-$defaultval}"
12945
12946 fi
12947
12948
12949           eval "$wx_cv_use_treelist"
12950
12951           if test x"$enablestring" = xdisable; then
12952             if test $wxUSE_TREELISTCTRL = no; then
12953               result=yes
12954             else
12955               result=no
12956             fi
12957           else
12958             result=$wxUSE_TREELISTCTRL
12959           fi
12960
12961           { echo "$as_me:$LINENO: result: $result" >&5
12962 echo "${ECHO_T}$result" >&6; }
12963
12964
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}-commondlg" >&5
12978 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12979           # Check whether --enable-commondlg was given.
12980 if test "${enable_commondlg+set}" = set; then
12981   enableval=$enable_commondlg;
12982                           if test "$enableval" = yes; then
12983                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12984                           else
12985                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12986                           fi
12987
12988 else
12989
12990                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12991
12992 fi
12993
12994
12995           eval "$wx_cv_use_commondlg"
12996
12997           if test x"$enablestring" = xdisable; then
12998             if test $wxUSE_COMMONDLGS = no; then
12999               result=yes
13000             else
13001               result=no
13002             fi
13003           else
13004             result=$wxUSE_COMMONDLGS
13005           fi
13006
13007           { echo "$as_me:$LINENO: result: $result" >&5
13008 echo "${ECHO_T}$result" >&6; }
13009
13010
13011           enablestring=
13012           defaultval=$wxUSE_ALL_FEATURES
13013           if test -z "$defaultval"; then
13014               if test x"$enablestring" = xdisable; then
13015                   defaultval=yes
13016               else
13017                   defaultval=no
13018               fi
13019           fi
13020
13021           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
13022 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
13023           # Check whether --enable-aboutdlg was given.
13024 if test "${enable_aboutdlg+set}" = set; then
13025   enableval=$enable_aboutdlg;
13026                           if test "$enableval" = yes; then
13027                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
13028                           else
13029                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
13030                           fi
13031
13032 else
13033
13034                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
13035
13036 fi
13037
13038
13039           eval "$wx_cv_use_aboutdlg"
13040
13041           if test x"$enablestring" = xdisable; then
13042             if test $wxUSE_ABOUTDLG = no; then
13043               result=yes
13044             else
13045               result=no
13046             fi
13047           else
13048             result=$wxUSE_ABOUTDLG
13049           fi
13050
13051           { echo "$as_me:$LINENO: result: $result" >&5
13052 echo "${ECHO_T}$result" >&6; }
13053
13054
13055           enablestring=
13056           defaultval=$wxUSE_ALL_FEATURES
13057           if test -z "$defaultval"; then
13058               if test x"$enablestring" = xdisable; then
13059                   defaultval=yes
13060               else
13061                   defaultval=no
13062               fi
13063           fi
13064
13065           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13066 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13067           # Check whether --enable-choicedlg was given.
13068 if test "${enable_choicedlg+set}" = set; then
13069   enableval=$enable_choicedlg;
13070                           if test "$enableval" = yes; then
13071                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13072                           else
13073                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13074                           fi
13075
13076 else
13077
13078                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13079
13080 fi
13081
13082
13083           eval "$wx_cv_use_choicedlg"
13084
13085           if test x"$enablestring" = xdisable; then
13086             if test $wxUSE_CHOICEDLG = no; then
13087               result=yes
13088             else
13089               result=no
13090             fi
13091           else
13092             result=$wxUSE_CHOICEDLG
13093           fi
13094
13095           { echo "$as_me:$LINENO: result: $result" >&5
13096 echo "${ECHO_T}$result" >&6; }
13097
13098
13099           enablestring=
13100           defaultval=$wxUSE_ALL_FEATURES
13101           if test -z "$defaultval"; then
13102               if test x"$enablestring" = xdisable; then
13103                   defaultval=yes
13104               else
13105                   defaultval=no
13106               fi
13107           fi
13108
13109           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13110 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13111           # Check whether --enable-coldlg was given.
13112 if test "${enable_coldlg+set}" = set; then
13113   enableval=$enable_coldlg;
13114                           if test "$enableval" = yes; then
13115                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13116                           else
13117                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13118                           fi
13119
13120 else
13121
13122                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13123
13124 fi
13125
13126
13127           eval "$wx_cv_use_coldlg"
13128
13129           if test x"$enablestring" = xdisable; then
13130             if test $wxUSE_COLOURDLG = no; then
13131               result=yes
13132             else
13133               result=no
13134             fi
13135           else
13136             result=$wxUSE_COLOURDLG
13137           fi
13138
13139           { echo "$as_me:$LINENO: result: $result" >&5
13140 echo "${ECHO_T}$result" >&6; }
13141
13142
13143           enablestring=
13144           defaultval=$wxUSE_ALL_FEATURES
13145           if test -z "$defaultval"; then
13146               if test x"$enablestring" = xdisable; then
13147                   defaultval=yes
13148               else
13149                   defaultval=no
13150               fi
13151           fi
13152
13153           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13154 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13155           # Check whether --enable-filedlg was given.
13156 if test "${enable_filedlg+set}" = set; then
13157   enableval=$enable_filedlg;
13158                           if test "$enableval" = yes; then
13159                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13160                           else
13161                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13162                           fi
13163
13164 else
13165
13166                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13167
13168 fi
13169
13170
13171           eval "$wx_cv_use_filedlg"
13172
13173           if test x"$enablestring" = xdisable; then
13174             if test $wxUSE_FILEDLG = no; then
13175               result=yes
13176             else
13177               result=no
13178             fi
13179           else
13180             result=$wxUSE_FILEDLG
13181           fi
13182
13183           { echo "$as_me:$LINENO: result: $result" >&5
13184 echo "${ECHO_T}$result" >&6; }
13185
13186
13187           enablestring=
13188           defaultval=$wxUSE_ALL_FEATURES
13189           if test -z "$defaultval"; then
13190               if test x"$enablestring" = xdisable; then
13191                   defaultval=yes
13192               else
13193                   defaultval=no
13194               fi
13195           fi
13196
13197           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13198 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13199           # Check whether --enable-finddlg was given.
13200 if test "${enable_finddlg+set}" = set; then
13201   enableval=$enable_finddlg;
13202                           if test "$enableval" = yes; then
13203                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13204                           else
13205                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13206                           fi
13207
13208 else
13209
13210                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13211
13212 fi
13213
13214
13215           eval "$wx_cv_use_finddlg"
13216
13217           if test x"$enablestring" = xdisable; then
13218             if test $wxUSE_FINDREPLDLG = no; then
13219               result=yes
13220             else
13221               result=no
13222             fi
13223           else
13224             result=$wxUSE_FINDREPLDLG
13225           fi
13226
13227           { echo "$as_me:$LINENO: result: $result" >&5
13228 echo "${ECHO_T}$result" >&6; }
13229
13230
13231           enablestring=
13232           defaultval=$wxUSE_ALL_FEATURES
13233           if test -z "$defaultval"; then
13234               if test x"$enablestring" = xdisable; then
13235                   defaultval=yes
13236               else
13237                   defaultval=no
13238               fi
13239           fi
13240
13241           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13242 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13243           # Check whether --enable-fontdlg was given.
13244 if test "${enable_fontdlg+set}" = set; then
13245   enableval=$enable_fontdlg;
13246                           if test "$enableval" = yes; then
13247                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13248                           else
13249                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13250                           fi
13251
13252 else
13253
13254                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13255
13256 fi
13257
13258
13259           eval "$wx_cv_use_fontdlg"
13260
13261           if test x"$enablestring" = xdisable; then
13262             if test $wxUSE_FONTDLG = no; then
13263               result=yes
13264             else
13265               result=no
13266             fi
13267           else
13268             result=$wxUSE_FONTDLG
13269           fi
13270
13271           { echo "$as_me:$LINENO: result: $result" >&5
13272 echo "${ECHO_T}$result" >&6; }
13273
13274
13275           enablestring=
13276           defaultval=$wxUSE_ALL_FEATURES
13277           if test -z "$defaultval"; then
13278               if test x"$enablestring" = xdisable; then
13279                   defaultval=yes
13280               else
13281                   defaultval=no
13282               fi
13283           fi
13284
13285           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
13286 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
13287           # Check whether --enable-dirdlg was given.
13288 if test "${enable_dirdlg+set}" = set; then
13289   enableval=$enable_dirdlg;
13290                           if test "$enableval" = yes; then
13291                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
13292                           else
13293                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
13294                           fi
13295
13296 else
13297
13298                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
13299
13300 fi
13301
13302
13303           eval "$wx_cv_use_dirdlg"
13304
13305           if test x"$enablestring" = xdisable; then
13306             if test $wxUSE_DIRDLG = no; then
13307               result=yes
13308             else
13309               result=no
13310             fi
13311           else
13312             result=$wxUSE_DIRDLG
13313           fi
13314
13315           { echo "$as_me:$LINENO: result: $result" >&5
13316 echo "${ECHO_T}$result" >&6; }
13317
13318
13319           enablestring=
13320           defaultval=$wxUSE_ALL_FEATURES
13321           if test -z "$defaultval"; then
13322               if test x"$enablestring" = xdisable; then
13323                   defaultval=yes
13324               else
13325                   defaultval=no
13326               fi
13327           fi
13328
13329           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13330 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
13331           # Check whether --enable-msgdlg was given.
13332 if test "${enable_msgdlg+set}" = set; then
13333   enableval=$enable_msgdlg;
13334                           if test "$enableval" = yes; then
13335                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13336                           else
13337                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
13338                           fi
13339
13340 else
13341
13342                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13343
13344 fi
13345
13346
13347           eval "$wx_cv_use_msgdlg"
13348
13349           if test x"$enablestring" = xdisable; then
13350             if test $wxUSE_MSGDLG = no; then
13351               result=yes
13352             else
13353               result=no
13354             fi
13355           else
13356             result=$wxUSE_MSGDLG
13357           fi
13358
13359           { echo "$as_me:$LINENO: result: $result" >&5
13360 echo "${ECHO_T}$result" >&6; }
13361
13362
13363           enablestring=
13364           defaultval=$wxUSE_ALL_FEATURES
13365           if test -z "$defaultval"; then
13366               if test x"$enablestring" = xdisable; then
13367                   defaultval=yes
13368               else
13369                   defaultval=no
13370               fi
13371           fi
13372
13373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13374 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
13375           # Check whether --enable-numberdlg was given.
13376 if test "${enable_numberdlg+set}" = set; then
13377   enableval=$enable_numberdlg;
13378                           if test "$enableval" = yes; then
13379                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13380                           else
13381                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13382                           fi
13383
13384 else
13385
13386                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13387
13388 fi
13389
13390
13391           eval "$wx_cv_use_numberdlg"
13392
13393           if test x"$enablestring" = xdisable; then
13394             if test $wxUSE_NUMBERDLG = no; then
13395               result=yes
13396             else
13397               result=no
13398             fi
13399           else
13400             result=$wxUSE_NUMBERDLG
13401           fi
13402
13403           { echo "$as_me:$LINENO: result: $result" >&5
13404 echo "${ECHO_T}$result" >&6; }
13405
13406
13407           enablestring=
13408           defaultval=$wxUSE_ALL_FEATURES
13409           if test -z "$defaultval"; then
13410               if test x"$enablestring" = xdisable; then
13411                   defaultval=yes
13412               else
13413                   defaultval=no
13414               fi
13415           fi
13416
13417           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13418 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
13419           # Check whether --enable-splash was given.
13420 if test "${enable_splash+set}" = set; then
13421   enableval=$enable_splash;
13422                           if test "$enableval" = yes; then
13423                             wx_cv_use_splash='wxUSE_SPLASH=yes'
13424                           else
13425                             wx_cv_use_splash='wxUSE_SPLASH=no'
13426                           fi
13427
13428 else
13429
13430                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13431
13432 fi
13433
13434
13435           eval "$wx_cv_use_splash"
13436
13437           if test x"$enablestring" = xdisable; then
13438             if test $wxUSE_SPLASH = no; then
13439               result=yes
13440             else
13441               result=no
13442             fi
13443           else
13444             result=$wxUSE_SPLASH
13445           fi
13446
13447           { echo "$as_me:$LINENO: result: $result" >&5
13448 echo "${ECHO_T}$result" >&6; }
13449
13450
13451           enablestring=
13452           defaultval=$wxUSE_ALL_FEATURES
13453           if test -z "$defaultval"; then
13454               if test x"$enablestring" = xdisable; then
13455                   defaultval=yes
13456               else
13457                   defaultval=no
13458               fi
13459           fi
13460
13461           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13462 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
13463           # Check whether --enable-textdlg was given.
13464 if test "${enable_textdlg+set}" = set; then
13465   enableval=$enable_textdlg;
13466                           if test "$enableval" = yes; then
13467                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13468                           else
13469                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13470                           fi
13471
13472 else
13473
13474                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13475
13476 fi
13477
13478
13479           eval "$wx_cv_use_textdlg"
13480
13481           if test x"$enablestring" = xdisable; then
13482             if test $wxUSE_TEXTDLG = no; then
13483               result=yes
13484             else
13485               result=no
13486             fi
13487           else
13488             result=$wxUSE_TEXTDLG
13489           fi
13490
13491           { echo "$as_me:$LINENO: result: $result" >&5
13492 echo "${ECHO_T}$result" >&6; }
13493
13494
13495           enablestring=
13496           defaultval=$wxUSE_ALL_FEATURES
13497           if test -z "$defaultval"; then
13498               if test x"$enablestring" = xdisable; then
13499                   defaultval=yes
13500               else
13501                   defaultval=no
13502               fi
13503           fi
13504
13505           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13506 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
13507           # Check whether --enable-tipdlg was given.
13508 if test "${enable_tipdlg+set}" = set; then
13509   enableval=$enable_tipdlg;
13510                           if test "$enableval" = yes; then
13511                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13512                           else
13513                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13514                           fi
13515
13516 else
13517
13518                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13519
13520 fi
13521
13522
13523           eval "$wx_cv_use_tipdlg"
13524
13525           if test x"$enablestring" = xdisable; then
13526             if test $wxUSE_STARTUP_TIPS = no; then
13527               result=yes
13528             else
13529               result=no
13530             fi
13531           else
13532             result=$wxUSE_STARTUP_TIPS
13533           fi
13534
13535           { echo "$as_me:$LINENO: result: $result" >&5
13536 echo "${ECHO_T}$result" >&6; }
13537
13538
13539           enablestring=
13540           defaultval=$wxUSE_ALL_FEATURES
13541           if test -z "$defaultval"; then
13542               if test x"$enablestring" = xdisable; then
13543                   defaultval=yes
13544               else
13545                   defaultval=no
13546               fi
13547           fi
13548
13549           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13550 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13551           # Check whether --enable-progressdlg was given.
13552 if test "${enable_progressdlg+set}" = set; then
13553   enableval=$enable_progressdlg;
13554                           if test "$enableval" = yes; then
13555                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13556                           else
13557                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13558                           fi
13559
13560 else
13561
13562                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13563
13564 fi
13565
13566
13567           eval "$wx_cv_use_progressdlg"
13568
13569           if test x"$enablestring" = xdisable; then
13570             if test $wxUSE_PROGRESSDLG = no; then
13571               result=yes
13572             else
13573               result=no
13574             fi
13575           else
13576             result=$wxUSE_PROGRESSDLG
13577           fi
13578
13579           { echo "$as_me:$LINENO: result: $result" >&5
13580 echo "${ECHO_T}$result" >&6; }
13581
13582
13583           enablestring=
13584           defaultval=$wxUSE_ALL_FEATURES
13585           if test -z "$defaultval"; then
13586               if test x"$enablestring" = xdisable; then
13587                   defaultval=yes
13588               else
13589                   defaultval=no
13590               fi
13591           fi
13592
13593           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13594 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13595           # Check whether --enable-wizarddlg was given.
13596 if test "${enable_wizarddlg+set}" = set; then
13597   enableval=$enable_wizarddlg;
13598                           if test "$enableval" = yes; then
13599                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13600                           else
13601                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13602                           fi
13603
13604 else
13605
13606                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13607
13608 fi
13609
13610
13611           eval "$wx_cv_use_wizarddlg"
13612
13613           if test x"$enablestring" = xdisable; then
13614             if test $wxUSE_WIZARDDLG = no; then
13615               result=yes
13616             else
13617               result=no
13618             fi
13619           else
13620             result=$wxUSE_WIZARDDLG
13621           fi
13622
13623           { echo "$as_me:$LINENO: result: $result" >&5
13624 echo "${ECHO_T}$result" >&6; }
13625
13626
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}-menus" >&5
13640 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13641           # Check whether --enable-menus was given.
13642 if test "${enable_menus+set}" = set; then
13643   enableval=$enable_menus;
13644                           if test "$enableval" = yes; then
13645                             wx_cv_use_menus='wxUSE_MENUS=yes'
13646                           else
13647                             wx_cv_use_menus='wxUSE_MENUS=no'
13648                           fi
13649
13650 else
13651
13652                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13653
13654 fi
13655
13656
13657           eval "$wx_cv_use_menus"
13658
13659           if test x"$enablestring" = xdisable; then
13660             if test $wxUSE_MENUS = no; then
13661               result=yes
13662             else
13663               result=no
13664             fi
13665           else
13666             result=$wxUSE_MENUS
13667           fi
13668
13669           { echo "$as_me:$LINENO: result: $result" >&5
13670 echo "${ECHO_T}$result" >&6; }
13671
13672
13673           enablestring=
13674           defaultval=$wxUSE_ALL_FEATURES
13675           if test -z "$defaultval"; then
13676               if test x"$enablestring" = xdisable; then
13677                   defaultval=yes
13678               else
13679                   defaultval=no
13680               fi
13681           fi
13682
13683           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13684 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13685           # Check whether --enable-miniframe was given.
13686 if test "${enable_miniframe+set}" = set; then
13687   enableval=$enable_miniframe;
13688                           if test "$enableval" = yes; then
13689                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13690                           else
13691                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13692                           fi
13693
13694 else
13695
13696                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13697
13698 fi
13699
13700
13701           eval "$wx_cv_use_miniframe"
13702
13703           if test x"$enablestring" = xdisable; then
13704             if test $wxUSE_MINIFRAME = no; then
13705               result=yes
13706             else
13707               result=no
13708             fi
13709           else
13710             result=$wxUSE_MINIFRAME
13711           fi
13712
13713           { echo "$as_me:$LINENO: result: $result" >&5
13714 echo "${ECHO_T}$result" >&6; }
13715
13716
13717           enablestring=
13718           defaultval=$wxUSE_ALL_FEATURES
13719           if test -z "$defaultval"; then
13720               if test x"$enablestring" = xdisable; then
13721                   defaultval=yes
13722               else
13723                   defaultval=no
13724               fi
13725           fi
13726
13727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13728 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13729           # Check whether --enable-tooltips was given.
13730 if test "${enable_tooltips+set}" = set; then
13731   enableval=$enable_tooltips;
13732                           if test "$enableval" = yes; then
13733                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13734                           else
13735                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13736                           fi
13737
13738 else
13739
13740                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13741
13742 fi
13743
13744
13745           eval "$wx_cv_use_tooltips"
13746
13747           if test x"$enablestring" = xdisable; then
13748             if test $wxUSE_TOOLTIPS = no; then
13749               result=yes
13750             else
13751               result=no
13752             fi
13753           else
13754             result=$wxUSE_TOOLTIPS
13755           fi
13756
13757           { echo "$as_me:$LINENO: result: $result" >&5
13758 echo "${ECHO_T}$result" >&6; }
13759
13760
13761           enablestring=
13762           defaultval=$wxUSE_ALL_FEATURES
13763           if test -z "$defaultval"; then
13764               if test x"$enablestring" = xdisable; then
13765                   defaultval=yes
13766               else
13767                   defaultval=no
13768               fi
13769           fi
13770
13771           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13772 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13773           # Check whether --enable-splines was given.
13774 if test "${enable_splines+set}" = set; then
13775   enableval=$enable_splines;
13776                           if test "$enableval" = yes; then
13777                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13778                           else
13779                             wx_cv_use_splines='wxUSE_SPLINES=no'
13780                           fi
13781
13782 else
13783
13784                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13785
13786 fi
13787
13788
13789           eval "$wx_cv_use_splines"
13790
13791           if test x"$enablestring" = xdisable; then
13792             if test $wxUSE_SPLINES = no; then
13793               result=yes
13794             else
13795               result=no
13796             fi
13797           else
13798             result=$wxUSE_SPLINES
13799           fi
13800
13801           { echo "$as_me:$LINENO: result: $result" >&5
13802 echo "${ECHO_T}$result" >&6; }
13803
13804
13805           enablestring=
13806           defaultval=$wxUSE_ALL_FEATURES
13807           if test -z "$defaultval"; then
13808               if test x"$enablestring" = xdisable; then
13809                   defaultval=yes
13810               else
13811                   defaultval=no
13812               fi
13813           fi
13814
13815           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13816 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13817           # Check whether --enable-mousewheel was given.
13818 if test "${enable_mousewheel+set}" = set; then
13819   enableval=$enable_mousewheel;
13820                           if test "$enableval" = yes; then
13821                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13822                           else
13823                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13824                           fi
13825
13826 else
13827
13828                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13829
13830 fi
13831
13832
13833           eval "$wx_cv_use_mousewheel"
13834
13835           if test x"$enablestring" = xdisable; then
13836             if test $wxUSE_MOUSEWHEEL = no; then
13837               result=yes
13838             else
13839               result=no
13840             fi
13841           else
13842             result=$wxUSE_MOUSEWHEEL
13843           fi
13844
13845           { echo "$as_me:$LINENO: result: $result" >&5
13846 echo "${ECHO_T}$result" >&6; }
13847
13848
13849           enablestring=
13850           defaultval=$wxUSE_ALL_FEATURES
13851           if test -z "$defaultval"; then
13852               if test x"$enablestring" = xdisable; then
13853                   defaultval=yes
13854               else
13855                   defaultval=no
13856               fi
13857           fi
13858
13859           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13860 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13861           # Check whether --enable-validators was given.
13862 if test "${enable_validators+set}" = set; then
13863   enableval=$enable_validators;
13864                           if test "$enableval" = yes; then
13865                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13866                           else
13867                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13868                           fi
13869
13870 else
13871
13872                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13873
13874 fi
13875
13876
13877           eval "$wx_cv_use_validators"
13878
13879           if test x"$enablestring" = xdisable; then
13880             if test $wxUSE_VALIDATORS = no; then
13881               result=yes
13882             else
13883               result=no
13884             fi
13885           else
13886             result=$wxUSE_VALIDATORS
13887           fi
13888
13889           { echo "$as_me:$LINENO: result: $result" >&5
13890 echo "${ECHO_T}$result" >&6; }
13891
13892
13893           enablestring=
13894           defaultval=$wxUSE_ALL_FEATURES
13895           if test -z "$defaultval"; then
13896               if test x"$enablestring" = xdisable; then
13897                   defaultval=yes
13898               else
13899                   defaultval=no
13900               fi
13901           fi
13902
13903           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13904 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13905           # Check whether --enable-busyinfo was given.
13906 if test "${enable_busyinfo+set}" = set; then
13907   enableval=$enable_busyinfo;
13908                           if test "$enableval" = yes; then
13909                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13910                           else
13911                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13912                           fi
13913
13914 else
13915
13916                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13917
13918 fi
13919
13920
13921           eval "$wx_cv_use_busyinfo"
13922
13923           if test x"$enablestring" = xdisable; then
13924             if test $wxUSE_BUSYINFO = no; then
13925               result=yes
13926             else
13927               result=no
13928             fi
13929           else
13930             result=$wxUSE_BUSYINFO
13931           fi
13932
13933           { echo "$as_me:$LINENO: result: $result" >&5
13934 echo "${ECHO_T}$result" >&6; }
13935
13936
13937           enablestring=
13938           defaultval=$wxUSE_ALL_FEATURES
13939           if test -z "$defaultval"; then
13940               if test x"$enablestring" = xdisable; then
13941                   defaultval=yes
13942               else
13943                   defaultval=no
13944               fi
13945           fi
13946
13947           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hotkey" >&5
13948 echo $ECHO_N "checking for --${enablestring:-enable}-hotkey... $ECHO_C" >&6; }
13949           # Check whether --enable-hotkey was given.
13950 if test "${enable_hotkey+set}" = set; then
13951   enableval=$enable_hotkey;
13952                           if test "$enableval" = yes; then
13953                             wx_cv_use_hotkey='wxUSE_HOTKEY=yes'
13954                           else
13955                             wx_cv_use_hotkey='wxUSE_HOTKEY=no'
13956                           fi
13957
13958 else
13959
13960                           wx_cv_use_hotkey='wxUSE_HOTKEY=${'DEFAULT_wxUSE_HOTKEY":-$defaultval}"
13961
13962 fi
13963
13964
13965           eval "$wx_cv_use_hotkey"
13966
13967           if test x"$enablestring" = xdisable; then
13968             if test $wxUSE_HOTKEY = no; then
13969               result=yes
13970             else
13971               result=no
13972             fi
13973           else
13974             result=$wxUSE_HOTKEY
13975           fi
13976
13977           { echo "$as_me:$LINENO: result: $result" >&5
13978 echo "${ECHO_T}$result" >&6; }
13979
13980
13981           enablestring=
13982           defaultval=$wxUSE_ALL_FEATURES
13983           if test -z "$defaultval"; then
13984               if test x"$enablestring" = xdisable; then
13985                   defaultval=yes
13986               else
13987                   defaultval=no
13988               fi
13989           fi
13990
13991           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13992 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13993           # Check whether --enable-joystick was given.
13994 if test "${enable_joystick+set}" = set; then
13995   enableval=$enable_joystick;
13996                           if test "$enableval" = yes; then
13997                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13998                           else
13999                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
14000                           fi
14001
14002 else
14003
14004                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
14005
14006 fi
14007
14008
14009           eval "$wx_cv_use_joystick"
14010
14011           if test x"$enablestring" = xdisable; then
14012             if test $wxUSE_JOYSTICK = no; then
14013               result=yes
14014             else
14015               result=no
14016             fi
14017           else
14018             result=$wxUSE_JOYSTICK
14019           fi
14020
14021           { echo "$as_me:$LINENO: result: $result" >&5
14022 echo "${ECHO_T}$result" >&6; }
14023
14024
14025           enablestring=
14026           defaultval=$wxUSE_ALL_FEATURES
14027           if test -z "$defaultval"; then
14028               if test x"$enablestring" = xdisable; then
14029                   defaultval=yes
14030               else
14031                   defaultval=no
14032               fi
14033           fi
14034
14035           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
14036 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
14037           # Check whether --enable-metafile was given.
14038 if test "${enable_metafile+set}" = set; then
14039   enableval=$enable_metafile;
14040                           if test "$enableval" = yes; then
14041                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
14042                           else
14043                             wx_cv_use_metafile='wxUSE_METAFILE=no'
14044                           fi
14045
14046 else
14047
14048                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
14049
14050 fi
14051
14052
14053           eval "$wx_cv_use_metafile"
14054
14055           if test x"$enablestring" = xdisable; then
14056             if test $wxUSE_METAFILE = no; then
14057               result=yes
14058             else
14059               result=no
14060             fi
14061           else
14062             result=$wxUSE_METAFILE
14063           fi
14064
14065           { echo "$as_me:$LINENO: result: $result" >&5
14066 echo "${ECHO_T}$result" >&6; }
14067
14068
14069           enablestring=
14070           defaultval=$wxUSE_ALL_FEATURES
14071           if test -z "$defaultval"; then
14072               if test x"$enablestring" = xdisable; then
14073                   defaultval=yes
14074               else
14075                   defaultval=no
14076               fi
14077           fi
14078
14079           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
14080 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
14081           # Check whether --enable-dragimage was given.
14082 if test "${enable_dragimage+set}" = set; then
14083   enableval=$enable_dragimage;
14084                           if test "$enableval" = yes; then
14085                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
14086                           else
14087                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
14088                           fi
14089
14090 else
14091
14092                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
14093
14094 fi
14095
14096
14097           eval "$wx_cv_use_dragimage"
14098
14099           if test x"$enablestring" = xdisable; then
14100             if test $wxUSE_DRAGIMAGE = no; then
14101               result=yes
14102             else
14103               result=no
14104             fi
14105           else
14106             result=$wxUSE_DRAGIMAGE
14107           fi
14108
14109           { echo "$as_me:$LINENO: result: $result" >&5
14110 echo "${ECHO_T}$result" >&6; }
14111
14112
14113           enablestring=
14114           defaultval=$wxUSE_ALL_FEATURES
14115           if test -z "$defaultval"; then
14116               if test x"$enablestring" = xdisable; then
14117                   defaultval=yes
14118               else
14119                   defaultval=no
14120               fi
14121           fi
14122
14123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
14124 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
14125           # Check whether --enable-accessibility was given.
14126 if test "${enable_accessibility+set}" = set; then
14127   enableval=$enable_accessibility;
14128                           if test "$enableval" = yes; then
14129                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
14130                           else
14131                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
14132                           fi
14133
14134 else
14135
14136                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
14137
14138 fi
14139
14140
14141           eval "$wx_cv_use_accessibility"
14142
14143           if test x"$enablestring" = xdisable; then
14144             if test $wxUSE_ACCESSIBILITY = no; then
14145               result=yes
14146             else
14147               result=no
14148             fi
14149           else
14150             result=$wxUSE_ACCESSIBILITY
14151           fi
14152
14153           { echo "$as_me:$LINENO: result: $result" >&5
14154 echo "${ECHO_T}$result" >&6; }
14155
14156
14157           enablestring=
14158           defaultval=$wxUSE_ALL_FEATURES
14159           if test -z "$defaultval"; then
14160               if test x"$enablestring" = xdisable; then
14161                   defaultval=yes
14162               else
14163                   defaultval=no
14164               fi
14165           fi
14166
14167           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
14168 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
14169           # Check whether --enable-uiactionsim was given.
14170 if test "${enable_uiactionsim+set}" = set; then
14171   enableval=$enable_uiactionsim;
14172                           if test "$enableval" = yes; then
14173                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
14174                           else
14175                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
14176                           fi
14177
14178 else
14179
14180                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
14181
14182 fi
14183
14184
14185           eval "$wx_cv_use_uiactionsim"
14186
14187           if test x"$enablestring" = xdisable; then
14188             if test $wxUSE_UIACTIONSIMULATOR = no; then
14189               result=yes
14190             else
14191               result=no
14192             fi
14193           else
14194             result=$wxUSE_UIACTIONSIMULATOR
14195           fi
14196
14197           { echo "$as_me:$LINENO: result: $result" >&5
14198 echo "${ECHO_T}$result" >&6; }
14199
14200
14201           enablestring=
14202           defaultval=$wxUSE_ALL_FEATURES
14203           if test -z "$defaultval"; then
14204               if test x"$enablestring" = xdisable; then
14205                   defaultval=yes
14206               else
14207                   defaultval=no
14208               fi
14209           fi
14210
14211           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dctransform" >&5
14212 echo $ECHO_N "checking for --${enablestring:-enable}-dctransform... $ECHO_C" >&6; }
14213           # Check whether --enable-dctransform was given.
14214 if test "${enable_dctransform+set}" = set; then
14215   enableval=$enable_dctransform;
14216                           if test "$enableval" = yes; then
14217                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=yes'
14218                           else
14219                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=no'
14220                           fi
14221
14222 else
14223
14224                           wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=${'DEFAULT_wxUSE_DC_TRANSFORM_MATRIX":-$defaultval}"
14225
14226 fi
14227
14228
14229           eval "$wx_cv_use_dctransform"
14230
14231           if test x"$enablestring" = xdisable; then
14232             if test $wxUSE_DC_TRANSFORM_MATRIX = no; then
14233               result=yes
14234             else
14235               result=no
14236             fi
14237           else
14238             result=$wxUSE_DC_TRANSFORM_MATRIX
14239           fi
14240
14241           { echo "$as_me:$LINENO: result: $result" >&5
14242 echo "${ECHO_T}$result" >&6; }
14243
14244
14245           enablestring=
14246           defaultval=$wxUSE_ALL_FEATURES
14247           if test -z "$defaultval"; then
14248               if test x"$enablestring" = xdisable; then
14249                   defaultval=yes
14250               else
14251                   defaultval=no
14252               fi
14253           fi
14254
14255           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewwebkit" >&5
14256 echo $ECHO_N "checking for --${enablestring:-enable}-webviewwebkit... $ECHO_C" >&6; }
14257           # Check whether --enable-webviewwebkit was given.
14258 if test "${enable_webviewwebkit+set}" = set; then
14259   enableval=$enable_webviewwebkit;
14260                           if test "$enableval" = yes; then
14261                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=yes'
14262                           else
14263                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=no'
14264                           fi
14265
14266 else
14267
14268                           wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=${'DEFAULT_wxUSE_WEBVIEW_WEBKIT":-$defaultval}"
14269
14270 fi
14271
14272
14273           eval "$wx_cv_use_webviewwebkit"
14274
14275           if test x"$enablestring" = xdisable; then
14276             if test $wxUSE_WEBVIEW_WEBKIT = no; then
14277               result=yes
14278             else
14279               result=no
14280             fi
14281           else
14282             result=$wxUSE_WEBVIEW_WEBKIT
14283           fi
14284
14285           { echo "$as_me:$LINENO: result: $result" >&5
14286 echo "${ECHO_T}$result" >&6; }
14287
14288
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}-palette" >&5
14302 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
14303           # Check whether --enable-palette was given.
14304 if test "${enable_palette+set}" = set; then
14305   enableval=$enable_palette;
14306                           if test "$enableval" = yes; then
14307                             wx_cv_use_palette='wxUSE_PALETTE=yes'
14308                           else
14309                             wx_cv_use_palette='wxUSE_PALETTE=no'
14310                           fi
14311
14312 else
14313
14314                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
14315
14316 fi
14317
14318
14319           eval "$wx_cv_use_palette"
14320
14321           if test x"$enablestring" = xdisable; then
14322             if test $wxUSE_PALETTE = no; then
14323               result=yes
14324             else
14325               result=no
14326             fi
14327           else
14328             result=$wxUSE_PALETTE
14329           fi
14330
14331           { echo "$as_me:$LINENO: result: $result" >&5
14332 echo "${ECHO_T}$result" >&6; }
14333
14334
14335           enablestring=
14336           defaultval=$wxUSE_ALL_FEATURES
14337           if test -z "$defaultval"; then
14338               if test x"$enablestring" = xdisable; then
14339                   defaultval=yes
14340               else
14341                   defaultval=no
14342               fi
14343           fi
14344
14345           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
14346 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
14347           # Check whether --enable-image was given.
14348 if test "${enable_image+set}" = set; then
14349   enableval=$enable_image;
14350                           if test "$enableval" = yes; then
14351                             wx_cv_use_image='wxUSE_IMAGE=yes'
14352                           else
14353                             wx_cv_use_image='wxUSE_IMAGE=no'
14354                           fi
14355
14356 else
14357
14358                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
14359
14360 fi
14361
14362
14363           eval "$wx_cv_use_image"
14364
14365           if test x"$enablestring" = xdisable; then
14366             if test $wxUSE_IMAGE = no; then
14367               result=yes
14368             else
14369               result=no
14370             fi
14371           else
14372             result=$wxUSE_IMAGE
14373           fi
14374
14375           { echo "$as_me:$LINENO: result: $result" >&5
14376 echo "${ECHO_T}$result" >&6; }
14377
14378
14379           enablestring=
14380           defaultval=$wxUSE_ALL_FEATURES
14381           if test -z "$defaultval"; then
14382               if test x"$enablestring" = xdisable; then
14383                   defaultval=yes
14384               else
14385                   defaultval=no
14386               fi
14387           fi
14388
14389           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14390 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
14391           # Check whether --enable-gif was given.
14392 if test "${enable_gif+set}" = set; then
14393   enableval=$enable_gif;
14394                           if test "$enableval" = yes; then
14395                             wx_cv_use_gif='wxUSE_GIF=yes'
14396                           else
14397                             wx_cv_use_gif='wxUSE_GIF=no'
14398                           fi
14399
14400 else
14401
14402                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14403
14404 fi
14405
14406
14407           eval "$wx_cv_use_gif"
14408
14409           if test x"$enablestring" = xdisable; then
14410             if test $wxUSE_GIF = no; then
14411               result=yes
14412             else
14413               result=no
14414             fi
14415           else
14416             result=$wxUSE_GIF
14417           fi
14418
14419           { echo "$as_me:$LINENO: result: $result" >&5
14420 echo "${ECHO_T}$result" >&6; }
14421
14422
14423           enablestring=
14424           defaultval=$wxUSE_ALL_FEATURES
14425           if test -z "$defaultval"; then
14426               if test x"$enablestring" = xdisable; then
14427                   defaultval=yes
14428               else
14429                   defaultval=no
14430               fi
14431           fi
14432
14433           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14434 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
14435           # Check whether --enable-pcx was given.
14436 if test "${enable_pcx+set}" = set; then
14437   enableval=$enable_pcx;
14438                           if test "$enableval" = yes; then
14439                             wx_cv_use_pcx='wxUSE_PCX=yes'
14440                           else
14441                             wx_cv_use_pcx='wxUSE_PCX=no'
14442                           fi
14443
14444 else
14445
14446                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14447
14448 fi
14449
14450
14451           eval "$wx_cv_use_pcx"
14452
14453           if test x"$enablestring" = xdisable; then
14454             if test $wxUSE_PCX = no; then
14455               result=yes
14456             else
14457               result=no
14458             fi
14459           else
14460             result=$wxUSE_PCX
14461           fi
14462
14463           { echo "$as_me:$LINENO: result: $result" >&5
14464 echo "${ECHO_T}$result" >&6; }
14465
14466
14467           enablestring=
14468           defaultval=$wxUSE_ALL_FEATURES
14469           if test -z "$defaultval"; then
14470               if test x"$enablestring" = xdisable; then
14471                   defaultval=yes
14472               else
14473                   defaultval=no
14474               fi
14475           fi
14476
14477           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14478 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
14479           # Check whether --enable-tga was given.
14480 if test "${enable_tga+set}" = set; then
14481   enableval=$enable_tga;
14482                           if test "$enableval" = yes; then
14483                             wx_cv_use_tga='wxUSE_TGA=yes'
14484                           else
14485                             wx_cv_use_tga='wxUSE_TGA=no'
14486                           fi
14487
14488 else
14489
14490                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
14491
14492 fi
14493
14494
14495           eval "$wx_cv_use_tga"
14496
14497           if test x"$enablestring" = xdisable; then
14498             if test $wxUSE_TGA = no; then
14499               result=yes
14500             else
14501               result=no
14502             fi
14503           else
14504             result=$wxUSE_TGA
14505           fi
14506
14507           { echo "$as_me:$LINENO: result: $result" >&5
14508 echo "${ECHO_T}$result" >&6; }
14509
14510
14511           enablestring=
14512           defaultval=$wxUSE_ALL_FEATURES
14513           if test -z "$defaultval"; then
14514               if test x"$enablestring" = xdisable; then
14515                   defaultval=yes
14516               else
14517                   defaultval=no
14518               fi
14519           fi
14520
14521           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
14522 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
14523           # Check whether --enable-iff was given.
14524 if test "${enable_iff+set}" = set; then
14525   enableval=$enable_iff;
14526                           if test "$enableval" = yes; then
14527                             wx_cv_use_iff='wxUSE_IFF=yes'
14528                           else
14529                             wx_cv_use_iff='wxUSE_IFF=no'
14530                           fi
14531
14532 else
14533
14534                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
14535
14536 fi
14537
14538
14539           eval "$wx_cv_use_iff"
14540
14541           if test x"$enablestring" = xdisable; then
14542             if test $wxUSE_IFF = no; then
14543               result=yes
14544             else
14545               result=no
14546             fi
14547           else
14548             result=$wxUSE_IFF
14549           fi
14550
14551           { echo "$as_me:$LINENO: result: $result" >&5
14552 echo "${ECHO_T}$result" >&6; }
14553
14554
14555           enablestring=
14556           defaultval=$wxUSE_ALL_FEATURES
14557           if test -z "$defaultval"; then
14558               if test x"$enablestring" = xdisable; then
14559                   defaultval=yes
14560               else
14561                   defaultval=no
14562               fi
14563           fi
14564
14565           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
14566 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
14567           # Check whether --enable-pnm was given.
14568 if test "${enable_pnm+set}" = set; then
14569   enableval=$enable_pnm;
14570                           if test "$enableval" = yes; then
14571                             wx_cv_use_pnm='wxUSE_PNM=yes'
14572                           else
14573                             wx_cv_use_pnm='wxUSE_PNM=no'
14574                           fi
14575
14576 else
14577
14578                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
14579
14580 fi
14581
14582
14583           eval "$wx_cv_use_pnm"
14584
14585           if test x"$enablestring" = xdisable; then
14586             if test $wxUSE_PNM = no; then
14587               result=yes
14588             else
14589               result=no
14590             fi
14591           else
14592             result=$wxUSE_PNM
14593           fi
14594
14595           { echo "$as_me:$LINENO: result: $result" >&5
14596 echo "${ECHO_T}$result" >&6; }
14597
14598
14599           enablestring=
14600           defaultval=$wxUSE_ALL_FEATURES
14601           if test -z "$defaultval"; then
14602               if test x"$enablestring" = xdisable; then
14603                   defaultval=yes
14604               else
14605                   defaultval=no
14606               fi
14607           fi
14608
14609           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
14610 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
14611           # Check whether --enable-xpm was given.
14612 if test "${enable_xpm+set}" = set; then
14613   enableval=$enable_xpm;
14614                           if test "$enableval" = yes; then
14615                             wx_cv_use_xpm='wxUSE_XPM=yes'
14616                           else
14617                             wx_cv_use_xpm='wxUSE_XPM=no'
14618                           fi
14619
14620 else
14621
14622                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
14623
14624 fi
14625
14626
14627           eval "$wx_cv_use_xpm"
14628
14629           if test x"$enablestring" = xdisable; then
14630             if test $wxUSE_XPM = no; then
14631               result=yes
14632             else
14633               result=no
14634             fi
14635           else
14636             result=$wxUSE_XPM
14637           fi
14638
14639           { echo "$as_me:$LINENO: result: $result" >&5
14640 echo "${ECHO_T}$result" >&6; }
14641
14642
14643           enablestring=
14644           defaultval=$wxUSE_ALL_FEATURES
14645           if test -z "$defaultval"; then
14646               if test x"$enablestring" = xdisable; then
14647                   defaultval=yes
14648               else
14649                   defaultval=no
14650               fi
14651           fi
14652
14653           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14654 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
14655           # Check whether --enable-ico_cur was given.
14656 if test "${enable_ico_cur+set}" = set; then
14657   enableval=$enable_ico_cur;
14658                           if test "$enableval" = yes; then
14659                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14660                           else
14661                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14662                           fi
14663
14664 else
14665
14666                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14667
14668 fi
14669
14670
14671           eval "$wx_cv_use_ico_cur"
14672
14673           if test x"$enablestring" = xdisable; then
14674             if test $wxUSE_ICO_CUR = no; then
14675               result=yes
14676             else
14677               result=no
14678             fi
14679           else
14680             result=$wxUSE_ICO_CUR
14681           fi
14682
14683           { echo "$as_me:$LINENO: result: $result" >&5
14684 echo "${ECHO_T}$result" >&6; }
14685
14686
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}-dccache" >&5
14700 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14701           # Check whether --enable-dccache was given.
14702 if test "${enable_dccache+set}" = set; then
14703   enableval=$enable_dccache;
14704                           if test "$enableval" = yes; then
14705                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14706                           else
14707                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14708                           fi
14709
14710 else
14711
14712                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14713
14714 fi
14715
14716
14717           eval "$wx_cv_use_dccache"
14718
14719           if test x"$enablestring" = xdisable; then
14720             if test $wxUSE_DC_CACHEING = no; then
14721               result=yes
14722             else
14723               result=no
14724             fi
14725           else
14726             result=$wxUSE_DC_CACHEING
14727           fi
14728
14729           { echo "$as_me:$LINENO: result: $result" >&5
14730 echo "${ECHO_T}$result" >&6; }
14731
14732
14733           enablestring=
14734           defaultval=$wxUSE_ALL_FEATURES
14735           if test -z "$defaultval"; then
14736               if test x"$enablestring" = xdisable; then
14737                   defaultval=yes
14738               else
14739                   defaultval=no
14740               fi
14741           fi
14742
14743           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14744 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14745           # Check whether --enable-ps-in-msw was given.
14746 if test "${enable_ps_in_msw+set}" = set; then
14747   enableval=$enable_ps_in_msw;
14748                           if test "$enableval" = yes; then
14749                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14750                           else
14751                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14752                           fi
14753
14754 else
14755
14756                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14757
14758 fi
14759
14760
14761           eval "$wx_cv_use_ps_in_msw"
14762
14763           if test x"$enablestring" = xdisable; then
14764             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14765               result=yes
14766             else
14767               result=no
14768             fi
14769           else
14770             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14771           fi
14772
14773           { echo "$as_me:$LINENO: result: $result" >&5
14774 echo "${ECHO_T}$result" >&6; }
14775
14776
14777           enablestring=
14778           defaultval=$wxUSE_ALL_FEATURES
14779           if test -z "$defaultval"; then
14780               if test x"$enablestring" = xdisable; then
14781                   defaultval=yes
14782               else
14783                   defaultval=no
14784               fi
14785           fi
14786
14787           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14788 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14789           # Check whether --enable-ownerdrawn was given.
14790 if test "${enable_ownerdrawn+set}" = set; then
14791   enableval=$enable_ownerdrawn;
14792                           if test "$enableval" = yes; then
14793                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14794                           else
14795                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14796                           fi
14797
14798 else
14799
14800                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14801
14802 fi
14803
14804
14805           eval "$wx_cv_use_ownerdrawn"
14806
14807           if test x"$enablestring" = xdisable; then
14808             if test $wxUSE_OWNER_DRAWN = no; then
14809               result=yes
14810             else
14811               result=no
14812             fi
14813           else
14814             result=$wxUSE_OWNER_DRAWN
14815           fi
14816
14817           { echo "$as_me:$LINENO: result: $result" >&5
14818 echo "${ECHO_T}$result" >&6; }
14819
14820
14821           enablestring=
14822           defaultval=$wxUSE_ALL_FEATURES
14823           if test -z "$defaultval"; then
14824               if test x"$enablestring" = xdisable; then
14825                   defaultval=yes
14826               else
14827                   defaultval=no
14828               fi
14829           fi
14830
14831           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14832 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14833           # Check whether --enable-uxtheme was given.
14834 if test "${enable_uxtheme+set}" = set; then
14835   enableval=$enable_uxtheme;
14836                           if test "$enableval" = yes; then
14837                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14838                           else
14839                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14840                           fi
14841
14842 else
14843
14844                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14845
14846 fi
14847
14848
14849           eval "$wx_cv_use_uxtheme"
14850
14851           if test x"$enablestring" = xdisable; then
14852             if test $wxUSE_UXTHEME = no; then
14853               result=yes
14854             else
14855               result=no
14856             fi
14857           else
14858             result=$wxUSE_UXTHEME
14859           fi
14860
14861           { echo "$as_me:$LINENO: result: $result" >&5
14862 echo "${ECHO_T}$result" >&6; }
14863
14864
14865           enablestring=
14866           defaultval=$wxUSE_ALL_FEATURES
14867           if test -z "$defaultval"; then
14868               if test x"$enablestring" = xdisable; then
14869                   defaultval=yes
14870               else
14871                   defaultval=no
14872               fi
14873           fi
14874
14875           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14876 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14877           # Check whether --enable-wxdib was given.
14878 if test "${enable_wxdib+set}" = set; then
14879   enableval=$enable_wxdib;
14880                           if test "$enableval" = yes; then
14881                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14882                           else
14883                             wx_cv_use_wxdib='wxUSE_DIB=no'
14884                           fi
14885
14886 else
14887
14888                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14889
14890 fi
14891
14892
14893           eval "$wx_cv_use_wxdib"
14894
14895           if test x"$enablestring" = xdisable; then
14896             if test $wxUSE_DIB = no; then
14897               result=yes
14898             else
14899               result=no
14900             fi
14901           else
14902             result=$wxUSE_DIB
14903           fi
14904
14905           { echo "$as_me:$LINENO: result: $result" >&5
14906 echo "${ECHO_T}$result" >&6; }
14907
14908
14909           enablestring=
14910           defaultval=$wxUSE_ALL_FEATURES
14911           if test -z "$defaultval"; then
14912               if test x"$enablestring" = xdisable; then
14913                   defaultval=yes
14914               else
14915                   defaultval=no
14916               fi
14917           fi
14918
14919           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewie" >&5
14920 echo $ECHO_N "checking for --${enablestring:-enable}-webviewie... $ECHO_C" >&6; }
14921           # Check whether --enable-webviewie was given.
14922 if test "${enable_webviewie+set}" = set; then
14923   enableval=$enable_webviewie;
14924                           if test "$enableval" = yes; then
14925                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=yes'
14926                           else
14927                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=no'
14928                           fi
14929
14930 else
14931
14932                           wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=${'DEFAULT_wxUSE_WEBVIEW_IE":-$defaultval}"
14933
14934 fi
14935
14936
14937           eval "$wx_cv_use_webviewie"
14938
14939           if test x"$enablestring" = xdisable; then
14940             if test $wxUSE_WEBVIEW_IE = no; then
14941               result=yes
14942             else
14943               result=no
14944             fi
14945           else
14946             result=$wxUSE_WEBVIEW_IE
14947           fi
14948
14949           { echo "$as_me:$LINENO: result: $result" >&5
14950 echo "${ECHO_T}$result" >&6; }
14951
14952
14953 if test "$wxUSE_MSW" != 1; then
14954     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
14955 fi
14956
14957
14958           enablestring=
14959           defaultval=$wxUSE_ALL_FEATURES
14960           if test -z "$defaultval"; then
14961               if test x"$enablestring" = xdisable; then
14962                   defaultval=yes
14963               else
14964                   defaultval=no
14965               fi
14966           fi
14967
14968           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
14969 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
14970           # Check whether --enable-autoidman was given.
14971 if test "${enable_autoidman+set}" = set; then
14972   enableval=$enable_autoidman;
14973                           if test "$enableval" = yes; then
14974                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
14975                           else
14976                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
14977                           fi
14978
14979 else
14980
14981                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
14982
14983 fi
14984
14985
14986           eval "$wx_cv_use_autoidman"
14987
14988           if test x"$enablestring" = xdisable; then
14989             if test $wxUSE_AUTOID_MANAGEMENT = no; then
14990               result=yes
14991             else
14992               result=no
14993             fi
14994           else
14995             result=$wxUSE_AUTOID_MANAGEMENT
14996           fi
14997
14998           { echo "$as_me:$LINENO: result: $result" >&5
14999 echo "${ECHO_T}$result" >&6; }
15000
15001
15002 fi
15003
15004
15005 cat >confcache <<\_ACEOF
15006 # This file is a shell script that caches the results of configure
15007 # tests run on this system so they can be shared between configure
15008 # scripts and configure runs, see configure's option --config-cache.
15009 # It is not useful on other systems.  If it contains results you don't
15010 # want to keep, you may remove or edit it.
15011 #
15012 # config.status only pays attention to the cache file if you give it
15013 # the --recheck option to rerun configure.
15014 #
15015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15017 # following values.
15018
15019 _ACEOF
15020
15021 # The following way of writing the cache mishandles newlines in values,
15022 # but we know of no workaround that is simple, portable, and efficient.
15023 # So, we kill variables containing newlines.
15024 # Ultrix sh set writes to stderr and can't be redirected directly,
15025 # and sets the high bit in the cache file unless we assign to the vars.
15026 (
15027   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15028     eval ac_val=\$$ac_var
15029     case $ac_val in #(
15030     *${as_nl}*)
15031       case $ac_var in #(
15032       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15033 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15034       esac
15035       case $ac_var in #(
15036       _ | IFS | as_nl) ;; #(
15037       *) $as_unset $ac_var ;;
15038       esac ;;
15039     esac
15040   done
15041
15042   (set) 2>&1 |
15043     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15044     *${as_nl}ac_space=\ *)
15045       # `set' does not quote correctly, so add quotes (double-quote
15046       # substitution turns \\\\ into \\, and sed turns \\ into \).
15047       sed -n \
15048         "s/'/'\\\\''/g;
15049           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15050       ;; #(
15051     *)
15052       # `set' quotes correctly as required by POSIX, so do not add quotes.
15053       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15054       ;;
15055     esac |
15056     sort
15057 ) |
15058   sed '
15059      /^ac_cv_env_/b end
15060      t clear
15061      :clear
15062      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15063      t end
15064      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15065      :end' >>confcache
15066 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15067   if test -w "$cache_file"; then
15068     test "x$cache_file" != "x/dev/null" &&
15069       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15070 echo "$as_me: updating cache $cache_file" >&6;}
15071     cat confcache >$cache_file
15072   else
15073     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15074 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15075   fi
15076 fi
15077 rm -f confcache
15078
15079 CFLAGS=${CFLAGS:=}
15080 ac_ext=c
15081 ac_cpp='$CPP $CPPFLAGS'
15082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15085 if test -n "$ac_tool_prefix"; then
15086   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15087 set dummy ${ac_tool_prefix}gcc; ac_word=$2
15088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15090 if test "${ac_cv_prog_CC+set}" = set; then
15091   echo $ECHO_N "(cached) $ECHO_C" >&6
15092 else
15093   if test -n "$CC"; then
15094   ac_cv_prog_CC="$CC" # Let the user override the test.
15095 else
15096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15097 for as_dir in $PATH
15098 do
15099   IFS=$as_save_IFS
15100   test -z "$as_dir" && as_dir=.
15101   for ac_exec_ext in '' $ac_executable_extensions; do
15102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15103     ac_cv_prog_CC="${ac_tool_prefix}gcc"
15104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15105     break 2
15106   fi
15107 done
15108 done
15109 IFS=$as_save_IFS
15110
15111 fi
15112 fi
15113 CC=$ac_cv_prog_CC
15114 if test -n "$CC"; then
15115   { echo "$as_me:$LINENO: result: $CC" >&5
15116 echo "${ECHO_T}$CC" >&6; }
15117 else
15118   { echo "$as_me:$LINENO: result: no" >&5
15119 echo "${ECHO_T}no" >&6; }
15120 fi
15121
15122
15123 fi
15124 if test -z "$ac_cv_prog_CC"; then
15125   ac_ct_CC=$CC
15126   # Extract the first word of "gcc", so it can be a program name with args.
15127 set dummy gcc; ac_word=$2
15128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15130 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15131   echo $ECHO_N "(cached) $ECHO_C" >&6
15132 else
15133   if test -n "$ac_ct_CC"; then
15134   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15135 else
15136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15137 for as_dir in $PATH
15138 do
15139   IFS=$as_save_IFS
15140   test -z "$as_dir" && as_dir=.
15141   for ac_exec_ext in '' $ac_executable_extensions; do
15142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15143     ac_cv_prog_ac_ct_CC="gcc"
15144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15145     break 2
15146   fi
15147 done
15148 done
15149 IFS=$as_save_IFS
15150
15151 fi
15152 fi
15153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15154 if test -n "$ac_ct_CC"; then
15155   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15156 echo "${ECHO_T}$ac_ct_CC" >&6; }
15157 else
15158   { echo "$as_me:$LINENO: result: no" >&5
15159 echo "${ECHO_T}no" >&6; }
15160 fi
15161
15162   if test "x$ac_ct_CC" = x; then
15163     CC=""
15164   else
15165     case $cross_compiling:$ac_tool_warned in
15166 yes:)
15167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15168 whose name does not start with the host triplet.  If you think this
15169 configuration is useful to you, please write to autoconf@gnu.org." >&5
15170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15171 whose name does not start with the host triplet.  If you think this
15172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15173 ac_tool_warned=yes ;;
15174 esac
15175     CC=$ac_ct_CC
15176   fi
15177 else
15178   CC="$ac_cv_prog_CC"
15179 fi
15180
15181 if test -z "$CC"; then
15182           if test -n "$ac_tool_prefix"; then
15183     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15184 set dummy ${ac_tool_prefix}cc; ac_word=$2
15185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15187 if test "${ac_cv_prog_CC+set}" = set; then
15188   echo $ECHO_N "(cached) $ECHO_C" >&6
15189 else
15190   if test -n "$CC"; then
15191   ac_cv_prog_CC="$CC" # Let the user override the test.
15192 else
15193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15194 for as_dir in $PATH
15195 do
15196   IFS=$as_save_IFS
15197   test -z "$as_dir" && as_dir=.
15198   for ac_exec_ext in '' $ac_executable_extensions; do
15199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15200     ac_cv_prog_CC="${ac_tool_prefix}cc"
15201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15202     break 2
15203   fi
15204 done
15205 done
15206 IFS=$as_save_IFS
15207
15208 fi
15209 fi
15210 CC=$ac_cv_prog_CC
15211 if test -n "$CC"; then
15212   { echo "$as_me:$LINENO: result: $CC" >&5
15213 echo "${ECHO_T}$CC" >&6; }
15214 else
15215   { echo "$as_me:$LINENO: result: no" >&5
15216 echo "${ECHO_T}no" >&6; }
15217 fi
15218
15219
15220   fi
15221 fi
15222 if test -z "$CC"; then
15223   # Extract the first word of "cc", so it can be a program name with args.
15224 set dummy cc; ac_word=$2
15225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15227 if test "${ac_cv_prog_CC+set}" = set; then
15228   echo $ECHO_N "(cached) $ECHO_C" >&6
15229 else
15230   if test -n "$CC"; then
15231   ac_cv_prog_CC="$CC" # Let the user override the test.
15232 else
15233   ac_prog_rejected=no
15234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15235 for as_dir in $PATH
15236 do
15237   IFS=$as_save_IFS
15238   test -z "$as_dir" && as_dir=.
15239   for ac_exec_ext in '' $ac_executable_extensions; do
15240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15241     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15242        ac_prog_rejected=yes
15243        continue
15244      fi
15245     ac_cv_prog_CC="cc"
15246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15247     break 2
15248   fi
15249 done
15250 done
15251 IFS=$as_save_IFS
15252
15253 if test $ac_prog_rejected = yes; then
15254   # We found a bogon in the path, so make sure we never use it.
15255   set dummy $ac_cv_prog_CC
15256   shift
15257   if test $# != 0; then
15258     # We chose a different compiler from the bogus one.
15259     # However, it has the same basename, so the bogon will be chosen
15260     # first if we set CC to just the basename; use the full file name.
15261     shift
15262     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15263   fi
15264 fi
15265 fi
15266 fi
15267 CC=$ac_cv_prog_CC
15268 if test -n "$CC"; then
15269   { echo "$as_me:$LINENO: result: $CC" >&5
15270 echo "${ECHO_T}$CC" >&6; }
15271 else
15272   { echo "$as_me:$LINENO: result: no" >&5
15273 echo "${ECHO_T}no" >&6; }
15274 fi
15275
15276
15277 fi
15278 if test -z "$CC"; then
15279   if test -n "$ac_tool_prefix"; then
15280   for ac_prog in cl.exe
15281   do
15282     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15286 if test "${ac_cv_prog_CC+set}" = set; then
15287   echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289   if test -n "$CC"; then
15290   ac_cv_prog_CC="$CC" # Let the user override the test.
15291 else
15292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15293 for as_dir in $PATH
15294 do
15295   IFS=$as_save_IFS
15296   test -z "$as_dir" && as_dir=.
15297   for ac_exec_ext in '' $ac_executable_extensions; do
15298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15299     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15301     break 2
15302   fi
15303 done
15304 done
15305 IFS=$as_save_IFS
15306
15307 fi
15308 fi
15309 CC=$ac_cv_prog_CC
15310 if test -n "$CC"; then
15311   { echo "$as_me:$LINENO: result: $CC" >&5
15312 echo "${ECHO_T}$CC" >&6; }
15313 else
15314   { echo "$as_me:$LINENO: result: no" >&5
15315 echo "${ECHO_T}no" >&6; }
15316 fi
15317
15318
15319     test -n "$CC" && break
15320   done
15321 fi
15322 if test -z "$CC"; then
15323   ac_ct_CC=$CC
15324   for ac_prog in cl.exe
15325 do
15326   # Extract the first word of "$ac_prog", so it can be a program name with args.
15327 set dummy $ac_prog; ac_word=$2
15328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15330 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15331   echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333   if test -n "$ac_ct_CC"; then
15334   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15335 else
15336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15337 for as_dir in $PATH
15338 do
15339   IFS=$as_save_IFS
15340   test -z "$as_dir" && as_dir=.
15341   for ac_exec_ext in '' $ac_executable_extensions; do
15342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15343     ac_cv_prog_ac_ct_CC="$ac_prog"
15344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15345     break 2
15346   fi
15347 done
15348 done
15349 IFS=$as_save_IFS
15350
15351 fi
15352 fi
15353 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15354 if test -n "$ac_ct_CC"; then
15355   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15356 echo "${ECHO_T}$ac_ct_CC" >&6; }
15357 else
15358   { echo "$as_me:$LINENO: result: no" >&5
15359 echo "${ECHO_T}no" >&6; }
15360 fi
15361
15362
15363   test -n "$ac_ct_CC" && break
15364 done
15365
15366   if test "x$ac_ct_CC" = x; then
15367     CC=""
15368   else
15369     case $cross_compiling:$ac_tool_warned in
15370 yes:)
15371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15372 whose name does not start with the host triplet.  If you think this
15373 configuration is useful to you, please write to autoconf@gnu.org." >&5
15374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15375 whose name does not start with the host triplet.  If you think this
15376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15377 ac_tool_warned=yes ;;
15378 esac
15379     CC=$ac_ct_CC
15380   fi
15381 fi
15382
15383 fi
15384
15385
15386 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15387 See \`config.log' for more details." >&5
15388 echo "$as_me: error: no acceptable C compiler found in \$PATH
15389 See \`config.log' for more details." >&2;}
15390    { (exit 1); exit 1; }; }
15391
15392 # Provide some information about the compiler.
15393 echo "$as_me:$LINENO: checking for C compiler version" >&5
15394 ac_compiler=`set X $ac_compile; echo $2`
15395 { (ac_try="$ac_compiler --version >&5"
15396 case "(($ac_try" in
15397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398   *) ac_try_echo=$ac_try;;
15399 esac
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401   (eval "$ac_compiler --version >&5") 2>&5
15402   ac_status=$?
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); }
15405 { (ac_try="$ac_compiler -v >&5"
15406 case "(($ac_try" in
15407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408   *) ac_try_echo=$ac_try;;
15409 esac
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411   (eval "$ac_compiler -v >&5") 2>&5
15412   ac_status=$?
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); }
15415 { (ac_try="$ac_compiler -V >&5"
15416 case "(($ac_try" in
15417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418   *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421   (eval "$ac_compiler -V >&5") 2>&5
15422   ac_status=$?
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); }
15425
15426 cat >conftest.$ac_ext <<_ACEOF
15427 /* confdefs.h.  */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h.  */
15432
15433 int
15434 main ()
15435 {
15436
15437   ;
15438   return 0;
15439 }
15440 _ACEOF
15441 ac_clean_files_save=$ac_clean_files
15442 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15443 # Try to create an executable without -o first, disregard a.out.
15444 # It will help us diagnose broken compilers, and finding out an intuition
15445 # of exeext.
15446 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15447 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
15448 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15449 #
15450 # List of possible output files, starting from the most likely.
15451 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
15452 # only as a last resort.  b.out is created by i960 compilers.
15453 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
15454 #
15455 # The IRIX 6 linker writes into existing files which may not be
15456 # executable, retaining their permissions.  Remove them first so a
15457 # subsequent execution test works.
15458 ac_rmfiles=
15459 for ac_file in $ac_files
15460 do
15461   case $ac_file in
15462     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15463     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15464   esac
15465 done
15466 rm -f $ac_rmfiles
15467
15468 if { (ac_try="$ac_link_default"
15469 case "(($ac_try" in
15470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471   *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474   (eval "$ac_link_default") 2>&5
15475   ac_status=$?
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); }; then
15478   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
15479 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
15480 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
15481 # so that the user can short-circuit this test for compilers unknown to
15482 # Autoconf.
15483 for ac_file in $ac_files ''
15484 do
15485   test -f "$ac_file" || continue
15486   case $ac_file in
15487     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
15488         ;;
15489     [ab].out )
15490         # We found the default executable, but exeext='' is most
15491         # certainly right.
15492         break;;
15493     *.* )
15494         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
15495         then :; else
15496            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15497         fi
15498         # We set ac_cv_exeext here because the later test for it is not
15499         # safe: cross compilers may not add the suffix if given an `-o'
15500         # argument, so we may need to know it at that point already.
15501         # Even if this section looks crufty: it has the advantage of
15502         # actually working.
15503         break;;
15504     * )
15505         break;;
15506   esac
15507 done
15508 test "$ac_cv_exeext" = no && ac_cv_exeext=
15509
15510 else
15511   ac_file=''
15512 fi
15513
15514 { echo "$as_me:$LINENO: result: $ac_file" >&5
15515 echo "${ECHO_T}$ac_file" >&6; }
15516 if test -z "$ac_file"; then
15517   echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15519
15520 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
15521 See \`config.log' for more details." >&5
15522 echo "$as_me: error: C compiler cannot create executables
15523 See \`config.log' for more details." >&2;}
15524    { (exit 77); exit 77; }; }
15525 fi
15526
15527 ac_exeext=$ac_cv_exeext
15528
15529 # Check that the compiler produces executables we can run.  If not, either
15530 # the compiler is broken, or we cross compile.
15531 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
15532 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
15533 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15534 # If not cross compiling, check that we can run a simple program.
15535 if test "$cross_compiling" != yes; then
15536   if { ac_try='./$ac_file'
15537   { (case "(($ac_try" in
15538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539   *) ac_try_echo=$ac_try;;
15540 esac
15541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15542   (eval "$ac_try") 2>&5
15543   ac_status=$?
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); }; }; then
15546     cross_compiling=no
15547   else
15548     if test "$cross_compiling" = maybe; then
15549         cross_compiling=yes
15550     else
15551         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
15552 If you meant to cross compile, use \`--host'.
15553 See \`config.log' for more details." >&5
15554 echo "$as_me: error: cannot run C compiled programs.
15555 If you meant to cross compile, use \`--host'.
15556 See \`config.log' for more details." >&2;}
15557    { (exit 1); exit 1; }; }
15558     fi
15559   fi
15560 fi
15561 { echo "$as_me:$LINENO: result: yes" >&5
15562 echo "${ECHO_T}yes" >&6; }
15563
15564 rm -f a.out a.exe conftest$ac_cv_exeext b.out
15565 ac_clean_files=$ac_clean_files_save
15566 # Check that the compiler produces executables we can run.  If not, either
15567 # the compiler is broken, or we cross compile.
15568 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
15569 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
15570 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
15571 echo "${ECHO_T}$cross_compiling" >&6; }
15572
15573 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
15574 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
15575 if { (ac_try="$ac_link"
15576 case "(($ac_try" in
15577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578   *) ac_try_echo=$ac_try;;
15579 esac
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581   (eval "$ac_link") 2>&5
15582   ac_status=$?
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); }; then
15585   # If both `conftest.exe' and `conftest' are `present' (well, observable)
15586 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15587 # work properly (i.e., refer to `conftest.exe'), while it won't with
15588 # `rm'.
15589 for ac_file in conftest.exe conftest conftest.*; do
15590   test -f "$ac_file" || continue
15591   case $ac_file in
15592     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15593     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15594           break;;
15595     * ) break;;
15596   esac
15597 done
15598 else
15599   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
15600 See \`config.log' for more details." >&5
15601 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
15602 See \`config.log' for more details." >&2;}
15603    { (exit 1); exit 1; }; }
15604 fi
15605
15606 rm -f conftest$ac_cv_exeext
15607 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
15608 echo "${ECHO_T}$ac_cv_exeext" >&6; }
15609
15610 rm -f conftest.$ac_ext
15611 EXEEXT=$ac_cv_exeext
15612 ac_exeext=$EXEEXT
15613 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
15614 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
15615 if test "${ac_cv_objext+set}" = set; then
15616   echo $ECHO_N "(cached) $ECHO_C" >&6
15617 else
15618   cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h.  */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h.  */
15624
15625 int
15626 main ()
15627 {
15628
15629   ;
15630   return 0;
15631 }
15632 _ACEOF
15633 rm -f conftest.o conftest.obj
15634 if { (ac_try="$ac_compile"
15635 case "(($ac_try" in
15636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637   *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640   (eval "$ac_compile") 2>&5
15641   ac_status=$?
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); }; then
15644   for ac_file in conftest.o conftest.obj conftest.*; do
15645   test -f "$ac_file" || continue;
15646   case $ac_file in
15647     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
15648     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15649        break;;
15650   esac
15651 done
15652 else
15653   echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15655
15656 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
15657 See \`config.log' for more details." >&5
15658 echo "$as_me: error: cannot compute suffix of object files: cannot compile
15659 See \`config.log' for more details." >&2;}
15660    { (exit 1); exit 1; }; }
15661 fi
15662
15663 rm -f conftest.$ac_cv_objext conftest.$ac_ext
15664 fi
15665 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
15666 echo "${ECHO_T}$ac_cv_objext" >&6; }
15667 OBJEXT=$ac_cv_objext
15668 ac_objext=$OBJEXT
15669 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15670 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
15671 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15672   echo $ECHO_N "(cached) $ECHO_C" >&6
15673 else
15674   cat >conftest.$ac_ext <<_ACEOF
15675 /* confdefs.h.  */
15676 _ACEOF
15677 cat confdefs.h >>conftest.$ac_ext
15678 cat >>conftest.$ac_ext <<_ACEOF
15679 /* end confdefs.h.  */
15680
15681 int
15682 main ()
15683 {
15684 #ifndef __GNUC__
15685        choke me
15686 #endif
15687
15688   ;
15689   return 0;
15690 }
15691 _ACEOF
15692 rm -f conftest.$ac_objext
15693 if { (ac_try="$ac_compile"
15694 case "(($ac_try" in
15695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696   *) ac_try_echo=$ac_try;;
15697 esac
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699   (eval "$ac_compile") 2>conftest.er1
15700   ac_status=$?
15701   grep -v '^ *+' conftest.er1 >conftest.err
15702   rm -f conftest.er1
15703   cat conftest.err >&5
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); } && {
15706          test -z "$ac_c_werror_flag" ||
15707          test ! -s conftest.err
15708        } && test -s conftest.$ac_objext; then
15709   ac_compiler_gnu=yes
15710 else
15711   echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15713
15714         ac_compiler_gnu=no
15715 fi
15716
15717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15719
15720 fi
15721 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15722 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15723 GCC=`test $ac_compiler_gnu = yes && echo yes`
15724 ac_test_CFLAGS=${CFLAGS+set}
15725 ac_save_CFLAGS=$CFLAGS
15726 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15727 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15728 if test "${ac_cv_prog_cc_g+set}" = set; then
15729   echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731   ac_save_c_werror_flag=$ac_c_werror_flag
15732    ac_c_werror_flag=yes
15733    ac_cv_prog_cc_g=no
15734    CFLAGS="-g"
15735    cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h.  */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h.  */
15741
15742 int
15743 main ()
15744 {
15745
15746   ;
15747   return 0;
15748 }
15749 _ACEOF
15750 rm -f conftest.$ac_objext
15751 if { (ac_try="$ac_compile"
15752 case "(($ac_try" in
15753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754   *) ac_try_echo=$ac_try;;
15755 esac
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757   (eval "$ac_compile") 2>conftest.er1
15758   ac_status=$?
15759   grep -v '^ *+' conftest.er1 >conftest.err
15760   rm -f conftest.er1
15761   cat conftest.err >&5
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); } && {
15764          test -z "$ac_c_werror_flag" ||
15765          test ! -s conftest.err
15766        } && test -s conftest.$ac_objext; then
15767   ac_cv_prog_cc_g=yes
15768 else
15769   echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15771
15772         CFLAGS=""
15773       cat >conftest.$ac_ext <<_ACEOF
15774 /* confdefs.h.  */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h.  */
15779
15780 int
15781 main ()
15782 {
15783
15784   ;
15785   return 0;
15786 }
15787 _ACEOF
15788 rm -f conftest.$ac_objext
15789 if { (ac_try="$ac_compile"
15790 case "(($ac_try" in
15791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792   *) ac_try_echo=$ac_try;;
15793 esac
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795   (eval "$ac_compile") 2>conftest.er1
15796   ac_status=$?
15797   grep -v '^ *+' conftest.er1 >conftest.err
15798   rm -f conftest.er1
15799   cat conftest.err >&5
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); } && {
15802          test -z "$ac_c_werror_flag" ||
15803          test ! -s conftest.err
15804        } && test -s conftest.$ac_objext; then
15805   :
15806 else
15807   echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15809
15810         ac_c_werror_flag=$ac_save_c_werror_flag
15811          CFLAGS="-g"
15812          cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h.  */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h.  */
15818
15819 int
15820 main ()
15821 {
15822
15823   ;
15824   return 0;
15825 }
15826 _ACEOF
15827 rm -f conftest.$ac_objext
15828 if { (ac_try="$ac_compile"
15829 case "(($ac_try" in
15830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831   *) ac_try_echo=$ac_try;;
15832 esac
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834   (eval "$ac_compile") 2>conftest.er1
15835   ac_status=$?
15836   grep -v '^ *+' conftest.er1 >conftest.err
15837   rm -f conftest.er1
15838   cat conftest.err >&5
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); } && {
15841          test -z "$ac_c_werror_flag" ||
15842          test ! -s conftest.err
15843        } && test -s conftest.$ac_objext; then
15844   ac_cv_prog_cc_g=yes
15845 else
15846   echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15848
15849
15850 fi
15851
15852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853 fi
15854
15855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856 fi
15857
15858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15859    ac_c_werror_flag=$ac_save_c_werror_flag
15860 fi
15861 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15862 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15863 if test "$ac_test_CFLAGS" = set; then
15864   CFLAGS=$ac_save_CFLAGS
15865 elif test $ac_cv_prog_cc_g = yes; then
15866   if test "$GCC" = yes; then
15867     CFLAGS="-g -O2"
15868   else
15869     CFLAGS="-g"
15870   fi
15871 else
15872   if test "$GCC" = yes; then
15873     CFLAGS="-O2"
15874   else
15875     CFLAGS=
15876   fi
15877 fi
15878 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15879 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15880 if test "${ac_cv_prog_cc_c89+set}" = set; then
15881   echo $ECHO_N "(cached) $ECHO_C" >&6
15882 else
15883   ac_cv_prog_cc_c89=no
15884 ac_save_CC=$CC
15885 cat >conftest.$ac_ext <<_ACEOF
15886 /* confdefs.h.  */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h.  */
15891 #include <stdarg.h>
15892 #include <stdio.h>
15893 #include <sys/types.h>
15894 #include <sys/stat.h>
15895 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15896 struct buf { int x; };
15897 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15898 static char *e (p, i)
15899      char **p;
15900      int i;
15901 {
15902   return p[i];
15903 }
15904 static char *f (char * (*g) (char **, int), char **p, ...)
15905 {
15906   char *s;
15907   va_list v;
15908   va_start (v,p);
15909   s = g (p, va_arg (v,int));
15910   va_end (v);
15911   return s;
15912 }
15913
15914 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15915    function prototypes and stuff, but not '\xHH' hex character constants.
15916    These don't provoke an error unfortunately, instead are silently treated
15917    as 'x'.  The following induces an error, until -std is added to get
15918    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15919    array size at least.  It's necessary to write '\x00'==0 to get something
15920    that's true only with -std.  */
15921 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15922
15923 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15924    inside strings and character constants.  */
15925 #define FOO(x) 'x'
15926 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15927
15928 int test (int i, double x);
15929 struct s1 {int (*f) (int a);};
15930 struct s2 {int (*f) (double a);};
15931 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15932 int argc;
15933 char **argv;
15934 int
15935 main ()
15936 {
15937 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15938   ;
15939   return 0;
15940 }
15941 _ACEOF
15942 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15943         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15944 do
15945   CC="$ac_save_CC $ac_arg"
15946   rm -f conftest.$ac_objext
15947 if { (ac_try="$ac_compile"
15948 case "(($ac_try" in
15949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950   *) ac_try_echo=$ac_try;;
15951 esac
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953   (eval "$ac_compile") 2>conftest.er1
15954   ac_status=$?
15955   grep -v '^ *+' conftest.er1 >conftest.err
15956   rm -f conftest.er1
15957   cat conftest.err >&5
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); } && {
15960          test -z "$ac_c_werror_flag" ||
15961          test ! -s conftest.err
15962        } && test -s conftest.$ac_objext; then
15963   ac_cv_prog_cc_c89=$ac_arg
15964 else
15965   echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968
15969 fi
15970
15971 rm -f core conftest.err conftest.$ac_objext
15972   test "x$ac_cv_prog_cc_c89" != "xno" && break
15973 done
15974 rm -f conftest.$ac_ext
15975 CC=$ac_save_CC
15976
15977 fi
15978 # AC_CACHE_VAL
15979 case "x$ac_cv_prog_cc_c89" in
15980   x)
15981     { echo "$as_me:$LINENO: result: none needed" >&5
15982 echo "${ECHO_T}none needed" >&6; } ;;
15983   xno)
15984     { echo "$as_me:$LINENO: result: unsupported" >&5
15985 echo "${ECHO_T}unsupported" >&6; } ;;
15986   *)
15987     CC="$CC $ac_cv_prog_cc_c89"
15988     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15989 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
15990 esac
15991
15992
15993 ac_ext=c
15994 ac_cpp='$CPP $CPPFLAGS'
15995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15998
15999
16000
16001
16002
16003
16004
16005
16006     ac_ext=c
16007 ac_cpp='$CPP $CPPFLAGS'
16008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16011
16012     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
16013 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
16014 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
16015   echo $ECHO_N "(cached) $ECHO_C" >&6
16016 else
16017   cat >conftest.$ac_ext <<_ACEOF
16018 /* confdefs.h.  */
16019 _ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h.  */
16023
16024 int
16025 main ()
16026 {
16027
16028              #ifndef __INTEL_COMPILER
16029                 choke me
16030              #endif
16031
16032   ;
16033   return 0;
16034 }
16035 _ACEOF
16036 rm -f conftest.$ac_objext
16037 if { (ac_try="$ac_compile"
16038 case "(($ac_try" in
16039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040   *) ac_try_echo=$ac_try;;
16041 esac
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043   (eval "$ac_compile") 2>conftest.er1
16044   ac_status=$?
16045   grep -v '^ *+' conftest.er1 >conftest.err
16046   rm -f conftest.er1
16047   cat conftest.err >&5
16048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049   (exit $ac_status); } && {
16050          test -z "$ac_c_werror_flag" ||
16051          test ! -s conftest.err
16052        } && test -s conftest.$ac_objext; then
16053   bakefile_cv_c_compiler___INTEL_COMPILER=yes
16054 else
16055   echo "$as_me: failed program was:" >&5
16056 sed 's/^/| /' conftest.$ac_ext >&5
16057
16058         bakefile_cv_c_compiler___INTEL_COMPILER=no
16059
16060 fi
16061
16062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16063
16064
16065 fi
16066 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
16067 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
16068     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
16069         :; INTELCC=yes
16070     else
16071         :;
16072     fi
16073     ac_ext=c
16074 ac_cpp='$CPP $CPPFLAGS'
16075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16078
16079
16080
16081
16082         if test "$INTELCC" = "yes"; then
16083
16084
16085     ac_ext=c
16086 ac_cpp='$CPP $CPPFLAGS'
16087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16090
16091     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
16092 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
16093 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16094   echo $ECHO_N "(cached) $ECHO_C" >&6
16095 else
16096   cat >conftest.$ac_ext <<_ACEOF
16097 /* confdefs.h.  */
16098 _ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h.  */
16102
16103 int
16104 main ()
16105 {
16106
16107              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
16108                 choke me
16109              #endif
16110
16111   ;
16112   return 0;
16113 }
16114 _ACEOF
16115 rm -f conftest.$ac_objext
16116 if { (ac_try="$ac_compile"
16117 case "(($ac_try" in
16118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16119   *) ac_try_echo=$ac_try;;
16120 esac
16121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16122   (eval "$ac_compile") 2>conftest.er1
16123   ac_status=$?
16124   grep -v '^ *+' conftest.er1 >conftest.err
16125   rm -f conftest.er1
16126   cat conftest.err >&5
16127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128   (exit $ac_status); } && {
16129          test -z "$ac_c_werror_flag" ||
16130          test ! -s conftest.err
16131        } && test -s conftest.$ac_objext; then
16132   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
16133 else
16134   echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16136
16137         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
16138
16139 fi
16140
16141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16142
16143
16144 fi
16145 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
16146 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
16147     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
16148         :; INTELCC8=yes
16149     else
16150         :;
16151     fi
16152     ac_ext=c
16153 ac_cpp='$CPP $CPPFLAGS'
16154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16157
16158
16159
16160
16161
16162     ac_ext=c
16163 ac_cpp='$CPP $CPPFLAGS'
16164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16167
16168     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
16169 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
16170 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
16171   echo $ECHO_N "(cached) $ECHO_C" >&6
16172 else
16173   cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h.  */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h.  */
16179
16180 int
16181 main ()
16182 {
16183
16184              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
16185                 choke me
16186              #endif
16187
16188   ;
16189   return 0;
16190 }
16191 _ACEOF
16192 rm -f conftest.$ac_objext
16193 if { (ac_try="$ac_compile"
16194 case "(($ac_try" in
16195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196   *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199   (eval "$ac_compile") 2>conftest.er1
16200   ac_status=$?
16201   grep -v '^ *+' conftest.er1 >conftest.err
16202   rm -f conftest.er1
16203   cat conftest.err >&5
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); } && {
16206          test -z "$ac_c_werror_flag" ||
16207          test ! -s conftest.err
16208        } && test -s conftest.$ac_objext; then
16209   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
16210 else
16211   echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
16215
16216 fi
16217
16218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219
16220
16221 fi
16222 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
16223 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
16224     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
16225         :; INTELCC10=yes
16226     else
16227         :;
16228     fi
16229     ac_ext=c
16230 ac_cpp='$CPP $CPPFLAGS'
16231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16234
16235
16236
16237     fi
16238
16239         if test "x$GCC" != "xyes"; then
16240         if test "xCC" = "xC"; then
16241             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16242 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16243 if test "${bakefile_cv_c_exto+set}" = set; then
16244   echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246   cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h.  */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h.  */
16252
16253 int
16254 main ()
16255 {
16256
16257   ;
16258   return 0;
16259 }
16260 _ACEOF
16261 rm -f conftest.$ac_objext conftest.$ac_ext.o
16262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263   (eval $ac_compile) 2>&5
16264   ac_status=$?
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); }; then
16267   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16268     case $ac_file in
16269         conftest.$ac_ext.o)
16270             bakefile_cv_c_exto="-ext o"
16271             ;;
16272         *)
16273             ;;
16274     esac
16275 done
16276 else
16277   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16278 See \`config.log' for more details." >&5
16279 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16280 See \`config.log' for more details." >&2;}
16281    { (exit 1); exit 1; }; }
16282
16283 fi
16284
16285 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16286
16287 fi
16288 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16289 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16290 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16291     if test "c" = "c"; then
16292         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16293     fi
16294     if test "c" = "cxx"; then
16295         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16296     fi
16297 fi
16298
16299             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16300                 unset ac_cv_prog_cc_g
16301                 ac_test_CFLAGS=${CFLAGS+set}
16302 ac_save_CFLAGS=$CFLAGS
16303 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16304 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16305 if test "${ac_cv_prog_cc_g+set}" = set; then
16306   echo $ECHO_N "(cached) $ECHO_C" >&6
16307 else
16308   ac_save_c_werror_flag=$ac_c_werror_flag
16309    ac_c_werror_flag=yes
16310    ac_cv_prog_cc_g=no
16311    CFLAGS="-g"
16312    cat >conftest.$ac_ext <<_ACEOF
16313 /* confdefs.h.  */
16314 _ACEOF
16315 cat confdefs.h >>conftest.$ac_ext
16316 cat >>conftest.$ac_ext <<_ACEOF
16317 /* end confdefs.h.  */
16318
16319 int
16320 main ()
16321 {
16322
16323   ;
16324   return 0;
16325 }
16326 _ACEOF
16327 rm -f conftest.$ac_objext
16328 if { (ac_try="$ac_compile"
16329 case "(($ac_try" in
16330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331   *) ac_try_echo=$ac_try;;
16332 esac
16333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334   (eval "$ac_compile") 2>conftest.er1
16335   ac_status=$?
16336   grep -v '^ *+' conftest.er1 >conftest.err
16337   rm -f conftest.er1
16338   cat conftest.err >&5
16339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340   (exit $ac_status); } && {
16341          test -z "$ac_c_werror_flag" ||
16342          test ! -s conftest.err
16343        } && test -s conftest.$ac_objext; then
16344   ac_cv_prog_cc_g=yes
16345 else
16346   echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16348
16349         CFLAGS=""
16350       cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h.  */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h.  */
16356
16357 int
16358 main ()
16359 {
16360
16361   ;
16362   return 0;
16363 }
16364 _ACEOF
16365 rm -f conftest.$ac_objext
16366 if { (ac_try="$ac_compile"
16367 case "(($ac_try" in
16368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369   *) ac_try_echo=$ac_try;;
16370 esac
16371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372   (eval "$ac_compile") 2>conftest.er1
16373   ac_status=$?
16374   grep -v '^ *+' conftest.er1 >conftest.err
16375   rm -f conftest.er1
16376   cat conftest.err >&5
16377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378   (exit $ac_status); } && {
16379          test -z "$ac_c_werror_flag" ||
16380          test ! -s conftest.err
16381        } && test -s conftest.$ac_objext; then
16382   :
16383 else
16384   echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16386
16387         ac_c_werror_flag=$ac_save_c_werror_flag
16388          CFLAGS="-g"
16389          cat >conftest.$ac_ext <<_ACEOF
16390 /* confdefs.h.  */
16391 _ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h.  */
16395
16396 int
16397 main ()
16398 {
16399
16400   ;
16401   return 0;
16402 }
16403 _ACEOF
16404 rm -f conftest.$ac_objext
16405 if { (ac_try="$ac_compile"
16406 case "(($ac_try" in
16407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408   *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411   (eval "$ac_compile") 2>conftest.er1
16412   ac_status=$?
16413   grep -v '^ *+' conftest.er1 >conftest.err
16414   rm -f conftest.er1
16415   cat conftest.err >&5
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); } && {
16418          test -z "$ac_c_werror_flag" ||
16419          test ! -s conftest.err
16420        } && test -s conftest.$ac_objext; then
16421   ac_cv_prog_cc_g=yes
16422 else
16423   echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16425
16426
16427 fi
16428
16429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 fi
16431
16432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16433 fi
16434
16435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16436    ac_c_werror_flag=$ac_save_c_werror_flag
16437 fi
16438 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16439 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16440 if test "$ac_test_CFLAGS" = set; then
16441   CFLAGS=$ac_save_CFLAGS
16442 elif test $ac_cv_prog_cc_g = yes; then
16443   if test "$GCC" = yes; then
16444     CFLAGS="-g -O2"
16445   else
16446     CFLAGS="-g"
16447   fi
16448 else
16449   if test "$GCC" = yes; then
16450     CFLAGS="-O2"
16451   else
16452     CFLAGS=
16453   fi
16454 fi
16455             fi
16456         fi
16457
16458                         case `uname -s` in
16459             AIX*)
16460
16461
16462     ac_ext=c
16463 ac_cpp='$CPP $CPPFLAGS'
16464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16467
16468     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16469 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16470 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16471   echo $ECHO_N "(cached) $ECHO_C" >&6
16472 else
16473   cat >conftest.$ac_ext <<_ACEOF
16474 /* confdefs.h.  */
16475 _ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h.  */
16479
16480 int
16481 main ()
16482 {
16483
16484              #ifndef __xlC__
16485                 choke me
16486              #endif
16487
16488   ;
16489   return 0;
16490 }
16491 _ACEOF
16492 rm -f conftest.$ac_objext
16493 if { (ac_try="$ac_compile"
16494 case "(($ac_try" in
16495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496   *) ac_try_echo=$ac_try;;
16497 esac
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499   (eval "$ac_compile") 2>conftest.er1
16500   ac_status=$?
16501   grep -v '^ *+' conftest.er1 >conftest.err
16502   rm -f conftest.er1
16503   cat conftest.err >&5
16504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505   (exit $ac_status); } && {
16506          test -z "$ac_c_werror_flag" ||
16507          test ! -s conftest.err
16508        } && test -s conftest.$ac_objext; then
16509   bakefile_cv_c_compiler___xlC__=yes
16510 else
16511   echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16513
16514         bakefile_cv_c_compiler___xlC__=no
16515
16516 fi
16517
16518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16519
16520
16521 fi
16522 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16523 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16524     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16525         :; XLCC=yes
16526     else
16527         :;
16528     fi
16529     ac_ext=c
16530 ac_cpp='$CPP $CPPFLAGS'
16531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16534
16535
16536
16537                 ;;
16538
16539             Darwin)
16540
16541
16542     ac_ext=c
16543 ac_cpp='$CPP $CPPFLAGS'
16544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16547
16548     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
16549 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
16550 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
16551   echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553   cat >conftest.$ac_ext <<_ACEOF
16554 /* confdefs.h.  */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h.  */
16559
16560 int
16561 main ()
16562 {
16563
16564              #ifndef __MWERKS__
16565                 choke me
16566              #endif
16567
16568   ;
16569   return 0;
16570 }
16571 _ACEOF
16572 rm -f conftest.$ac_objext
16573 if { (ac_try="$ac_compile"
16574 case "(($ac_try" in
16575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576   *) ac_try_echo=$ac_try;;
16577 esac
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579   (eval "$ac_compile") 2>conftest.er1
16580   ac_status=$?
16581   grep -v '^ *+' conftest.er1 >conftest.err
16582   rm -f conftest.er1
16583   cat conftest.err >&5
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); } && {
16586          test -z "$ac_c_werror_flag" ||
16587          test ! -s conftest.err
16588        } && test -s conftest.$ac_objext; then
16589   bakefile_cv_c_compiler___MWERKS__=yes
16590 else
16591   echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16593
16594         bakefile_cv_c_compiler___MWERKS__=no
16595
16596 fi
16597
16598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16599
16600
16601 fi
16602 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16603 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
16604     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16605         :; MWCC=yes
16606     else
16607         :;
16608     fi
16609     ac_ext=c
16610 ac_cpp='$CPP $CPPFLAGS'
16611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16614
16615
16616
16617                 if test "$MWCC" != "yes"; then
16618
16619
16620     ac_ext=c
16621 ac_cpp='$CPP $CPPFLAGS'
16622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16625
16626     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16627 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16628 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16629   echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
16631   cat >conftest.$ac_ext <<_ACEOF
16632 /* confdefs.h.  */
16633 _ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h.  */
16637
16638 int
16639 main ()
16640 {
16641
16642              #ifndef __xlC__
16643                 choke me
16644              #endif
16645
16646   ;
16647   return 0;
16648 }
16649 _ACEOF
16650 rm -f conftest.$ac_objext
16651 if { (ac_try="$ac_compile"
16652 case "(($ac_try" in
16653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654   *) ac_try_echo=$ac_try;;
16655 esac
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657   (eval "$ac_compile") 2>conftest.er1
16658   ac_status=$?
16659   grep -v '^ *+' conftest.er1 >conftest.err
16660   rm -f conftest.er1
16661   cat conftest.err >&5
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } && {
16664          test -z "$ac_c_werror_flag" ||
16665          test ! -s conftest.err
16666        } && test -s conftest.$ac_objext; then
16667   bakefile_cv_c_compiler___xlC__=yes
16668 else
16669   echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16671
16672         bakefile_cv_c_compiler___xlC__=no
16673
16674 fi
16675
16676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16677
16678
16679 fi
16680 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16681 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16682     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16683         :; XLCC=yes
16684     else
16685         :;
16686     fi
16687     ac_ext=c
16688 ac_cpp='$CPP $CPPFLAGS'
16689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16692
16693
16694
16695                 fi
16696                 ;;
16697
16698             IRIX*)
16699
16700
16701     ac_ext=c
16702 ac_cpp='$CPP $CPPFLAGS'
16703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16706
16707     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16708 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
16709 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16710   echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712   cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h.  */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h.  */
16718
16719 int
16720 main ()
16721 {
16722
16723              #ifndef _SGI_COMPILER_VERSION
16724                 choke me
16725              #endif
16726
16727   ;
16728   return 0;
16729 }
16730 _ACEOF
16731 rm -f conftest.$ac_objext
16732 if { (ac_try="$ac_compile"
16733 case "(($ac_try" in
16734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735   *) ac_try_echo=$ac_try;;
16736 esac
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738   (eval "$ac_compile") 2>conftest.er1
16739   ac_status=$?
16740   grep -v '^ *+' conftest.er1 >conftest.err
16741   rm -f conftest.er1
16742   cat conftest.err >&5
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); } && {
16745          test -z "$ac_c_werror_flag" ||
16746          test ! -s conftest.err
16747        } && test -s conftest.$ac_objext; then
16748   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16749 else
16750   echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16754
16755 fi
16756
16757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16758
16759
16760 fi
16761 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16762 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16763     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16764         :; SGICC=yes
16765     else
16766         :;
16767     fi
16768     ac_ext=c
16769 ac_cpp='$CPP $CPPFLAGS'
16770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16773
16774
16775
16776                 ;;
16777
16778             Linux*)
16779                                                 if test "$INTELCC" != "yes"; then
16780
16781
16782     ac_ext=c
16783 ac_cpp='$CPP $CPPFLAGS'
16784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16787
16788     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16789 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16790 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16791   echo $ECHO_N "(cached) $ECHO_C" >&6
16792 else
16793   cat >conftest.$ac_ext <<_ACEOF
16794 /* confdefs.h.  */
16795 _ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h.  */
16799
16800 int
16801 main ()
16802 {
16803
16804              #ifndef __SUNPRO_C
16805                 choke me
16806              #endif
16807
16808   ;
16809   return 0;
16810 }
16811 _ACEOF
16812 rm -f conftest.$ac_objext
16813 if { (ac_try="$ac_compile"
16814 case "(($ac_try" in
16815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816   *) ac_try_echo=$ac_try;;
16817 esac
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819   (eval "$ac_compile") 2>conftest.er1
16820   ac_status=$?
16821   grep -v '^ *+' conftest.er1 >conftest.err
16822   rm -f conftest.er1
16823   cat conftest.err >&5
16824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); } && {
16826          test -z "$ac_c_werror_flag" ||
16827          test ! -s conftest.err
16828        } && test -s conftest.$ac_objext; then
16829   bakefile_cv_c_compiler___SUNPRO_C=yes
16830 else
16831   echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834         bakefile_cv_c_compiler___SUNPRO_C=no
16835
16836 fi
16837
16838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16839
16840
16841 fi
16842 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16843 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16844     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16845         :; SUNCC=yes
16846     else
16847         :;
16848     fi
16849     ac_ext=c
16850 ac_cpp='$CPP $CPPFLAGS'
16851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16854
16855
16856
16857                 fi
16858                 ;;
16859
16860             HP-UX*)
16861
16862
16863     ac_ext=c
16864 ac_cpp='$CPP $CPPFLAGS'
16865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16868
16869     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16870 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16871 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16872   echo $ECHO_N "(cached) $ECHO_C" >&6
16873 else
16874   cat >conftest.$ac_ext <<_ACEOF
16875 /* confdefs.h.  */
16876 _ACEOF
16877 cat confdefs.h >>conftest.$ac_ext
16878 cat >>conftest.$ac_ext <<_ACEOF
16879 /* end confdefs.h.  */
16880
16881 int
16882 main ()
16883 {
16884
16885              #ifndef __HP_cc
16886                 choke me
16887              #endif
16888
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897   *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900   (eval "$ac_compile") 2>conftest.er1
16901   ac_status=$?
16902   grep -v '^ *+' conftest.er1 >conftest.err
16903   rm -f conftest.er1
16904   cat conftest.err >&5
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); } && {
16907          test -z "$ac_c_werror_flag" ||
16908          test ! -s conftest.err
16909        } && test -s conftest.$ac_objext; then
16910   bakefile_cv_c_compiler___HP_cc=yes
16911 else
16912   echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16914
16915         bakefile_cv_c_compiler___HP_cc=no
16916
16917 fi
16918
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920
16921
16922 fi
16923 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16924 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
16925     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16926         :; HPCC=yes
16927     else
16928         :;
16929     fi
16930     ac_ext=c
16931 ac_cpp='$CPP $CPPFLAGS'
16932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16935
16936
16937
16938                 ;;
16939
16940             OSF1)
16941
16942
16943     ac_ext=c
16944 ac_cpp='$CPP $CPPFLAGS'
16945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16948
16949     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16950 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
16951 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16952   echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954   cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h.  */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h.  */
16960
16961 int
16962 main ()
16963 {
16964
16965              #ifndef __DECC
16966                 choke me
16967              #endif
16968
16969   ;
16970   return 0;
16971 }
16972 _ACEOF
16973 rm -f conftest.$ac_objext
16974 if { (ac_try="$ac_compile"
16975 case "(($ac_try" in
16976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977   *) ac_try_echo=$ac_try;;
16978 esac
16979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16980   (eval "$ac_compile") 2>conftest.er1
16981   ac_status=$?
16982   grep -v '^ *+' conftest.er1 >conftest.err
16983   rm -f conftest.er1
16984   cat conftest.err >&5
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); } && {
16987          test -z "$ac_c_werror_flag" ||
16988          test ! -s conftest.err
16989        } && test -s conftest.$ac_objext; then
16990   bakefile_cv_c_compiler___DECC=yes
16991 else
16992   echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995         bakefile_cv_c_compiler___DECC=no
16996
16997 fi
16998
16999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17000
17001
17002 fi
17003 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
17004 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
17005     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
17006         :; COMPAQCC=yes
17007     else
17008         :;
17009     fi
17010     ac_ext=c
17011 ac_cpp='$CPP $CPPFLAGS'
17012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17015
17016
17017
17018                 ;;
17019
17020             SunOS)
17021
17022
17023     ac_ext=c
17024 ac_cpp='$CPP $CPPFLAGS'
17025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17028
17029     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17030 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17031 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17032   echo $ECHO_N "(cached) $ECHO_C" >&6
17033 else
17034   cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h.  */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h.  */
17040
17041 int
17042 main ()
17043 {
17044
17045              #ifndef __SUNPRO_C
17046                 choke me
17047              #endif
17048
17049   ;
17050   return 0;
17051 }
17052 _ACEOF
17053 rm -f conftest.$ac_objext
17054 if { (ac_try="$ac_compile"
17055 case "(($ac_try" in
17056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057   *) ac_try_echo=$ac_try;;
17058 esac
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060   (eval "$ac_compile") 2>conftest.er1
17061   ac_status=$?
17062   grep -v '^ *+' conftest.er1 >conftest.err
17063   rm -f conftest.er1
17064   cat conftest.err >&5
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); } && {
17067          test -z "$ac_c_werror_flag" ||
17068          test ! -s conftest.err
17069        } && test -s conftest.$ac_objext; then
17070   bakefile_cv_c_compiler___SUNPRO_C=yes
17071 else
17072   echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17074
17075         bakefile_cv_c_compiler___SUNPRO_C=no
17076
17077 fi
17078
17079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080
17081
17082 fi
17083 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17084 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17085     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17086         :; SUNCC=yes
17087     else
17088         :;
17089     fi
17090     ac_ext=c
17091 ac_cpp='$CPP $CPPFLAGS'
17092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17095
17096
17097
17098                 ;;
17099         esac
17100     fi
17101
17102
17103
17104 ac_ext=c
17105 ac_cpp='$CPP $CPPFLAGS'
17106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17109 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
17110 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
17111 # On Suns, sometimes $CPP names a directory.
17112 if test -n "$CPP" && test -d "$CPP"; then
17113   CPP=
17114 fi
17115 if test -z "$CPP"; then
17116   if test "${ac_cv_prog_CPP+set}" = set; then
17117   echo $ECHO_N "(cached) $ECHO_C" >&6
17118 else
17119       # Double quotes because CPP needs to be expanded
17120     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17121     do
17122       ac_preproc_ok=false
17123 for ac_c_preproc_warn_flag in '' yes
17124 do
17125   # Use a header file that comes with gcc, so configuring glibc
17126   # with a fresh cross-compiler works.
17127   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17128   # <limits.h> exists even on freestanding compilers.
17129   # On the NeXT, cc -E runs the code through the compiler's parser,
17130   # not just through cpp. "Syntax error" is here to catch this case.
17131   cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h.  */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h.  */
17137 #ifdef __STDC__
17138 # include <limits.h>
17139 #else
17140 # include <assert.h>
17141 #endif
17142                      Syntax error
17143 _ACEOF
17144 if { (ac_try="$ac_cpp conftest.$ac_ext"
17145 case "(($ac_try" in
17146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147   *) ac_try_echo=$ac_try;;
17148 esac
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17151   ac_status=$?
17152   grep -v '^ *+' conftest.er1 >conftest.err
17153   rm -f conftest.er1
17154   cat conftest.err >&5
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); } >/dev/null && {
17157          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17158          test ! -s conftest.err
17159        }; then
17160   :
17161 else
17162   echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165   # Broken: fails on valid input.
17166 continue
17167 fi
17168
17169 rm -f conftest.err conftest.$ac_ext
17170
17171   # OK, works on sane cases.  Now check whether nonexistent headers
17172   # can be detected and how.
17173   cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h.  */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h.  */
17179 #include <ac_nonexistent.h>
17180 _ACEOF
17181 if { (ac_try="$ac_cpp conftest.$ac_ext"
17182 case "(($ac_try" in
17183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184   *) ac_try_echo=$ac_try;;
17185 esac
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17188   ac_status=$?
17189   grep -v '^ *+' conftest.er1 >conftest.err
17190   rm -f conftest.er1
17191   cat conftest.err >&5
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); } >/dev/null && {
17194          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17195          test ! -s conftest.err
17196        }; then
17197   # Broken: success on invalid input.
17198 continue
17199 else
17200   echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17202
17203   # Passes both tests.
17204 ac_preproc_ok=:
17205 break
17206 fi
17207
17208 rm -f conftest.err conftest.$ac_ext
17209
17210 done
17211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17212 rm -f conftest.err conftest.$ac_ext
17213 if $ac_preproc_ok; then
17214   break
17215 fi
17216
17217     done
17218     ac_cv_prog_CPP=$CPP
17219
17220 fi
17221   CPP=$ac_cv_prog_CPP
17222 else
17223   ac_cv_prog_CPP=$CPP
17224 fi
17225 { echo "$as_me:$LINENO: result: $CPP" >&5
17226 echo "${ECHO_T}$CPP" >&6; }
17227 ac_preproc_ok=false
17228 for ac_c_preproc_warn_flag in '' yes
17229 do
17230   # Use a header file that comes with gcc, so configuring glibc
17231   # with a fresh cross-compiler works.
17232   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17233   # <limits.h> exists even on freestanding compilers.
17234   # On the NeXT, cc -E runs the code through the compiler's parser,
17235   # not just through cpp. "Syntax error" is here to catch this case.
17236   cat >conftest.$ac_ext <<_ACEOF
17237 /* confdefs.h.  */
17238 _ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h.  */
17242 #ifdef __STDC__
17243 # include <limits.h>
17244 #else
17245 # include <assert.h>
17246 #endif
17247                      Syntax error
17248 _ACEOF
17249 if { (ac_try="$ac_cpp conftest.$ac_ext"
17250 case "(($ac_try" in
17251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252   *) ac_try_echo=$ac_try;;
17253 esac
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17256   ac_status=$?
17257   grep -v '^ *+' conftest.er1 >conftest.err
17258   rm -f conftest.er1
17259   cat conftest.err >&5
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); } >/dev/null && {
17262          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17263          test ! -s conftest.err
17264        }; then
17265   :
17266 else
17267   echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17269
17270   # Broken: fails on valid input.
17271 continue
17272 fi
17273
17274 rm -f conftest.err conftest.$ac_ext
17275
17276   # OK, works on sane cases.  Now check whether nonexistent headers
17277   # can be detected and how.
17278   cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h.  */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h.  */
17284 #include <ac_nonexistent.h>
17285 _ACEOF
17286 if { (ac_try="$ac_cpp conftest.$ac_ext"
17287 case "(($ac_try" in
17288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289   *) ac_try_echo=$ac_try;;
17290 esac
17291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17293   ac_status=$?
17294   grep -v '^ *+' conftest.er1 >conftest.err
17295   rm -f conftest.er1
17296   cat conftest.err >&5
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); } >/dev/null && {
17299          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17300          test ! -s conftest.err
17301        }; then
17302   # Broken: success on invalid input.
17303 continue
17304 else
17305   echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17307
17308   # Passes both tests.
17309 ac_preproc_ok=:
17310 break
17311 fi
17312
17313 rm -f conftest.err conftest.$ac_ext
17314
17315 done
17316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17317 rm -f conftest.err conftest.$ac_ext
17318 if $ac_preproc_ok; then
17319   :
17320 else
17321   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17322 See \`config.log' for more details." >&5
17323 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17324 See \`config.log' for more details." >&2;}
17325    { (exit 1); exit 1; }; }
17326 fi
17327
17328 ac_ext=c
17329 ac_cpp='$CPP $CPPFLAGS'
17330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17333
17334
17335 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17336 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17337 if test "${ac_cv_path_GREP+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   # Extract the first word of "grep ggrep" to use in msg output
17341 if test -z "$GREP"; then
17342 set dummy grep ggrep; ac_prog_name=$2
17343 if test "${ac_cv_path_GREP+set}" = set; then
17344   echo $ECHO_N "(cached) $ECHO_C" >&6
17345 else
17346   ac_path_GREP_found=false
17347 # Loop through the user's path and test for each of PROGNAME-LIST
17348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17349 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17350 do
17351   IFS=$as_save_IFS
17352   test -z "$as_dir" && as_dir=.
17353   for ac_prog in grep ggrep; do
17354   for ac_exec_ext in '' $ac_executable_extensions; do
17355     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17356     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17357     # Check for GNU ac_path_GREP and select it if it is found.
17358   # Check for GNU $ac_path_GREP
17359 case `"$ac_path_GREP" --version 2>&1` in
17360 *GNU*)
17361   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17362 *)
17363   ac_count=0
17364   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17365   while :
17366   do
17367     cat "conftest.in" "conftest.in" >"conftest.tmp"
17368     mv "conftest.tmp" "conftest.in"
17369     cp "conftest.in" "conftest.nl"
17370     echo 'GREP' >> "conftest.nl"
17371     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17372     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17373     ac_count=`expr $ac_count + 1`
17374     if test $ac_count -gt ${ac_path_GREP_max-0}; then
17375       # Best one so far, save it but keep looking for a better one
17376       ac_cv_path_GREP="$ac_path_GREP"
17377       ac_path_GREP_max=$ac_count
17378     fi
17379     # 10*(2^10) chars as input seems more than enough
17380     test $ac_count -gt 10 && break
17381   done
17382   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17383 esac
17384
17385
17386     $ac_path_GREP_found && break 3
17387   done
17388 done
17389
17390 done
17391 IFS=$as_save_IFS
17392
17393
17394 fi
17395
17396 GREP="$ac_cv_path_GREP"
17397 if test -z "$GREP"; then
17398   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17399 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17400    { (exit 1); exit 1; }; }
17401 fi
17402
17403 else
17404   ac_cv_path_GREP=$GREP
17405 fi
17406
17407
17408 fi
17409 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
17410 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
17411  GREP="$ac_cv_path_GREP"
17412
17413
17414 { echo "$as_me:$LINENO: checking for egrep" >&5
17415 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
17416 if test "${ac_cv_path_EGREP+set}" = set; then
17417   echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17420    then ac_cv_path_EGREP="$GREP -E"
17421    else
17422      # Extract the first word of "egrep" to use in msg output
17423 if test -z "$EGREP"; then
17424 set dummy egrep; ac_prog_name=$2
17425 if test "${ac_cv_path_EGREP+set}" = set; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428   ac_path_EGREP_found=false
17429 # Loop through the user's path and test for each of PROGNAME-LIST
17430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17431 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17432 do
17433   IFS=$as_save_IFS
17434   test -z "$as_dir" && as_dir=.
17435   for ac_prog in egrep; do
17436   for ac_exec_ext in '' $ac_executable_extensions; do
17437     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
17438     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
17439     # Check for GNU ac_path_EGREP and select it if it is found.
17440   # Check for GNU $ac_path_EGREP
17441 case `"$ac_path_EGREP" --version 2>&1` in
17442 *GNU*)
17443   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17444 *)
17445   ac_count=0
17446   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17447   while :
17448   do
17449     cat "conftest.in" "conftest.in" >"conftest.tmp"
17450     mv "conftest.tmp" "conftest.in"
17451     cp "conftest.in" "conftest.nl"
17452     echo 'EGREP' >> "conftest.nl"
17453     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17454     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17455     ac_count=`expr $ac_count + 1`
17456     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17457       # Best one so far, save it but keep looking for a better one
17458       ac_cv_path_EGREP="$ac_path_EGREP"
17459       ac_path_EGREP_max=$ac_count
17460     fi
17461     # 10*(2^10) chars as input seems more than enough
17462     test $ac_count -gt 10 && break
17463   done
17464   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17465 esac
17466
17467
17468     $ac_path_EGREP_found && break 3
17469   done
17470 done
17471
17472 done
17473 IFS=$as_save_IFS
17474
17475
17476 fi
17477
17478 EGREP="$ac_cv_path_EGREP"
17479 if test -z "$EGREP"; then
17480   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17481 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17482    { (exit 1); exit 1; }; }
17483 fi
17484
17485 else
17486   ac_cv_path_EGREP=$EGREP
17487 fi
17488
17489
17490    fi
17491 fi
17492 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
17493 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
17494  EGREP="$ac_cv_path_EGREP"
17495
17496
17497 if test $ac_cv_c_compiler_gnu = yes; then
17498     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
17499 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
17500 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
17501   echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503     ac_pattern="Autoconf.*'x'"
17504   cat >conftest.$ac_ext <<_ACEOF
17505 /* confdefs.h.  */
17506 _ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h.  */
17510 #include <sgtty.h>
17511 Autoconf TIOCGETP
17512 _ACEOF
17513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17514   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17515   ac_cv_prog_gcc_traditional=yes
17516 else
17517   ac_cv_prog_gcc_traditional=no
17518 fi
17519 rm -f conftest*
17520
17521
17522   if test $ac_cv_prog_gcc_traditional = no; then
17523     cat >conftest.$ac_ext <<_ACEOF
17524 /* confdefs.h.  */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h.  */
17529 #include <termio.h>
17530 Autoconf TCGETA
17531 _ACEOF
17532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17533   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17534   ac_cv_prog_gcc_traditional=yes
17535 fi
17536 rm -f conftest*
17537
17538   fi
17539 fi
17540 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
17541 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
17542   if test $ac_cv_prog_gcc_traditional = yes; then
17543     CC="$CC -traditional"
17544   fi
17545 fi
17546
17547
17548 CXXFLAGS=${CXXFLAGS:=}
17549 ac_ext=cpp
17550 ac_cpp='$CXXCPP $CPPFLAGS'
17551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17554 if test -z "$CXX"; then
17555   if test -n "$CCC"; then
17556     CXX=$CCC
17557   else
17558     if test -n "$ac_tool_prefix"; then
17559   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17560   do
17561     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17565 if test "${ac_cv_prog_CXX+set}" = set; then
17566   echo $ECHO_N "(cached) $ECHO_C" >&6
17567 else
17568   if test -n "$CXX"; then
17569   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17570 else
17571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17572 for as_dir in $PATH
17573 do
17574   IFS=$as_save_IFS
17575   test -z "$as_dir" && as_dir=.
17576   for ac_exec_ext in '' $ac_executable_extensions; do
17577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17578     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17580     break 2
17581   fi
17582 done
17583 done
17584 IFS=$as_save_IFS
17585
17586 fi
17587 fi
17588 CXX=$ac_cv_prog_CXX
17589 if test -n "$CXX"; then
17590   { echo "$as_me:$LINENO: result: $CXX" >&5
17591 echo "${ECHO_T}$CXX" >&6; }
17592 else
17593   { echo "$as_me:$LINENO: result: no" >&5
17594 echo "${ECHO_T}no" >&6; }
17595 fi
17596
17597
17598     test -n "$CXX" && break
17599   done
17600 fi
17601 if test -z "$CXX"; then
17602   ac_ct_CXX=$CXX
17603   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17604 do
17605   # Extract the first word of "$ac_prog", so it can be a program name with args.
17606 set dummy $ac_prog; ac_word=$2
17607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17609 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17610   echo $ECHO_N "(cached) $ECHO_C" >&6
17611 else
17612   if test -n "$ac_ct_CXX"; then
17613   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17614 else
17615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17616 for as_dir in $PATH
17617 do
17618   IFS=$as_save_IFS
17619   test -z "$as_dir" && as_dir=.
17620   for ac_exec_ext in '' $ac_executable_extensions; do
17621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17622     ac_cv_prog_ac_ct_CXX="$ac_prog"
17623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17624     break 2
17625   fi
17626 done
17627 done
17628 IFS=$as_save_IFS
17629
17630 fi
17631 fi
17632 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17633 if test -n "$ac_ct_CXX"; then
17634   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17635 echo "${ECHO_T}$ac_ct_CXX" >&6; }
17636 else
17637   { echo "$as_me:$LINENO: result: no" >&5
17638 echo "${ECHO_T}no" >&6; }
17639 fi
17640
17641
17642   test -n "$ac_ct_CXX" && break
17643 done
17644
17645   if test "x$ac_ct_CXX" = x; then
17646     CXX="g++"
17647   else
17648     case $cross_compiling:$ac_tool_warned in
17649 yes:)
17650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17651 whose name does not start with the host triplet.  If you think this
17652 configuration is useful to you, please write to autoconf@gnu.org." >&5
17653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17654 whose name does not start with the host triplet.  If you think this
17655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17656 ac_tool_warned=yes ;;
17657 esac
17658     CXX=$ac_ct_CXX
17659   fi
17660 fi
17661
17662   fi
17663 fi
17664 # Provide some information about the compiler.
17665 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
17666 ac_compiler=`set X $ac_compile; echo $2`
17667 { (ac_try="$ac_compiler --version >&5"
17668 case "(($ac_try" in
17669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670   *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673   (eval "$ac_compiler --version >&5") 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); }
17677 { (ac_try="$ac_compiler -v >&5"
17678 case "(($ac_try" in
17679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680   *) ac_try_echo=$ac_try;;
17681 esac
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683   (eval "$ac_compiler -v >&5") 2>&5
17684   ac_status=$?
17685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686   (exit $ac_status); }
17687 { (ac_try="$ac_compiler -V >&5"
17688 case "(($ac_try" in
17689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690   *) ac_try_echo=$ac_try;;
17691 esac
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693   (eval "$ac_compiler -V >&5") 2>&5
17694   ac_status=$?
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); }
17697
17698 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17699 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17700 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17701   echo $ECHO_N "(cached) $ECHO_C" >&6
17702 else
17703   cat >conftest.$ac_ext <<_ACEOF
17704 /* confdefs.h.  */
17705 _ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h.  */
17709
17710 int
17711 main ()
17712 {
17713 #ifndef __GNUC__
17714        choke me
17715 #endif
17716
17717   ;
17718   return 0;
17719 }
17720 _ACEOF
17721 rm -f conftest.$ac_objext
17722 if { (ac_try="$ac_compile"
17723 case "(($ac_try" in
17724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725   *) ac_try_echo=$ac_try;;
17726 esac
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728   (eval "$ac_compile") 2>conftest.er1
17729   ac_status=$?
17730   grep -v '^ *+' conftest.er1 >conftest.err
17731   rm -f conftest.er1
17732   cat conftest.err >&5
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); } && {
17735          test -z "$ac_cxx_werror_flag" ||
17736          test ! -s conftest.err
17737        } && test -s conftest.$ac_objext; then
17738   ac_compiler_gnu=yes
17739 else
17740   echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17742
17743         ac_compiler_gnu=no
17744 fi
17745
17746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17747 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17748
17749 fi
17750 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17751 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17752 GXX=`test $ac_compiler_gnu = yes && echo yes`
17753 ac_test_CXXFLAGS=${CXXFLAGS+set}
17754 ac_save_CXXFLAGS=$CXXFLAGS
17755 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17756 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17757 if test "${ac_cv_prog_cxx_g+set}" = set; then
17758   echo $ECHO_N "(cached) $ECHO_C" >&6
17759 else
17760   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17761    ac_cxx_werror_flag=yes
17762    ac_cv_prog_cxx_g=no
17763    CXXFLAGS="-g"
17764    cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h.  */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h.  */
17770
17771 int
17772 main ()
17773 {
17774
17775   ;
17776   return 0;
17777 }
17778 _ACEOF
17779 rm -f conftest.$ac_objext
17780 if { (ac_try="$ac_compile"
17781 case "(($ac_try" in
17782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783   *) ac_try_echo=$ac_try;;
17784 esac
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786   (eval "$ac_compile") 2>conftest.er1
17787   ac_status=$?
17788   grep -v '^ *+' conftest.er1 >conftest.err
17789   rm -f conftest.er1
17790   cat conftest.err >&5
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } && {
17793          test -z "$ac_cxx_werror_flag" ||
17794          test ! -s conftest.err
17795        } && test -s conftest.$ac_objext; then
17796   ac_cv_prog_cxx_g=yes
17797 else
17798   echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801         CXXFLAGS=""
17802       cat >conftest.$ac_ext <<_ACEOF
17803 /* confdefs.h.  */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h.  */
17808
17809 int
17810 main ()
17811 {
17812
17813   ;
17814   return 0;
17815 }
17816 _ACEOF
17817 rm -f conftest.$ac_objext
17818 if { (ac_try="$ac_compile"
17819 case "(($ac_try" in
17820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821   *) ac_try_echo=$ac_try;;
17822 esac
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824   (eval "$ac_compile") 2>conftest.er1
17825   ac_status=$?
17826   grep -v '^ *+' conftest.er1 >conftest.err
17827   rm -f conftest.er1
17828   cat conftest.err >&5
17829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830   (exit $ac_status); } && {
17831          test -z "$ac_cxx_werror_flag" ||
17832          test ! -s conftest.err
17833        } && test -s conftest.$ac_objext; then
17834   :
17835 else
17836   echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17838
17839         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17840          CXXFLAGS="-g"
17841          cat >conftest.$ac_ext <<_ACEOF
17842 /* confdefs.h.  */
17843 _ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h.  */
17847
17848 int
17849 main ()
17850 {
17851
17852   ;
17853   return 0;
17854 }
17855 _ACEOF
17856 rm -f conftest.$ac_objext
17857 if { (ac_try="$ac_compile"
17858 case "(($ac_try" in
17859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860   *) ac_try_echo=$ac_try;;
17861 esac
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863   (eval "$ac_compile") 2>conftest.er1
17864   ac_status=$?
17865   grep -v '^ *+' conftest.er1 >conftest.err
17866   rm -f conftest.er1
17867   cat conftest.err >&5
17868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); } && {
17870          test -z "$ac_cxx_werror_flag" ||
17871          test ! -s conftest.err
17872        } && test -s conftest.$ac_objext; then
17873   ac_cv_prog_cxx_g=yes
17874 else
17875   echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17877
17878
17879 fi
17880
17881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17882 fi
17883
17884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17885 fi
17886
17887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17888    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17889 fi
17890 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17891 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17892 if test "$ac_test_CXXFLAGS" = set; then
17893   CXXFLAGS=$ac_save_CXXFLAGS
17894 elif test $ac_cv_prog_cxx_g = yes; then
17895   if test "$GXX" = yes; then
17896     CXXFLAGS="-g -O2"
17897   else
17898     CXXFLAGS="-g"
17899   fi
17900 else
17901   if test "$GXX" = yes; then
17902     CXXFLAGS="-O2"
17903   else
17904     CXXFLAGS=
17905   fi
17906 fi
17907 ac_ext=c
17908 ac_cpp='$CPP $CPPFLAGS'
17909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17912
17913
17914
17915
17916
17917
17918
17919
17920     ac_ext=cpp
17921 ac_cpp='$CXXCPP $CPPFLAGS'
17922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17925
17926     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17927 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
17928 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
17929   echo $ECHO_N "(cached) $ECHO_C" >&6
17930 else
17931   cat >conftest.$ac_ext <<_ACEOF
17932 /* confdefs.h.  */
17933 _ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h.  */
17937
17938 int
17939 main ()
17940 {
17941
17942              #ifndef __INTEL_COMPILER
17943                 choke me
17944              #endif
17945
17946   ;
17947   return 0;
17948 }
17949 _ACEOF
17950 rm -f conftest.$ac_objext
17951 if { (ac_try="$ac_compile"
17952 case "(($ac_try" in
17953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954   *) ac_try_echo=$ac_try;;
17955 esac
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957   (eval "$ac_compile") 2>conftest.er1
17958   ac_status=$?
17959   grep -v '^ *+' conftest.er1 >conftest.err
17960   rm -f conftest.er1
17961   cat conftest.err >&5
17962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); } && {
17964          test -z "$ac_cxx_werror_flag" ||
17965          test ! -s conftest.err
17966        } && test -s conftest.$ac_objext; then
17967   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
17968 else
17969   echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17971
17972         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
17973
17974 fi
17975
17976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17977
17978
17979 fi
17980 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
17981 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
17982     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
17983         :; INTELCXX=yes
17984     else
17985         :;
17986     fi
17987     ac_ext=c
17988 ac_cpp='$CPP $CPPFLAGS'
17989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17992
17993
17994
17995
17996         if test "$INTELCXX" = "yes"; then
17997
17998
17999     ac_ext=cpp
18000 ac_cpp='$CXXCPP $CPPFLAGS'
18001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18004
18005     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
18006 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
18007 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
18008   echo $ECHO_N "(cached) $ECHO_C" >&6
18009 else
18010   cat >conftest.$ac_ext <<_ACEOF
18011 /* confdefs.h.  */
18012 _ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h.  */
18016
18017 int
18018 main ()
18019 {
18020
18021              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
18022                 choke me
18023              #endif
18024
18025   ;
18026   return 0;
18027 }
18028 _ACEOF
18029 rm -f conftest.$ac_objext
18030 if { (ac_try="$ac_compile"
18031 case "(($ac_try" in
18032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033   *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036   (eval "$ac_compile") 2>conftest.er1
18037   ac_status=$?
18038   grep -v '^ *+' conftest.er1 >conftest.err
18039   rm -f conftest.er1
18040   cat conftest.err >&5
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); } && {
18043          test -z "$ac_cxx_werror_flag" ||
18044          test ! -s conftest.err
18045        } && test -s conftest.$ac_objext; then
18046   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
18047 else
18048   echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
18052
18053 fi
18054
18055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056
18057
18058 fi
18059 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
18060 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
18061     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
18062         :; INTELCXX8=yes
18063     else
18064         :;
18065     fi
18066     ac_ext=c
18067 ac_cpp='$CPP $CPPFLAGS'
18068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18071
18072
18073
18074
18075
18076     ac_ext=cpp
18077 ac_cpp='$CXXCPP $CPPFLAGS'
18078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18081
18082     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
18083 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
18084 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
18085   echo $ECHO_N "(cached) $ECHO_C" >&6
18086 else
18087   cat >conftest.$ac_ext <<_ACEOF
18088 /* confdefs.h.  */
18089 _ACEOF
18090 cat confdefs.h >>conftest.$ac_ext
18091 cat >>conftest.$ac_ext <<_ACEOF
18092 /* end confdefs.h.  */
18093
18094 int
18095 main ()
18096 {
18097
18098              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
18099                 choke me
18100              #endif
18101
18102   ;
18103   return 0;
18104 }
18105 _ACEOF
18106 rm -f conftest.$ac_objext
18107 if { (ac_try="$ac_compile"
18108 case "(($ac_try" in
18109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110   *) ac_try_echo=$ac_try;;
18111 esac
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113   (eval "$ac_compile") 2>conftest.er1
18114   ac_status=$?
18115   grep -v '^ *+' conftest.er1 >conftest.err
18116   rm -f conftest.er1
18117   cat conftest.err >&5
18118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); } && {
18120          test -z "$ac_cxx_werror_flag" ||
18121          test ! -s conftest.err
18122        } && test -s conftest.$ac_objext; then
18123   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
18124 else
18125   echo "$as_me: failed program was:" >&5
18126 sed 's/^/| /' conftest.$ac_ext >&5
18127
18128         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
18129
18130 fi
18131
18132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18133
18134
18135 fi
18136 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
18137 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
18138     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
18139         :; INTELCXX10=yes
18140     else
18141         :;
18142     fi
18143     ac_ext=c
18144 ac_cpp='$CPP $CPPFLAGS'
18145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18148
18149
18150
18151     fi
18152
18153         if test "x$GCXX" != "xyes"; then
18154         if test "xCXX" = "xC"; then
18155             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18156 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18157 if test "${bakefile_cv_c_exto+set}" = set; then
18158   echo $ECHO_N "(cached) $ECHO_C" >&6
18159 else
18160   cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h.  */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h.  */
18166
18167 int
18168 main ()
18169 {
18170
18171   ;
18172   return 0;
18173 }
18174 _ACEOF
18175 rm -f conftest.$ac_objext conftest.$ac_ext.o
18176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18177   (eval $ac_compile) 2>&5
18178   ac_status=$?
18179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); }; then
18181   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18182     case $ac_file in
18183         conftest.$ac_ext.o)
18184             bakefile_cv_c_exto="-ext o"
18185             ;;
18186         *)
18187             ;;
18188     esac
18189 done
18190 else
18191   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18192 See \`config.log' for more details." >&5
18193 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18194 See \`config.log' for more details." >&2;}
18195    { (exit 1); exit 1; }; }
18196
18197 fi
18198
18199 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18200
18201 fi
18202 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18203 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18204 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18205     if test "c" = "c"; then
18206         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18207     fi
18208     if test "c" = "cxx"; then
18209         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18210     fi
18211 fi
18212
18213             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18214                 unset ac_cv_prog_cc_g
18215                 ac_test_CFLAGS=${CFLAGS+set}
18216 ac_save_CFLAGS=$CFLAGS
18217 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18218 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18219 if test "${ac_cv_prog_cc_g+set}" = set; then
18220   echo $ECHO_N "(cached) $ECHO_C" >&6
18221 else
18222   ac_save_c_werror_flag=$ac_c_werror_flag
18223    ac_c_werror_flag=yes
18224    ac_cv_prog_cc_g=no
18225    CFLAGS="-g"
18226    cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h.  */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h.  */
18232
18233 int
18234 main ()
18235 {
18236
18237   ;
18238   return 0;
18239 }
18240 _ACEOF
18241 rm -f conftest.$ac_objext
18242 if { (ac_try="$ac_compile"
18243 case "(($ac_try" in
18244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245   *) ac_try_echo=$ac_try;;
18246 esac
18247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18248   (eval "$ac_compile") 2>conftest.er1
18249   ac_status=$?
18250   grep -v '^ *+' conftest.er1 >conftest.err
18251   rm -f conftest.er1
18252   cat conftest.err >&5
18253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254   (exit $ac_status); } && {
18255          test -z "$ac_c_werror_flag" ||
18256          test ! -s conftest.err
18257        } && test -s conftest.$ac_objext; then
18258   ac_cv_prog_cc_g=yes
18259 else
18260   echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18262
18263         CFLAGS=""
18264       cat >conftest.$ac_ext <<_ACEOF
18265 /* confdefs.h.  */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h.  */
18270
18271 int
18272 main ()
18273 {
18274
18275   ;
18276   return 0;
18277 }
18278 _ACEOF
18279 rm -f conftest.$ac_objext
18280 if { (ac_try="$ac_compile"
18281 case "(($ac_try" in
18282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283   *) ac_try_echo=$ac_try;;
18284 esac
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286   (eval "$ac_compile") 2>conftest.er1
18287   ac_status=$?
18288   grep -v '^ *+' conftest.er1 >conftest.err
18289   rm -f conftest.er1
18290   cat conftest.err >&5
18291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292   (exit $ac_status); } && {
18293          test -z "$ac_c_werror_flag" ||
18294          test ! -s conftest.err
18295        } && test -s conftest.$ac_objext; then
18296   :
18297 else
18298   echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18300
18301         ac_c_werror_flag=$ac_save_c_werror_flag
18302          CFLAGS="-g"
18303          cat >conftest.$ac_ext <<_ACEOF
18304 /* confdefs.h.  */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h.  */
18309
18310 int
18311 main ()
18312 {
18313
18314   ;
18315   return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext
18319 if { (ac_try="$ac_compile"
18320 case "(($ac_try" in
18321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322   *) ac_try_echo=$ac_try;;
18323 esac
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325   (eval "$ac_compile") 2>conftest.er1
18326   ac_status=$?
18327   grep -v '^ *+' conftest.er1 >conftest.err
18328   rm -f conftest.er1
18329   cat conftest.err >&5
18330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331   (exit $ac_status); } && {
18332          test -z "$ac_c_werror_flag" ||
18333          test ! -s conftest.err
18334        } && test -s conftest.$ac_objext; then
18335   ac_cv_prog_cc_g=yes
18336 else
18337   echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340
18341 fi
18342
18343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18344 fi
18345
18346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18347 fi
18348
18349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18350    ac_c_werror_flag=$ac_save_c_werror_flag
18351 fi
18352 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18353 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18354 if test "$ac_test_CFLAGS" = set; then
18355   CFLAGS=$ac_save_CFLAGS
18356 elif test $ac_cv_prog_cc_g = yes; then
18357   if test "$GCC" = yes; then
18358     CFLAGS="-g -O2"
18359   else
18360     CFLAGS="-g"
18361   fi
18362 else
18363   if test "$GCC" = yes; then
18364     CFLAGS="-O2"
18365   else
18366     CFLAGS=
18367   fi
18368 fi
18369             fi
18370         fi
18371
18372                         case `uname -s` in
18373             AIX*)
18374
18375
18376     ac_ext=cpp
18377 ac_cpp='$CXXCPP $CPPFLAGS'
18378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18381
18382     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18383 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18384 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18385   echo $ECHO_N "(cached) $ECHO_C" >&6
18386 else
18387   cat >conftest.$ac_ext <<_ACEOF
18388 /* confdefs.h.  */
18389 _ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h.  */
18393
18394 int
18395 main ()
18396 {
18397
18398              #ifndef __xlC__
18399                 choke me
18400              #endif
18401
18402   ;
18403   return 0;
18404 }
18405 _ACEOF
18406 rm -f conftest.$ac_objext
18407 if { (ac_try="$ac_compile"
18408 case "(($ac_try" in
18409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410   *) ac_try_echo=$ac_try;;
18411 esac
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413   (eval "$ac_compile") 2>conftest.er1
18414   ac_status=$?
18415   grep -v '^ *+' conftest.er1 >conftest.err
18416   rm -f conftest.er1
18417   cat conftest.err >&5
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); } && {
18420          test -z "$ac_cxx_werror_flag" ||
18421          test ! -s conftest.err
18422        } && test -s conftest.$ac_objext; then
18423   bakefile_cv_cxx_compiler___xlC__=yes
18424 else
18425   echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18427
18428         bakefile_cv_cxx_compiler___xlC__=no
18429
18430 fi
18431
18432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18433
18434
18435 fi
18436 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18437 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18438     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18439         :; XLCXX=yes
18440     else
18441         :;
18442     fi
18443     ac_ext=c
18444 ac_cpp='$CPP $CPPFLAGS'
18445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18448
18449
18450
18451                 ;;
18452
18453             Darwin)
18454
18455
18456     ac_ext=cpp
18457 ac_cpp='$CXXCPP $CPPFLAGS'
18458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18461
18462     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18463 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18464 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18465   echo $ECHO_N "(cached) $ECHO_C" >&6
18466 else
18467   cat >conftest.$ac_ext <<_ACEOF
18468 /* confdefs.h.  */
18469 _ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h.  */
18473
18474 int
18475 main ()
18476 {
18477
18478              #ifndef __MWERKS__
18479                 choke me
18480              #endif
18481
18482   ;
18483   return 0;
18484 }
18485 _ACEOF
18486 rm -f conftest.$ac_objext
18487 if { (ac_try="$ac_compile"
18488 case "(($ac_try" in
18489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490   *) ac_try_echo=$ac_try;;
18491 esac
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493   (eval "$ac_compile") 2>conftest.er1
18494   ac_status=$?
18495   grep -v '^ *+' conftest.er1 >conftest.err
18496   rm -f conftest.er1
18497   cat conftest.err >&5
18498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499   (exit $ac_status); } && {
18500          test -z "$ac_cxx_werror_flag" ||
18501          test ! -s conftest.err
18502        } && test -s conftest.$ac_objext; then
18503   bakefile_cv_cxx_compiler___MWERKS__=yes
18504 else
18505   echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18507
18508         bakefile_cv_cxx_compiler___MWERKS__=no
18509
18510 fi
18511
18512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18513
18514
18515 fi
18516 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18517 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18518     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18519         :; MWCXX=yes
18520     else
18521         :;
18522     fi
18523     ac_ext=c
18524 ac_cpp='$CPP $CPPFLAGS'
18525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18528
18529
18530
18531                 if test "$MWCXX" != "yes"; then
18532
18533
18534     ac_ext=cpp
18535 ac_cpp='$CXXCPP $CPPFLAGS'
18536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18539
18540     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18541 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18542 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18543   echo $ECHO_N "(cached) $ECHO_C" >&6
18544 else
18545   cat >conftest.$ac_ext <<_ACEOF
18546 /* confdefs.h.  */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h.  */
18551
18552 int
18553 main ()
18554 {
18555
18556              #ifndef __xlC__
18557                 choke me
18558              #endif
18559
18560   ;
18561   return 0;
18562 }
18563 _ACEOF
18564 rm -f conftest.$ac_objext
18565 if { (ac_try="$ac_compile"
18566 case "(($ac_try" in
18567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18568   *) ac_try_echo=$ac_try;;
18569 esac
18570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18571   (eval "$ac_compile") 2>conftest.er1
18572   ac_status=$?
18573   grep -v '^ *+' conftest.er1 >conftest.err
18574   rm -f conftest.er1
18575   cat conftest.err >&5
18576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577   (exit $ac_status); } && {
18578          test -z "$ac_cxx_werror_flag" ||
18579          test ! -s conftest.err
18580        } && test -s conftest.$ac_objext; then
18581   bakefile_cv_cxx_compiler___xlC__=yes
18582 else
18583   echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18585
18586         bakefile_cv_cxx_compiler___xlC__=no
18587
18588 fi
18589
18590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18591
18592
18593 fi
18594 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18595 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18596     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18597         :; XLCXX=yes
18598     else
18599         :;
18600     fi
18601     ac_ext=c
18602 ac_cpp='$CPP $CPPFLAGS'
18603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18606
18607
18608
18609                 fi
18610                 ;;
18611
18612             IRIX*)
18613
18614
18615     ac_ext=cpp
18616 ac_cpp='$CXXCPP $CPPFLAGS'
18617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18620
18621     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
18622 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
18623 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
18624   echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626   cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h.  */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h.  */
18632
18633 int
18634 main ()
18635 {
18636
18637              #ifndef _SGI_COMPILER_VERSION
18638                 choke me
18639              #endif
18640
18641   ;
18642   return 0;
18643 }
18644 _ACEOF
18645 rm -f conftest.$ac_objext
18646 if { (ac_try="$ac_compile"
18647 case "(($ac_try" in
18648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649   *) ac_try_echo=$ac_try;;
18650 esac
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652   (eval "$ac_compile") 2>conftest.er1
18653   ac_status=$?
18654   grep -v '^ *+' conftest.er1 >conftest.err
18655   rm -f conftest.er1
18656   cat conftest.err >&5
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); } && {
18659          test -z "$ac_cxx_werror_flag" ||
18660          test ! -s conftest.err
18661        } && test -s conftest.$ac_objext; then
18662   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18663 else
18664   echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18668
18669 fi
18670
18671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18672
18673
18674 fi
18675 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18676 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18677     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18678         :; SGICXX=yes
18679     else
18680         :;
18681     fi
18682     ac_ext=c
18683 ac_cpp='$CPP $CPPFLAGS'
18684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18687
18688
18689
18690                 ;;
18691
18692             Linux*)
18693                                                 if test "$INTELCXX" != "yes"; then
18694
18695
18696     ac_ext=cpp
18697 ac_cpp='$CXXCPP $CPPFLAGS'
18698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18701
18702     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18703 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18704 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18705   echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707   cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h.  */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h.  */
18713
18714 int
18715 main ()
18716 {
18717
18718              #ifndef __SUNPRO_CC
18719                 choke me
18720              #endif
18721
18722   ;
18723   return 0;
18724 }
18725 _ACEOF
18726 rm -f conftest.$ac_objext
18727 if { (ac_try="$ac_compile"
18728 case "(($ac_try" in
18729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730   *) ac_try_echo=$ac_try;;
18731 esac
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733   (eval "$ac_compile") 2>conftest.er1
18734   ac_status=$?
18735   grep -v '^ *+' conftest.er1 >conftest.err
18736   rm -f conftest.er1
18737   cat conftest.err >&5
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); } && {
18740          test -z "$ac_cxx_werror_flag" ||
18741          test ! -s conftest.err
18742        } && test -s conftest.$ac_objext; then
18743   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18744 else
18745   echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18747
18748         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18749
18750 fi
18751
18752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18753
18754
18755 fi
18756 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18757 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18758     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18759         :; SUNCXX=yes
18760     else
18761         :;
18762     fi
18763     ac_ext=c
18764 ac_cpp='$CPP $CPPFLAGS'
18765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18768
18769
18770
18771                 fi
18772                 ;;
18773
18774             HP-UX*)
18775
18776
18777     ac_ext=cpp
18778 ac_cpp='$CXXCPP $CPPFLAGS'
18779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18782
18783     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18784 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18785 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18786   echo $ECHO_N "(cached) $ECHO_C" >&6
18787 else
18788   cat >conftest.$ac_ext <<_ACEOF
18789 /* confdefs.h.  */
18790 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h.  */
18794
18795 int
18796 main ()
18797 {
18798
18799              #ifndef __HP_aCC
18800                 choke me
18801              #endif
18802
18803   ;
18804   return 0;
18805 }
18806 _ACEOF
18807 rm -f conftest.$ac_objext
18808 if { (ac_try="$ac_compile"
18809 case "(($ac_try" in
18810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811   *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814   (eval "$ac_compile") 2>conftest.er1
18815   ac_status=$?
18816   grep -v '^ *+' conftest.er1 >conftest.err
18817   rm -f conftest.er1
18818   cat conftest.err >&5
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); } && {
18821          test -z "$ac_cxx_werror_flag" ||
18822          test ! -s conftest.err
18823        } && test -s conftest.$ac_objext; then
18824   bakefile_cv_cxx_compiler___HP_aCC=yes
18825 else
18826   echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18828
18829         bakefile_cv_cxx_compiler___HP_aCC=no
18830
18831 fi
18832
18833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18834
18835
18836 fi
18837 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18838 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18839     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18840         :; HPCXX=yes
18841     else
18842         :;
18843     fi
18844     ac_ext=c
18845 ac_cpp='$CPP $CPPFLAGS'
18846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18849
18850
18851
18852                 ;;
18853
18854             OSF1)
18855
18856
18857     ac_ext=cpp
18858 ac_cpp='$CXXCPP $CPPFLAGS'
18859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18862
18863     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18864 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18865 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18866   echo $ECHO_N "(cached) $ECHO_C" >&6
18867 else
18868   cat >conftest.$ac_ext <<_ACEOF
18869 /* confdefs.h.  */
18870 _ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h.  */
18874
18875 int
18876 main ()
18877 {
18878
18879              #ifndef __DECCXX
18880                 choke me
18881              #endif
18882
18883   ;
18884   return 0;
18885 }
18886 _ACEOF
18887 rm -f conftest.$ac_objext
18888 if { (ac_try="$ac_compile"
18889 case "(($ac_try" in
18890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891   *) ac_try_echo=$ac_try;;
18892 esac
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894   (eval "$ac_compile") 2>conftest.er1
18895   ac_status=$?
18896   grep -v '^ *+' conftest.er1 >conftest.err
18897   rm -f conftest.er1
18898   cat conftest.err >&5
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); } && {
18901          test -z "$ac_cxx_werror_flag" ||
18902          test ! -s conftest.err
18903        } && test -s conftest.$ac_objext; then
18904   bakefile_cv_cxx_compiler___DECCXX=yes
18905 else
18906   echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18908
18909         bakefile_cv_cxx_compiler___DECCXX=no
18910
18911 fi
18912
18913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18914
18915
18916 fi
18917 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18918 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
18919     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
18920         :; COMPAQCXX=yes
18921     else
18922         :;
18923     fi
18924     ac_ext=c
18925 ac_cpp='$CPP $CPPFLAGS'
18926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18929
18930
18931
18932                 ;;
18933
18934             SunOS)
18935
18936
18937     ac_ext=cpp
18938 ac_cpp='$CXXCPP $CPPFLAGS'
18939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18942
18943     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18944 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18945 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18946   echo $ECHO_N "(cached) $ECHO_C" >&6
18947 else
18948   cat >conftest.$ac_ext <<_ACEOF
18949 /* confdefs.h.  */
18950 _ACEOF
18951 cat confdefs.h >>conftest.$ac_ext
18952 cat >>conftest.$ac_ext <<_ACEOF
18953 /* end confdefs.h.  */
18954
18955 int
18956 main ()
18957 {
18958
18959              #ifndef __SUNPRO_CC
18960                 choke me
18961              #endif
18962
18963   ;
18964   return 0;
18965 }
18966 _ACEOF
18967 rm -f conftest.$ac_objext
18968 if { (ac_try="$ac_compile"
18969 case "(($ac_try" in
18970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971   *) ac_try_echo=$ac_try;;
18972 esac
18973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974   (eval "$ac_compile") 2>conftest.er1
18975   ac_status=$?
18976   grep -v '^ *+' conftest.er1 >conftest.err
18977   rm -f conftest.er1
18978   cat conftest.err >&5
18979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980   (exit $ac_status); } && {
18981          test -z "$ac_cxx_werror_flag" ||
18982          test ! -s conftest.err
18983        } && test -s conftest.$ac_objext; then
18984   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18985 else
18986   echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18988
18989         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18990
18991 fi
18992
18993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18994
18995
18996 fi
18997 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18998 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18999     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19000         :; SUNCXX=yes
19001     else
19002         :;
19003     fi
19004     ac_ext=c
19005 ac_cpp='$CPP $CPPFLAGS'
19006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19009
19010
19011
19012                 ;;
19013         esac
19014     fi
19015
19016
19017
19018 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
19019     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
19020 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
19021    { (exit 1); exit 1; }; }
19022 fi
19023
19024 if test "x$SUNCXX" != xyes; then
19025     if test -n "$ac_tool_prefix"; then
19026   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19027 set dummy ${ac_tool_prefix}ar; ac_word=$2
19028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19030 if test "${ac_cv_prog_AR+set}" = set; then
19031   echo $ECHO_N "(cached) $ECHO_C" >&6
19032 else
19033   if test -n "$AR"; then
19034   ac_cv_prog_AR="$AR" # Let the user override the test.
19035 else
19036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19037 for as_dir in $PATH
19038 do
19039   IFS=$as_save_IFS
19040   test -z "$as_dir" && as_dir=.
19041   for ac_exec_ext in '' $ac_executable_extensions; do
19042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19043     ac_cv_prog_AR="${ac_tool_prefix}ar"
19044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19045     break 2
19046   fi
19047 done
19048 done
19049 IFS=$as_save_IFS
19050
19051 fi
19052 fi
19053 AR=$ac_cv_prog_AR
19054 if test -n "$AR"; then
19055   { echo "$as_me:$LINENO: result: $AR" >&5
19056 echo "${ECHO_T}$AR" >&6; }
19057 else
19058   { echo "$as_me:$LINENO: result: no" >&5
19059 echo "${ECHO_T}no" >&6; }
19060 fi
19061
19062
19063 fi
19064 if test -z "$ac_cv_prog_AR"; then
19065   ac_ct_AR=$AR
19066   # Extract the first word of "ar", so it can be a program name with args.
19067 set dummy ar; ac_word=$2
19068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19070 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19071   echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073   if test -n "$ac_ct_AR"; then
19074   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19075 else
19076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19077 for as_dir in $PATH
19078 do
19079   IFS=$as_save_IFS
19080   test -z "$as_dir" && as_dir=.
19081   for ac_exec_ext in '' $ac_executable_extensions; do
19082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19083     ac_cv_prog_ac_ct_AR="ar"
19084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19085     break 2
19086   fi
19087 done
19088 done
19089 IFS=$as_save_IFS
19090
19091 fi
19092 fi
19093 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19094 if test -n "$ac_ct_AR"; then
19095   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19096 echo "${ECHO_T}$ac_ct_AR" >&6; }
19097 else
19098   { echo "$as_me:$LINENO: result: no" >&5
19099 echo "${ECHO_T}no" >&6; }
19100 fi
19101
19102   if test "x$ac_ct_AR" = x; then
19103     AR=""
19104   else
19105     case $cross_compiling:$ac_tool_warned in
19106 yes:)
19107 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19108 whose name does not start with the host triplet.  If you think this
19109 configuration is useful to you, please write to autoconf@gnu.org." >&5
19110 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19111 whose name does not start with the host triplet.  If you think this
19112 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19113 ac_tool_warned=yes ;;
19114 esac
19115     AR=$ac_ct_AR
19116   fi
19117 else
19118   AR="$ac_cv_prog_AR"
19119 fi
19120
19121     if test "x$AR" = "x" ; then
19122         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
19123 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
19124    { (exit 1); exit 1; }; }
19125     fi
19126 fi
19127
19128
19129 if test "$wxUSE_MAC" = 1; then
19130
19131 retest_macosx_linking=no
19132
19133 OSX_ARCH_OPTS=""
19134 if test "x$wxUSE_MAC_ARCH" != xno; then
19135     OSX_ARCH_OPTS="-arch $wxUSE_MAC_ARCH"
19136 fi
19137
19138     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
19139                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
19140             # Implicitly turn on the new --with-macosx-sdk using the default
19141             # SDK which provides the behaviour this option has always had.
19142             if test "x$wxUSE_MACOSX_SDK" = "x"; then
19143                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
19144 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
19145                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
19146 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
19147                 wxUSE_MACOSX_SDK=yes
19148             fi
19149         else
19150             # Complain to user if he specified an argument to --enable-universal_binary
19151             # and also 1) specified --with-macosx-sdk using the default (yes) or
19152             # 2) specified --with-macosx-sdk using a path or 3) specified
19153             # --without-macosx-sdk (no).
19154             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
19155                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19156 See \`config.log' for more details." >&5
19157 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19158 See \`config.log' for more details." >&2;}
19159    { (exit 1); exit 1; }; }
19160             else
19161                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
19162                 # special-case the empty string because the below test simply
19163                 # converts "no" to the empty string anyway.
19164                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
19165                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
19166 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
19167             fi
19168         fi
19169                 OSX_ARCH_OPTS="-arch ppc -arch i386"
19170         if test "$wxUSE_OSX_COCOA" = 1; then
19171             OSX_ARCH_OPTS="$OSX_ARCH_OPTS -arch x86_64"
19172         fi
19173         { echo "$as_me:$LINENO: checking for universal binary architectures" >&5
19174 echo $ECHO_N "checking for universal binary architectures... $ECHO_C" >&6; }
19175         { echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
19176 echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
19177
19178                                                                                                                 retest_macosx_linking=yes
19179
19180                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
19181 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
19182         bk_use_pch=no
19183     fi
19184
19185 CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
19186 CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
19187 OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
19188 OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
19189 LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
19190
19191 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
19192     wxUSE_MACOSX_SDK=
19193 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
19194     # TODO: Search for most recent SDK and use it.
19195     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
19196 fi
19197
19198
19199 if test "x$wxUSE_MACOSX_SDK" != "x"; then
19200     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
19201 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
19202     if ! test -d "$wxUSE_MACOSX_SDK"; then
19203         { { echo "$as_me:$LINENO: error: not found
19204 See \`config.log' for more details." >&5
19205 echo "$as_me: error: not found
19206 See \`config.log' for more details." >&2;}
19207    { (exit 1); exit 1; }; }
19208     else
19209         { echo "$as_me:$LINENO: result: exists" >&5
19210 echo "${ECHO_T}exists" >&6; }
19211     fi
19212         MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
19213     retest_macosx_linking=yes
19214             fi
19215
19216 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
19217     wxUSE_MACOSX_VERSION_MIN=
19218 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
19219     if test "x$wxUSE_MACOSX_SDK" != "x"; then
19220         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
19221 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
19222
19223         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/'`
19224
19225         # If that failed, try again with the new key
19226         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
19227
19228             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/'`
19229
19230         fi
19231
19232         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
19233             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
19234             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
19235 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
19236         else
19237             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
19238 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
19239             wxUSE_MACOSX_VERSION_MIN=
19240         fi
19241     else
19242         wxUSE_MACOSX_VERSION_MIN=
19243     fi
19244 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
19245     for ac_prog in sw_vers
19246 do
19247   # Extract the first word of "$ac_prog", so it can be a program name with args.
19248 set dummy $ac_prog; ac_word=$2
19249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19251 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
19252   echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254   if test -n "$OSX_SW_VERS"; then
19255   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
19256 else
19257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19258 for as_dir in $PATH
19259 do
19260   IFS=$as_save_IFS
19261   test -z "$as_dir" && as_dir=.
19262   for ac_exec_ext in '' $ac_executable_extensions; do
19263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19264     ac_cv_prog_OSX_SW_VERS="$ac_prog"
19265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19266     break 2
19267   fi
19268 done
19269 done
19270 IFS=$as_save_IFS
19271
19272 fi
19273 fi
19274 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
19275 if test -n "$OSX_SW_VERS"; then
19276   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
19277 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
19278 else
19279   { echo "$as_me:$LINENO: result: no" >&5
19280 echo "${ECHO_T}no" >&6; }
19281 fi
19282
19283
19284   test -n "$OSX_SW_VERS" && break
19285 done
19286
19287     if test "$OSX_SW_VERS" != ""; then
19288         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
19289     else
19290                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
19291 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
19292         OSX_VERSION="10.4"
19293     fi
19294
19295     case "$OSX_VERSION" in
19296         10.4* )
19297             wxUSE_MACOSX_VERSION_MIN=10.4
19298             ;;
19299
19300         * )
19301             if test "$wxUSE_OSX_CARBON" = 1; then
19302                 # otherwise configure stops on leopard for universal_binary
19303                 wxUSE_MACOSX_VERSION_MIN=10.4
19304             else
19305                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
19306                 wxUSE_MACOSX_VERSION_MIN=10.5
19307             fi
19308             ;;
19309     esac
19310 fi
19311
19312 NEEDS_GCC40="no"
19313 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
19314     NEEDS_GCC40="yes"
19315 fi
19316
19317 if test "$wxUSE_OSX_CARBON" = 1; then
19318     NEEDS_GCC40="yes"
19319 fi
19320
19321 if test "x$NEEDS_GCC40" == "xyes"; then
19322     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
19323     # and wants 10.4 compatible code, then 'downgrade' to 4.0
19324     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
19325     if test "x$CC" = "xgcc"; then
19326         CCVERSION=`$CC --version | grep 4.[2-9].`
19327         if test "x$CCVERSION" != "x"; then
19328             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
19329             CC="gcc-4.0"
19330         fi
19331     fi
19332
19333     if test "x$CXX" = "xg++"; then
19334         CCVERSION=`$CXX --version | grep 4.[2-9].`
19335         if test "x$CCVERSION" != "x"; then
19336             CXX="g++-4.0"
19337         fi
19338     fi
19339 fi
19340
19341 if test "x$MACOSX_SDK_OPTS" != "x"; then
19342     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
19343     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
19344     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
19345 fi
19346
19347 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
19348     if test "$wxUSE_OSX_IPHONE" = 1; then
19349         MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN"
19350     else
19351         MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
19352     fi
19353     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
19354     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
19355     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
19356     retest_macosx_linking=yes
19357 fi
19358
19359 if test "x$retest_macosx_linking" = "xyes"; then
19360     ac_ext=c
19361 ac_cpp='$CPP $CPPFLAGS'
19362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19365
19366     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
19367 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
19368     cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h.  */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h.  */
19374
19375 int
19376 main ()
19377 {
19378
19379   ;
19380   return 0;
19381 }
19382 _ACEOF
19383 rm -f conftest.$ac_objext conftest$ac_exeext
19384 if { (ac_try="$ac_link"
19385 case "(($ac_try" in
19386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19387   *) ac_try_echo=$ac_try;;
19388 esac
19389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19390   (eval "$ac_link") 2>conftest.er1
19391   ac_status=$?
19392   grep -v '^ *+' conftest.er1 >conftest.err
19393   rm -f conftest.er1
19394   cat conftest.err >&5
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); } && {
19397          test -z "$ac_c_werror_flag" ||
19398          test ! -s conftest.err
19399        } && test -s conftest$ac_exeext &&
19400        $as_test_x conftest$ac_exeext; then
19401   { echo "$as_me:$LINENO: result: yes" >&5
19402 echo "${ECHO_T}yes" >&6; }
19403 else
19404   echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19406
19407         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19408 See \`config.log' for more details." >&5
19409 echo "$as_me: error: no.  Try a different SDK
19410 See \`config.log' for more details." >&2;}
19411    { (exit 1); exit 1; }; }; exit 1
19412 fi
19413
19414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19415       conftest$ac_exeext conftest.$ac_ext
19416     ac_ext=c
19417 ac_cpp='$CPP $CPPFLAGS'
19418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19421
19422
19423     ac_ext=cpp
19424 ac_cpp='$CXXCPP $CPPFLAGS'
19425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19428
19429     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
19430 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
19431     cat >conftest.$ac_ext <<_ACEOF
19432 /* confdefs.h.  */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h.  */
19437
19438 int
19439 main ()
19440 {
19441
19442   ;
19443   return 0;
19444 }
19445 _ACEOF
19446 rm -f conftest.$ac_objext conftest$ac_exeext
19447 if { (ac_try="$ac_link"
19448 case "(($ac_try" in
19449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450   *) ac_try_echo=$ac_try;;
19451 esac
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453   (eval "$ac_link") 2>conftest.er1
19454   ac_status=$?
19455   grep -v '^ *+' conftest.er1 >conftest.err
19456   rm -f conftest.er1
19457   cat conftest.err >&5
19458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459   (exit $ac_status); } && {
19460          test -z "$ac_cxx_werror_flag" ||
19461          test ! -s conftest.err
19462        } && test -s conftest$ac_exeext &&
19463        $as_test_x conftest$ac_exeext; then
19464   { echo "$as_me:$LINENO: result: yes" >&5
19465 echo "${ECHO_T}yes" >&6; }
19466 else
19467   echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19469
19470         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19471 See \`config.log' for more details." >&5
19472 echo "$as_me: error: no.  Try a different SDK
19473 See \`config.log' for more details." >&2;}
19474    { (exit 1); exit 1; }; }; exit 1
19475 fi
19476
19477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19478       conftest$ac_exeext conftest.$ac_ext
19479     ac_ext=c
19480 ac_cpp='$CPP $CPPFLAGS'
19481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19484
19485 fi
19486
19487 fi
19488 case "${host}" in
19489
19490                 *-*-darwin* )
19491         INSTALL_PROGRAM="cp -fp"
19492         INSTALL_DATA="cp -fp"
19493         ;;
19494     *)
19495         ;;
19496 esac
19497
19498
19499 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
19500     CXXFLAGS="-qunique $CXXFLAGS"
19501 fi
19502
19503 case "${host}" in
19504   powerpc-*-darwin* )
19505     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
19506 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
19507     cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h.  */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h.  */
19513
19514 int
19515 main ()
19516 {
19517 #ifndef __POWERPC__
19518         choke me for lack of PowerPC
19519 #endif
19520
19521   ;
19522   return 0;
19523 }
19524 _ACEOF
19525 rm -f conftest.$ac_objext
19526 if { (ac_try="$ac_compile"
19527 case "(($ac_try" in
19528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529   *) ac_try_echo=$ac_try;;
19530 esac
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532   (eval "$ac_compile") 2>conftest.er1
19533   ac_status=$?
19534   grep -v '^ *+' conftest.er1 >conftest.err
19535   rm -f conftest.er1
19536   cat conftest.err >&5
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); } && {
19539          test -z "$ac_c_werror_flag" ||
19540          test ! -s conftest.err
19541        } && test -s conftest.$ac_objext; then
19542   { echo "$as_me:$LINENO: result: yes" >&5
19543 echo "${ECHO_T}yes" >&6; }
19544 else
19545   echo "$as_me: failed program was:" >&5
19546 sed 's/^/| /' conftest.$ac_ext >&5
19547
19548         { echo "$as_me:$LINENO: result: no" >&5
19549 echo "${ECHO_T}no" >&6; }
19550         cat >>confdefs.h <<\_ACEOF
19551 #define __POWERPC__ 1
19552 _ACEOF
19553
19554
19555 fi
19556
19557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19558   ;;
19559 esac
19560
19561 case "${host}" in
19562   *-*-darwin* )
19563     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
19564 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
19565     cat >conftest.$ac_ext <<_ACEOF
19566 /* confdefs.h.  */
19567 _ACEOF
19568 cat confdefs.h >>conftest.$ac_ext
19569 cat >>conftest.$ac_ext <<_ACEOF
19570 /* end confdefs.h.  */
19571 #include <CoreFoundation/CFBase.h>
19572
19573 int
19574 main ()
19575 {
19576
19577   ;
19578   return 0;
19579 }
19580 _ACEOF
19581 rm -f conftest.$ac_objext
19582 if { (ac_try="$ac_compile"
19583 case "(($ac_try" in
19584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585   *) ac_try_echo=$ac_try;;
19586 esac
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588   (eval "$ac_compile") 2>conftest.er1
19589   ac_status=$?
19590   grep -v '^ *+' conftest.er1 >conftest.err
19591   rm -f conftest.er1
19592   cat conftest.err >&5
19593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594   (exit $ac_status); } && {
19595          test -z "$ac_c_werror_flag" ||
19596          test ! -s conftest.err
19597        } && test -s conftest.$ac_objext; then
19598   { echo "$as_me:$LINENO: result: yes" >&5
19599 echo "${ECHO_T}yes" >&6; }
19600 else
19601   echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19603
19604         { echo "$as_me:$LINENO: result: no" >&5
19605 echo "${ECHO_T}no" >&6; }
19606         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
19607 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
19608         cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h.  */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h.  */
19614 #define __CF_USE_FRAMEWORK_INCLUDES__
19615 #include <CoreFoundation/CFBase.h>
19616
19617 int
19618 main ()
19619 {
19620
19621   ;
19622   return 0;
19623 }
19624 _ACEOF
19625 rm -f conftest.$ac_objext
19626 if { (ac_try="$ac_compile"
19627 case "(($ac_try" in
19628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629   *) ac_try_echo=$ac_try;;
19630 esac
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632   (eval "$ac_compile") 2>conftest.er1
19633   ac_status=$?
19634   grep -v '^ *+' conftest.er1 >conftest.err
19635   rm -f conftest.er1
19636   cat conftest.err >&5
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); } && {
19639          test -z "$ac_c_werror_flag" ||
19640          test ! -s conftest.err
19641        } && test -s conftest.$ac_objext; then
19642   { echo "$as_me:$LINENO: result: yes" >&5
19643 echo "${ECHO_T}yes" >&6; }
19644                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
19645 else
19646   echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19648
19649         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
19650 See \`config.log' for more details." >&5
19651 echo "$as_me: error: no.  CoreFoundation not available.
19652 See \`config.log' for more details." >&2;}
19653    { (exit 1); exit 1; }; }
19654
19655 fi
19656
19657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658
19659
19660 fi
19661
19662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19663   ;;
19664 esac
19665
19666 wants_win32=0
19667 doesnt_want_win32=0
19668 case "${host}" in
19669   *-*-cygwin*)
19670       if test "$wxUSE_MSW" = 1 ; then
19671         wants_win32=1
19672       else
19673                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
19674 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
19675 if test "${wx_cv_nocygwin+set}" = set; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678
19679                 cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h.  */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h.  */
19685
19686 int
19687 main ()
19688 {
19689
19690                         #ifdef __MINGW32__
19691                             choke me
19692                         #endif
19693
19694   ;
19695   return 0;
19696 }
19697 _ACEOF
19698 rm -f conftest.$ac_objext
19699 if { (ac_try="$ac_compile"
19700 case "(($ac_try" in
19701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702   *) ac_try_echo=$ac_try;;
19703 esac
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705   (eval "$ac_compile") 2>conftest.er1
19706   ac_status=$?
19707   grep -v '^ *+' conftest.er1 >conftest.err
19708   rm -f conftest.er1
19709   cat conftest.err >&5
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); } && {
19712          test -z "$ac_c_werror_flag" ||
19713          test ! -s conftest.err
19714        } && test -s conftest.$ac_objext; then
19715   wx_cv_nocygwin=no
19716 else
19717   echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19719
19720         wx_cv_nocygwin=yes
19721
19722 fi
19723
19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19725
19726
19727 fi
19728 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19729 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19730
19731         if test "$wx_cv_nocygwin" = "yes"; then
19732             wants_win32=1
19733         else
19734             doesnt_want_win32=1
19735         fi
19736       fi
19737       if test "$wants_win32" = 1 ; then
19738         BAKEFILE_FORCE_PLATFORM=win32
19739       fi
19740   ;;
19741   *-*-mingw*)
19742       wants_win32=1
19743   ;;
19744 esac
19745
19746 if test "$wxUSE_WINE" = "yes"; then
19747     wants_win32=1
19748     LDFLAGS_GUI="-mwindows"
19749 fi
19750
19751 if test "$wants_win32" = 1 ; then
19752     USE_UNIX=0
19753     USE_WIN32=1
19754     cat >>confdefs.h <<\_ACEOF
19755 #define __WIN32__ 1
19756 _ACEOF
19757
19758     cat >>confdefs.h <<\_ACEOF
19759 #define __WIN95__ 1
19760 _ACEOF
19761
19762     cat >>confdefs.h <<\_ACEOF
19763 #define __WINDOWS__ 1
19764 _ACEOF
19765
19766     cat >>confdefs.h <<\_ACEOF
19767 #define __GNUWIN32__ 1
19768 _ACEOF
19769
19770     cat >>confdefs.h <<\_ACEOF
19771 #define STRICT 1
19772 _ACEOF
19773
19774 fi
19775 if test "$doesnt_want_win32" = 1 ; then
19776     USE_UNIX=1
19777     USE_WIN32=0
19778 fi
19779
19780 if test "$USE_UNIX" = 1 ; then
19781     wxUSE_UNIX=yes
19782     cat >>confdefs.h <<\_ACEOF
19783 #define __UNIX__ 1
19784 _ACEOF
19785
19786 fi
19787
19788 case "${host}" in
19789   *-pc-os2_emx | *-pc-os2-emx )
19790                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19791                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19792 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19793 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19794   echo $ECHO_N "(cached) $ECHO_C" >&6
19795 else
19796   ac_check_lib_save_LIBS=$LIBS
19797 LIBS="-lcExt  $LIBS"
19798 cat >conftest.$ac_ext <<_ACEOF
19799 /* confdefs.h.  */
19800 _ACEOF
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h.  */
19804
19805 /* Override any GCC internal prototype to avoid an error.
19806    Use char because int might match the return type of a GCC
19807    builtin and then its argument prototype would still apply.  */
19808 #ifdef __cplusplus
19809 extern "C"
19810 #endif
19811 char drand48 ();
19812 int
19813 main ()
19814 {
19815 return drand48 ();
19816   ;
19817   return 0;
19818 }
19819 _ACEOF
19820 rm -f conftest.$ac_objext conftest$ac_exeext
19821 if { (ac_try="$ac_link"
19822 case "(($ac_try" in
19823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824   *) ac_try_echo=$ac_try;;
19825 esac
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827   (eval "$ac_link") 2>conftest.er1
19828   ac_status=$?
19829   grep -v '^ *+' conftest.er1 >conftest.err
19830   rm -f conftest.er1
19831   cat conftest.err >&5
19832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); } && {
19834          test -z "$ac_c_werror_flag" ||
19835          test ! -s conftest.err
19836        } && test -s conftest$ac_exeext &&
19837        $as_test_x conftest$ac_exeext; then
19838   ac_cv_lib_cExt_drand48=yes
19839 else
19840   echo "$as_me: failed program was:" >&5
19841 sed 's/^/| /' conftest.$ac_ext >&5
19842
19843         ac_cv_lib_cExt_drand48=no
19844 fi
19845
19846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19847       conftest$ac_exeext conftest.$ac_ext
19848 LIBS=$ac_check_lib_save_LIBS
19849 fi
19850 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19851 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19852 if test $ac_cv_lib_cExt_drand48 = yes; then
19853   LIBS="$LIBS -lcExt"
19854 fi
19855
19856       else
19857                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19858       fi
19859                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19860 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19861 if test "${wx_cv_gccversion+set}" = set; then
19862   echo $ECHO_N "(cached) $ECHO_C" >&6
19863 else
19864
19865           if test "$cross_compiling" = yes; then
19866                 wx_cv_gccversion="EMX2"
19867
19868 else
19869   cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h.  */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h.  */
19875
19876                   #include <stdio.h>
19877
19878                   int main()
19879                   {
19880                       FILE *f=fopen("conftestval", "w");
19881                       if (!f) exit(1);
19882                       fprintf(f,
19883                   #if (__GNUC__ < 3)
19884                               "EMX2"
19885                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19886                               "EMX3"
19887                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19888                               "Innotek5"
19889                   #else
19890                               "Innotek6"
19891                   #endif
19892                       );
19893                       exit(0);
19894                   }
19895
19896 _ACEOF
19897 rm -f conftest$ac_exeext
19898 if { (ac_try="$ac_link"
19899 case "(($ac_try" in
19900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901   *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904   (eval "$ac_link") 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19908   { (case "(($ac_try" in
19909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910   *) ac_try_echo=$ac_try;;
19911 esac
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913   (eval "$ac_try") 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); }; }; then
19917   wx_cv_gccversion=`cat conftestval`
19918 else
19919   echo "$as_me: program exited with status $ac_status" >&5
19920 echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923 ( exit $ac_status )
19924 wx_cv_gccversion="EMX2"
19925 fi
19926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19927 fi
19928
19929
19930
19931 fi
19932 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19933 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
19934       if test "$wx_cv_gccversion" = "EMX2"; then
19935           LIBS="$LIBS -lstdcpp"
19936           LDFLAGS="$LDFLAGS -Zsysv-signals"
19937       else
19938           if test "$wx_cv_gccversion" = "EMX3"; then
19939               LIBS="$LIBS -lstdcxx -lgcc"
19940               LDFLAGS="$LDFLAGS -Zsysv-signals"
19941           else
19942               LIBS="$LIBS -lstdc++"
19943           fi
19944       fi
19945       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
19946         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19947 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
19948         wxUSE_OMF=yes
19949         enable_omf=yes
19950       fi
19951         ;;
19952   *)
19953
19954       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
19955 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
19956 if test "${ac_cv_string_strcasecmp+set}" = set; then
19957   echo $ECHO_N "(cached) $ECHO_C" >&6
19958 else
19959
19960           cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h.  */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h.  */
19966
19967               #include <string.h>
19968
19969 int
19970 main ()
19971 {
19972
19973                   strcasecmp("foo", "bar");
19974
19975   ;
19976   return 0;
19977 }
19978 _ACEOF
19979 rm -f conftest.$ac_objext conftest$ac_exeext
19980 if { (ac_try="$ac_link"
19981 case "(($ac_try" in
19982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983   *) ac_try_echo=$ac_try;;
19984 esac
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986   (eval "$ac_link") 2>conftest.er1
19987   ac_status=$?
19988   grep -v '^ *+' conftest.er1 >conftest.err
19989   rm -f conftest.er1
19990   cat conftest.err >&5
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); } && {
19993          test -z "$ac_c_werror_flag" ||
19994          test ! -s conftest.err
19995        } && test -s conftest$ac_exeext &&
19996        $as_test_x conftest$ac_exeext; then
19997   ac_cv_string_strcasecmp=yes
19998 else
19999   echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002         ac_cv_string_strcasecmp=no
20003
20004 fi
20005
20006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20007       conftest$ac_exeext conftest.$ac_ext
20008
20009 fi
20010 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
20011 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
20012
20013       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
20014           cat >>confdefs.h <<\_ACEOF
20015 #define HAVE_STRCASECMP_IN_STRING_H 1
20016 _ACEOF
20017
20018       else
20019           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
20020 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
20021 if test "${ac_cv_strings_strcasecmp+set}" = set; then
20022   echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024
20025               cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h.  */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h.  */
20031
20032                   #include <strings.h>
20033
20034 int
20035 main ()
20036 {
20037
20038                       strcasecmp("foo", "bar");
20039
20040   ;
20041   return 0;
20042 }
20043 _ACEOF
20044 rm -f conftest.$ac_objext conftest$ac_exeext
20045 if { (ac_try="$ac_link"
20046 case "(($ac_try" in
20047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048   *) ac_try_echo=$ac_try;;
20049 esac
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051   (eval "$ac_link") 2>conftest.er1
20052   ac_status=$?
20053   grep -v '^ *+' conftest.er1 >conftest.err
20054   rm -f conftest.er1
20055   cat conftest.err >&5
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); } && {
20058          test -z "$ac_c_werror_flag" ||
20059          test ! -s conftest.err
20060        } && test -s conftest$ac_exeext &&
20061        $as_test_x conftest$ac_exeext; then
20062   ac_cv_strings_strcasecmp=yes
20063 else
20064   echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20066
20067         ac_cv_strings_strcasecmp=no
20068
20069 fi
20070
20071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20072       conftest$ac_exeext conftest.$ac_ext
20073
20074 fi
20075 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
20076 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
20077
20078           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
20079               cat >>confdefs.h <<\_ACEOF
20080 #define HAVE_STRCASECMP_IN_STRINGS_H 1
20081 _ACEOF
20082
20083           else
20084               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
20085 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
20086    { (exit 1); exit 1; }; }
20087           fi
20088       fi
20089
20090         ;;
20091 esac
20092
20093
20094 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20095 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20096 if test "${ac_cv_header_stdc+set}" = set; then
20097   echo $ECHO_N "(cached) $ECHO_C" >&6
20098 else
20099   cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h.  */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h.  */
20105 #include <stdlib.h>
20106 #include <stdarg.h>
20107 #include <string.h>
20108 #include <float.h>
20109
20110 int
20111 main ()
20112 {
20113
20114   ;
20115   return 0;
20116 }
20117 _ACEOF
20118 rm -f conftest.$ac_objext
20119 if { (ac_try="$ac_compile"
20120 case "(($ac_try" in
20121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122   *) ac_try_echo=$ac_try;;
20123 esac
20124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20125   (eval "$ac_compile") 2>conftest.er1
20126   ac_status=$?
20127   grep -v '^ *+' conftest.er1 >conftest.err
20128   rm -f conftest.er1
20129   cat conftest.err >&5
20130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131   (exit $ac_status); } && {
20132          test -z "$ac_c_werror_flag" ||
20133          test ! -s conftest.err
20134        } && test -s conftest.$ac_objext; then
20135   ac_cv_header_stdc=yes
20136 else
20137   echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20139
20140         ac_cv_header_stdc=no
20141 fi
20142
20143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20144
20145 if test $ac_cv_header_stdc = yes; then
20146   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20147   cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h.  */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h.  */
20153 #include <string.h>
20154
20155 _ACEOF
20156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20157   $EGREP "memchr" >/dev/null 2>&1; then
20158   :
20159 else
20160   ac_cv_header_stdc=no
20161 fi
20162 rm -f conftest*
20163
20164 fi
20165
20166 if test $ac_cv_header_stdc = yes; then
20167   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20168   cat >conftest.$ac_ext <<_ACEOF
20169 /* confdefs.h.  */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h.  */
20174 #include <stdlib.h>
20175
20176 _ACEOF
20177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20178   $EGREP "free" >/dev/null 2>&1; then
20179   :
20180 else
20181   ac_cv_header_stdc=no
20182 fi
20183 rm -f conftest*
20184
20185 fi
20186
20187 if test $ac_cv_header_stdc = yes; then
20188   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20189   if test "$cross_compiling" = yes; then
20190   :
20191 else
20192   cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198 #include <ctype.h>
20199 #include <stdlib.h>
20200 #if ((' ' & 0x0FF) == 0x020)
20201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20203 #else
20204 # define ISLOWER(c) \
20205                    (('a' <= (c) && (c) <= 'i') \
20206                      || ('j' <= (c) && (c) <= 'r') \
20207                      || ('s' <= (c) && (c) <= 'z'))
20208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20209 #endif
20210
20211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20212 int
20213 main ()
20214 {
20215   int i;
20216   for (i = 0; i < 256; i++)
20217     if (XOR (islower (i), ISLOWER (i))
20218         || toupper (i) != TOUPPER (i))
20219       return 2;
20220   return 0;
20221 }
20222 _ACEOF
20223 rm -f conftest$ac_exeext
20224 if { (ac_try="$ac_link"
20225 case "(($ac_try" in
20226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227   *) ac_try_echo=$ac_try;;
20228 esac
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230   (eval "$ac_link") 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20234   { (case "(($ac_try" in
20235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236   *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239   (eval "$ac_try") 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; }; then
20243   :
20244 else
20245   echo "$as_me: program exited with status $ac_status" >&5
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 ( exit $ac_status )
20250 ac_cv_header_stdc=no
20251 fi
20252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20253 fi
20254
20255
20256 fi
20257 fi
20258 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20259 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20260 if test $ac_cv_header_stdc = yes; then
20261
20262 cat >>confdefs.h <<\_ACEOF
20263 #define STDC_HEADERS 1
20264 _ACEOF
20265
20266 fi
20267
20268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
20279                   inttypes.h stdint.h unistd.h
20280 do
20281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20285   echo $ECHO_N "(cached) $ECHO_C" >&6
20286 else
20287   cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h.  */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h.  */
20293 $ac_includes_default
20294
20295 #include <$ac_header>
20296 _ACEOF
20297 rm -f conftest.$ac_objext
20298 if { (ac_try="$ac_compile"
20299 case "(($ac_try" in
20300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301   *) ac_try_echo=$ac_try;;
20302 esac
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304   (eval "$ac_compile") 2>conftest.er1
20305   ac_status=$?
20306   grep -v '^ *+' conftest.er1 >conftest.err
20307   rm -f conftest.er1
20308   cat conftest.err >&5
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); } && {
20311          test -z "$ac_c_werror_flag" ||
20312          test ! -s conftest.err
20313        } && test -s conftest.$ac_objext; then
20314   eval "$as_ac_Header=yes"
20315 else
20316   echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20318
20319         eval "$as_ac_Header=no"
20320 fi
20321
20322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20323 fi
20324 ac_res=`eval echo '${'$as_ac_Header'}'`
20325                { echo "$as_me:$LINENO: result: $ac_res" >&5
20326 echo "${ECHO_T}$ac_res" >&6; }
20327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20328   cat >>confdefs.h <<_ACEOF
20329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20330 _ACEOF
20331
20332 fi
20333
20334 done
20335
20336
20337
20338
20339 for ac_header in langinfo.h wchar.h
20340 do
20341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20345   echo $ECHO_N "(cached) $ECHO_C" >&6
20346 else
20347   cat >conftest.$ac_ext <<_ACEOF
20348 /* confdefs.h.  */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h.  */
20353 $ac_includes_default
20354
20355 #include <$ac_header>
20356 _ACEOF
20357 rm -f conftest.$ac_objext
20358 if { (ac_try="$ac_compile"
20359 case "(($ac_try" in
20360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361   *) ac_try_echo=$ac_try;;
20362 esac
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364   (eval "$ac_compile") 2>conftest.er1
20365   ac_status=$?
20366   grep -v '^ *+' conftest.er1 >conftest.err
20367   rm -f conftest.er1
20368   cat conftest.err >&5
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); } && {
20371          test -z "$ac_c_werror_flag" ||
20372          test ! -s conftest.err
20373        } && test -s conftest.$ac_objext; then
20374   eval "$as_ac_Header=yes"
20375 else
20376   echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379         eval "$as_ac_Header=no"
20380 fi
20381
20382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20383 fi
20384 ac_res=`eval echo '${'$as_ac_Header'}'`
20385                { echo "$as_me:$LINENO: result: $ac_res" >&5
20386 echo "${ECHO_T}$ac_res" >&6; }
20387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20388   cat >>confdefs.h <<_ACEOF
20389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20390 _ACEOF
20391
20392 fi
20393
20394 done
20395
20396
20397 if test "$ac_cv_header_wchar_h" != "yes"; then
20398
20399 for ac_header in wcstr.h
20400 do
20401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20405   echo $ECHO_N "(cached) $ECHO_C" >&6
20406 else
20407   cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413 $ac_includes_default
20414
20415 #include <$ac_header>
20416 _ACEOF
20417 rm -f conftest.$ac_objext
20418 if { (ac_try="$ac_compile"
20419 case "(($ac_try" in
20420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421   *) ac_try_echo=$ac_try;;
20422 esac
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424   (eval "$ac_compile") 2>conftest.er1
20425   ac_status=$?
20426   grep -v '^ *+' conftest.er1 >conftest.err
20427   rm -f conftest.er1
20428   cat conftest.err >&5
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); } && {
20431          test -z "$ac_c_werror_flag" ||
20432          test ! -s conftest.err
20433        } && test -s conftest.$ac_objext; then
20434   eval "$as_ac_Header=yes"
20435 else
20436   echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20438
20439         eval "$as_ac_Header=no"
20440 fi
20441
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20443 fi
20444 ac_res=`eval echo '${'$as_ac_Header'}'`
20445                { echo "$as_me:$LINENO: result: $ac_res" >&5
20446 echo "${ECHO_T}$ac_res" >&6; }
20447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20448   cat >>confdefs.h <<_ACEOF
20449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20450 _ACEOF
20451
20452 fi
20453
20454 done
20455
20456 fi
20457
20458 case "${host}" in
20459   *-pc-os2_emx | *-pc-os2-emx )
20460                   if test $ac_cv_header_langinfo_h = "yes" \
20461                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20462                      -o "$wx_cv_gccversion" = "EMX3" \
20463                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20464           LIBS="$LIBS -lintl"
20465       fi
20466   ;;
20467 esac
20468
20469 if test "$USE_UNIX" = 1 ; then
20470
20471 for ac_header in sys/select.h
20472 do
20473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20477   echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20479   cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h.  */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h.  */
20485 $ac_includes_default
20486
20487 #include <$ac_header>
20488 _ACEOF
20489 rm -f conftest.$ac_objext
20490 if { (ac_try="$ac_compile"
20491 case "(($ac_try" in
20492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493   *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496   (eval "$ac_compile") 2>conftest.er1
20497   ac_status=$?
20498   grep -v '^ *+' conftest.er1 >conftest.err
20499   rm -f conftest.er1
20500   cat conftest.err >&5
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); } && {
20503          test -z "$ac_c_werror_flag" ||
20504          test ! -s conftest.err
20505        } && test -s conftest.$ac_objext; then
20506   eval "$as_ac_Header=yes"
20507 else
20508   echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511         eval "$as_ac_Header=no"
20512 fi
20513
20514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515 fi
20516 ac_res=`eval echo '${'$as_ac_Header'}'`
20517                { echo "$as_me:$LINENO: result: $ac_res" >&5
20518 echo "${ECHO_T}$ac_res" >&6; }
20519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20520   cat >>confdefs.h <<_ACEOF
20521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20522 _ACEOF
20523
20524 fi
20525
20526 done
20527
20528 fi
20529
20530
20531 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20532 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20533 if test "${ac_cv_c_const+set}" = set; then
20534   echo $ECHO_N "(cached) $ECHO_C" >&6
20535 else
20536   cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542
20543 int
20544 main ()
20545 {
20546 /* FIXME: Include the comments suggested by Paul. */
20547 #ifndef __cplusplus
20548   /* Ultrix mips cc rejects this.  */
20549   typedef int charset[2];
20550   const charset cs;
20551   /* SunOS 4.1.1 cc rejects this.  */
20552   char const *const *pcpcc;
20553   char **ppc;
20554   /* NEC SVR4.0.2 mips cc rejects this.  */
20555   struct point {int x, y;};
20556   static struct point const zero = {0,0};
20557   /* AIX XL C 1.02.0.0 rejects this.
20558      It does not let you subtract one const X* pointer from another in
20559      an arm of an if-expression whose if-part is not a constant
20560      expression */
20561   const char *g = "string";
20562   pcpcc = &g + (g ? g-g : 0);
20563   /* HPUX 7.0 cc rejects these. */
20564   ++pcpcc;
20565   ppc = (char**) pcpcc;
20566   pcpcc = (char const *const *) ppc;
20567   { /* SCO 3.2v4 cc rejects this.  */
20568     char *t;
20569     char const *s = 0 ? (char *) 0 : (char const *) 0;
20570
20571     *t++ = 0;
20572     if (s) return 0;
20573   }
20574   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20575     int x[] = {25, 17};
20576     const int *foo = &x[0];
20577     ++foo;
20578   }
20579   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20580     typedef const int *iptr;
20581     iptr p = 0;
20582     ++p;
20583   }
20584   { /* AIX XL C 1.02.0.0 rejects this saying
20585        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20586     struct s { int j; const int *ap[3]; };
20587     struct s *b; b->j = 5;
20588   }
20589   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20590     const int foo = 10;
20591     if (!foo) return 0;
20592   }
20593   return !cs[0] && !zero.x;
20594 #endif
20595
20596   ;
20597   return 0;
20598 }
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (ac_try="$ac_compile"
20602 case "(($ac_try" in
20603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604   *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607   (eval "$ac_compile") 2>conftest.er1
20608   ac_status=$?
20609   grep -v '^ *+' conftest.er1 >conftest.err
20610   rm -f conftest.er1
20611   cat conftest.err >&5
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); } && {
20614          test -z "$ac_c_werror_flag" ||
20615          test ! -s conftest.err
20616        } && test -s conftest.$ac_objext; then
20617   ac_cv_c_const=yes
20618 else
20619   echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20621
20622         ac_cv_c_const=no
20623 fi
20624
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20626 fi
20627 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20628 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20629 if test $ac_cv_c_const = no; then
20630
20631 cat >>confdefs.h <<\_ACEOF
20632 #define const
20633 _ACEOF
20634
20635 fi
20636
20637 { echo "$as_me:$LINENO: checking for inline" >&5
20638 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20639 if test "${ac_cv_c_inline+set}" = set; then
20640   echo $ECHO_N "(cached) $ECHO_C" >&6
20641 else
20642   ac_cv_c_inline=no
20643 for ac_kw in inline __inline__ __inline; do
20644   cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650 #ifndef __cplusplus
20651 typedef int foo_t;
20652 static $ac_kw foo_t static_foo () {return 0; }
20653 $ac_kw foo_t foo () {return 0; }
20654 #endif
20655
20656 _ACEOF
20657 rm -f conftest.$ac_objext
20658 if { (ac_try="$ac_compile"
20659 case "(($ac_try" in
20660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661   *) ac_try_echo=$ac_try;;
20662 esac
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664   (eval "$ac_compile") 2>conftest.er1
20665   ac_status=$?
20666   grep -v '^ *+' conftest.er1 >conftest.err
20667   rm -f conftest.er1
20668   cat conftest.err >&5
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); } && {
20671          test -z "$ac_c_werror_flag" ||
20672          test ! -s conftest.err
20673        } && test -s conftest.$ac_objext; then
20674   ac_cv_c_inline=$ac_kw
20675 else
20676   echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20678
20679
20680 fi
20681
20682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20683   test "$ac_cv_c_inline" != no && break
20684 done
20685
20686 fi
20687 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20688 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20689
20690
20691 case $ac_cv_c_inline in
20692   inline | yes) ;;
20693   *)
20694     case $ac_cv_c_inline in
20695       no) ac_val=;;
20696       *) ac_val=$ac_cv_c_inline;;
20697     esac
20698     cat >>confdefs.h <<_ACEOF
20699 #ifndef __cplusplus
20700 #define inline $ac_val
20701 #endif
20702 _ACEOF
20703     ;;
20704 esac
20705
20706
20707 { echo "$as_me:$LINENO: checking for short" >&5
20708 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20709 if test "${ac_cv_type_short+set}" = set; then
20710   echo $ECHO_N "(cached) $ECHO_C" >&6
20711 else
20712   cat >conftest.$ac_ext <<_ACEOF
20713 /* confdefs.h.  */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h.  */
20718 $ac_includes_default
20719 typedef short ac__type_new_;
20720 int
20721 main ()
20722 {
20723 if ((ac__type_new_ *) 0)
20724   return 0;
20725 if (sizeof (ac__type_new_))
20726   return 0;
20727   ;
20728   return 0;
20729 }
20730 _ACEOF
20731 rm -f conftest.$ac_objext
20732 if { (ac_try="$ac_compile"
20733 case "(($ac_try" in
20734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735   *) ac_try_echo=$ac_try;;
20736 esac
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738   (eval "$ac_compile") 2>conftest.er1
20739   ac_status=$?
20740   grep -v '^ *+' conftest.er1 >conftest.err
20741   rm -f conftest.er1
20742   cat conftest.err >&5
20743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744   (exit $ac_status); } && {
20745          test -z "$ac_c_werror_flag" ||
20746          test ! -s conftest.err
20747        } && test -s conftest.$ac_objext; then
20748   ac_cv_type_short=yes
20749 else
20750   echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20752
20753         ac_cv_type_short=no
20754 fi
20755
20756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757 fi
20758 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20759 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20760
20761 # The cast to long int works around a bug in the HP C Compiler
20762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20764 # This bug is HP SR number 8606223364.
20765 { echo "$as_me:$LINENO: checking size of short" >&5
20766 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20767 if test "${ac_cv_sizeof_short+set}" = set; then
20768   echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770   if test "$cross_compiling" = yes; then
20771   # Depending upon the size, compute the lo and hi bounds.
20772 cat >conftest.$ac_ext <<_ACEOF
20773 /* confdefs.h.  */
20774 _ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h.  */
20778 $ac_includes_default
20779    typedef short ac__type_sizeof_;
20780 int
20781 main ()
20782 {
20783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20784 test_array [0] = 0
20785
20786   ;
20787   return 0;
20788 }
20789 _ACEOF
20790 rm -f conftest.$ac_objext
20791 if { (ac_try="$ac_compile"
20792 case "(($ac_try" in
20793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794   *) ac_try_echo=$ac_try;;
20795 esac
20796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797   (eval "$ac_compile") 2>conftest.er1
20798   ac_status=$?
20799   grep -v '^ *+' conftest.er1 >conftest.err
20800   rm -f conftest.er1
20801   cat conftest.err >&5
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); } && {
20804          test -z "$ac_c_werror_flag" ||
20805          test ! -s conftest.err
20806        } && test -s conftest.$ac_objext; then
20807   ac_lo=0 ac_mid=0
20808   while :; do
20809     cat >conftest.$ac_ext <<_ACEOF
20810 /* confdefs.h.  */
20811 _ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h.  */
20815 $ac_includes_default
20816    typedef short ac__type_sizeof_;
20817 int
20818 main ()
20819 {
20820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20821 test_array [0] = 0
20822
20823   ;
20824   return 0;
20825 }
20826 _ACEOF
20827 rm -f conftest.$ac_objext
20828 if { (ac_try="$ac_compile"
20829 case "(($ac_try" in
20830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831   *) ac_try_echo=$ac_try;;
20832 esac
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834   (eval "$ac_compile") 2>conftest.er1
20835   ac_status=$?
20836   grep -v '^ *+' conftest.er1 >conftest.err
20837   rm -f conftest.er1
20838   cat conftest.err >&5
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); } && {
20841          test -z "$ac_c_werror_flag" ||
20842          test ! -s conftest.err
20843        } && test -s conftest.$ac_objext; then
20844   ac_hi=$ac_mid; break
20845 else
20846   echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20848
20849         ac_lo=`expr $ac_mid + 1`
20850                         if test $ac_lo -le $ac_mid; then
20851                           ac_lo= ac_hi=
20852                           break
20853                         fi
20854                         ac_mid=`expr 2 '*' $ac_mid + 1`
20855 fi
20856
20857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20858   done
20859 else
20860   echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20862
20863         cat >conftest.$ac_ext <<_ACEOF
20864 /* confdefs.h.  */
20865 _ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h.  */
20869 $ac_includes_default
20870    typedef short ac__type_sizeof_;
20871 int
20872 main ()
20873 {
20874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20875 test_array [0] = 0
20876
20877   ;
20878   return 0;
20879 }
20880 _ACEOF
20881 rm -f conftest.$ac_objext
20882 if { (ac_try="$ac_compile"
20883 case "(($ac_try" in
20884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885   *) ac_try_echo=$ac_try;;
20886 esac
20887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888   (eval "$ac_compile") 2>conftest.er1
20889   ac_status=$?
20890   grep -v '^ *+' conftest.er1 >conftest.err
20891   rm -f conftest.er1
20892   cat conftest.err >&5
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); } && {
20895          test -z "$ac_c_werror_flag" ||
20896          test ! -s conftest.err
20897        } && test -s conftest.$ac_objext; then
20898   ac_hi=-1 ac_mid=-1
20899   while :; do
20900     cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h.  */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h.  */
20906 $ac_includes_default
20907    typedef short ac__type_sizeof_;
20908 int
20909 main ()
20910 {
20911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20912 test_array [0] = 0
20913
20914   ;
20915   return 0;
20916 }
20917 _ACEOF
20918 rm -f conftest.$ac_objext
20919 if { (ac_try="$ac_compile"
20920 case "(($ac_try" in
20921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922   *) ac_try_echo=$ac_try;;
20923 esac
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925   (eval "$ac_compile") 2>conftest.er1
20926   ac_status=$?
20927   grep -v '^ *+' conftest.er1 >conftest.err
20928   rm -f conftest.er1
20929   cat conftest.err >&5
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); } && {
20932          test -z "$ac_c_werror_flag" ||
20933          test ! -s conftest.err
20934        } && test -s conftest.$ac_objext; then
20935   ac_lo=$ac_mid; break
20936 else
20937   echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940         ac_hi=`expr '(' $ac_mid ')' - 1`
20941                         if test $ac_mid -le $ac_hi; then
20942                           ac_lo= ac_hi=
20943                           break
20944                         fi
20945                         ac_mid=`expr 2 '*' $ac_mid`
20946 fi
20947
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20949   done
20950 else
20951   echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20953
20954         ac_lo= ac_hi=
20955 fi
20956
20957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20958 fi
20959
20960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961 # Binary search between lo and hi bounds.
20962 while test "x$ac_lo" != "x$ac_hi"; do
20963   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20964   cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h.  */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h.  */
20970 $ac_includes_default
20971    typedef short ac__type_sizeof_;
20972 int
20973 main ()
20974 {
20975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20976 test_array [0] = 0
20977
20978   ;
20979   return 0;
20980 }
20981 _ACEOF
20982 rm -f conftest.$ac_objext
20983 if { (ac_try="$ac_compile"
20984 case "(($ac_try" in
20985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986   *) ac_try_echo=$ac_try;;
20987 esac
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989   (eval "$ac_compile") 2>conftest.er1
20990   ac_status=$?
20991   grep -v '^ *+' conftest.er1 >conftest.err
20992   rm -f conftest.er1
20993   cat conftest.err >&5
20994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995   (exit $ac_status); } && {
20996          test -z "$ac_c_werror_flag" ||
20997          test ! -s conftest.err
20998        } && test -s conftest.$ac_objext; then
20999   ac_hi=$ac_mid
21000 else
21001   echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21003
21004         ac_lo=`expr '(' $ac_mid ')' + 1`
21005 fi
21006
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008 done
21009 case $ac_lo in
21010 ?*) ac_cv_sizeof_short=$ac_lo;;
21011 '') if test "$ac_cv_type_short" = yes; then
21012      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21013 See \`config.log' for more details." >&5
21014 echo "$as_me: error: cannot compute sizeof (short)
21015 See \`config.log' for more details." >&2;}
21016    { (exit 77); exit 77; }; }
21017    else
21018      ac_cv_sizeof_short=0
21019    fi ;;
21020 esac
21021 else
21022   cat >conftest.$ac_ext <<_ACEOF
21023 /* confdefs.h.  */
21024 _ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h.  */
21028 $ac_includes_default
21029    typedef short ac__type_sizeof_;
21030 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21031 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21032 #include <stdio.h>
21033 #include <stdlib.h>
21034 int
21035 main ()
21036 {
21037
21038   FILE *f = fopen ("conftest.val", "w");
21039   if (! f)
21040     return 1;
21041   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21042     {
21043       long int i = longval ();
21044       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21045         return 1;
21046       fprintf (f, "%ld\n", i);
21047     }
21048   else
21049     {
21050       unsigned long int i = ulongval ();
21051       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21052         return 1;
21053       fprintf (f, "%lu\n", i);
21054     }
21055   return ferror (f) || fclose (f) != 0;
21056
21057   ;
21058   return 0;
21059 }
21060 _ACEOF
21061 rm -f conftest$ac_exeext
21062 if { (ac_try="$ac_link"
21063 case "(($ac_try" in
21064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065   *) ac_try_echo=$ac_try;;
21066 esac
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068   (eval "$ac_link") 2>&5
21069   ac_status=$?
21070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21072   { (case "(($ac_try" in
21073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074   *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077   (eval "$ac_try") 2>&5
21078   ac_status=$?
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); }; }; then
21081   ac_cv_sizeof_short=`cat conftest.val`
21082 else
21083   echo "$as_me: program exited with status $ac_status" >&5
21084 echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21086
21087 ( exit $ac_status )
21088 if test "$ac_cv_type_short" = yes; then
21089      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21090 See \`config.log' for more details." >&5
21091 echo "$as_me: error: cannot compute sizeof (short)
21092 See \`config.log' for more details." >&2;}
21093    { (exit 77); exit 77; }; }
21094    else
21095      ac_cv_sizeof_short=0
21096    fi
21097 fi
21098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21099 fi
21100 rm -f conftest.val
21101 fi
21102 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21103 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21104
21105
21106
21107 cat >>confdefs.h <<_ACEOF
21108 #define SIZEOF_SHORT $ac_cv_sizeof_short
21109 _ACEOF
21110
21111
21112 { echo "$as_me:$LINENO: checking for void *" >&5
21113 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21114 if test "${ac_cv_type_void_p+set}" = set; then
21115   echo $ECHO_N "(cached) $ECHO_C" >&6
21116 else
21117   cat >conftest.$ac_ext <<_ACEOF
21118 /* confdefs.h.  */
21119 _ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h.  */
21123 $ac_includes_default
21124 typedef void * ac__type_new_;
21125 int
21126 main ()
21127 {
21128 if ((ac__type_new_ *) 0)
21129   return 0;
21130 if (sizeof (ac__type_new_))
21131   return 0;
21132   ;
21133   return 0;
21134 }
21135 _ACEOF
21136 rm -f conftest.$ac_objext
21137 if { (ac_try="$ac_compile"
21138 case "(($ac_try" in
21139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140   *) ac_try_echo=$ac_try;;
21141 esac
21142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21143   (eval "$ac_compile") 2>conftest.er1
21144   ac_status=$?
21145   grep -v '^ *+' conftest.er1 >conftest.err
21146   rm -f conftest.er1
21147   cat conftest.err >&5
21148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149   (exit $ac_status); } && {
21150          test -z "$ac_c_werror_flag" ||
21151          test ! -s conftest.err
21152        } && test -s conftest.$ac_objext; then
21153   ac_cv_type_void_p=yes
21154 else
21155   echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21157
21158         ac_cv_type_void_p=no
21159 fi
21160
21161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21162 fi
21163 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21164 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21165
21166 # The cast to long int works around a bug in the HP C Compiler
21167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21169 # This bug is HP SR number 8606223364.
21170 { echo "$as_me:$LINENO: checking size of void *" >&5
21171 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21172 if test "${ac_cv_sizeof_void_p+set}" = set; then
21173   echo $ECHO_N "(cached) $ECHO_C" >&6
21174 else
21175   if test "$cross_compiling" = yes; then
21176   # Depending upon the size, compute the lo and hi bounds.
21177 cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h.  */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h.  */
21183 $ac_includes_default
21184    typedef void * ac__type_sizeof_;
21185 int
21186 main ()
21187 {
21188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21189 test_array [0] = 0
21190
21191   ;
21192   return 0;
21193 }
21194 _ACEOF
21195 rm -f conftest.$ac_objext
21196 if { (ac_try="$ac_compile"
21197 case "(($ac_try" in
21198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199   *) ac_try_echo=$ac_try;;
21200 esac
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202   (eval "$ac_compile") 2>conftest.er1
21203   ac_status=$?
21204   grep -v '^ *+' conftest.er1 >conftest.err
21205   rm -f conftest.er1
21206   cat conftest.err >&5
21207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); } && {
21209          test -z "$ac_c_werror_flag" ||
21210          test ! -s conftest.err
21211        } && test -s conftest.$ac_objext; then
21212   ac_lo=0 ac_mid=0
21213   while :; do
21214     cat >conftest.$ac_ext <<_ACEOF
21215 /* confdefs.h.  */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h.  */
21220 $ac_includes_default
21221    typedef void * ac__type_sizeof_;
21222 int
21223 main ()
21224 {
21225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21226 test_array [0] = 0
21227
21228   ;
21229   return 0;
21230 }
21231 _ACEOF
21232 rm -f conftest.$ac_objext
21233 if { (ac_try="$ac_compile"
21234 case "(($ac_try" in
21235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236   *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239   (eval "$ac_compile") 2>conftest.er1
21240   ac_status=$?
21241   grep -v '^ *+' conftest.er1 >conftest.err
21242   rm -f conftest.er1
21243   cat conftest.err >&5
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); } && {
21246          test -z "$ac_c_werror_flag" ||
21247          test ! -s conftest.err
21248        } && test -s conftest.$ac_objext; then
21249   ac_hi=$ac_mid; break
21250 else
21251   echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21253
21254         ac_lo=`expr $ac_mid + 1`
21255                         if test $ac_lo -le $ac_mid; then
21256                           ac_lo= ac_hi=
21257                           break
21258                         fi
21259                         ac_mid=`expr 2 '*' $ac_mid + 1`
21260 fi
21261
21262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21263   done
21264 else
21265   echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21267
21268         cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h.  */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h.  */
21274 $ac_includes_default
21275    typedef void * ac__type_sizeof_;
21276 int
21277 main ()
21278 {
21279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21280 test_array [0] = 0
21281
21282   ;
21283   return 0;
21284 }
21285 _ACEOF
21286 rm -f conftest.$ac_objext
21287 if { (ac_try="$ac_compile"
21288 case "(($ac_try" in
21289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290   *) ac_try_echo=$ac_try;;
21291 esac
21292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293   (eval "$ac_compile") 2>conftest.er1
21294   ac_status=$?
21295   grep -v '^ *+' conftest.er1 >conftest.err
21296   rm -f conftest.er1
21297   cat conftest.err >&5
21298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299   (exit $ac_status); } && {
21300          test -z "$ac_c_werror_flag" ||
21301          test ! -s conftest.err
21302        } && test -s conftest.$ac_objext; then
21303   ac_hi=-1 ac_mid=-1
21304   while :; do
21305     cat >conftest.$ac_ext <<_ACEOF
21306 /* confdefs.h.  */
21307 _ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h.  */
21311 $ac_includes_default
21312    typedef void * ac__type_sizeof_;
21313 int
21314 main ()
21315 {
21316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21317 test_array [0] = 0
21318
21319   ;
21320   return 0;
21321 }
21322 _ACEOF
21323 rm -f conftest.$ac_objext
21324 if { (ac_try="$ac_compile"
21325 case "(($ac_try" in
21326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327   *) ac_try_echo=$ac_try;;
21328 esac
21329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21330   (eval "$ac_compile") 2>conftest.er1
21331   ac_status=$?
21332   grep -v '^ *+' conftest.er1 >conftest.err
21333   rm -f conftest.er1
21334   cat conftest.err >&5
21335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336   (exit $ac_status); } && {
21337          test -z "$ac_c_werror_flag" ||
21338          test ! -s conftest.err
21339        } && test -s conftest.$ac_objext; then
21340   ac_lo=$ac_mid; break
21341 else
21342   echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21344
21345         ac_hi=`expr '(' $ac_mid ')' - 1`
21346                         if test $ac_mid -le $ac_hi; then
21347                           ac_lo= ac_hi=
21348                           break
21349                         fi
21350                         ac_mid=`expr 2 '*' $ac_mid`
21351 fi
21352
21353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354   done
21355 else
21356   echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21358
21359         ac_lo= ac_hi=
21360 fi
21361
21362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21363 fi
21364
21365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21366 # Binary search between lo and hi bounds.
21367 while test "x$ac_lo" != "x$ac_hi"; do
21368   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21369   cat >conftest.$ac_ext <<_ACEOF
21370 /* confdefs.h.  */
21371 _ACEOF
21372 cat confdefs.h >>conftest.$ac_ext
21373 cat >>conftest.$ac_ext <<_ACEOF
21374 /* end confdefs.h.  */
21375 $ac_includes_default
21376    typedef void * ac__type_sizeof_;
21377 int
21378 main ()
21379 {
21380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21381 test_array [0] = 0
21382
21383   ;
21384   return 0;
21385 }
21386 _ACEOF
21387 rm -f conftest.$ac_objext
21388 if { (ac_try="$ac_compile"
21389 case "(($ac_try" in
21390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391   *) ac_try_echo=$ac_try;;
21392 esac
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394   (eval "$ac_compile") 2>conftest.er1
21395   ac_status=$?
21396   grep -v '^ *+' conftest.er1 >conftest.err
21397   rm -f conftest.er1
21398   cat conftest.err >&5
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); } && {
21401          test -z "$ac_c_werror_flag" ||
21402          test ! -s conftest.err
21403        } && test -s conftest.$ac_objext; then
21404   ac_hi=$ac_mid
21405 else
21406   echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21408
21409         ac_lo=`expr '(' $ac_mid ')' + 1`
21410 fi
21411
21412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21413 done
21414 case $ac_lo in
21415 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21416 '') if test "$ac_cv_type_void_p" = yes; then
21417      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21418 See \`config.log' for more details." >&5
21419 echo "$as_me: error: cannot compute sizeof (void *)
21420 See \`config.log' for more details." >&2;}
21421    { (exit 77); exit 77; }; }
21422    else
21423      ac_cv_sizeof_void_p=0
21424    fi ;;
21425 esac
21426 else
21427   cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h.  */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h.  */
21433 $ac_includes_default
21434    typedef void * ac__type_sizeof_;
21435 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21436 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21437 #include <stdio.h>
21438 #include <stdlib.h>
21439 int
21440 main ()
21441 {
21442
21443   FILE *f = fopen ("conftest.val", "w");
21444   if (! f)
21445     return 1;
21446   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21447     {
21448       long int i = longval ();
21449       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21450         return 1;
21451       fprintf (f, "%ld\n", i);
21452     }
21453   else
21454     {
21455       unsigned long int i = ulongval ();
21456       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21457         return 1;
21458       fprintf (f, "%lu\n", i);
21459     }
21460   return ferror (f) || fclose (f) != 0;
21461
21462   ;
21463   return 0;
21464 }
21465 _ACEOF
21466 rm -f conftest$ac_exeext
21467 if { (ac_try="$ac_link"
21468 case "(($ac_try" in
21469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470   *) ac_try_echo=$ac_try;;
21471 esac
21472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473   (eval "$ac_link") 2>&5
21474   ac_status=$?
21475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21477   { (case "(($ac_try" in
21478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479   *) ac_try_echo=$ac_try;;
21480 esac
21481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482   (eval "$ac_try") 2>&5
21483   ac_status=$?
21484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485   (exit $ac_status); }; }; then
21486   ac_cv_sizeof_void_p=`cat conftest.val`
21487 else
21488   echo "$as_me: program exited with status $ac_status" >&5
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21491
21492 ( exit $ac_status )
21493 if test "$ac_cv_type_void_p" = yes; then
21494      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21495 See \`config.log' for more details." >&5
21496 echo "$as_me: error: cannot compute sizeof (void *)
21497 See \`config.log' for more details." >&2;}
21498    { (exit 77); exit 77; }; }
21499    else
21500      ac_cv_sizeof_void_p=0
21501    fi
21502 fi
21503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21504 fi
21505 rm -f conftest.val
21506 fi
21507 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21508 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21509
21510
21511
21512 cat >>confdefs.h <<_ACEOF
21513 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21514 _ACEOF
21515
21516
21517 { echo "$as_me:$LINENO: checking for int" >&5
21518 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21519 if test "${ac_cv_type_int+set}" = set; then
21520   echo $ECHO_N "(cached) $ECHO_C" >&6
21521 else
21522   cat >conftest.$ac_ext <<_ACEOF
21523 /* confdefs.h.  */
21524 _ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h.  */
21528 $ac_includes_default
21529 typedef int ac__type_new_;
21530 int
21531 main ()
21532 {
21533 if ((ac__type_new_ *) 0)
21534   return 0;
21535 if (sizeof (ac__type_new_))
21536   return 0;
21537   ;
21538   return 0;
21539 }
21540 _ACEOF
21541 rm -f conftest.$ac_objext
21542 if { (ac_try="$ac_compile"
21543 case "(($ac_try" in
21544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545   *) ac_try_echo=$ac_try;;
21546 esac
21547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21548   (eval "$ac_compile") 2>conftest.er1
21549   ac_status=$?
21550   grep -v '^ *+' conftest.er1 >conftest.err
21551   rm -f conftest.er1
21552   cat conftest.err >&5
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); } && {
21555          test -z "$ac_c_werror_flag" ||
21556          test ! -s conftest.err
21557        } && test -s conftest.$ac_objext; then
21558   ac_cv_type_int=yes
21559 else
21560   echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21562
21563         ac_cv_type_int=no
21564 fi
21565
21566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567 fi
21568 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21569 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21570
21571 # The cast to long int works around a bug in the HP C Compiler
21572 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21573 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21574 # This bug is HP SR number 8606223364.
21575 { echo "$as_me:$LINENO: checking size of int" >&5
21576 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21577 if test "${ac_cv_sizeof_int+set}" = set; then
21578   echo $ECHO_N "(cached) $ECHO_C" >&6
21579 else
21580   if test "$cross_compiling" = yes; then
21581   # Depending upon the size, compute the lo and hi bounds.
21582 cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h.  */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h.  */
21588 $ac_includes_default
21589    typedef int ac__type_sizeof_;
21590 int
21591 main ()
21592 {
21593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21594 test_array [0] = 0
21595
21596   ;
21597   return 0;
21598 }
21599 _ACEOF
21600 rm -f conftest.$ac_objext
21601 if { (ac_try="$ac_compile"
21602 case "(($ac_try" in
21603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604   *) ac_try_echo=$ac_try;;
21605 esac
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607   (eval "$ac_compile") 2>conftest.er1
21608   ac_status=$?
21609   grep -v '^ *+' conftest.er1 >conftest.err
21610   rm -f conftest.er1
21611   cat conftest.err >&5
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); } && {
21614          test -z "$ac_c_werror_flag" ||
21615          test ! -s conftest.err
21616        } && test -s conftest.$ac_objext; then
21617   ac_lo=0 ac_mid=0
21618   while :; do
21619     cat >conftest.$ac_ext <<_ACEOF
21620 /* confdefs.h.  */
21621 _ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h.  */
21625 $ac_includes_default
21626    typedef int ac__type_sizeof_;
21627 int
21628 main ()
21629 {
21630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21631 test_array [0] = 0
21632
21633   ;
21634   return 0;
21635 }
21636 _ACEOF
21637 rm -f conftest.$ac_objext
21638 if { (ac_try="$ac_compile"
21639 case "(($ac_try" in
21640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641   *) ac_try_echo=$ac_try;;
21642 esac
21643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21644   (eval "$ac_compile") 2>conftest.er1
21645   ac_status=$?
21646   grep -v '^ *+' conftest.er1 >conftest.err
21647   rm -f conftest.er1
21648   cat conftest.err >&5
21649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); } && {
21651          test -z "$ac_c_werror_flag" ||
21652          test ! -s conftest.err
21653        } && test -s conftest.$ac_objext; then
21654   ac_hi=$ac_mid; break
21655 else
21656   echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.$ac_ext >&5
21658
21659         ac_lo=`expr $ac_mid + 1`
21660                         if test $ac_lo -le $ac_mid; then
21661                           ac_lo= ac_hi=
21662                           break
21663                         fi
21664                         ac_mid=`expr 2 '*' $ac_mid + 1`
21665 fi
21666
21667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21668   done
21669 else
21670   echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21672
21673         cat >conftest.$ac_ext <<_ACEOF
21674 /* confdefs.h.  */
21675 _ACEOF
21676 cat confdefs.h >>conftest.$ac_ext
21677 cat >>conftest.$ac_ext <<_ACEOF
21678 /* end confdefs.h.  */
21679 $ac_includes_default
21680    typedef int ac__type_sizeof_;
21681 int
21682 main ()
21683 {
21684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21685 test_array [0] = 0
21686
21687   ;
21688   return 0;
21689 }
21690 _ACEOF
21691 rm -f conftest.$ac_objext
21692 if { (ac_try="$ac_compile"
21693 case "(($ac_try" in
21694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695   *) ac_try_echo=$ac_try;;
21696 esac
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698   (eval "$ac_compile") 2>conftest.er1
21699   ac_status=$?
21700   grep -v '^ *+' conftest.er1 >conftest.err
21701   rm -f conftest.er1
21702   cat conftest.err >&5
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); } && {
21705          test -z "$ac_c_werror_flag" ||
21706          test ! -s conftest.err
21707        } && test -s conftest.$ac_objext; then
21708   ac_hi=-1 ac_mid=-1
21709   while :; do
21710     cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h.  */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h.  */
21716 $ac_includes_default
21717    typedef int ac__type_sizeof_;
21718 int
21719 main ()
21720 {
21721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21722 test_array [0] = 0
21723
21724   ;
21725   return 0;
21726 }
21727 _ACEOF
21728 rm -f conftest.$ac_objext
21729 if { (ac_try="$ac_compile"
21730 case "(($ac_try" in
21731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732   *) ac_try_echo=$ac_try;;
21733 esac
21734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735   (eval "$ac_compile") 2>conftest.er1
21736   ac_status=$?
21737   grep -v '^ *+' conftest.er1 >conftest.err
21738   rm -f conftest.er1
21739   cat conftest.err >&5
21740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741   (exit $ac_status); } && {
21742          test -z "$ac_c_werror_flag" ||
21743          test ! -s conftest.err
21744        } && test -s conftest.$ac_objext; then
21745   ac_lo=$ac_mid; break
21746 else
21747   echo "$as_me: failed program was:" >&5
21748 sed 's/^/| /' conftest.$ac_ext >&5
21749
21750         ac_hi=`expr '(' $ac_mid ')' - 1`
21751                         if test $ac_mid -le $ac_hi; then
21752                           ac_lo= ac_hi=
21753                           break
21754                         fi
21755                         ac_mid=`expr 2 '*' $ac_mid`
21756 fi
21757
21758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21759   done
21760 else
21761   echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21763
21764         ac_lo= ac_hi=
21765 fi
21766
21767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21768 fi
21769
21770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21771 # Binary search between lo and hi bounds.
21772 while test "x$ac_lo" != "x$ac_hi"; do
21773   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21774   cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h.  */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h.  */
21780 $ac_includes_default
21781    typedef int ac__type_sizeof_;
21782 int
21783 main ()
21784 {
21785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21786 test_array [0] = 0
21787
21788   ;
21789   return 0;
21790 }
21791 _ACEOF
21792 rm -f conftest.$ac_objext
21793 if { (ac_try="$ac_compile"
21794 case "(($ac_try" in
21795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796   *) ac_try_echo=$ac_try;;
21797 esac
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799   (eval "$ac_compile") 2>conftest.er1
21800   ac_status=$?
21801   grep -v '^ *+' conftest.er1 >conftest.err
21802   rm -f conftest.er1
21803   cat conftest.err >&5
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); } && {
21806          test -z "$ac_c_werror_flag" ||
21807          test ! -s conftest.err
21808        } && test -s conftest.$ac_objext; then
21809   ac_hi=$ac_mid
21810 else
21811   echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21813
21814         ac_lo=`expr '(' $ac_mid ')' + 1`
21815 fi
21816
21817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21818 done
21819 case $ac_lo in
21820 ?*) ac_cv_sizeof_int=$ac_lo;;
21821 '') if test "$ac_cv_type_int" = yes; then
21822      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21823 See \`config.log' for more details." >&5
21824 echo "$as_me: error: cannot compute sizeof (int)
21825 See \`config.log' for more details." >&2;}
21826    { (exit 77); exit 77; }; }
21827    else
21828      ac_cv_sizeof_int=0
21829    fi ;;
21830 esac
21831 else
21832   cat >conftest.$ac_ext <<_ACEOF
21833 /* confdefs.h.  */
21834 _ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h.  */
21838 $ac_includes_default
21839    typedef int ac__type_sizeof_;
21840 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21841 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21842 #include <stdio.h>
21843 #include <stdlib.h>
21844 int
21845 main ()
21846 {
21847
21848   FILE *f = fopen ("conftest.val", "w");
21849   if (! f)
21850     return 1;
21851   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21852     {
21853       long int i = longval ();
21854       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21855         return 1;
21856       fprintf (f, "%ld\n", i);
21857     }
21858   else
21859     {
21860       unsigned long int i = ulongval ();
21861       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21862         return 1;
21863       fprintf (f, "%lu\n", i);
21864     }
21865   return ferror (f) || fclose (f) != 0;
21866
21867   ;
21868   return 0;
21869 }
21870 _ACEOF
21871 rm -f conftest$ac_exeext
21872 if { (ac_try="$ac_link"
21873 case "(($ac_try" in
21874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21875   *) ac_try_echo=$ac_try;;
21876 esac
21877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21878   (eval "$ac_link") 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21882   { (case "(($ac_try" in
21883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884   *) ac_try_echo=$ac_try;;
21885 esac
21886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21887   (eval "$ac_try") 2>&5
21888   ac_status=$?
21889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890   (exit $ac_status); }; }; then
21891   ac_cv_sizeof_int=`cat conftest.val`
21892 else
21893   echo "$as_me: program exited with status $ac_status" >&5
21894 echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21896
21897 ( exit $ac_status )
21898 if test "$ac_cv_type_int" = yes; then
21899      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21900 See \`config.log' for more details." >&5
21901 echo "$as_me: error: cannot compute sizeof (int)
21902 See \`config.log' for more details." >&2;}
21903    { (exit 77); exit 77; }; }
21904    else
21905      ac_cv_sizeof_int=0
21906    fi
21907 fi
21908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21909 fi
21910 rm -f conftest.val
21911 fi
21912 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21913 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21914
21915
21916
21917 cat >>confdefs.h <<_ACEOF
21918 #define SIZEOF_INT $ac_cv_sizeof_int
21919 _ACEOF
21920
21921
21922 { echo "$as_me:$LINENO: checking for long" >&5
21923 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21924 if test "${ac_cv_type_long+set}" = set; then
21925   echo $ECHO_N "(cached) $ECHO_C" >&6
21926 else
21927   cat >conftest.$ac_ext <<_ACEOF
21928 /* confdefs.h.  */
21929 _ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h.  */
21933 $ac_includes_default
21934 typedef long ac__type_new_;
21935 int
21936 main ()
21937 {
21938 if ((ac__type_new_ *) 0)
21939   return 0;
21940 if (sizeof (ac__type_new_))
21941   return 0;
21942   ;
21943   return 0;
21944 }
21945 _ACEOF
21946 rm -f conftest.$ac_objext
21947 if { (ac_try="$ac_compile"
21948 case "(($ac_try" in
21949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950   *) ac_try_echo=$ac_try;;
21951 esac
21952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21953   (eval "$ac_compile") 2>conftest.er1
21954   ac_status=$?
21955   grep -v '^ *+' conftest.er1 >conftest.err
21956   rm -f conftest.er1
21957   cat conftest.err >&5
21958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959   (exit $ac_status); } && {
21960          test -z "$ac_c_werror_flag" ||
21961          test ! -s conftest.err
21962        } && test -s conftest.$ac_objext; then
21963   ac_cv_type_long=yes
21964 else
21965   echo "$as_me: failed program was:" >&5
21966 sed 's/^/| /' conftest.$ac_ext >&5
21967
21968         ac_cv_type_long=no
21969 fi
21970
21971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21972 fi
21973 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21974 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21975
21976 # The cast to long int works around a bug in the HP C Compiler
21977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21979 # This bug is HP SR number 8606223364.
21980 { echo "$as_me:$LINENO: checking size of long" >&5
21981 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21982 if test "${ac_cv_sizeof_long+set}" = set; then
21983   echo $ECHO_N "(cached) $ECHO_C" >&6
21984 else
21985   if test "$cross_compiling" = yes; then
21986   # Depending upon the size, compute the lo and hi bounds.
21987 cat >conftest.$ac_ext <<_ACEOF
21988 /* confdefs.h.  */
21989 _ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h.  */
21993 $ac_includes_default
21994    typedef long ac__type_sizeof_;
21995 int
21996 main ()
21997 {
21998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21999 test_array [0] = 0
22000
22001   ;
22002   return 0;
22003 }
22004 _ACEOF
22005 rm -f conftest.$ac_objext
22006 if { (ac_try="$ac_compile"
22007 case "(($ac_try" in
22008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009   *) ac_try_echo=$ac_try;;
22010 esac
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012   (eval "$ac_compile") 2>conftest.er1
22013   ac_status=$?
22014   grep -v '^ *+' conftest.er1 >conftest.err
22015   rm -f conftest.er1
22016   cat conftest.err >&5
22017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018   (exit $ac_status); } && {
22019          test -z "$ac_c_werror_flag" ||
22020          test ! -s conftest.err
22021        } && test -s conftest.$ac_objext; then
22022   ac_lo=0 ac_mid=0
22023   while :; do
22024     cat >conftest.$ac_ext <<_ACEOF
22025 /* confdefs.h.  */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h.  */
22030 $ac_includes_default
22031    typedef long ac__type_sizeof_;
22032 int
22033 main ()
22034 {
22035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22036 test_array [0] = 0
22037
22038   ;
22039   return 0;
22040 }
22041 _ACEOF
22042 rm -f conftest.$ac_objext
22043 if { (ac_try="$ac_compile"
22044 case "(($ac_try" in
22045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22046   *) ac_try_echo=$ac_try;;
22047 esac
22048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22049   (eval "$ac_compile") 2>conftest.er1
22050   ac_status=$?
22051   grep -v '^ *+' conftest.er1 >conftest.err
22052   rm -f conftest.er1
22053   cat conftest.err >&5
22054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055   (exit $ac_status); } && {
22056          test -z "$ac_c_werror_flag" ||
22057          test ! -s conftest.err
22058        } && test -s conftest.$ac_objext; then
22059   ac_hi=$ac_mid; break
22060 else
22061   echo "$as_me: failed program was:" >&5
22062 sed 's/^/| /' conftest.$ac_ext >&5
22063
22064         ac_lo=`expr $ac_mid + 1`
22065                         if test $ac_lo -le $ac_mid; then
22066                           ac_lo= ac_hi=
22067                           break
22068                         fi
22069                         ac_mid=`expr 2 '*' $ac_mid + 1`
22070 fi
22071
22072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22073   done
22074 else
22075   echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078         cat >conftest.$ac_ext <<_ACEOF
22079 /* confdefs.h.  */
22080 _ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h.  */
22084 $ac_includes_default
22085    typedef long ac__type_sizeof_;
22086 int
22087 main ()
22088 {
22089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22090 test_array [0] = 0
22091
22092   ;
22093   return 0;
22094 }
22095 _ACEOF
22096 rm -f conftest.$ac_objext
22097 if { (ac_try="$ac_compile"
22098 case "(($ac_try" in
22099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100   *) ac_try_echo=$ac_try;;
22101 esac
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103   (eval "$ac_compile") 2>conftest.er1
22104   ac_status=$?
22105   grep -v '^ *+' conftest.er1 >conftest.err
22106   rm -f conftest.er1
22107   cat conftest.err >&5
22108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109   (exit $ac_status); } && {
22110          test -z "$ac_c_werror_flag" ||
22111          test ! -s conftest.err
22112        } && test -s conftest.$ac_objext; then
22113   ac_hi=-1 ac_mid=-1
22114   while :; do
22115     cat >conftest.$ac_ext <<_ACEOF
22116 /* confdefs.h.  */
22117 _ACEOF
22118 cat confdefs.h >>conftest.$ac_ext
22119 cat >>conftest.$ac_ext <<_ACEOF
22120 /* end confdefs.h.  */
22121 $ac_includes_default
22122    typedef long ac__type_sizeof_;
22123 int
22124 main ()
22125 {
22126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22127 test_array [0] = 0
22128
22129   ;
22130   return 0;
22131 }
22132 _ACEOF
22133 rm -f conftest.$ac_objext
22134 if { (ac_try="$ac_compile"
22135 case "(($ac_try" in
22136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22137   *) ac_try_echo=$ac_try;;
22138 esac
22139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22140   (eval "$ac_compile") 2>conftest.er1
22141   ac_status=$?
22142   grep -v '^ *+' conftest.er1 >conftest.err
22143   rm -f conftest.er1
22144   cat conftest.err >&5
22145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146   (exit $ac_status); } && {
22147          test -z "$ac_c_werror_flag" ||
22148          test ! -s conftest.err
22149        } && test -s conftest.$ac_objext; then
22150   ac_lo=$ac_mid; break
22151 else
22152   echo "$as_me: failed program was:" >&5
22153 sed 's/^/| /' conftest.$ac_ext >&5
22154
22155         ac_hi=`expr '(' $ac_mid ')' - 1`
22156                         if test $ac_mid -le $ac_hi; then
22157                           ac_lo= ac_hi=
22158                           break
22159                         fi
22160                         ac_mid=`expr 2 '*' $ac_mid`
22161 fi
22162
22163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22164   done
22165 else
22166   echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22168
22169         ac_lo= ac_hi=
22170 fi
22171
22172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 fi
22174
22175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22176 # Binary search between lo and hi bounds.
22177 while test "x$ac_lo" != "x$ac_hi"; do
22178   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22179   cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h.  */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h.  */
22185 $ac_includes_default
22186    typedef long ac__type_sizeof_;
22187 int
22188 main ()
22189 {
22190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22191 test_array [0] = 0
22192
22193   ;
22194   return 0;
22195 }
22196 _ACEOF
22197 rm -f conftest.$ac_objext
22198 if { (ac_try="$ac_compile"
22199 case "(($ac_try" in
22200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201   *) ac_try_echo=$ac_try;;
22202 esac
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204   (eval "$ac_compile") 2>conftest.er1
22205   ac_status=$?
22206   grep -v '^ *+' conftest.er1 >conftest.err
22207   rm -f conftest.er1
22208   cat conftest.err >&5
22209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); } && {
22211          test -z "$ac_c_werror_flag" ||
22212          test ! -s conftest.err
22213        } && test -s conftest.$ac_objext; then
22214   ac_hi=$ac_mid
22215 else
22216   echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22218
22219         ac_lo=`expr '(' $ac_mid ')' + 1`
22220 fi
22221
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22223 done
22224 case $ac_lo in
22225 ?*) ac_cv_sizeof_long=$ac_lo;;
22226 '') if test "$ac_cv_type_long" = yes; then
22227      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22228 See \`config.log' for more details." >&5
22229 echo "$as_me: error: cannot compute sizeof (long)
22230 See \`config.log' for more details." >&2;}
22231    { (exit 77); exit 77; }; }
22232    else
22233      ac_cv_sizeof_long=0
22234    fi ;;
22235 esac
22236 else
22237   cat >conftest.$ac_ext <<_ACEOF
22238 /* confdefs.h.  */
22239 _ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h.  */
22243 $ac_includes_default
22244    typedef long ac__type_sizeof_;
22245 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22246 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22247 #include <stdio.h>
22248 #include <stdlib.h>
22249 int
22250 main ()
22251 {
22252
22253   FILE *f = fopen ("conftest.val", "w");
22254   if (! f)
22255     return 1;
22256   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22257     {
22258       long int i = longval ();
22259       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22260         return 1;
22261       fprintf (f, "%ld\n", i);
22262     }
22263   else
22264     {
22265       unsigned long int i = ulongval ();
22266       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22267         return 1;
22268       fprintf (f, "%lu\n", i);
22269     }
22270   return ferror (f) || fclose (f) != 0;
22271
22272   ;
22273   return 0;
22274 }
22275 _ACEOF
22276 rm -f conftest$ac_exeext
22277 if { (ac_try="$ac_link"
22278 case "(($ac_try" in
22279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280   *) ac_try_echo=$ac_try;;
22281 esac
22282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283   (eval "$ac_link") 2>&5
22284   ac_status=$?
22285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22287   { (case "(($ac_try" in
22288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289   *) ac_try_echo=$ac_try;;
22290 esac
22291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22292   (eval "$ac_try") 2>&5
22293   ac_status=$?
22294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295   (exit $ac_status); }; }; then
22296   ac_cv_sizeof_long=`cat conftest.val`
22297 else
22298   echo "$as_me: program exited with status $ac_status" >&5
22299 echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22301
22302 ( exit $ac_status )
22303 if test "$ac_cv_type_long" = yes; then
22304      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22305 See \`config.log' for more details." >&5
22306 echo "$as_me: error: cannot compute sizeof (long)
22307 See \`config.log' for more details." >&2;}
22308    { (exit 77); exit 77; }; }
22309    else
22310      ac_cv_sizeof_long=0
22311    fi
22312 fi
22313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22314 fi
22315 rm -f conftest.val
22316 fi
22317 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22318 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22319
22320
22321
22322 cat >>confdefs.h <<_ACEOF
22323 #define SIZEOF_LONG $ac_cv_sizeof_long
22324 _ACEOF
22325
22326
22327 { echo "$as_me:$LINENO: checking for size_t" >&5
22328 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22329 if test "${ac_cv_type_size_t+set}" = set; then
22330   echo $ECHO_N "(cached) $ECHO_C" >&6
22331 else
22332   cat >conftest.$ac_ext <<_ACEOF
22333 /* confdefs.h.  */
22334 _ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h.  */
22338 $ac_includes_default
22339 typedef size_t ac__type_new_;
22340 int
22341 main ()
22342 {
22343 if ((ac__type_new_ *) 0)
22344   return 0;
22345 if (sizeof (ac__type_new_))
22346   return 0;
22347   ;
22348   return 0;
22349 }
22350 _ACEOF
22351 rm -f conftest.$ac_objext
22352 if { (ac_try="$ac_compile"
22353 case "(($ac_try" in
22354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355   *) ac_try_echo=$ac_try;;
22356 esac
22357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22358   (eval "$ac_compile") 2>conftest.er1
22359   ac_status=$?
22360   grep -v '^ *+' conftest.er1 >conftest.err
22361   rm -f conftest.er1
22362   cat conftest.err >&5
22363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364   (exit $ac_status); } && {
22365          test -z "$ac_c_werror_flag" ||
22366          test ! -s conftest.err
22367        } && test -s conftest.$ac_objext; then
22368   ac_cv_type_size_t=yes
22369 else
22370   echo "$as_me: failed program was:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22372
22373         ac_cv_type_size_t=no
22374 fi
22375
22376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22377 fi
22378 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22379 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22380
22381 # The cast to long int works around a bug in the HP C Compiler
22382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22384 # This bug is HP SR number 8606223364.
22385 { echo "$as_me:$LINENO: checking size of size_t" >&5
22386 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22387 if test "${ac_cv_sizeof_size_t+set}" = set; then
22388   echo $ECHO_N "(cached) $ECHO_C" >&6
22389 else
22390   if test "$cross_compiling" = yes; then
22391   # Depending upon the size, compute the lo and hi bounds.
22392 cat >conftest.$ac_ext <<_ACEOF
22393 /* confdefs.h.  */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h.  */
22398 $ac_includes_default
22399    typedef size_t ac__type_sizeof_;
22400 int
22401 main ()
22402 {
22403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22404 test_array [0] = 0
22405
22406   ;
22407   return 0;
22408 }
22409 _ACEOF
22410 rm -f conftest.$ac_objext
22411 if { (ac_try="$ac_compile"
22412 case "(($ac_try" in
22413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22414   *) ac_try_echo=$ac_try;;
22415 esac
22416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22417   (eval "$ac_compile") 2>conftest.er1
22418   ac_status=$?
22419   grep -v '^ *+' conftest.er1 >conftest.err
22420   rm -f conftest.er1
22421   cat conftest.err >&5
22422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423   (exit $ac_status); } && {
22424          test -z "$ac_c_werror_flag" ||
22425          test ! -s conftest.err
22426        } && test -s conftest.$ac_objext; then
22427   ac_lo=0 ac_mid=0
22428   while :; do
22429     cat >conftest.$ac_ext <<_ACEOF
22430 /* confdefs.h.  */
22431 _ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h.  */
22435 $ac_includes_default
22436    typedef size_t ac__type_sizeof_;
22437 int
22438 main ()
22439 {
22440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22441 test_array [0] = 0
22442
22443   ;
22444   return 0;
22445 }
22446 _ACEOF
22447 rm -f conftest.$ac_objext
22448 if { (ac_try="$ac_compile"
22449 case "(($ac_try" in
22450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22451   *) ac_try_echo=$ac_try;;
22452 esac
22453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22454   (eval "$ac_compile") 2>conftest.er1
22455   ac_status=$?
22456   grep -v '^ *+' conftest.er1 >conftest.err
22457   rm -f conftest.er1
22458   cat conftest.err >&5
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); } && {
22461          test -z "$ac_c_werror_flag" ||
22462          test ! -s conftest.err
22463        } && test -s conftest.$ac_objext; then
22464   ac_hi=$ac_mid; break
22465 else
22466   echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22468
22469         ac_lo=`expr $ac_mid + 1`
22470                         if test $ac_lo -le $ac_mid; then
22471                           ac_lo= ac_hi=
22472                           break
22473                         fi
22474                         ac_mid=`expr 2 '*' $ac_mid + 1`
22475 fi
22476
22477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478   done
22479 else
22480   echo "$as_me: failed program was:" >&5
22481 sed 's/^/| /' conftest.$ac_ext >&5
22482
22483         cat >conftest.$ac_ext <<_ACEOF
22484 /* confdefs.h.  */
22485 _ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h.  */
22489 $ac_includes_default
22490    typedef size_t ac__type_sizeof_;
22491 int
22492 main ()
22493 {
22494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22495 test_array [0] = 0
22496
22497   ;
22498   return 0;
22499 }
22500 _ACEOF
22501 rm -f conftest.$ac_objext
22502 if { (ac_try="$ac_compile"
22503 case "(($ac_try" in
22504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505   *) ac_try_echo=$ac_try;;
22506 esac
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508   (eval "$ac_compile") 2>conftest.er1
22509   ac_status=$?
22510   grep -v '^ *+' conftest.er1 >conftest.err
22511   rm -f conftest.er1
22512   cat conftest.err >&5
22513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514   (exit $ac_status); } && {
22515          test -z "$ac_c_werror_flag" ||
22516          test ! -s conftest.err
22517        } && test -s conftest.$ac_objext; then
22518   ac_hi=-1 ac_mid=-1
22519   while :; do
22520     cat >conftest.$ac_ext <<_ACEOF
22521 /* confdefs.h.  */
22522 _ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h.  */
22526 $ac_includes_default
22527    typedef size_t ac__type_sizeof_;
22528 int
22529 main ()
22530 {
22531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22532 test_array [0] = 0
22533
22534   ;
22535   return 0;
22536 }
22537 _ACEOF
22538 rm -f conftest.$ac_objext
22539 if { (ac_try="$ac_compile"
22540 case "(($ac_try" in
22541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542   *) ac_try_echo=$ac_try;;
22543 esac
22544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22545   (eval "$ac_compile") 2>conftest.er1
22546   ac_status=$?
22547   grep -v '^ *+' conftest.er1 >conftest.err
22548   rm -f conftest.er1
22549   cat conftest.err >&5
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); } && {
22552          test -z "$ac_c_werror_flag" ||
22553          test ! -s conftest.err
22554        } && test -s conftest.$ac_objext; then
22555   ac_lo=$ac_mid; break
22556 else
22557   echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22559
22560         ac_hi=`expr '(' $ac_mid ')' - 1`
22561                         if test $ac_mid -le $ac_hi; then
22562                           ac_lo= ac_hi=
22563                           break
22564                         fi
22565                         ac_mid=`expr 2 '*' $ac_mid`
22566 fi
22567
22568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22569   done
22570 else
22571   echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22573
22574         ac_lo= ac_hi=
22575 fi
22576
22577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22578 fi
22579
22580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22581 # Binary search between lo and hi bounds.
22582 while test "x$ac_lo" != "x$ac_hi"; do
22583   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22584   cat >conftest.$ac_ext <<_ACEOF
22585 /* confdefs.h.  */
22586 _ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h.  */
22590 $ac_includes_default
22591    typedef size_t ac__type_sizeof_;
22592 int
22593 main ()
22594 {
22595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22596 test_array [0] = 0
22597
22598   ;
22599   return 0;
22600 }
22601 _ACEOF
22602 rm -f conftest.$ac_objext
22603 if { (ac_try="$ac_compile"
22604 case "(($ac_try" in
22605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606   *) ac_try_echo=$ac_try;;
22607 esac
22608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22609   (eval "$ac_compile") 2>conftest.er1
22610   ac_status=$?
22611   grep -v '^ *+' conftest.er1 >conftest.err
22612   rm -f conftest.er1
22613   cat conftest.err >&5
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); } && {
22616          test -z "$ac_c_werror_flag" ||
22617          test ! -s conftest.err
22618        } && test -s conftest.$ac_objext; then
22619   ac_hi=$ac_mid
22620 else
22621   echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22623
22624         ac_lo=`expr '(' $ac_mid ')' + 1`
22625 fi
22626
22627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22628 done
22629 case $ac_lo in
22630 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22631 '') if test "$ac_cv_type_size_t" = yes; then
22632      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22633 See \`config.log' for more details." >&5
22634 echo "$as_me: error: cannot compute sizeof (size_t)
22635 See \`config.log' for more details." >&2;}
22636    { (exit 77); exit 77; }; }
22637    else
22638      ac_cv_sizeof_size_t=0
22639    fi ;;
22640 esac
22641 else
22642   cat >conftest.$ac_ext <<_ACEOF
22643 /* confdefs.h.  */
22644 _ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h.  */
22648 $ac_includes_default
22649    typedef size_t ac__type_sizeof_;
22650 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22651 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22652 #include <stdio.h>
22653 #include <stdlib.h>
22654 int
22655 main ()
22656 {
22657
22658   FILE *f = fopen ("conftest.val", "w");
22659   if (! f)
22660     return 1;
22661   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22662     {
22663       long int i = longval ();
22664       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22665         return 1;
22666       fprintf (f, "%ld\n", i);
22667     }
22668   else
22669     {
22670       unsigned long int i = ulongval ();
22671       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22672         return 1;
22673       fprintf (f, "%lu\n", i);
22674     }
22675   return ferror (f) || fclose (f) != 0;
22676
22677   ;
22678   return 0;
22679 }
22680 _ACEOF
22681 rm -f conftest$ac_exeext
22682 if { (ac_try="$ac_link"
22683 case "(($ac_try" in
22684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685   *) ac_try_echo=$ac_try;;
22686 esac
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688   (eval "$ac_link") 2>&5
22689   ac_status=$?
22690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22692   { (case "(($ac_try" in
22693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22694   *) ac_try_echo=$ac_try;;
22695 esac
22696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22697   (eval "$ac_try") 2>&5
22698   ac_status=$?
22699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700   (exit $ac_status); }; }; then
22701   ac_cv_sizeof_size_t=`cat conftest.val`
22702 else
22703   echo "$as_me: program exited with status $ac_status" >&5
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22706
22707 ( exit $ac_status )
22708 if test "$ac_cv_type_size_t" = yes; then
22709      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22710 See \`config.log' for more details." >&5
22711 echo "$as_me: error: cannot compute sizeof (size_t)
22712 See \`config.log' for more details." >&2;}
22713    { (exit 77); exit 77; }; }
22714    else
22715      ac_cv_sizeof_size_t=0
22716    fi
22717 fi
22718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22719 fi
22720 rm -f conftest.val
22721 fi
22722 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22723 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22724
22725
22726
22727 cat >>confdefs.h <<_ACEOF
22728 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22729 _ACEOF
22730
22731
22732
22733 case "${host}" in
22734     arm-*-linux* )
22735         { echo "$as_me:$LINENO: checking for long long" >&5
22736 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22737 if test "${ac_cv_type_long_long+set}" = set; then
22738   echo $ECHO_N "(cached) $ECHO_C" >&6
22739 else
22740   cat >conftest.$ac_ext <<_ACEOF
22741 /* confdefs.h.  */
22742 _ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h.  */
22746 $ac_includes_default
22747 typedef long long ac__type_new_;
22748 int
22749 main ()
22750 {
22751 if ((ac__type_new_ *) 0)
22752   return 0;
22753 if (sizeof (ac__type_new_))
22754   return 0;
22755   ;
22756   return 0;
22757 }
22758 _ACEOF
22759 rm -f conftest.$ac_objext
22760 if { (ac_try="$ac_compile"
22761 case "(($ac_try" in
22762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763   *) ac_try_echo=$ac_try;;
22764 esac
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766   (eval "$ac_compile") 2>conftest.er1
22767   ac_status=$?
22768   grep -v '^ *+' conftest.er1 >conftest.err
22769   rm -f conftest.er1
22770   cat conftest.err >&5
22771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772   (exit $ac_status); } && {
22773          test -z "$ac_c_werror_flag" ||
22774          test ! -s conftest.err
22775        } && test -s conftest.$ac_objext; then
22776   ac_cv_type_long_long=yes
22777 else
22778   echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22780
22781         ac_cv_type_long_long=no
22782 fi
22783
22784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785 fi
22786 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22787 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22788
22789 # The cast to long int works around a bug in the HP C Compiler
22790 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22791 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22792 # This bug is HP SR number 8606223364.
22793 { echo "$as_me:$LINENO: checking size of long long" >&5
22794 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22795 if test "${ac_cv_sizeof_long_long+set}" = set; then
22796   echo $ECHO_N "(cached) $ECHO_C" >&6
22797 else
22798   if test "$cross_compiling" = yes; then
22799   # Depending upon the size, compute the lo and hi bounds.
22800 cat >conftest.$ac_ext <<_ACEOF
22801 /* confdefs.h.  */
22802 _ACEOF
22803 cat confdefs.h >>conftest.$ac_ext
22804 cat >>conftest.$ac_ext <<_ACEOF
22805 /* end confdefs.h.  */
22806 $ac_includes_default
22807    typedef long long ac__type_sizeof_;
22808 int
22809 main ()
22810 {
22811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22812 test_array [0] = 0
22813
22814   ;
22815   return 0;
22816 }
22817 _ACEOF
22818 rm -f conftest.$ac_objext
22819 if { (ac_try="$ac_compile"
22820 case "(($ac_try" in
22821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822   *) ac_try_echo=$ac_try;;
22823 esac
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825   (eval "$ac_compile") 2>conftest.er1
22826   ac_status=$?
22827   grep -v '^ *+' conftest.er1 >conftest.err
22828   rm -f conftest.er1
22829   cat conftest.err >&5
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); } && {
22832          test -z "$ac_c_werror_flag" ||
22833          test ! -s conftest.err
22834        } && test -s conftest.$ac_objext; then
22835   ac_lo=0 ac_mid=0
22836   while :; do
22837     cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h.  */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h.  */
22843 $ac_includes_default
22844    typedef long long ac__type_sizeof_;
22845 int
22846 main ()
22847 {
22848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22849 test_array [0] = 0
22850
22851   ;
22852   return 0;
22853 }
22854 _ACEOF
22855 rm -f conftest.$ac_objext
22856 if { (ac_try="$ac_compile"
22857 case "(($ac_try" in
22858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859   *) ac_try_echo=$ac_try;;
22860 esac
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862   (eval "$ac_compile") 2>conftest.er1
22863   ac_status=$?
22864   grep -v '^ *+' conftest.er1 >conftest.err
22865   rm -f conftest.er1
22866   cat conftest.err >&5
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); } && {
22869          test -z "$ac_c_werror_flag" ||
22870          test ! -s conftest.err
22871        } && test -s conftest.$ac_objext; then
22872   ac_hi=$ac_mid; break
22873 else
22874   echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22876
22877         ac_lo=`expr $ac_mid + 1`
22878                         if test $ac_lo -le $ac_mid; then
22879                           ac_lo= ac_hi=
22880                           break
22881                         fi
22882                         ac_mid=`expr 2 '*' $ac_mid + 1`
22883 fi
22884
22885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886   done
22887 else
22888   echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22890
22891         cat >conftest.$ac_ext <<_ACEOF
22892 /* confdefs.h.  */
22893 _ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h.  */
22897 $ac_includes_default
22898    typedef long long ac__type_sizeof_;
22899 int
22900 main ()
22901 {
22902 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22903 test_array [0] = 0
22904
22905   ;
22906   return 0;
22907 }
22908 _ACEOF
22909 rm -f conftest.$ac_objext
22910 if { (ac_try="$ac_compile"
22911 case "(($ac_try" in
22912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913   *) ac_try_echo=$ac_try;;
22914 esac
22915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22916   (eval "$ac_compile") 2>conftest.er1
22917   ac_status=$?
22918   grep -v '^ *+' conftest.er1 >conftest.err
22919   rm -f conftest.er1
22920   cat conftest.err >&5
22921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922   (exit $ac_status); } && {
22923          test -z "$ac_c_werror_flag" ||
22924          test ! -s conftest.err
22925        } && test -s conftest.$ac_objext; then
22926   ac_hi=-1 ac_mid=-1
22927   while :; do
22928     cat >conftest.$ac_ext <<_ACEOF
22929 /* confdefs.h.  */
22930 _ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h.  */
22934 $ac_includes_default
22935    typedef long long ac__type_sizeof_;
22936 int
22937 main ()
22938 {
22939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22940 test_array [0] = 0
22941
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 rm -f conftest.$ac_objext
22947 if { (ac_try="$ac_compile"
22948 case "(($ac_try" in
22949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22950   *) ac_try_echo=$ac_try;;
22951 esac
22952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22953   (eval "$ac_compile") 2>conftest.er1
22954   ac_status=$?
22955   grep -v '^ *+' conftest.er1 >conftest.err
22956   rm -f conftest.er1
22957   cat conftest.err >&5
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); } && {
22960          test -z "$ac_c_werror_flag" ||
22961          test ! -s conftest.err
22962        } && test -s conftest.$ac_objext; then
22963   ac_lo=$ac_mid; break
22964 else
22965   echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22967
22968         ac_hi=`expr '(' $ac_mid ')' - 1`
22969                         if test $ac_mid -le $ac_hi; then
22970                           ac_lo= ac_hi=
22971                           break
22972                         fi
22973                         ac_mid=`expr 2 '*' $ac_mid`
22974 fi
22975
22976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977   done
22978 else
22979   echo "$as_me: failed program was:" >&5
22980 sed 's/^/| /' conftest.$ac_ext >&5
22981
22982         ac_lo= ac_hi=
22983 fi
22984
22985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22986 fi
22987
22988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22989 # Binary search between lo and hi bounds.
22990 while test "x$ac_lo" != "x$ac_hi"; do
22991   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22992   cat >conftest.$ac_ext <<_ACEOF
22993 /* confdefs.h.  */
22994 _ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h.  */
22998 $ac_includes_default
22999    typedef long long ac__type_sizeof_;
23000 int
23001 main ()
23002 {
23003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23004 test_array [0] = 0
23005
23006   ;
23007   return 0;
23008 }
23009 _ACEOF
23010 rm -f conftest.$ac_objext
23011 if { (ac_try="$ac_compile"
23012 case "(($ac_try" in
23013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014   *) ac_try_echo=$ac_try;;
23015 esac
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017   (eval "$ac_compile") 2>conftest.er1
23018   ac_status=$?
23019   grep -v '^ *+' conftest.er1 >conftest.err
23020   rm -f conftest.er1
23021   cat conftest.err >&5
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); } && {
23024          test -z "$ac_c_werror_flag" ||
23025          test ! -s conftest.err
23026        } && test -s conftest.$ac_objext; then
23027   ac_hi=$ac_mid
23028 else
23029   echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23031
23032         ac_lo=`expr '(' $ac_mid ')' + 1`
23033 fi
23034
23035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23036 done
23037 case $ac_lo in
23038 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23039 '') if test "$ac_cv_type_long_long" = yes; then
23040      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23041 See \`config.log' for more details." >&5
23042 echo "$as_me: error: cannot compute sizeof (long long)
23043 See \`config.log' for more details." >&2;}
23044    { (exit 77); exit 77; }; }
23045    else
23046      ac_cv_sizeof_long_long=0
23047    fi ;;
23048 esac
23049 else
23050   cat >conftest.$ac_ext <<_ACEOF
23051 /* confdefs.h.  */
23052 _ACEOF
23053 cat confdefs.h >>conftest.$ac_ext
23054 cat >>conftest.$ac_ext <<_ACEOF
23055 /* end confdefs.h.  */
23056 $ac_includes_default
23057    typedef long long ac__type_sizeof_;
23058 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23059 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23060 #include <stdio.h>
23061 #include <stdlib.h>
23062 int
23063 main ()
23064 {
23065
23066   FILE *f = fopen ("conftest.val", "w");
23067   if (! f)
23068     return 1;
23069   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23070     {
23071       long int i = longval ();
23072       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23073         return 1;
23074       fprintf (f, "%ld\n", i);
23075     }
23076   else
23077     {
23078       unsigned long int i = ulongval ();
23079       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23080         return 1;
23081       fprintf (f, "%lu\n", i);
23082     }
23083   return ferror (f) || fclose (f) != 0;
23084
23085   ;
23086   return 0;
23087 }
23088 _ACEOF
23089 rm -f conftest$ac_exeext
23090 if { (ac_try="$ac_link"
23091 case "(($ac_try" in
23092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23093   *) ac_try_echo=$ac_try;;
23094 esac
23095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23096   (eval "$ac_link") 2>&5
23097   ac_status=$?
23098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23100   { (case "(($ac_try" in
23101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23102   *) ac_try_echo=$ac_try;;
23103 esac
23104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23105   (eval "$ac_try") 2>&5
23106   ac_status=$?
23107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108   (exit $ac_status); }; }; then
23109   ac_cv_sizeof_long_long=`cat conftest.val`
23110 else
23111   echo "$as_me: program exited with status $ac_status" >&5
23112 echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23114
23115 ( exit $ac_status )
23116 if test "$ac_cv_type_long_long" = yes; then
23117      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23118 See \`config.log' for more details." >&5
23119 echo "$as_me: error: cannot compute sizeof (long long)
23120 See \`config.log' for more details." >&2;}
23121    { (exit 77); exit 77; }; }
23122    else
23123      ac_cv_sizeof_long_long=0
23124    fi
23125 fi
23126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23127 fi
23128 rm -f conftest.val
23129 fi
23130 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23131 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23132
23133
23134
23135 cat >>confdefs.h <<_ACEOF
23136 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23137 _ACEOF
23138
23139
23140     ;;
23141     *-hp-hpux* )
23142         { echo "$as_me:$LINENO: checking for long long" >&5
23143 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23144 if test "${ac_cv_type_long_long+set}" = set; then
23145   echo $ECHO_N "(cached) $ECHO_C" >&6
23146 else
23147   cat >conftest.$ac_ext <<_ACEOF
23148 /* confdefs.h.  */
23149 _ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h.  */
23153 $ac_includes_default
23154 typedef long long ac__type_new_;
23155 int
23156 main ()
23157 {
23158 if ((ac__type_new_ *) 0)
23159   return 0;
23160 if (sizeof (ac__type_new_))
23161   return 0;
23162   ;
23163   return 0;
23164 }
23165 _ACEOF
23166 rm -f conftest.$ac_objext
23167 if { (ac_try="$ac_compile"
23168 case "(($ac_try" in
23169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170   *) ac_try_echo=$ac_try;;
23171 esac
23172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173   (eval "$ac_compile") 2>conftest.er1
23174   ac_status=$?
23175   grep -v '^ *+' conftest.er1 >conftest.err
23176   rm -f conftest.er1
23177   cat conftest.err >&5
23178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179   (exit $ac_status); } && {
23180          test -z "$ac_c_werror_flag" ||
23181          test ! -s conftest.err
23182        } && test -s conftest.$ac_objext; then
23183   ac_cv_type_long_long=yes
23184 else
23185   echo "$as_me: failed program was:" >&5
23186 sed 's/^/| /' conftest.$ac_ext >&5
23187
23188         ac_cv_type_long_long=no
23189 fi
23190
23191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23192 fi
23193 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23194 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23195
23196 # The cast to long int works around a bug in the HP C Compiler
23197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23199 # This bug is HP SR number 8606223364.
23200 { echo "$as_me:$LINENO: checking size of long long" >&5
23201 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23202 if test "${ac_cv_sizeof_long_long+set}" = set; then
23203   echo $ECHO_N "(cached) $ECHO_C" >&6
23204 else
23205   if test "$cross_compiling" = yes; then
23206   # Depending upon the size, compute the lo and hi bounds.
23207 cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h.  */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h.  */
23213 $ac_includes_default
23214    typedef long long ac__type_sizeof_;
23215 int
23216 main ()
23217 {
23218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23219 test_array [0] = 0
23220
23221   ;
23222   return 0;
23223 }
23224 _ACEOF
23225 rm -f conftest.$ac_objext
23226 if { (ac_try="$ac_compile"
23227 case "(($ac_try" in
23228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23229   *) ac_try_echo=$ac_try;;
23230 esac
23231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23232   (eval "$ac_compile") 2>conftest.er1
23233   ac_status=$?
23234   grep -v '^ *+' conftest.er1 >conftest.err
23235   rm -f conftest.er1
23236   cat conftest.err >&5
23237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238   (exit $ac_status); } && {
23239          test -z "$ac_c_werror_flag" ||
23240          test ! -s conftest.err
23241        } && test -s conftest.$ac_objext; then
23242   ac_lo=0 ac_mid=0
23243   while :; do
23244     cat >conftest.$ac_ext <<_ACEOF
23245 /* confdefs.h.  */
23246 _ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h.  */
23250 $ac_includes_default
23251    typedef long long ac__type_sizeof_;
23252 int
23253 main ()
23254 {
23255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23256 test_array [0] = 0
23257
23258   ;
23259   return 0;
23260 }
23261 _ACEOF
23262 rm -f conftest.$ac_objext
23263 if { (ac_try="$ac_compile"
23264 case "(($ac_try" in
23265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266   *) ac_try_echo=$ac_try;;
23267 esac
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269   (eval "$ac_compile") 2>conftest.er1
23270   ac_status=$?
23271   grep -v '^ *+' conftest.er1 >conftest.err
23272   rm -f conftest.er1
23273   cat conftest.err >&5
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); } && {
23276          test -z "$ac_c_werror_flag" ||
23277          test ! -s conftest.err
23278        } && test -s conftest.$ac_objext; then
23279   ac_hi=$ac_mid; break
23280 else
23281   echo "$as_me: failed program was:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23283
23284         ac_lo=`expr $ac_mid + 1`
23285                         if test $ac_lo -le $ac_mid; then
23286                           ac_lo= ac_hi=
23287                           break
23288                         fi
23289                         ac_mid=`expr 2 '*' $ac_mid + 1`
23290 fi
23291
23292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23293   done
23294 else
23295   echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23297
23298         cat >conftest.$ac_ext <<_ACEOF
23299 /* confdefs.h.  */
23300 _ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h.  */
23304 $ac_includes_default
23305    typedef long long ac__type_sizeof_;
23306 int
23307 main ()
23308 {
23309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23310 test_array [0] = 0
23311
23312   ;
23313   return 0;
23314 }
23315 _ACEOF
23316 rm -f conftest.$ac_objext
23317 if { (ac_try="$ac_compile"
23318 case "(($ac_try" in
23319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320   *) ac_try_echo=$ac_try;;
23321 esac
23322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23323   (eval "$ac_compile") 2>conftest.er1
23324   ac_status=$?
23325   grep -v '^ *+' conftest.er1 >conftest.err
23326   rm -f conftest.er1
23327   cat conftest.err >&5
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); } && {
23330          test -z "$ac_c_werror_flag" ||
23331          test ! -s conftest.err
23332        } && test -s conftest.$ac_objext; then
23333   ac_hi=-1 ac_mid=-1
23334   while :; do
23335     cat >conftest.$ac_ext <<_ACEOF
23336 /* confdefs.h.  */
23337 _ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h.  */
23341 $ac_includes_default
23342    typedef long long ac__type_sizeof_;
23343 int
23344 main ()
23345 {
23346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23347 test_array [0] = 0
23348
23349   ;
23350   return 0;
23351 }
23352 _ACEOF
23353 rm -f conftest.$ac_objext
23354 if { (ac_try="$ac_compile"
23355 case "(($ac_try" in
23356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23357   *) ac_try_echo=$ac_try;;
23358 esac
23359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23360   (eval "$ac_compile") 2>conftest.er1
23361   ac_status=$?
23362   grep -v '^ *+' conftest.er1 >conftest.err
23363   rm -f conftest.er1
23364   cat conftest.err >&5
23365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366   (exit $ac_status); } && {
23367          test -z "$ac_c_werror_flag" ||
23368          test ! -s conftest.err
23369        } && test -s conftest.$ac_objext; then
23370   ac_lo=$ac_mid; break
23371 else
23372   echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23374
23375         ac_hi=`expr '(' $ac_mid ')' - 1`
23376                         if test $ac_mid -le $ac_hi; then
23377                           ac_lo= ac_hi=
23378                           break
23379                         fi
23380                         ac_mid=`expr 2 '*' $ac_mid`
23381 fi
23382
23383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23384   done
23385 else
23386   echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23388
23389         ac_lo= ac_hi=
23390 fi
23391
23392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23393 fi
23394
23395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23396 # Binary search between lo and hi bounds.
23397 while test "x$ac_lo" != "x$ac_hi"; do
23398   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23399   cat >conftest.$ac_ext <<_ACEOF
23400 /* confdefs.h.  */
23401 _ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h.  */
23405 $ac_includes_default
23406    typedef long long ac__type_sizeof_;
23407 int
23408 main ()
23409 {
23410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23411 test_array [0] = 0
23412
23413   ;
23414   return 0;
23415 }
23416 _ACEOF
23417 rm -f conftest.$ac_objext
23418 if { (ac_try="$ac_compile"
23419 case "(($ac_try" in
23420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23421   *) ac_try_echo=$ac_try;;
23422 esac
23423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23424   (eval "$ac_compile") 2>conftest.er1
23425   ac_status=$?
23426   grep -v '^ *+' conftest.er1 >conftest.err
23427   rm -f conftest.er1
23428   cat conftest.err >&5
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); } && {
23431          test -z "$ac_c_werror_flag" ||
23432          test ! -s conftest.err
23433        } && test -s conftest.$ac_objext; then
23434   ac_hi=$ac_mid
23435 else
23436   echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23438
23439         ac_lo=`expr '(' $ac_mid ')' + 1`
23440 fi
23441
23442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23443 done
23444 case $ac_lo in
23445 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23446 '') if test "$ac_cv_type_long_long" = yes; then
23447      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23448 See \`config.log' for more details." >&5
23449 echo "$as_me: error: cannot compute sizeof (long long)
23450 See \`config.log' for more details." >&2;}
23451    { (exit 77); exit 77; }; }
23452    else
23453      ac_cv_sizeof_long_long=0
23454    fi ;;
23455 esac
23456 else
23457   cat >conftest.$ac_ext <<_ACEOF
23458 /* confdefs.h.  */
23459 _ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h.  */
23463 $ac_includes_default
23464    typedef long long ac__type_sizeof_;
23465 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23466 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23467 #include <stdio.h>
23468 #include <stdlib.h>
23469 int
23470 main ()
23471 {
23472
23473   FILE *f = fopen ("conftest.val", "w");
23474   if (! f)
23475     return 1;
23476   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23477     {
23478       long int i = longval ();
23479       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23480         return 1;
23481       fprintf (f, "%ld\n", i);
23482     }
23483   else
23484     {
23485       unsigned long int i = ulongval ();
23486       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23487         return 1;
23488       fprintf (f, "%lu\n", i);
23489     }
23490   return ferror (f) || fclose (f) != 0;
23491
23492   ;
23493   return 0;
23494 }
23495 _ACEOF
23496 rm -f conftest$ac_exeext
23497 if { (ac_try="$ac_link"
23498 case "(($ac_try" in
23499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500   *) ac_try_echo=$ac_try;;
23501 esac
23502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23503   (eval "$ac_link") 2>&5
23504   ac_status=$?
23505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23507   { (case "(($ac_try" in
23508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23509   *) ac_try_echo=$ac_try;;
23510 esac
23511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23512   (eval "$ac_try") 2>&5
23513   ac_status=$?
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); }; }; then
23516   ac_cv_sizeof_long_long=`cat conftest.val`
23517 else
23518   echo "$as_me: program exited with status $ac_status" >&5
23519 echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23521
23522 ( exit $ac_status )
23523 if test "$ac_cv_type_long_long" = yes; then
23524      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23525 See \`config.log' for more details." >&5
23526 echo "$as_me: error: cannot compute sizeof (long long)
23527 See \`config.log' for more details." >&2;}
23528    { (exit 77); exit 77; }; }
23529    else
23530      ac_cv_sizeof_long_long=0
23531    fi
23532 fi
23533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23534 fi
23535 rm -f conftest.val
23536 fi
23537 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23538 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23539
23540
23541
23542 cat >>confdefs.h <<_ACEOF
23543 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23544 _ACEOF
23545
23546
23547         if test "$ac_cv_sizeof_long_long" != 0; then
23548                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23549         fi
23550     ;;
23551     * )
23552         { echo "$as_me:$LINENO: checking for long long" >&5
23553 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23554 if test "${ac_cv_type_long_long+set}" = set; then
23555   echo $ECHO_N "(cached) $ECHO_C" >&6
23556 else
23557   cat >conftest.$ac_ext <<_ACEOF
23558 /* confdefs.h.  */
23559 _ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h.  */
23563 $ac_includes_default
23564 typedef long long ac__type_new_;
23565 int
23566 main ()
23567 {
23568 if ((ac__type_new_ *) 0)
23569   return 0;
23570 if (sizeof (ac__type_new_))
23571   return 0;
23572   ;
23573   return 0;
23574 }
23575 _ACEOF
23576 rm -f conftest.$ac_objext
23577 if { (ac_try="$ac_compile"
23578 case "(($ac_try" in
23579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580   *) ac_try_echo=$ac_try;;
23581 esac
23582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23583   (eval "$ac_compile") 2>conftest.er1
23584   ac_status=$?
23585   grep -v '^ *+' conftest.er1 >conftest.err
23586   rm -f conftest.er1
23587   cat conftest.err >&5
23588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589   (exit $ac_status); } && {
23590          test -z "$ac_c_werror_flag" ||
23591          test ! -s conftest.err
23592        } && test -s conftest.$ac_objext; then
23593   ac_cv_type_long_long=yes
23594 else
23595   echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23597
23598         ac_cv_type_long_long=no
23599 fi
23600
23601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23602 fi
23603 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23604 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23605
23606 # The cast to long int works around a bug in the HP C Compiler
23607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23609 # This bug is HP SR number 8606223364.
23610 { echo "$as_me:$LINENO: checking size of long long" >&5
23611 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23612 if test "${ac_cv_sizeof_long_long+set}" = set; then
23613   echo $ECHO_N "(cached) $ECHO_C" >&6
23614 else
23615   if test "$cross_compiling" = yes; then
23616   # Depending upon the size, compute the lo and hi bounds.
23617 cat >conftest.$ac_ext <<_ACEOF
23618 /* confdefs.h.  */
23619 _ACEOF
23620 cat confdefs.h >>conftest.$ac_ext
23621 cat >>conftest.$ac_ext <<_ACEOF
23622 /* end confdefs.h.  */
23623 $ac_includes_default
23624    typedef long long ac__type_sizeof_;
23625 int
23626 main ()
23627 {
23628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23629 test_array [0] = 0
23630
23631   ;
23632   return 0;
23633 }
23634 _ACEOF
23635 rm -f conftest.$ac_objext
23636 if { (ac_try="$ac_compile"
23637 case "(($ac_try" in
23638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639   *) ac_try_echo=$ac_try;;
23640 esac
23641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23642   (eval "$ac_compile") 2>conftest.er1
23643   ac_status=$?
23644   grep -v '^ *+' conftest.er1 >conftest.err
23645   rm -f conftest.er1
23646   cat conftest.err >&5
23647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648   (exit $ac_status); } && {
23649          test -z "$ac_c_werror_flag" ||
23650          test ! -s conftest.err
23651        } && test -s conftest.$ac_objext; then
23652   ac_lo=0 ac_mid=0
23653   while :; do
23654     cat >conftest.$ac_ext <<_ACEOF
23655 /* confdefs.h.  */
23656 _ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h.  */
23660 $ac_includes_default
23661    typedef long long ac__type_sizeof_;
23662 int
23663 main ()
23664 {
23665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23666 test_array [0] = 0
23667
23668   ;
23669   return 0;
23670 }
23671 _ACEOF
23672 rm -f conftest.$ac_objext
23673 if { (ac_try="$ac_compile"
23674 case "(($ac_try" in
23675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23676   *) ac_try_echo=$ac_try;;
23677 esac
23678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23679   (eval "$ac_compile") 2>conftest.er1
23680   ac_status=$?
23681   grep -v '^ *+' conftest.er1 >conftest.err
23682   rm -f conftest.er1
23683   cat conftest.err >&5
23684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685   (exit $ac_status); } && {
23686          test -z "$ac_c_werror_flag" ||
23687          test ! -s conftest.err
23688        } && test -s conftest.$ac_objext; then
23689   ac_hi=$ac_mid; break
23690 else
23691   echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23693
23694         ac_lo=`expr $ac_mid + 1`
23695                         if test $ac_lo -le $ac_mid; then
23696                           ac_lo= ac_hi=
23697                           break
23698                         fi
23699                         ac_mid=`expr 2 '*' $ac_mid + 1`
23700 fi
23701
23702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23703   done
23704 else
23705   echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23707
23708         cat >conftest.$ac_ext <<_ACEOF
23709 /* confdefs.h.  */
23710 _ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h.  */
23714 $ac_includes_default
23715    typedef long long ac__type_sizeof_;
23716 int
23717 main ()
23718 {
23719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23720 test_array [0] = 0
23721
23722   ;
23723   return 0;
23724 }
23725 _ACEOF
23726 rm -f conftest.$ac_objext
23727 if { (ac_try="$ac_compile"
23728 case "(($ac_try" in
23729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730   *) ac_try_echo=$ac_try;;
23731 esac
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733   (eval "$ac_compile") 2>conftest.er1
23734   ac_status=$?
23735   grep -v '^ *+' conftest.er1 >conftest.err
23736   rm -f conftest.er1
23737   cat conftest.err >&5
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); } && {
23740          test -z "$ac_c_werror_flag" ||
23741          test ! -s conftest.err
23742        } && test -s conftest.$ac_objext; then
23743   ac_hi=-1 ac_mid=-1
23744   while :; do
23745     cat >conftest.$ac_ext <<_ACEOF
23746 /* confdefs.h.  */
23747 _ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h.  */
23751 $ac_includes_default
23752    typedef long long ac__type_sizeof_;
23753 int
23754 main ()
23755 {
23756 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23757 test_array [0] = 0
23758
23759   ;
23760   return 0;
23761 }
23762 _ACEOF
23763 rm -f conftest.$ac_objext
23764 if { (ac_try="$ac_compile"
23765 case "(($ac_try" in
23766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23767   *) ac_try_echo=$ac_try;;
23768 esac
23769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23770   (eval "$ac_compile") 2>conftest.er1
23771   ac_status=$?
23772   grep -v '^ *+' conftest.er1 >conftest.err
23773   rm -f conftest.er1
23774   cat conftest.err >&5
23775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776   (exit $ac_status); } && {
23777          test -z "$ac_c_werror_flag" ||
23778          test ! -s conftest.err
23779        } && test -s conftest.$ac_objext; then
23780   ac_lo=$ac_mid; break
23781 else
23782   echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23784
23785         ac_hi=`expr '(' $ac_mid ')' - 1`
23786                         if test $ac_mid -le $ac_hi; then
23787                           ac_lo= ac_hi=
23788                           break
23789                         fi
23790                         ac_mid=`expr 2 '*' $ac_mid`
23791 fi
23792
23793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23794   done
23795 else
23796   echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23798
23799         ac_lo= ac_hi=
23800 fi
23801
23802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23803 fi
23804
23805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23806 # Binary search between lo and hi bounds.
23807 while test "x$ac_lo" != "x$ac_hi"; do
23808   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23809   cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h.  */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h.  */
23815 $ac_includes_default
23816    typedef long long ac__type_sizeof_;
23817 int
23818 main ()
23819 {
23820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23821 test_array [0] = 0
23822
23823   ;
23824   return 0;
23825 }
23826 _ACEOF
23827 rm -f conftest.$ac_objext
23828 if { (ac_try="$ac_compile"
23829 case "(($ac_try" in
23830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23831   *) ac_try_echo=$ac_try;;
23832 esac
23833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23834   (eval "$ac_compile") 2>conftest.er1
23835   ac_status=$?
23836   grep -v '^ *+' conftest.er1 >conftest.err
23837   rm -f conftest.er1
23838   cat conftest.err >&5
23839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); } && {
23841          test -z "$ac_c_werror_flag" ||
23842          test ! -s conftest.err
23843        } && test -s conftest.$ac_objext; then
23844   ac_hi=$ac_mid
23845 else
23846   echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23848
23849         ac_lo=`expr '(' $ac_mid ')' + 1`
23850 fi
23851
23852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853 done
23854 case $ac_lo in
23855 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23856 '') if test "$ac_cv_type_long_long" = yes; then
23857      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23858 See \`config.log' for more details." >&5
23859 echo "$as_me: error: cannot compute sizeof (long long)
23860 See \`config.log' for more details." >&2;}
23861    { (exit 77); exit 77; }; }
23862    else
23863      ac_cv_sizeof_long_long=0
23864    fi ;;
23865 esac
23866 else
23867   cat >conftest.$ac_ext <<_ACEOF
23868 /* confdefs.h.  */
23869 _ACEOF
23870 cat confdefs.h >>conftest.$ac_ext
23871 cat >>conftest.$ac_ext <<_ACEOF
23872 /* end confdefs.h.  */
23873 $ac_includes_default
23874    typedef long long ac__type_sizeof_;
23875 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23876 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23877 #include <stdio.h>
23878 #include <stdlib.h>
23879 int
23880 main ()
23881 {
23882
23883   FILE *f = fopen ("conftest.val", "w");
23884   if (! f)
23885     return 1;
23886   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23887     {
23888       long int i = longval ();
23889       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23890         return 1;
23891       fprintf (f, "%ld\n", i);
23892     }
23893   else
23894     {
23895       unsigned long int i = ulongval ();
23896       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23897         return 1;
23898       fprintf (f, "%lu\n", i);
23899     }
23900   return ferror (f) || fclose (f) != 0;
23901
23902   ;
23903   return 0;
23904 }
23905 _ACEOF
23906 rm -f conftest$ac_exeext
23907 if { (ac_try="$ac_link"
23908 case "(($ac_try" in
23909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23910   *) ac_try_echo=$ac_try;;
23911 esac
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913   (eval "$ac_link") 2>&5
23914   ac_status=$?
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23917   { (case "(($ac_try" in
23918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919   *) ac_try_echo=$ac_try;;
23920 esac
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922   (eval "$ac_try") 2>&5
23923   ac_status=$?
23924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925   (exit $ac_status); }; }; then
23926   ac_cv_sizeof_long_long=`cat conftest.val`
23927 else
23928   echo "$as_me: program exited with status $ac_status" >&5
23929 echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23931
23932 ( exit $ac_status )
23933 if test "$ac_cv_type_long_long" = yes; then
23934      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23935 See \`config.log' for more details." >&5
23936 echo "$as_me: error: cannot compute sizeof (long long)
23937 See \`config.log' for more details." >&2;}
23938    { (exit 77); exit 77; }; }
23939    else
23940      ac_cv_sizeof_long_long=0
23941    fi
23942 fi
23943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23944 fi
23945 rm -f conftest.val
23946 fi
23947 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23948 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23949
23950
23951
23952 cat >>confdefs.h <<_ACEOF
23953 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23954 _ACEOF
23955
23956
23957 esac
23958
23959 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23960 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23961 if test "${ac_cv_type_wchar_t+set}" = set; then
23962   echo $ECHO_N "(cached) $ECHO_C" >&6
23963 else
23964   cat >conftest.$ac_ext <<_ACEOF
23965 /* confdefs.h.  */
23966 _ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h.  */
23970
23971         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23972         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23973         #  error "fake wchar_t"
23974         #endif
23975         #ifdef HAVE_WCHAR_H
23976         #  ifdef __CYGWIN__
23977         #    include <stddef.h>
23978         #  endif
23979         #  include <wchar.h>
23980         #endif
23981         #ifdef HAVE_STDLIB_H
23982         #  include <stdlib.h>
23983         #endif
23984         #include <stdio.h>
23985
23986
23987
23988 typedef wchar_t ac__type_new_;
23989 int
23990 main ()
23991 {
23992 if ((ac__type_new_ *) 0)
23993   return 0;
23994 if (sizeof (ac__type_new_))
23995   return 0;
23996   ;
23997   return 0;
23998 }
23999 _ACEOF
24000 rm -f conftest.$ac_objext
24001 if { (ac_try="$ac_compile"
24002 case "(($ac_try" in
24003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24004   *) ac_try_echo=$ac_try;;
24005 esac
24006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24007   (eval "$ac_compile") 2>conftest.er1
24008   ac_status=$?
24009   grep -v '^ *+' conftest.er1 >conftest.err
24010   rm -f conftest.er1
24011   cat conftest.err >&5
24012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013   (exit $ac_status); } && {
24014          test -z "$ac_c_werror_flag" ||
24015          test ! -s conftest.err
24016        } && test -s conftest.$ac_objext; then
24017   ac_cv_type_wchar_t=yes
24018 else
24019   echo "$as_me: failed program was:" >&5
24020 sed 's/^/| /' conftest.$ac_ext >&5
24021
24022         ac_cv_type_wchar_t=no
24023 fi
24024
24025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24026 fi
24027 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24028 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24029
24030 # The cast to long int works around a bug in the HP C Compiler
24031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24033 # This bug is HP SR number 8606223364.
24034 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24035 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24036 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24037   echo $ECHO_N "(cached) $ECHO_C" >&6
24038 else
24039   if test "$cross_compiling" = yes; then
24040   # Depending upon the size, compute the lo and hi bounds.
24041 cat >conftest.$ac_ext <<_ACEOF
24042 /* confdefs.h.  */
24043 _ACEOF
24044 cat confdefs.h >>conftest.$ac_ext
24045 cat >>conftest.$ac_ext <<_ACEOF
24046 /* end confdefs.h.  */
24047
24048         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24049         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24050         #  error "fake wchar_t"
24051         #endif
24052         #ifdef HAVE_WCHAR_H
24053         #  ifdef __CYGWIN__
24054         #    include <stddef.h>
24055         #  endif
24056         #  include <wchar.h>
24057         #endif
24058         #ifdef HAVE_STDLIB_H
24059         #  include <stdlib.h>
24060         #endif
24061         #include <stdio.h>
24062
24063
24064
24065    typedef wchar_t ac__type_sizeof_;
24066 int
24067 main ()
24068 {
24069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24070 test_array [0] = 0
24071
24072   ;
24073   return 0;
24074 }
24075 _ACEOF
24076 rm -f conftest.$ac_objext
24077 if { (ac_try="$ac_compile"
24078 case "(($ac_try" in
24079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24080   *) ac_try_echo=$ac_try;;
24081 esac
24082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24083   (eval "$ac_compile") 2>conftest.er1
24084   ac_status=$?
24085   grep -v '^ *+' conftest.er1 >conftest.err
24086   rm -f conftest.er1
24087   cat conftest.err >&5
24088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089   (exit $ac_status); } && {
24090          test -z "$ac_c_werror_flag" ||
24091          test ! -s conftest.err
24092        } && test -s conftest.$ac_objext; then
24093   ac_lo=0 ac_mid=0
24094   while :; do
24095     cat >conftest.$ac_ext <<_ACEOF
24096 /* confdefs.h.  */
24097 _ACEOF
24098 cat confdefs.h >>conftest.$ac_ext
24099 cat >>conftest.$ac_ext <<_ACEOF
24100 /* end confdefs.h.  */
24101
24102         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24103         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24104         #  error "fake wchar_t"
24105         #endif
24106         #ifdef HAVE_WCHAR_H
24107         #  ifdef __CYGWIN__
24108         #    include <stddef.h>
24109         #  endif
24110         #  include <wchar.h>
24111         #endif
24112         #ifdef HAVE_STDLIB_H
24113         #  include <stdlib.h>
24114         #endif
24115         #include <stdio.h>
24116
24117
24118
24119    typedef wchar_t ac__type_sizeof_;
24120 int
24121 main ()
24122 {
24123 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24124 test_array [0] = 0
24125
24126   ;
24127   return 0;
24128 }
24129 _ACEOF
24130 rm -f conftest.$ac_objext
24131 if { (ac_try="$ac_compile"
24132 case "(($ac_try" in
24133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24134   *) ac_try_echo=$ac_try;;
24135 esac
24136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24137   (eval "$ac_compile") 2>conftest.er1
24138   ac_status=$?
24139   grep -v '^ *+' conftest.er1 >conftest.err
24140   rm -f conftest.er1
24141   cat conftest.err >&5
24142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143   (exit $ac_status); } && {
24144          test -z "$ac_c_werror_flag" ||
24145          test ! -s conftest.err
24146        } && test -s conftest.$ac_objext; then
24147   ac_hi=$ac_mid; break
24148 else
24149   echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24151
24152         ac_lo=`expr $ac_mid + 1`
24153                         if test $ac_lo -le $ac_mid; then
24154                           ac_lo= ac_hi=
24155                           break
24156                         fi
24157                         ac_mid=`expr 2 '*' $ac_mid + 1`
24158 fi
24159
24160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24161   done
24162 else
24163   echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.$ac_ext >&5
24165
24166         cat >conftest.$ac_ext <<_ACEOF
24167 /* confdefs.h.  */
24168 _ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h.  */
24172
24173         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24174         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24175         #  error "fake wchar_t"
24176         #endif
24177         #ifdef HAVE_WCHAR_H
24178         #  ifdef __CYGWIN__
24179         #    include <stddef.h>
24180         #  endif
24181         #  include <wchar.h>
24182         #endif
24183         #ifdef HAVE_STDLIB_H
24184         #  include <stdlib.h>
24185         #endif
24186         #include <stdio.h>
24187
24188
24189
24190    typedef wchar_t ac__type_sizeof_;
24191 int
24192 main ()
24193 {
24194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24195 test_array [0] = 0
24196
24197   ;
24198   return 0;
24199 }
24200 _ACEOF
24201 rm -f conftest.$ac_objext
24202 if { (ac_try="$ac_compile"
24203 case "(($ac_try" in
24204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24205   *) ac_try_echo=$ac_try;;
24206 esac
24207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24208   (eval "$ac_compile") 2>conftest.er1
24209   ac_status=$?
24210   grep -v '^ *+' conftest.er1 >conftest.err
24211   rm -f conftest.er1
24212   cat conftest.err >&5
24213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214   (exit $ac_status); } && {
24215          test -z "$ac_c_werror_flag" ||
24216          test ! -s conftest.err
24217        } && test -s conftest.$ac_objext; then
24218   ac_hi=-1 ac_mid=-1
24219   while :; do
24220     cat >conftest.$ac_ext <<_ACEOF
24221 /* confdefs.h.  */
24222 _ACEOF
24223 cat confdefs.h >>conftest.$ac_ext
24224 cat >>conftest.$ac_ext <<_ACEOF
24225 /* end confdefs.h.  */
24226
24227         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24228         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24229         #  error "fake wchar_t"
24230         #endif
24231         #ifdef HAVE_WCHAR_H
24232         #  ifdef __CYGWIN__
24233         #    include <stddef.h>
24234         #  endif
24235         #  include <wchar.h>
24236         #endif
24237         #ifdef HAVE_STDLIB_H
24238         #  include <stdlib.h>
24239         #endif
24240         #include <stdio.h>
24241
24242
24243
24244    typedef wchar_t ac__type_sizeof_;
24245 int
24246 main ()
24247 {
24248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24249 test_array [0] = 0
24250
24251   ;
24252   return 0;
24253 }
24254 _ACEOF
24255 rm -f conftest.$ac_objext
24256 if { (ac_try="$ac_compile"
24257 case "(($ac_try" in
24258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24259   *) ac_try_echo=$ac_try;;
24260 esac
24261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24262   (eval "$ac_compile") 2>conftest.er1
24263   ac_status=$?
24264   grep -v '^ *+' conftest.er1 >conftest.err
24265   rm -f conftest.er1
24266   cat conftest.err >&5
24267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268   (exit $ac_status); } && {
24269          test -z "$ac_c_werror_flag" ||
24270          test ! -s conftest.err
24271        } && test -s conftest.$ac_objext; then
24272   ac_lo=$ac_mid; break
24273 else
24274   echo "$as_me: failed program was:" >&5
24275 sed 's/^/| /' conftest.$ac_ext >&5
24276
24277         ac_hi=`expr '(' $ac_mid ')' - 1`
24278                         if test $ac_mid -le $ac_hi; then
24279                           ac_lo= ac_hi=
24280                           break
24281                         fi
24282                         ac_mid=`expr 2 '*' $ac_mid`
24283 fi
24284
24285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24286   done
24287 else
24288   echo "$as_me: failed program was:" >&5
24289 sed 's/^/| /' conftest.$ac_ext >&5
24290
24291         ac_lo= ac_hi=
24292 fi
24293
24294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24295 fi
24296
24297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24298 # Binary search between lo and hi bounds.
24299 while test "x$ac_lo" != "x$ac_hi"; do
24300   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24301   cat >conftest.$ac_ext <<_ACEOF
24302 /* confdefs.h.  */
24303 _ACEOF
24304 cat confdefs.h >>conftest.$ac_ext
24305 cat >>conftest.$ac_ext <<_ACEOF
24306 /* end confdefs.h.  */
24307
24308         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24309         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24310         #  error "fake wchar_t"
24311         #endif
24312         #ifdef HAVE_WCHAR_H
24313         #  ifdef __CYGWIN__
24314         #    include <stddef.h>
24315         #  endif
24316         #  include <wchar.h>
24317         #endif
24318         #ifdef HAVE_STDLIB_H
24319         #  include <stdlib.h>
24320         #endif
24321         #include <stdio.h>
24322
24323
24324
24325    typedef wchar_t ac__type_sizeof_;
24326 int
24327 main ()
24328 {
24329 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24330 test_array [0] = 0
24331
24332   ;
24333   return 0;
24334 }
24335 _ACEOF
24336 rm -f conftest.$ac_objext
24337 if { (ac_try="$ac_compile"
24338 case "(($ac_try" in
24339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24340   *) ac_try_echo=$ac_try;;
24341 esac
24342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24343   (eval "$ac_compile") 2>conftest.er1
24344   ac_status=$?
24345   grep -v '^ *+' conftest.er1 >conftest.err
24346   rm -f conftest.er1
24347   cat conftest.err >&5
24348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349   (exit $ac_status); } && {
24350          test -z "$ac_c_werror_flag" ||
24351          test ! -s conftest.err
24352        } && test -s conftest.$ac_objext; then
24353   ac_hi=$ac_mid
24354 else
24355   echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24357
24358         ac_lo=`expr '(' $ac_mid ')' + 1`
24359 fi
24360
24361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24362 done
24363 case $ac_lo in
24364 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24365 '') if test "$ac_cv_type_wchar_t" = yes; then
24366      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24367 See \`config.log' for more details." >&5
24368 echo "$as_me: error: cannot compute sizeof (wchar_t)
24369 See \`config.log' for more details." >&2;}
24370    { (exit 77); exit 77; }; }
24371    else
24372      ac_cv_sizeof_wchar_t=0
24373    fi ;;
24374 esac
24375 else
24376   cat >conftest.$ac_ext <<_ACEOF
24377 /* confdefs.h.  */
24378 _ACEOF
24379 cat confdefs.h >>conftest.$ac_ext
24380 cat >>conftest.$ac_ext <<_ACEOF
24381 /* end confdefs.h.  */
24382
24383         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24384         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24385         #  error "fake wchar_t"
24386         #endif
24387         #ifdef HAVE_WCHAR_H
24388         #  ifdef __CYGWIN__
24389         #    include <stddef.h>
24390         #  endif
24391         #  include <wchar.h>
24392         #endif
24393         #ifdef HAVE_STDLIB_H
24394         #  include <stdlib.h>
24395         #endif
24396         #include <stdio.h>
24397
24398
24399
24400    typedef wchar_t ac__type_sizeof_;
24401 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24402 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24403 #include <stdio.h>
24404 #include <stdlib.h>
24405 int
24406 main ()
24407 {
24408
24409   FILE *f = fopen ("conftest.val", "w");
24410   if (! f)
24411     return 1;
24412   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24413     {
24414       long int i = longval ();
24415       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24416         return 1;
24417       fprintf (f, "%ld\n", i);
24418     }
24419   else
24420     {
24421       unsigned long int i = ulongval ();
24422       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24423         return 1;
24424       fprintf (f, "%lu\n", i);
24425     }
24426   return ferror (f) || fclose (f) != 0;
24427
24428   ;
24429   return 0;
24430 }
24431 _ACEOF
24432 rm -f conftest$ac_exeext
24433 if { (ac_try="$ac_link"
24434 case "(($ac_try" in
24435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24436   *) ac_try_echo=$ac_try;;
24437 esac
24438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24439   (eval "$ac_link") 2>&5
24440   ac_status=$?
24441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24443   { (case "(($ac_try" in
24444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24445   *) ac_try_echo=$ac_try;;
24446 esac
24447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24448   (eval "$ac_try") 2>&5
24449   ac_status=$?
24450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451   (exit $ac_status); }; }; then
24452   ac_cv_sizeof_wchar_t=`cat conftest.val`
24453 else
24454   echo "$as_me: program exited with status $ac_status" >&5
24455 echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24457
24458 ( exit $ac_status )
24459 if test "$ac_cv_type_wchar_t" = yes; then
24460      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24461 See \`config.log' for more details." >&5
24462 echo "$as_me: error: cannot compute sizeof (wchar_t)
24463 See \`config.log' for more details." >&2;}
24464    { (exit 77); exit 77; }; }
24465    else
24466      ac_cv_sizeof_wchar_t=0
24467    fi
24468 fi
24469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24470 fi
24471 rm -f conftest.val
24472 fi
24473 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24474 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24475
24476
24477
24478 cat >>confdefs.h <<_ACEOF
24479 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24480 _ACEOF
24481
24482
24483 if test "$ac_cv_sizeof_wchar_t" = 0; then
24484     { { echo "$as_me:$LINENO: error: wxWidgets requires wchar_t support." >&5
24485 echo "$as_me: error: wxWidgets requires wchar_t support." >&2;}
24486    { (exit 1); exit 1; }; }
24487 fi
24488 cat >>confdefs.h <<\_ACEOF
24489 #define wxUSE_WCHAR_T 1
24490 _ACEOF
24491
24492
24493 { echo "$as_me:$LINENO: checking for va_copy" >&5
24494 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24495 if test "${wx_cv_func_va_copy+set}" = set; then
24496   echo $ECHO_N "(cached) $ECHO_C" >&6
24497 else
24498
24499         ac_ext=cpp
24500 ac_cpp='$CXXCPP $CPPFLAGS'
24501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24504
24505         cat >conftest.$ac_ext <<_ACEOF
24506
24507             #include <stdarg.h>
24508             void foo(char *f, ...)
24509             {
24510                 va_list ap1, ap2;
24511                 va_start(ap1, f);
24512                 va_copy(ap2, ap1);
24513                 va_end(ap2);
24514                 va_end(ap1);
24515             }
24516             int main()
24517             {
24518                 foo("hi", 17);
24519                 return 0;
24520             }
24521 _ACEOF
24522 rm -f conftest.$ac_objext conftest$ac_exeext
24523 if { (ac_try="$ac_link"
24524 case "(($ac_try" in
24525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24526   *) ac_try_echo=$ac_try;;
24527 esac
24528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24529   (eval "$ac_link") 2>conftest.er1
24530   ac_status=$?
24531   grep -v '^ *+' conftest.er1 >conftest.err
24532   rm -f conftest.er1
24533   cat conftest.err >&5
24534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535   (exit $ac_status); } && {
24536          test -z "$ac_cxx_werror_flag" ||
24537          test ! -s conftest.err
24538        } && test -s conftest$ac_exeext &&
24539        $as_test_x conftest$ac_exeext; then
24540   wx_cv_func_va_copy=yes
24541 else
24542   echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24544
24545         wx_cv_func_va_copy=no
24546
24547 fi
24548
24549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24550       conftest$ac_exeext conftest.$ac_ext
24551         ac_ext=c
24552 ac_cpp='$CPP $CPPFLAGS'
24553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24556
24557
24558
24559 fi
24560 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24561 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24562
24563 if test $wx_cv_func_va_copy = "yes"; then
24564     cat >>confdefs.h <<\_ACEOF
24565 #define HAVE_VA_COPY 1
24566 _ACEOF
24567
24568 else
24569         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24570 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24571 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24572   echo $ECHO_N "(cached) $ECHO_C" >&6
24573 else
24574
24575             if test "$cross_compiling" = yes; then
24576                   wx_cv_type_va_list_lvalue=yes
24577
24578 else
24579   cat >conftest.$ac_ext <<_ACEOF
24580
24581                 #include <stdarg.h>
24582                 int foo(char *f, ...)
24583                 {
24584                     va_list ap1, ap2;
24585                     va_start(ap1, f);
24586                     ap2 = ap1;
24587                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24588                         return 1;
24589                     va_end(ap2);
24590                     va_end(ap1);
24591                     return 0;
24592                 }
24593                 int main()
24594                 {
24595                     return foo("hi", 17);
24596                 }
24597 _ACEOF
24598 rm -f conftest$ac_exeext
24599 if { (ac_try="$ac_link"
24600 case "(($ac_try" in
24601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602   *) ac_try_echo=$ac_try;;
24603 esac
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605   (eval "$ac_link") 2>&5
24606   ac_status=$?
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24609   { (case "(($ac_try" in
24610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611   *) ac_try_echo=$ac_try;;
24612 esac
24613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24614   (eval "$ac_try") 2>&5
24615   ac_status=$?
24616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617   (exit $ac_status); }; }; then
24618   wx_cv_type_va_list_lvalue=yes
24619 else
24620   echo "$as_me: program exited with status $ac_status" >&5
24621 echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.$ac_ext >&5
24623
24624 ( exit $ac_status )
24625 wx_cv_type_va_list_lvalue=no
24626 fi
24627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24628 fi
24629
24630
24631
24632
24633 fi
24634 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24635 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24636
24637     if test $wx_cv_type_va_list_lvalue != "yes"; then
24638                         cat >>confdefs.h <<\_ACEOF
24639 #define VA_LIST_IS_ARRAY 1
24640 _ACEOF
24641
24642     fi
24643 fi
24644
24645 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24646
24647 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24648 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24649 if test "${wx_cv_have_variadic_macros+set}" = set; then
24650   echo $ECHO_N "(cached) $ECHO_C" >&6
24651 else
24652
24653                         ac_ext=cpp
24654 ac_cpp='$CXXCPP $CPPFLAGS'
24655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24658
24659         cat >conftest.$ac_ext <<_ACEOF
24660 /* confdefs.h.  */
24661 _ACEOF
24662 cat confdefs.h >>conftest.$ac_ext
24663 cat >>conftest.$ac_ext <<_ACEOF
24664 /* end confdefs.h.  */
24665
24666                     #include <stdio.h>
24667                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24668
24669 int
24670 main ()
24671 {
24672
24673                     test("%s %d %p", "test", 1, 0);
24674
24675
24676   ;
24677   return 0;
24678 }
24679 _ACEOF
24680 rm -f conftest.$ac_objext
24681 if { (ac_try="$ac_compile"
24682 case "(($ac_try" in
24683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24684   *) ac_try_echo=$ac_try;;
24685 esac
24686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24687   (eval "$ac_compile") 2>conftest.er1
24688   ac_status=$?
24689   grep -v '^ *+' conftest.er1 >conftest.err
24690   rm -f conftest.er1
24691   cat conftest.err >&5
24692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693   (exit $ac_status); } && {
24694          test -z "$ac_cxx_werror_flag" ||
24695          test ! -s conftest.err
24696        } && test -s conftest.$ac_objext; then
24697   wx_cv_have_variadic_macros=yes
24698 else
24699   echo "$as_me: failed program was:" >&5
24700 sed 's/^/| /' conftest.$ac_ext >&5
24701
24702         wx_cv_have_variadic_macros=no
24703
24704 fi
24705
24706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24707         ac_ext=c
24708 ac_cpp='$CPP $CPPFLAGS'
24709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24712
24713
24714
24715 fi
24716 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24717 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24718
24719 if test $wx_cv_have_variadic_macros = "yes"; then
24720     cat >>confdefs.h <<\_ACEOF
24721 #define HAVE_VARIADIC_MACROS 1
24722 _ACEOF
24723
24724 fi
24725
24726 fi
24727
24728 LARGEFILE_CPPFLAGS=
24729 # Check whether --enable-largefile was given.
24730 if test "${enable_largefile+set}" = set; then
24731   enableval=$enable_largefile;
24732 fi
24733
24734 if test "$enable_largefile" != no; then
24735             wx_largefile=no
24736
24737     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24738 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24739 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24740   echo $ECHO_N "(cached) $ECHO_C" >&6
24741 else
24742
24743           cat >conftest.$ac_ext <<_ACEOF
24744 /* confdefs.h.  */
24745 _ACEOF
24746 cat confdefs.h >>conftest.$ac_ext
24747 cat >>conftest.$ac_ext <<_ACEOF
24748 /* end confdefs.h.  */
24749 #define _FILE_OFFSET_BITS 64
24750                           #include <sys/types.h>
24751 int
24752 main ()
24753 {
24754 typedef struct {
24755     unsigned int field: sizeof(off_t) == 8;
24756 } wxlf;
24757
24758   ;
24759   return 0;
24760 }
24761 _ACEOF
24762 rm -f conftest.$ac_objext
24763 if { (ac_try="$ac_compile"
24764 case "(($ac_try" in
24765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24766   *) ac_try_echo=$ac_try;;
24767 esac
24768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24769   (eval "$ac_compile") 2>conftest.er1
24770   ac_status=$?
24771   grep -v '^ *+' conftest.er1 >conftest.err
24772   rm -f conftest.er1
24773   cat conftest.err >&5
24774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775   (exit $ac_status); } && {
24776          test -z "$ac_c_werror_flag" ||
24777          test ! -s conftest.err
24778        } && test -s conftest.$ac_objext; then
24779   ac_cv_sys_file_offset_bits=64
24780 else
24781   echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.$ac_ext >&5
24783
24784         ac_cv_sys_file_offset_bits=no
24785 fi
24786
24787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24788
24789
24790 fi
24791 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24792 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24793
24794     if test "$ac_cv_sys_file_offset_bits" != no; then
24795         wx_largefile=yes
24796         cat >>confdefs.h <<_ACEOF
24797 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24798 _ACEOF
24799
24800     fi
24801
24802     if test "x$wx_largefile" != "xyes"; then
24803
24804     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24805 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24806 if test "${ac_cv_sys_large_files+set}" = set; then
24807   echo $ECHO_N "(cached) $ECHO_C" >&6
24808 else
24809
24810           cat >conftest.$ac_ext <<_ACEOF
24811 /* confdefs.h.  */
24812 _ACEOF
24813 cat confdefs.h >>conftest.$ac_ext
24814 cat >>conftest.$ac_ext <<_ACEOF
24815 /* end confdefs.h.  */
24816 #define _LARGE_FILES 1
24817                           #include <sys/types.h>
24818 int
24819 main ()
24820 {
24821 typedef struct {
24822     unsigned int field: sizeof(off_t) == 8;
24823 } wxlf;
24824
24825   ;
24826   return 0;
24827 }
24828 _ACEOF
24829 rm -f conftest.$ac_objext
24830 if { (ac_try="$ac_compile"
24831 case "(($ac_try" in
24832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24833   *) ac_try_echo=$ac_try;;
24834 esac
24835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24836   (eval "$ac_compile") 2>conftest.er1
24837   ac_status=$?
24838   grep -v '^ *+' conftest.er1 >conftest.err
24839   rm -f conftest.er1
24840   cat conftest.err >&5
24841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842   (exit $ac_status); } && {
24843          test -z "$ac_c_werror_flag" ||
24844          test ! -s conftest.err
24845        } && test -s conftest.$ac_objext; then
24846   ac_cv_sys_large_files=1
24847 else
24848   echo "$as_me: failed program was:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24850
24851         ac_cv_sys_large_files=no
24852 fi
24853
24854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24855
24856
24857 fi
24858 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24859 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24860
24861     if test "$ac_cv_sys_large_files" != no; then
24862         wx_largefile=yes
24863         cat >>confdefs.h <<_ACEOF
24864 #define _LARGE_FILES $ac_cv_sys_large_files
24865 _ACEOF
24866
24867     fi
24868
24869     fi
24870
24871     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24872 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24873     if test "x$wx_largefile" = "xyes"; then
24874         cat >>confdefs.h <<\_ACEOF
24875 #define HAVE_LARGEFILE_SUPPORT 1
24876 _ACEOF
24877
24878     fi
24879     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24880 echo "${ECHO_T}$wx_largefile" >&6; }
24881 fi
24882
24883 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24884     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24885 elif test "$ac_cv_sys_large_files" = 1; then
24886     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24887 fi
24888
24889 if test -n "$LARGEFILE_CPPFLAGS"; then
24890     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
24891
24892                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24893         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24894 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24895 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24896   echo $ECHO_N "(cached) $ECHO_C" >&6
24897 else
24898
24899                 ac_ext=cpp
24900 ac_cpp='$CXXCPP $CPPFLAGS'
24901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24904
24905                 cat >conftest.$ac_ext <<_ACEOF
24906 /* confdefs.h.  */
24907 _ACEOF
24908 cat confdefs.h >>conftest.$ac_ext
24909 cat >>conftest.$ac_ext <<_ACEOF
24910 /* end confdefs.h.  */
24911
24912 int
24913 main ()
24914 {
24915
24916                         #ifndef __STDC_EXT__
24917                             choke me
24918                         #endif
24919
24920   ;
24921   return 0;
24922 }
24923 _ACEOF
24924 rm -f conftest.$ac_objext
24925 if { (ac_try="$ac_compile"
24926 case "(($ac_try" in
24927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928   *) ac_try_echo=$ac_try;;
24929 esac
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931   (eval "$ac_compile") 2>conftest.er1
24932   ac_status=$?
24933   grep -v '^ *+' conftest.er1 >conftest.err
24934   rm -f conftest.er1
24935   cat conftest.err >&5
24936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937   (exit $ac_status); } && {
24938          test -z "$ac_cxx_werror_flag" ||
24939          test ! -s conftest.err
24940        } && test -s conftest.$ac_objext; then
24941   wx_cv_STDC_EXT_required=no
24942 else
24943   echo "$as_me: failed program was:" >&5
24944 sed 's/^/| /' conftest.$ac_ext >&5
24945
24946         wx_cv_STDC_EXT_required=yes
24947
24948 fi
24949
24950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24951                 ac_ext=c
24952 ac_cpp='$CPP $CPPFLAGS'
24953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24956
24957
24958
24959 fi
24960 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
24961 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
24962         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
24963             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
24964         fi
24965     fi
24966 fi
24967
24968 ac_ext=cpp
24969 ac_cpp='$CXXCPP $CPPFLAGS'
24970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24973
24974 old_CPPFLAGS="$CPPFLAGS"
24975 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
24976 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24977 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
24978 if test "${ac_cv_sys_largefile_source+set}" = set; then
24979   echo $ECHO_N "(cached) $ECHO_C" >&6
24980 else
24981   while :; do
24982   cat >conftest.$ac_ext <<_ACEOF
24983 /* confdefs.h.  */
24984 _ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h.  */
24988 #include <sys/types.h> /* for off_t */
24989      #include <stdio.h>
24990 int
24991 main ()
24992 {
24993 int (*fp) (FILE *, off_t, int) = fseeko;
24994      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24995   ;
24996   return 0;
24997 }
24998 _ACEOF
24999 rm -f conftest.$ac_objext conftest$ac_exeext
25000 if { (ac_try="$ac_link"
25001 case "(($ac_try" in
25002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003   *) ac_try_echo=$ac_try;;
25004 esac
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006   (eval "$ac_link") 2>conftest.er1
25007   ac_status=$?
25008   grep -v '^ *+' conftest.er1 >conftest.err
25009   rm -f conftest.er1
25010   cat conftest.err >&5
25011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012   (exit $ac_status); } && {
25013          test -z "$ac_cxx_werror_flag" ||
25014          test ! -s conftest.err
25015        } && test -s conftest$ac_exeext &&
25016        $as_test_x conftest$ac_exeext; then
25017   ac_cv_sys_largefile_source=no; break
25018 else
25019   echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25021
25022
25023 fi
25024
25025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25026       conftest$ac_exeext conftest.$ac_ext
25027   cat >conftest.$ac_ext <<_ACEOF
25028 /* confdefs.h.  */
25029 _ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h.  */
25033 #define _LARGEFILE_SOURCE 1
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=1; 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   ac_cv_sys_largefile_source=unknown
25074   break
25075 done
25076 fi
25077 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25078 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25079 case $ac_cv_sys_largefile_source in #(
25080   no | unknown) ;;
25081   *)
25082 cat >>confdefs.h <<_ACEOF
25083 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25084 _ACEOF
25085 ;;
25086 esac
25087 rm -f conftest*
25088
25089 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25090 # in glibc 2.1.3, but that breaks too many other things.
25091 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25092 if test $ac_cv_sys_largefile_source != unknown; then
25093
25094 cat >>confdefs.h <<\_ACEOF
25095 #define HAVE_FSEEKO 1
25096 _ACEOF
25097
25098 fi
25099
25100 CPPFLAGS="$old_CPPFLAGS"
25101 ac_ext=c
25102 ac_cpp='$CPP $CPPFLAGS'
25103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25106
25107 if test "$ac_cv_sys_largefile_source" != no; then
25108     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25109 fi
25110
25111 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25112 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25113 if test "${ac_cv_c_bigendian+set}" = set; then
25114   echo $ECHO_N "(cached) $ECHO_C" >&6
25115 else
25116   ac_cv_c_bigendian=unknown
25117 # See if sys/param.h defines the BYTE_ORDER macro.
25118 cat >conftest.$ac_ext <<_ACEOF
25119 /* confdefs.h.  */
25120 _ACEOF
25121 cat confdefs.h >>conftest.$ac_ext
25122 cat >>conftest.$ac_ext <<_ACEOF
25123 /* end confdefs.h.  */
25124 #include <sys/types.h>
25125 #include <sys/param.h>
25126 int
25127 main ()
25128 {
25129
25130 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25131  bogus endian macros
25132 #endif
25133   ;
25134   return 0;
25135 }
25136 _ACEOF
25137 rm -f conftest.$ac_objext
25138 if { (ac_try="$ac_compile"
25139 case "(($ac_try" in
25140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25141   *) ac_try_echo=$ac_try;;
25142 esac
25143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25144   (eval "$ac_compile") 2>conftest.er1
25145   ac_status=$?
25146   grep -v '^ *+' conftest.er1 >conftest.err
25147   rm -f conftest.er1
25148   cat conftest.err >&5
25149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150   (exit $ac_status); } && {
25151          test -z "$ac_c_werror_flag" ||
25152          test ! -s conftest.err
25153        } && test -s conftest.$ac_objext; then
25154   # It does; now see whether it defined to BIG_ENDIAN or not.
25155 cat >conftest.$ac_ext <<_ACEOF
25156 /* confdefs.h.  */
25157 _ACEOF
25158 cat confdefs.h >>conftest.$ac_ext
25159 cat >>conftest.$ac_ext <<_ACEOF
25160 /* end confdefs.h.  */
25161 #include <sys/types.h>
25162 #include <sys/param.h>
25163 int
25164 main ()
25165 {
25166
25167 #if BYTE_ORDER != BIG_ENDIAN
25168  not big endian
25169 #endif
25170   ;
25171   return 0;
25172 }
25173 _ACEOF
25174 rm -f conftest.$ac_objext
25175 if { (ac_try="$ac_compile"
25176 case "(($ac_try" in
25177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178   *) ac_try_echo=$ac_try;;
25179 esac
25180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181   (eval "$ac_compile") 2>conftest.er1
25182   ac_status=$?
25183   grep -v '^ *+' conftest.er1 >conftest.err
25184   rm -f conftest.er1
25185   cat conftest.err >&5
25186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187   (exit $ac_status); } && {
25188          test -z "$ac_c_werror_flag" ||
25189          test ! -s conftest.err
25190        } && test -s conftest.$ac_objext; then
25191   ac_cv_c_bigendian=yes
25192 else
25193   echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25195
25196         ac_cv_c_bigendian=no
25197 fi
25198
25199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25200 else
25201   echo "$as_me: failed program was:" >&5
25202 sed 's/^/| /' conftest.$ac_ext >&5
25203
25204
25205 fi
25206
25207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25208 if test $ac_cv_c_bigendian = unknown; then
25209 if test "$cross_compiling" = yes; then
25210   ac_cv_c_bigendian=unknown
25211 else
25212   cat >conftest.$ac_ext <<_ACEOF
25213 /* confdefs.h.  */
25214 _ACEOF
25215 cat confdefs.h >>conftest.$ac_ext
25216 cat >>conftest.$ac_ext <<_ACEOF
25217 /* end confdefs.h.  */
25218 main () {
25219   /* Are we little or big endian?  From Harbison&Steele.  */
25220   union
25221   {
25222     long l;
25223     char c[sizeof (long)];
25224   } u;
25225   u.l = 1;
25226   exit (u.c[sizeof (long) - 1] == 1);
25227 }
25228 _ACEOF
25229 rm -f conftest$ac_exeext
25230 if { (ac_try="$ac_link"
25231 case "(($ac_try" in
25232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25233   *) ac_try_echo=$ac_try;;
25234 esac
25235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25236   (eval "$ac_link") 2>&5
25237   ac_status=$?
25238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25240   { (case "(($ac_try" in
25241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25242   *) ac_try_echo=$ac_try;;
25243 esac
25244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25245   (eval "$ac_try") 2>&5
25246   ac_status=$?
25247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248   (exit $ac_status); }; }; then
25249   ac_cv_c_bigendian=no
25250 else
25251   echo "$as_me: program exited with status $ac_status" >&5
25252 echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25254
25255 ( exit $ac_status )
25256 ac_cv_c_bigendian=yes
25257 fi
25258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25259 fi
25260
25261
25262 fi
25263 fi
25264 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25265 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25266 if test $ac_cv_c_bigendian = unknown; then
25267   { 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
25268 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;}
25269 fi
25270 if test $ac_cv_c_bigendian = yes; then
25271   cat >>confdefs.h <<\_ACEOF
25272 #define WORDS_BIGENDIAN 1
25273 _ACEOF
25274
25275 fi
25276
25277
25278
25279
25280     ac_ext=cpp
25281 ac_cpp='$CXXCPP $CPPFLAGS'
25282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25285
25286
25287
25288 for ac_header in iostream
25289 do
25290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25294   echo $ECHO_N "(cached) $ECHO_C" >&6
25295 else
25296   cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h.  */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h.  */
25302
25303
25304 #include <$ac_header>
25305 _ACEOF
25306 rm -f conftest.$ac_objext
25307 if { (ac_try="$ac_compile"
25308 case "(($ac_try" in
25309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310   *) ac_try_echo=$ac_try;;
25311 esac
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313   (eval "$ac_compile") 2>conftest.er1
25314   ac_status=$?
25315   grep -v '^ *+' conftest.er1 >conftest.err
25316   rm -f conftest.er1
25317   cat conftest.err >&5
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); } && {
25320          test -z "$ac_cxx_werror_flag" ||
25321          test ! -s conftest.err
25322        } && test -s conftest.$ac_objext; then
25323   eval "$as_ac_Header=yes"
25324 else
25325   echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328         eval "$as_ac_Header=no"
25329 fi
25330
25331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25332 fi
25333 ac_res=`eval echo '${'$as_ac_Header'}'`
25334                { echo "$as_me:$LINENO: result: $ac_res" >&5
25335 echo "${ECHO_T}$ac_res" >&6; }
25336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25337   cat >>confdefs.h <<_ACEOF
25338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25339 _ACEOF
25340
25341 fi
25342
25343 done
25344
25345
25346     if test "$ac_cv_header_iostream" = "yes" ; then
25347       :
25348     else
25349       cat >>confdefs.h <<\_ACEOF
25350 #define wxUSE_IOSTREAMH 1
25351 _ACEOF
25352
25353     fi
25354
25355     ac_ext=c
25356 ac_cpp='$CPP $CPPFLAGS'
25357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25360
25361
25362
25363
25364   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25365 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25366 if test "${wx_cv_explicit+set}" = set; then
25367   echo $ECHO_N "(cached) $ECHO_C" >&6
25368 else
25369
25370
25371     ac_ext=cpp
25372 ac_cpp='$CXXCPP $CPPFLAGS'
25373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25376
25377
25378             cat >conftest.$ac_ext <<_ACEOF
25379 /* confdefs.h.  */
25380 _ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h.  */
25384
25385         class Foo { public: explicit Foo(int) {} };
25386
25387 int
25388 main ()
25389 {
25390
25391         return 0;
25392
25393   ;
25394   return 0;
25395 }
25396 _ACEOF
25397 rm -f conftest.$ac_objext
25398 if { (ac_try="$ac_compile"
25399 case "(($ac_try" in
25400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25401   *) ac_try_echo=$ac_try;;
25402 esac
25403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25404   (eval "$ac_compile") 2>conftest.er1
25405   ac_status=$?
25406   grep -v '^ *+' conftest.er1 >conftest.err
25407   rm -f conftest.er1
25408   cat conftest.err >&5
25409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410   (exit $ac_status); } && {
25411          test -z "$ac_cxx_werror_flag" ||
25412          test ! -s conftest.err
25413        } && test -s conftest.$ac_objext; then
25414
25415         cat >conftest.$ac_ext <<_ACEOF
25416 /* confdefs.h.  */
25417 _ACEOF
25418 cat confdefs.h >>conftest.$ac_ext
25419 cat >>conftest.$ac_ext <<_ACEOF
25420 /* end confdefs.h.  */
25421
25422                 class Foo { public: explicit Foo(int) {} };
25423                 static void TakeFoo(const Foo& foo) { }
25424
25425 int
25426 main ()
25427 {
25428
25429                 TakeFoo(17);
25430                 return 0;
25431
25432   ;
25433   return 0;
25434 }
25435 _ACEOF
25436 rm -f conftest.$ac_objext
25437 if { (ac_try="$ac_compile"
25438 case "(($ac_try" in
25439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25440   *) ac_try_echo=$ac_try;;
25441 esac
25442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25443   (eval "$ac_compile") 2>conftest.er1
25444   ac_status=$?
25445   grep -v '^ *+' conftest.er1 >conftest.err
25446   rm -f conftest.er1
25447   cat conftest.err >&5
25448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449   (exit $ac_status); } && {
25450          test -z "$ac_cxx_werror_flag" ||
25451          test ! -s conftest.err
25452        } && test -s conftest.$ac_objext; then
25453   wx_cv_explicit=no
25454 else
25455   echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25457
25458         wx_cv_explicit=yes
25459
25460 fi
25461
25462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25463
25464 else
25465   echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25467
25468         wx_cv_explicit=no
25469
25470 fi
25471
25472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25473
25474     ac_ext=c
25475 ac_cpp='$CPP $CPPFLAGS'
25476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25479
25480
25481 fi
25482 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25483 echo "${ECHO_T}$wx_cv_explicit" >&6; }
25484
25485   if test "$wx_cv_explicit" = "yes"; then
25486     cat >>confdefs.h <<\_ACEOF
25487 #define HAVE_EXPLICIT 1
25488 _ACEOF
25489
25490   fi
25491
25492
25493 if test "x$SUNCXX" = xyes; then
25494     CXXFLAGS="-features=tmplife $CXXFLAGS"
25495 fi
25496
25497 if test "x$SUNCC" = xyes; then
25498     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25499 fi
25500
25501 if test "x$SGICC" = "xyes"; then
25502     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
25503 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
25504 if test "${wx_cv_prog_sgicc744+set}" = set; then
25505   echo $ECHO_N "(cached) $ECHO_C" >&6
25506 else
25507
25508             cat >conftest.$ac_ext <<_ACEOF
25509 /* confdefs.h.  */
25510 _ACEOF
25511 cat confdefs.h >>conftest.$ac_ext
25512 cat >>conftest.$ac_ext <<_ACEOF
25513 /* end confdefs.h.  */
25514
25515 int
25516 main ()
25517 {
25518
25519                     #if _SGI_COMPILER_VERSION >= 744
25520                     chock me: mipsPro is 7.4.4 or later
25521                     #endif
25522
25523   ;
25524   return 0;
25525 }
25526 _ACEOF
25527 rm -f conftest.$ac_objext
25528 if { (ac_try="$ac_compile"
25529 case "(($ac_try" in
25530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25531   *) ac_try_echo=$ac_try;;
25532 esac
25533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25534   (eval "$ac_compile") 2>conftest.er1
25535   ac_status=$?
25536   grep -v '^ *+' conftest.er1 >conftest.err
25537   rm -f conftest.er1
25538   cat conftest.err >&5
25539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540   (exit $ac_status); } && {
25541          test -z "$ac_c_werror_flag" ||
25542          test ! -s conftest.err
25543        } && test -s conftest.$ac_objext; then
25544   wx_cv_prog_sgicc744=no
25545 else
25546   echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25548
25549         wx_cv_prog_sgicc744=yes
25550
25551 fi
25552
25553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25554
25555
25556 fi
25557 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
25558 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
25559
25560     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
25561         CFLAGS="-woff 3970 $CFLAGS"
25562     fi
25563 fi
25564 if test "x$SGICXX" = "xyes"; then
25565     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
25566 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
25567 if test "${wx_cv_prog_sgicxx744+set}" = set; then
25568   echo $ECHO_N "(cached) $ECHO_C" >&6
25569 else
25570
25571             ac_ext=cpp
25572 ac_cpp='$CXXCPP $CPPFLAGS'
25573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25576
25577             cat >conftest.$ac_ext <<_ACEOF
25578 /* confdefs.h.  */
25579 _ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h.  */
25583
25584 int
25585 main ()
25586 {
25587
25588                     #if _SGI_COMPILER_VERSION >= 744
25589                     chock me: mipsPro is 7.4.4 or later
25590                     #endif
25591
25592   ;
25593   return 0;
25594 }
25595 _ACEOF
25596 rm -f conftest.$ac_objext
25597 if { (ac_try="$ac_compile"
25598 case "(($ac_try" in
25599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600   *) ac_try_echo=$ac_try;;
25601 esac
25602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25603   (eval "$ac_compile") 2>conftest.er1
25604   ac_status=$?
25605   grep -v '^ *+' conftest.er1 >conftest.err
25606   rm -f conftest.er1
25607   cat conftest.err >&5
25608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609   (exit $ac_status); } && {
25610          test -z "$ac_cxx_werror_flag" ||
25611          test ! -s conftest.err
25612        } && test -s conftest.$ac_objext; then
25613   wx_cv_prog_sgicxx744=no
25614 else
25615   echo "$as_me: failed program was:" >&5
25616 sed 's/^/| /' conftest.$ac_ext >&5
25617
25618         wx_cv_prog_sgicxx744=yes
25619
25620 fi
25621
25622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25623             ac_ext=c
25624 ac_cpp='$CPP $CPPFLAGS'
25625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25628
25629
25630
25631 fi
25632 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
25633 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
25634
25635     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
25636         CXXFLAGS="-woff 3970 $CXXFLAGS"
25637     fi
25638 fi
25639
25640 if test "x$HPCC" = "xyes"; then
25641                     CFLAGS="+W 2011,2450 $CFLAGS"
25642 fi
25643 if test "x$HPCXX" = "xyes"; then
25644                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
25645 fi
25646
25647 if test "x$COMPAQCXX" = "xyes"; then
25648                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25649 fi
25650
25651 ac_ext=cpp
25652 ac_cpp='$CXXCPP $CPPFLAGS'
25653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25656
25657
25658 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25659     if test "$wxUSE_UNICODE" = "yes"; then
25660         std_string="std::wstring"
25661         char_type="wchar_t"
25662     else
25663         std_string="std::string"
25664         char_type="char"
25665     fi
25666
25667         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25668 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
25669 if test "${wx_cv_class_stdstring+set}" = set; then
25670   echo $ECHO_N "(cached) $ECHO_C" >&6
25671 else
25672
25673             cat >conftest.$ac_ext <<_ACEOF
25674 /* confdefs.h.  */
25675 _ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h.  */
25679 #include <string>
25680 int
25681 main ()
25682 {
25683 $std_string foo;
25684   ;
25685   return 0;
25686 }
25687 _ACEOF
25688 rm -f conftest.$ac_objext
25689 if { (ac_try="$ac_compile"
25690 case "(($ac_try" in
25691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25692   *) ac_try_echo=$ac_try;;
25693 esac
25694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25695   (eval "$ac_compile") 2>conftest.er1
25696   ac_status=$?
25697   grep -v '^ *+' conftest.er1 >conftest.err
25698   rm -f conftest.er1
25699   cat conftest.err >&5
25700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701   (exit $ac_status); } && {
25702          test -z "$ac_cxx_werror_flag" ||
25703          test ! -s conftest.err
25704        } && test -s conftest.$ac_objext; then
25705   wx_cv_class_stdstring=yes
25706 else
25707   echo "$as_me: failed program was:" >&5
25708 sed 's/^/| /' conftest.$ac_ext >&5
25709
25710         wx_cv_class_stdstring=no
25711
25712 fi
25713
25714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25715
25716
25717 fi
25718 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25719 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25720
25721     if test "$wx_cv_class_stdstring" = yes; then
25722         if test "$wxUSE_UNICODE" = "yes"; then
25723             cat >>confdefs.h <<\_ACEOF
25724 #define HAVE_STD_WSTRING 1
25725 _ACEOF
25726
25727         fi
25728                     else
25729         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25730 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25731 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25732   echo $ECHO_N "(cached) $ECHO_C" >&6
25733 else
25734
25735                 cat >conftest.$ac_ext <<_ACEOF
25736 /* confdefs.h.  */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h.  */
25741
25742                     #ifdef HAVE_WCHAR_H
25743                     #  ifdef __CYGWIN__
25744                     #    include <stddef.h>
25745                     #  endif
25746                     #  include <wchar.h>
25747                     #endif
25748                     #ifdef HAVE_STDLIB_H
25749                     #  include <stdlib.h>
25750                     #endif
25751                     #include <stdio.h>
25752                     #include <string>
25753
25754 int
25755 main ()
25756 {
25757 std::basic_string<$char_type> foo;
25758                      const $char_type* dummy = foo.c_str();
25759   ;
25760   return 0;
25761 }
25762 _ACEOF
25763 rm -f conftest.$ac_objext
25764 if { (ac_try="$ac_compile"
25765 case "(($ac_try" in
25766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25767   *) ac_try_echo=$ac_try;;
25768 esac
25769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25770   (eval "$ac_compile") 2>conftest.er1
25771   ac_status=$?
25772   grep -v '^ *+' conftest.er1 >conftest.err
25773   rm -f conftest.er1
25774   cat conftest.err >&5
25775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776   (exit $ac_status); } && {
25777          test -z "$ac_cxx_werror_flag" ||
25778          test ! -s conftest.err
25779        } && test -s conftest.$ac_objext; then
25780   wx_cv_class_stdbasicstring=yes
25781 else
25782   echo "$as_me: failed program was:" >&5
25783 sed 's/^/| /' conftest.$ac_ext >&5
25784
25785         wx_cv_class_stdbasicstring=no
25786
25787 fi
25788
25789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25790
25791
25792 fi
25793 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25794 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25795
25796         if test "$wx_cv_class_stdbasicstring" != yes; then
25797             if test "$wxUSE_STL" = "yes"; then
25798                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25799 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25800    { (exit 1); exit 1; }; }
25801             elif test "$wxUSE_STD_STRING" = "yes"; then
25802                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25803 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25804    { (exit 1); exit 1; }; }
25805             else
25806                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25807 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25808                 wxUSE_STD_STRING=no
25809             fi
25810         fi
25811     fi
25812 fi
25813
25814 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25815     { echo "$as_me:$LINENO: checking for std::istream" >&5
25816 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25817 if test "${ac_cv_type_std__istream+set}" = set; then
25818   echo $ECHO_N "(cached) $ECHO_C" >&6
25819 else
25820   cat >conftest.$ac_ext <<_ACEOF
25821 /* confdefs.h.  */
25822 _ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h.  */
25826 #include <iostream>
25827
25828 typedef std::istream ac__type_new_;
25829 int
25830 main ()
25831 {
25832 if ((ac__type_new_ *) 0)
25833   return 0;
25834 if (sizeof (ac__type_new_))
25835   return 0;
25836   ;
25837   return 0;
25838 }
25839 _ACEOF
25840 rm -f conftest.$ac_objext
25841 if { (ac_try="$ac_compile"
25842 case "(($ac_try" in
25843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844   *) ac_try_echo=$ac_try;;
25845 esac
25846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25847   (eval "$ac_compile") 2>conftest.er1
25848   ac_status=$?
25849   grep -v '^ *+' conftest.er1 >conftest.err
25850   rm -f conftest.er1
25851   cat conftest.err >&5
25852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853   (exit $ac_status); } && {
25854          test -z "$ac_cxx_werror_flag" ||
25855          test ! -s conftest.err
25856        } && test -s conftest.$ac_objext; then
25857   ac_cv_type_std__istream=yes
25858 else
25859   echo "$as_me: failed program was:" >&5
25860 sed 's/^/| /' conftest.$ac_ext >&5
25861
25862         ac_cv_type_std__istream=no
25863 fi
25864
25865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25866 fi
25867 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25868 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25869 if test $ac_cv_type_std__istream = yes; then
25870
25871 cat >>confdefs.h <<_ACEOF
25872 #define HAVE_STD__ISTREAM 1
25873 _ACEOF
25874
25875
25876 else
25877   wxUSE_STD_IOSTREAM=no
25878 fi
25879 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25880 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25881 if test "${ac_cv_type_std__ostream+set}" = set; then
25882   echo $ECHO_N "(cached) $ECHO_C" >&6
25883 else
25884   cat >conftest.$ac_ext <<_ACEOF
25885 /* confdefs.h.  */
25886 _ACEOF
25887 cat confdefs.h >>conftest.$ac_ext
25888 cat >>conftest.$ac_ext <<_ACEOF
25889 /* end confdefs.h.  */
25890 #include <iostream>
25891
25892 typedef std::ostream ac__type_new_;
25893 int
25894 main ()
25895 {
25896 if ((ac__type_new_ *) 0)
25897   return 0;
25898 if (sizeof (ac__type_new_))
25899   return 0;
25900   ;
25901   return 0;
25902 }
25903 _ACEOF
25904 rm -f conftest.$ac_objext
25905 if { (ac_try="$ac_compile"
25906 case "(($ac_try" in
25907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25908   *) ac_try_echo=$ac_try;;
25909 esac
25910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25911   (eval "$ac_compile") 2>conftest.er1
25912   ac_status=$?
25913   grep -v '^ *+' conftest.er1 >conftest.err
25914   rm -f conftest.er1
25915   cat conftest.err >&5
25916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917   (exit $ac_status); } && {
25918          test -z "$ac_cxx_werror_flag" ||
25919          test ! -s conftest.err
25920        } && test -s conftest.$ac_objext; then
25921   ac_cv_type_std__ostream=yes
25922 else
25923   echo "$as_me: failed program was:" >&5
25924 sed 's/^/| /' conftest.$ac_ext >&5
25925
25926         ac_cv_type_std__ostream=no
25927 fi
25928
25929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25930 fi
25931 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
25932 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
25933 if test $ac_cv_type_std__ostream = yes; then
25934
25935 cat >>confdefs.h <<_ACEOF
25936 #define HAVE_STD__OSTREAM 1
25937 _ACEOF
25938
25939
25940 else
25941   wxUSE_STD_IOSTREAM=no
25942 fi
25943
25944
25945     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
25946         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25947             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
25948 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
25949    { (exit 1); exit 1; }; }
25950         else
25951             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
25952 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
25953         fi
25954     fi
25955 fi
25956
25957 if test "$wxUSE_STL" = "yes"; then
25958         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
25959 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
25960 if test "${wx_cv_lib_stl+set}" = set; then
25961   echo $ECHO_N "(cached) $ECHO_C" >&6
25962 else
25963   cat >conftest.$ac_ext <<_ACEOF
25964 /* confdefs.h.  */
25965 _ACEOF
25966 cat confdefs.h >>conftest.$ac_ext
25967 cat >>conftest.$ac_ext <<_ACEOF
25968 /* end confdefs.h.  */
25969 #include <string>
25970             #include <functional>
25971             #include <algorithm>
25972             #include <vector>
25973             #include <list>
25974 int
25975 main ()
25976 {
25977 std::vector<int> moo;
25978              std::list<int> foo;
25979              std::vector<int>::iterator it =
25980                  std::find_if(moo.begin(), moo.end(),
25981                               std::bind2nd(std::less<int>(), 3));
25982   ;
25983   return 0;
25984 }
25985 _ACEOF
25986 rm -f conftest.$ac_objext
25987 if { (ac_try="$ac_compile"
25988 case "(($ac_try" in
25989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990   *) ac_try_echo=$ac_try;;
25991 esac
25992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25993   (eval "$ac_compile") 2>conftest.er1
25994   ac_status=$?
25995   grep -v '^ *+' conftest.er1 >conftest.err
25996   rm -f conftest.er1
25997   cat conftest.err >&5
25998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999   (exit $ac_status); } && {
26000          test -z "$ac_cxx_werror_flag" ||
26001          test ! -s conftest.err
26002        } && test -s conftest.$ac_objext; then
26003   wx_cv_lib_stl=yes
26004 else
26005   echo "$as_me: failed program was:" >&5
26006 sed 's/^/| /' conftest.$ac_ext >&5
26007
26008         wx_cv_lib_stl=no
26009
26010 fi
26011
26012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26013
26014 fi
26015 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
26016 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
26017
26018     if test "$wx_cv_lib_stl" != yes; then
26019          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
26020 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
26021    { (exit 1); exit 1; }; }
26022     fi
26023
26024         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
26025 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
26026 if test "${wx_cv_func_stdstring_compare+set}" = set; then
26027   echo $ECHO_N "(cached) $ECHO_C" >&6
26028 else
26029   cat >conftest.$ac_ext <<_ACEOF
26030 /* confdefs.h.  */
26031 _ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h.  */
26035 #include <string>
26036 int
26037 main ()
26038 {
26039 std::string foo, bar;
26040             foo.compare(bar);
26041             foo.compare(1, 1, bar);
26042             foo.compare(1, 1, bar, 1, 1);
26043             foo.compare("");
26044             foo.compare(1, 1, "");
26045             foo.compare(1, 1, "", 2);
26046   ;
26047   return 0;
26048 }
26049 _ACEOF
26050 rm -f conftest.$ac_objext
26051 if { (ac_try="$ac_compile"
26052 case "(($ac_try" in
26053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054   *) ac_try_echo=$ac_try;;
26055 esac
26056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057   (eval "$ac_compile") 2>conftest.er1
26058   ac_status=$?
26059   grep -v '^ *+' conftest.er1 >conftest.err
26060   rm -f conftest.er1
26061   cat conftest.err >&5
26062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063   (exit $ac_status); } && {
26064          test -z "$ac_cxx_werror_flag" ||
26065          test ! -s conftest.err
26066        } && test -s conftest.$ac_objext; then
26067   wx_cv_func_stdstring_compare=yes
26068 else
26069   echo "$as_me: failed program was:" >&5
26070 sed 's/^/| /' conftest.$ac_ext >&5
26071
26072         wx_cv_func_stdstring_compare=no
26073
26074 fi
26075
26076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26077
26078 fi
26079 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
26080 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
26081
26082     if test "$wx_cv_func_stdstring_compare" = yes; then
26083         cat >>confdefs.h <<\_ACEOF
26084 #define HAVE_STD_STRING_COMPARE 1
26085 _ACEOF
26086
26087     fi
26088
26089     if test "$wx_cv_class_gnuhashmapset" = yes; then
26090          cat >>confdefs.h <<\_ACEOF
26091 #define HAVE_EXT_HASH_MAP 1
26092 _ACEOF
26093
26094          cat >>confdefs.h <<\_ACEOF
26095 #define HAVE_GNU_CXX_HASH_MAP 1
26096 _ACEOF
26097
26098     fi
26099
26100     { echo "$as_me:$LINENO: checking for unordered_map" >&5
26101 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
26102 if test "${ac_cv_header_unordered_map+set}" = set; then
26103   echo $ECHO_N "(cached) $ECHO_C" >&6
26104 else
26105   cat >conftest.$ac_ext <<_ACEOF
26106 /* confdefs.h.  */
26107 _ACEOF
26108 cat confdefs.h >>conftest.$ac_ext
26109 cat >>conftest.$ac_ext <<_ACEOF
26110 /* end confdefs.h.  */
26111
26112
26113
26114 #include <unordered_map>
26115 _ACEOF
26116 rm -f conftest.$ac_objext
26117 if { (ac_try="$ac_compile"
26118 case "(($ac_try" in
26119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26120   *) ac_try_echo=$ac_try;;
26121 esac
26122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26123   (eval "$ac_compile") 2>conftest.er1
26124   ac_status=$?
26125   grep -v '^ *+' conftest.er1 >conftest.err
26126   rm -f conftest.er1
26127   cat conftest.err >&5
26128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129   (exit $ac_status); } && {
26130          test -z "$ac_cxx_werror_flag" ||
26131          test ! -s conftest.err
26132        } && test -s conftest.$ac_objext; then
26133   ac_cv_header_unordered_map=yes
26134 else
26135   echo "$as_me: failed program was:" >&5
26136 sed 's/^/| /' conftest.$ac_ext >&5
26137
26138         ac_cv_header_unordered_map=no
26139 fi
26140
26141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26142 fi
26143 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
26144 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
26145 if test $ac_cv_header_unordered_map = yes; then
26146   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
26147 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
26148 if test "${wx_cv_class_stdunorderedmapset+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 #include <unordered_map>
26158                 #include <unordered_set>
26159 int
26160 main ()
26161 {
26162 std::unordered_map<double*, char*> test1;
26163                  std::unordered_set<char*> test2;
26164   ;
26165   return 0;
26166 }
26167 _ACEOF
26168 rm -f conftest.$ac_objext
26169 if { (ac_try="$ac_compile"
26170 case "(($ac_try" in
26171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26172   *) ac_try_echo=$ac_try;;
26173 esac
26174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26175   (eval "$ac_compile") 2>conftest.er1
26176   ac_status=$?
26177   grep -v '^ *+' conftest.er1 >conftest.err
26178   rm -f conftest.er1
26179   cat conftest.err >&5
26180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181   (exit $ac_status); } && {
26182          test -z "$ac_cxx_werror_flag" ||
26183          test ! -s conftest.err
26184        } && test -s conftest.$ac_objext; then
26185   wx_cv_class_stdunorderedmapset=yes
26186 else
26187   echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26189
26190         wx_cv_class_stdunorderedmapset=no
26191 fi
26192
26193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26194
26195
26196 fi
26197 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
26198 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
26199 fi
26200
26201
26202
26203     if test "$wx_cv_class_stdunorderedmapset" = yes; then
26204          cat >>confdefs.h <<\_ACEOF
26205 #define HAVE_STD_UNORDERED_MAP 1
26206 _ACEOF
26207
26208          cat >>confdefs.h <<\_ACEOF
26209 #define HAVE_STD_UNORDERED_SET 1
26210 _ACEOF
26211
26212     else
26213         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
26214 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
26215 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
26216   echo $ECHO_N "(cached) $ECHO_C" >&6
26217 else
26218   cat >conftest.$ac_ext <<_ACEOF
26219 /* confdefs.h.  */
26220 _ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h.  */
26224
26225
26226
26227 #include <tr1/unordered_map>
26228 _ACEOF
26229 rm -f conftest.$ac_objext
26230 if { (ac_try="$ac_compile"
26231 case "(($ac_try" in
26232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233   *) ac_try_echo=$ac_try;;
26234 esac
26235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236   (eval "$ac_compile") 2>conftest.er1
26237   ac_status=$?
26238   grep -v '^ *+' conftest.er1 >conftest.err
26239   rm -f conftest.er1
26240   cat conftest.err >&5
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); } && {
26243          test -z "$ac_cxx_werror_flag" ||
26244          test ! -s conftest.err
26245        } && test -s conftest.$ac_objext; then
26246   ac_cv_header_tr1_unordered_map=yes
26247 else
26248   echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26250
26251         ac_cv_header_tr1_unordered_map=no
26252 fi
26253
26254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26255 fi
26256 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
26257 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
26258 if test $ac_cv_header_tr1_unordered_map = yes; then
26259   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
26260 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
26261 if test "${wx_cv_class_tr1unorderedmapset+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 #include <tr1/unordered_map>
26271                     #include <tr1/unordered_set>
26272 int
26273 main ()
26274 {
26275 std::tr1::unordered_map<double*, char*> test1;
26276                      std::tr1::unordered_set<char*> test2;
26277             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
26278             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
26279             #endif
26280   ;
26281   return 0;
26282 }
26283 _ACEOF
26284 rm -f conftest.$ac_objext
26285 if { (ac_try="$ac_compile"
26286 case "(($ac_try" in
26287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26288   *) ac_try_echo=$ac_try;;
26289 esac
26290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26291   (eval "$ac_compile") 2>conftest.er1
26292   ac_status=$?
26293   grep -v '^ *+' conftest.er1 >conftest.err
26294   rm -f conftest.er1
26295   cat conftest.err >&5
26296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297   (exit $ac_status); } && {
26298          test -z "$ac_cxx_werror_flag" ||
26299          test ! -s conftest.err
26300        } && test -s conftest.$ac_objext; then
26301   wx_cv_class_tr1unorderedmapset=yes
26302 else
26303   echo "$as_me: failed program was:" >&5
26304 sed 's/^/| /' conftest.$ac_ext >&5
26305
26306         wx_cv_class_tr1unorderedmapset=no
26307 fi
26308
26309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26310
26311
26312 fi
26313 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
26314 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
26315 fi
26316
26317
26318
26319         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
26320             cat >>confdefs.h <<\_ACEOF
26321 #define HAVE_TR1_UNORDERED_MAP 1
26322 _ACEOF
26323
26324             cat >>confdefs.h <<\_ACEOF
26325 #define HAVE_TR1_UNORDERED_SET 1
26326 _ACEOF
26327
26328         else
26329                         { echo "$as_me:$LINENO: checking for hash_map" >&5
26330 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26331 if test "${ac_cv_header_hash_map+set}" = set; then
26332   echo $ECHO_N "(cached) $ECHO_C" >&6
26333 else
26334   cat >conftest.$ac_ext <<_ACEOF
26335 /* confdefs.h.  */
26336 _ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h.  */
26340
26341
26342
26343 #include <hash_map>
26344 _ACEOF
26345 rm -f conftest.$ac_objext
26346 if { (ac_try="$ac_compile"
26347 case "(($ac_try" in
26348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26349   *) ac_try_echo=$ac_try;;
26350 esac
26351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26352   (eval "$ac_compile") 2>conftest.er1
26353   ac_status=$?
26354   grep -v '^ *+' conftest.er1 >conftest.err
26355   rm -f conftest.er1
26356   cat conftest.err >&5
26357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358   (exit $ac_status); } && {
26359          test -z "$ac_cxx_werror_flag" ||
26360          test ! -s conftest.err
26361        } && test -s conftest.$ac_objext; then
26362   ac_cv_header_hash_map=yes
26363 else
26364   echo "$as_me: failed program was:" >&5
26365 sed 's/^/| /' conftest.$ac_ext >&5
26366
26367         ac_cv_header_hash_map=no
26368 fi
26369
26370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26371 fi
26372 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26373 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26374 if test $ac_cv_header_hash_map = yes; then
26375   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
26376 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
26377 if test "${wx_cv_class_stdhashmapset+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 #include <hash_map>
26387                         #include <hash_set>
26388 int
26389 main ()
26390 {
26391 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
26392                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
26393   ;
26394   return 0;
26395 }
26396 _ACEOF
26397 rm -f conftest.$ac_objext
26398 if { (ac_try="$ac_compile"
26399 case "(($ac_try" in
26400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26401   *) ac_try_echo=$ac_try;;
26402 esac
26403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26404   (eval "$ac_compile") 2>conftest.er1
26405   ac_status=$?
26406   grep -v '^ *+' conftest.er1 >conftest.err
26407   rm -f conftest.er1
26408   cat conftest.err >&5
26409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410   (exit $ac_status); } && {
26411          test -z "$ac_cxx_werror_flag" ||
26412          test ! -s conftest.err
26413        } && test -s conftest.$ac_objext; then
26414   wx_cv_class_stdhashmapset=yes
26415 else
26416   echo "$as_me: failed program was:" >&5
26417 sed 's/^/| /' conftest.$ac_ext >&5
26418
26419         wx_cv_class_stdhashmapset=no
26420 fi
26421
26422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26423
26424
26425 fi
26426 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26427 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26428 fi
26429
26430
26431
26432             if test "$wx_cv_class_stdhashmapset" = yes; then
26433                 cat >>confdefs.h <<\_ACEOF
26434 #define HAVE_HASH_MAP 1
26435 _ACEOF
26436
26437                 cat >>confdefs.h <<\_ACEOF
26438 #define HAVE_STD_HASH_MAP 1
26439 _ACEOF
26440
26441             fi
26442
26443             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26444 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26445 if test "${ac_cv_header_ext_hash_map+set}" = set; then
26446   echo $ECHO_N "(cached) $ECHO_C" >&6
26447 else
26448   cat >conftest.$ac_ext <<_ACEOF
26449 /* confdefs.h.  */
26450 _ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h.  */
26454
26455
26456
26457 #include <ext/hash_map>
26458 _ACEOF
26459 rm -f conftest.$ac_objext
26460 if { (ac_try="$ac_compile"
26461 case "(($ac_try" in
26462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463   *) ac_try_echo=$ac_try;;
26464 esac
26465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26466   (eval "$ac_compile") 2>conftest.er1
26467   ac_status=$?
26468   grep -v '^ *+' conftest.er1 >conftest.err
26469   rm -f conftest.er1
26470   cat conftest.err >&5
26471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472   (exit $ac_status); } && {
26473          test -z "$ac_cxx_werror_flag" ||
26474          test ! -s conftest.err
26475        } && test -s conftest.$ac_objext; then
26476   ac_cv_header_ext_hash_map=yes
26477 else
26478   echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26480
26481         ac_cv_header_ext_hash_map=no
26482 fi
26483
26484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26485 fi
26486 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26487 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26488 if test $ac_cv_header_ext_hash_map = yes; then
26489   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26490 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26491 if test "${wx_cv_class_gnuhashmapset+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 #include <ext/hash_map>
26501                         #include <ext/hash_set>
26502 int
26503 main ()
26504 {
26505 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26506                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26507   ;
26508   return 0;
26509 }
26510 _ACEOF
26511 rm -f conftest.$ac_objext
26512 if { (ac_try="$ac_compile"
26513 case "(($ac_try" in
26514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26515   *) ac_try_echo=$ac_try;;
26516 esac
26517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26518   (eval "$ac_compile") 2>conftest.er1
26519   ac_status=$?
26520   grep -v '^ *+' conftest.er1 >conftest.err
26521   rm -f conftest.er1
26522   cat conftest.err >&5
26523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524   (exit $ac_status); } && {
26525          test -z "$ac_cxx_werror_flag" ||
26526          test ! -s conftest.err
26527        } && test -s conftest.$ac_objext; then
26528   wx_cv_class_gnuhashmapset=yes
26529 else
26530   echo "$as_me: failed program was:" >&5
26531 sed 's/^/| /' conftest.$ac_ext >&5
26532
26533         wx_cv_class_gnuhashmapset=no
26534 fi
26535
26536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26537
26538
26539 fi
26540 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26541 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26542 fi
26543
26544
26545
26546         fi
26547     fi
26548 fi
26549
26550 ac_ext=cpp
26551 ac_cpp='$CXXCPP $CPPFLAGS'
26552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26555 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
26556 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
26557 if test -z "$CXXCPP"; then
26558   if test "${ac_cv_prog_CXXCPP+set}" = set; then
26559   echo $ECHO_N "(cached) $ECHO_C" >&6
26560 else
26561       # Double quotes because CXXCPP needs to be expanded
26562     for CXXCPP in "$CXX -E" "/lib/cpp"
26563     do
26564       ac_preproc_ok=false
26565 for ac_cxx_preproc_warn_flag in '' yes
26566 do
26567   # Use a header file that comes with gcc, so configuring glibc
26568   # with a fresh cross-compiler works.
26569   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26570   # <limits.h> exists even on freestanding compilers.
26571   # On the NeXT, cc -E runs the code through the compiler's parser,
26572   # not just through cpp. "Syntax error" is here to catch this case.
26573   cat >conftest.$ac_ext <<_ACEOF
26574 /* confdefs.h.  */
26575 _ACEOF
26576 cat confdefs.h >>conftest.$ac_ext
26577 cat >>conftest.$ac_ext <<_ACEOF
26578 /* end confdefs.h.  */
26579 #ifdef __STDC__
26580 # include <limits.h>
26581 #else
26582 # include <assert.h>
26583 #endif
26584                      Syntax error
26585 _ACEOF
26586 if { (ac_try="$ac_cpp conftest.$ac_ext"
26587 case "(($ac_try" in
26588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26589   *) ac_try_echo=$ac_try;;
26590 esac
26591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26592   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26593   ac_status=$?
26594   grep -v '^ *+' conftest.er1 >conftest.err
26595   rm -f conftest.er1
26596   cat conftest.err >&5
26597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598   (exit $ac_status); } >/dev/null && {
26599          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26600          test ! -s conftest.err
26601        }; then
26602   :
26603 else
26604   echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26606
26607   # Broken: fails on valid input.
26608 continue
26609 fi
26610
26611 rm -f conftest.err conftest.$ac_ext
26612
26613   # OK, works on sane cases.  Now check whether nonexistent headers
26614   # can be detected and how.
26615   cat >conftest.$ac_ext <<_ACEOF
26616 /* confdefs.h.  */
26617 _ACEOF
26618 cat confdefs.h >>conftest.$ac_ext
26619 cat >>conftest.$ac_ext <<_ACEOF
26620 /* end confdefs.h.  */
26621 #include <ac_nonexistent.h>
26622 _ACEOF
26623 if { (ac_try="$ac_cpp conftest.$ac_ext"
26624 case "(($ac_try" in
26625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26626   *) ac_try_echo=$ac_try;;
26627 esac
26628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26629   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26630   ac_status=$?
26631   grep -v '^ *+' conftest.er1 >conftest.err
26632   rm -f conftest.er1
26633   cat conftest.err >&5
26634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635   (exit $ac_status); } >/dev/null && {
26636          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26637          test ! -s conftest.err
26638        }; then
26639   # Broken: success on invalid input.
26640 continue
26641 else
26642   echo "$as_me: failed program was:" >&5
26643 sed 's/^/| /' conftest.$ac_ext >&5
26644
26645   # Passes both tests.
26646 ac_preproc_ok=:
26647 break
26648 fi
26649
26650 rm -f conftest.err conftest.$ac_ext
26651
26652 done
26653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26654 rm -f conftest.err conftest.$ac_ext
26655 if $ac_preproc_ok; then
26656   break
26657 fi
26658
26659     done
26660     ac_cv_prog_CXXCPP=$CXXCPP
26661
26662 fi
26663   CXXCPP=$ac_cv_prog_CXXCPP
26664 else
26665   ac_cv_prog_CXXCPP=$CXXCPP
26666 fi
26667 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
26668 echo "${ECHO_T}$CXXCPP" >&6; }
26669 ac_preproc_ok=false
26670 for ac_cxx_preproc_warn_flag in '' yes
26671 do
26672   # Use a header file that comes with gcc, so configuring glibc
26673   # with a fresh cross-compiler works.
26674   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26675   # <limits.h> exists even on freestanding compilers.
26676   # On the NeXT, cc -E runs the code through the compiler's parser,
26677   # not just through cpp. "Syntax error" is here to catch this case.
26678   cat >conftest.$ac_ext <<_ACEOF
26679 /* confdefs.h.  */
26680 _ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h.  */
26684 #ifdef __STDC__
26685 # include <limits.h>
26686 #else
26687 # include <assert.h>
26688 #endif
26689                      Syntax error
26690 _ACEOF
26691 if { (ac_try="$ac_cpp conftest.$ac_ext"
26692 case "(($ac_try" in
26693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26694   *) ac_try_echo=$ac_try;;
26695 esac
26696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26698   ac_status=$?
26699   grep -v '^ *+' conftest.er1 >conftest.err
26700   rm -f conftest.er1
26701   cat conftest.err >&5
26702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703   (exit $ac_status); } >/dev/null && {
26704          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26705          test ! -s conftest.err
26706        }; then
26707   :
26708 else
26709   echo "$as_me: failed program was:" >&5
26710 sed 's/^/| /' conftest.$ac_ext >&5
26711
26712   # Broken: fails on valid input.
26713 continue
26714 fi
26715
26716 rm -f conftest.err conftest.$ac_ext
26717
26718   # OK, works on sane cases.  Now check whether nonexistent headers
26719   # can be detected and how.
26720   cat >conftest.$ac_ext <<_ACEOF
26721 /* confdefs.h.  */
26722 _ACEOF
26723 cat confdefs.h >>conftest.$ac_ext
26724 cat >>conftest.$ac_ext <<_ACEOF
26725 /* end confdefs.h.  */
26726 #include <ac_nonexistent.h>
26727 _ACEOF
26728 if { (ac_try="$ac_cpp conftest.$ac_ext"
26729 case "(($ac_try" in
26730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26731   *) ac_try_echo=$ac_try;;
26732 esac
26733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26735   ac_status=$?
26736   grep -v '^ *+' conftest.er1 >conftest.err
26737   rm -f conftest.er1
26738   cat conftest.err >&5
26739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740   (exit $ac_status); } >/dev/null && {
26741          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26742          test ! -s conftest.err
26743        }; then
26744   # Broken: success on invalid input.
26745 continue
26746 else
26747   echo "$as_me: failed program was:" >&5
26748 sed 's/^/| /' conftest.$ac_ext >&5
26749
26750   # Passes both tests.
26751 ac_preproc_ok=:
26752 break
26753 fi
26754
26755 rm -f conftest.err conftest.$ac_ext
26756
26757 done
26758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26759 rm -f conftest.err conftest.$ac_ext
26760 if $ac_preproc_ok; then
26761   :
26762 else
26763   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26764 See \`config.log' for more details." >&5
26765 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26766 See \`config.log' for more details." >&2;}
26767    { (exit 1); exit 1; }; }
26768 fi
26769
26770 ac_ext=cpp
26771 ac_cpp='$CXXCPP $CPPFLAGS'
26772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26775
26776
26777
26778
26779 for ac_header in type_traits tr1/type_traits
26780 do
26781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26783   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26786   echo $ECHO_N "(cached) $ECHO_C" >&6
26787 fi
26788 ac_res=`eval echo '${'$as_ac_Header'}'`
26789                { echo "$as_me:$LINENO: result: $ac_res" >&5
26790 echo "${ECHO_T}$ac_res" >&6; }
26791 else
26792   # Is the header compilable?
26793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26795 cat >conftest.$ac_ext <<_ACEOF
26796 /* confdefs.h.  */
26797 _ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h.  */
26801 $ac_includes_default
26802 #include <$ac_header>
26803 _ACEOF
26804 rm -f conftest.$ac_objext
26805 if { (ac_try="$ac_compile"
26806 case "(($ac_try" in
26807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26808   *) ac_try_echo=$ac_try;;
26809 esac
26810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26811   (eval "$ac_compile") 2>conftest.er1
26812   ac_status=$?
26813   grep -v '^ *+' conftest.er1 >conftest.err
26814   rm -f conftest.er1
26815   cat conftest.err >&5
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); } && {
26818          test -z "$ac_cxx_werror_flag" ||
26819          test ! -s conftest.err
26820        } && test -s conftest.$ac_objext; then
26821   ac_header_compiler=yes
26822 else
26823   echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26825
26826         ac_header_compiler=no
26827 fi
26828
26829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26831 echo "${ECHO_T}$ac_header_compiler" >&6; }
26832
26833 # Is the header present?
26834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26836 cat >conftest.$ac_ext <<_ACEOF
26837 /* confdefs.h.  */
26838 _ACEOF
26839 cat confdefs.h >>conftest.$ac_ext
26840 cat >>conftest.$ac_ext <<_ACEOF
26841 /* end confdefs.h.  */
26842 #include <$ac_header>
26843 _ACEOF
26844 if { (ac_try="$ac_cpp conftest.$ac_ext"
26845 case "(($ac_try" in
26846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26847   *) ac_try_echo=$ac_try;;
26848 esac
26849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26851   ac_status=$?
26852   grep -v '^ *+' conftest.er1 >conftest.err
26853   rm -f conftest.er1
26854   cat conftest.err >&5
26855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); } >/dev/null && {
26857          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26858          test ! -s conftest.err
26859        }; then
26860   ac_header_preproc=yes
26861 else
26862   echo "$as_me: failed program was:" >&5
26863 sed 's/^/| /' conftest.$ac_ext >&5
26864
26865   ac_header_preproc=no
26866 fi
26867
26868 rm -f conftest.err conftest.$ac_ext
26869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26870 echo "${ECHO_T}$ac_header_preproc" >&6; }
26871
26872 # So?  What about this header?
26873 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26874   yes:no: )
26875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26879     ac_header_preproc=yes
26880     ;;
26881   no:yes:* )
26882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26884     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26885 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26886     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26888     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26889 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26892     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26894     ( cat <<\_ASBOX
26895 ## ----------------------------------------- ##
26896 ## Report this to wx-dev@lists.wxwidgets.org ##
26897 ## ----------------------------------------- ##
26898 _ASBOX
26899      ) | sed "s/^/$as_me: WARNING:     /" >&2
26900     ;;
26901 esac
26902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26905   echo $ECHO_N "(cached) $ECHO_C" >&6
26906 else
26907   eval "$as_ac_Header=\$ac_header_preproc"
26908 fi
26909 ac_res=`eval echo '${'$as_ac_Header'}'`
26910                { echo "$as_me:$LINENO: result: $ac_res" >&5
26911 echo "${ECHO_T}$ac_res" >&6; }
26912
26913 fi
26914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26915   cat >>confdefs.h <<_ACEOF
26916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26917 _ACEOF
26918
26919 fi
26920
26921 done
26922
26923
26924
26925
26926   if test -n "$GCC"; then
26927     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
26928 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
26929     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
26930   echo $ECHO_N "(cached) $ECHO_C" >&6
26931 else
26932
26933       cat >conftest.$ac_ext <<_ACEOF
26934 /* confdefs.h.  */
26935 _ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h.  */
26939
26940 int
26941 main ()
26942 {
26943
26944           unsigned int value=0;
26945           /* wxAtomicInc doesn't use return value here */
26946           __sync_fetch_and_add(&value, 2);
26947           __sync_sub_and_fetch(&value, 1);
26948           /* but wxAtomicDec does, so mimic that: */
26949           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
26950
26951   ;
26952   return 0;
26953 }
26954 _ACEOF
26955 rm -f conftest.$ac_objext conftest$ac_exeext
26956 if { (ac_try="$ac_link"
26957 case "(($ac_try" in
26958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26959   *) ac_try_echo=$ac_try;;
26960 esac
26961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26962   (eval "$ac_link") 2>conftest.er1
26963   ac_status=$?
26964   grep -v '^ *+' conftest.er1 >conftest.err
26965   rm -f conftest.er1
26966   cat conftest.err >&5
26967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968   (exit $ac_status); } && {
26969          test -z "$ac_cxx_werror_flag" ||
26970          test ! -s conftest.err
26971        } && test -s conftest$ac_exeext &&
26972        $as_test_x conftest$ac_exeext; then
26973   wx_cv_cc_gcc_atomic_builtins=yes
26974 else
26975   echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26977
26978         wx_cv_cc_gcc_atomic_builtins=no
26979 fi
26980
26981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26982       conftest$ac_exeext conftest.$ac_ext
26983
26984 fi
26985
26986     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
26987 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
26988     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
26989       cat >>confdefs.h <<\_ACEOF
26990 #define HAVE_GCC_ATOMIC_BUILTINS 1
26991 _ACEOF
26992
26993     fi
26994   fi
26995
26996
26997 ac_ext=c
26998 ac_cpp='$CPP $CPPFLAGS'
26999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27002
27003
27004
27005 SEARCH_INCLUDE="\
27006     /usr/local/include        \
27007     /usr/local/X11/include    \
27008     /usr/local/include/X11    \
27009     /usr/local/X11R7/include  \
27010     /usr/local/X11R6/include  \
27011     /usr/local/include/X11R7  \
27012     /usr/local/include/X11R6  \
27013                               \
27014     /usr/Motif-2.1/include    \
27015     /usr/Motif-1.2/include    \
27016     /usr/include/Motif1.2     \
27017                               \
27018     /usr/dt/include           \
27019     /usr/openwin/include      \
27020                               \
27021     /usr/include/Xm           \
27022                               \
27023     /usr/X11R7/include        \
27024     /usr/X11R6/include        \
27025     /usr/X11R6.4/include      \
27026                               \
27027     /usr/include/X11R7        \
27028     /usr/include/X11R6        \
27029                               \
27030     /usr/X11/include          \
27031     /usr/include/X11          \
27032                               \
27033     /usr/XFree86/include/X11  \
27034     /usr/pkg/include          \
27035                               \
27036     /usr/local/X1R5/include  \
27037     /usr/local/include/X11R5  \
27038     /usr/X11R5/include        \
27039     /usr/include/X11R5        \
27040                               \
27041     /usr/local/X11R4/include  \
27042     /usr/local/include/X11R4  \
27043     /usr/X11R4/include        \
27044     /usr/include/X11R4        \
27045                               \
27046     /usr/openwin/share/include"
27047
27048 { echo "$as_me:$LINENO: checking for libraries directories" >&5
27049 echo $ECHO_N "checking for libraries directories... $ECHO_C" >&6; }
27050
27051 case "${host}" in
27052     *-*-irix6* )
27053         if test "${wx_cv_std_libpath+set}" = set; then
27054   echo $ECHO_N "(cached) $ECHO_C" >&6
27055 else
27056
27057                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27058                     for e in a so sl dylib dll.a; do
27059                         libc="$d/libc.$e"
27060                         if test -f $libc; then
27061                             save_LIBS="$LIBS"
27062                             LIBS="$libc"
27063                             cat >conftest.$ac_ext <<_ACEOF
27064 int main() { return 0; }
27065 _ACEOF
27066 rm -f conftest.$ac_objext conftest$ac_exeext
27067 if { (ac_try="$ac_link"
27068 case "(($ac_try" in
27069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27070   *) ac_try_echo=$ac_try;;
27071 esac
27072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27073   (eval "$ac_link") 2>conftest.er1
27074   ac_status=$?
27075   grep -v '^ *+' conftest.er1 >conftest.err
27076   rm -f conftest.er1
27077   cat conftest.err >&5
27078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079   (exit $ac_status); } && {
27080          test -z "$ac_c_werror_flag" ||
27081          test ! -s conftest.err
27082        } && test -s conftest$ac_exeext &&
27083        $as_test_x conftest$ac_exeext; then
27084   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27085 else
27086   echo "$as_me: failed program was:" >&5
27087 sed 's/^/| /' conftest.$ac_ext >&5
27088
27089
27090 fi
27091
27092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27093       conftest$ac_exeext conftest.$ac_ext
27094                             LIBS="$save_LIBS"
27095                             if test "x$wx_cv_std_libpath" != "x"; then
27096                                 break 2
27097                             fi
27098                         fi
27099                     done
27100                 done
27101
27102
27103 fi
27104
27105         ;;
27106
27107     *-*-solaris2* )
27108                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27109             wx_cv_std_libpath="lib/64"
27110         fi
27111         ;;
27112
27113     *-*-linux* )
27114                                         if test "$ac_cv_sizeof_void_p" = 8; then
27115             if test -d "/usr/lib/`uname -m`-linux-gnu"; then
27116                 wx_cv_std_libfullpath="/usr/lib/`uname -m`-linux-gnu"
27117             elif test -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27118                 wx_cv_std_libpath="lib64"
27119             fi
27120         else
27121             case "${host}" in
27122                 i*86-*-linux* )
27123                     if test -d '/usr/lib/i386-linux-gnu'; then
27124                         wx_cv_std_libfullpath='/usr/lib/i386-linux-gnu'
27125                     fi
27126             esac
27127         fi
27128
27129                                 if test -n "$wx_cv_std_libfullpath" -a -d "/usr/lib"; then
27130             wx_cv_std_libfullpath="$wx_cv_std_libfullpath /usr/lib"
27131         fi
27132         ;;
27133 esac
27134
27135 if test -z "$wx_cv_std_libpath"; then
27136     wx_cv_std_libpath="lib"
27137 fi
27138
27139 if test -z "$wx_cv_std_libfullpath"; then
27140     wx_cv_std_libfullpath="/usr/$wx_cv_std_libpath"
27141 fi
27142
27143
27144 { echo "$as_me:$LINENO: result: $wx_cv_std_libfullpath" >&5
27145 echo "${ECHO_T}$wx_cv_std_libfullpath" >&6; }
27146
27147 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` $wx_cv_std_libfullpath"
27148
27149 if test "$build" != "$host" -a "$GCC" = yes; then
27150                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27151         cross_root=`dirname $cross_root`
27152         cross_root=`dirname $cross_root`
27153
27154                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27155         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27156         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27157
27158                 if test -z "$PKG_CONFIG_PATH"; then
27159             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27160             export PKG_CONFIG_PATH
27161         fi
27162
27163                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27164
27165 ac_find_includes=
27166 for ac_dir in $SEARCH_INCLUDE /usr/include
27167   do
27168     if test -f "$ac_dir/X11/Intrinsic.h"; then
27169       ac_find_includes=$ac_dir
27170       break
27171     fi
27172   done
27173
27174             x_includes=$ac_find_includes
27175         fi
27176         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27177
27178   ac_find_libraries=
27179   for ac_dir in $SEARCH_LIB
27180   do
27181     for ac_extension in a so sl dylib dll.a; do
27182       if test -f "$ac_dir/libXt.$ac_extension"; then
27183         ac_find_libraries=$ac_dir
27184         break 2
27185       fi
27186     done
27187   done
27188
27189             x_libraries=$ac_find_libraries
27190         fi
27191     fi
27192 fi
27193
27194
27195 cat >confcache <<\_ACEOF
27196 # This file is a shell script that caches the results of configure
27197 # tests run on this system so they can be shared between configure
27198 # scripts and configure runs, see configure's option --config-cache.
27199 # It is not useful on other systems.  If it contains results you don't
27200 # want to keep, you may remove or edit it.
27201 #
27202 # config.status only pays attention to the cache file if you give it
27203 # the --recheck option to rerun configure.
27204 #
27205 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27206 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27207 # following values.
27208
27209 _ACEOF
27210
27211 # The following way of writing the cache mishandles newlines in values,
27212 # but we know of no workaround that is simple, portable, and efficient.
27213 # So, we kill variables containing newlines.
27214 # Ultrix sh set writes to stderr and can't be redirected directly,
27215 # and sets the high bit in the cache file unless we assign to the vars.
27216 (
27217   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27218     eval ac_val=\$$ac_var
27219     case $ac_val in #(
27220     *${as_nl}*)
27221       case $ac_var in #(
27222       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27223 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27224       esac
27225       case $ac_var in #(
27226       _ | IFS | as_nl) ;; #(
27227       *) $as_unset $ac_var ;;
27228       esac ;;
27229     esac
27230   done
27231
27232   (set) 2>&1 |
27233     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27234     *${as_nl}ac_space=\ *)
27235       # `set' does not quote correctly, so add quotes (double-quote
27236       # substitution turns \\\\ into \\, and sed turns \\ into \).
27237       sed -n \
27238         "s/'/'\\\\''/g;
27239           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27240       ;; #(
27241     *)
27242       # `set' quotes correctly as required by POSIX, so do not add quotes.
27243       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27244       ;;
27245     esac |
27246     sort
27247 ) |
27248   sed '
27249      /^ac_cv_env_/b end
27250      t clear
27251      :clear
27252      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27253      t end
27254      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27255      :end' >>confcache
27256 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27257   if test -w "$cache_file"; then
27258     test "x$cache_file" != "x/dev/null" &&
27259       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27260 echo "$as_me: updating cache $cache_file" >&6;}
27261     cat confcache >$cache_file
27262   else
27263     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27264 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27265   fi
27266 fi
27267 rm -f confcache
27268
27269 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27270     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27271 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27272 if test "${wx_cv_lib_glibc21+set}" = set; then
27273   echo $ECHO_N "(cached) $ECHO_C" >&6
27274 else
27275
27276         cat >conftest.$ac_ext <<_ACEOF
27277 /* confdefs.h.  */
27278 _ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h.  */
27282 #include <features.h>
27283 int
27284 main ()
27285 {
27286
27287                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27288                 not glibc 2.1
27289                 #endif
27290
27291   ;
27292   return 0;
27293 }
27294 _ACEOF
27295 rm -f conftest.$ac_objext
27296 if { (ac_try="$ac_compile"
27297 case "(($ac_try" in
27298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299   *) ac_try_echo=$ac_try;;
27300 esac
27301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302   (eval "$ac_compile") 2>conftest.er1
27303   ac_status=$?
27304   grep -v '^ *+' conftest.er1 >conftest.err
27305   rm -f conftest.er1
27306   cat conftest.err >&5
27307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308   (exit $ac_status); } && {
27309          test -z "$ac_c_werror_flag" ||
27310          test ! -s conftest.err
27311        } && test -s conftest.$ac_objext; then
27312
27313                 wx_cv_lib_glibc21=yes
27314
27315 else
27316   echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27318
27319
27320                 wx_cv_lib_glibc21=no
27321
27322
27323 fi
27324
27325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27326
27327 fi
27328 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27329 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27330     if test "$wx_cv_lib_glibc21" = "yes"; then
27331         cat >>confdefs.h <<\_ACEOF
27332 #define wxHAVE_GLIBC2 1
27333 _ACEOF
27334
27335     fi
27336 fi
27337
27338 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27339     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27340         cat >>confdefs.h <<\_ACEOF
27341 #define _GNU_SOURCE 1
27342 _ACEOF
27343
27344     fi
27345 fi
27346
27347 have_cos=0
27348 have_floor=0
27349
27350 for ac_func in cos
27351 do
27352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27356   echo $ECHO_N "(cached) $ECHO_C" >&6
27357 else
27358   cat >conftest.$ac_ext <<_ACEOF
27359 /* confdefs.h.  */
27360 _ACEOF
27361 cat confdefs.h >>conftest.$ac_ext
27362 cat >>conftest.$ac_ext <<_ACEOF
27363 /* end confdefs.h.  */
27364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27366 #define $ac_func innocuous_$ac_func
27367
27368 /* System header to define __stub macros and hopefully few prototypes,
27369     which can conflict with char $ac_func (); below.
27370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27371     <limits.h> exists even on freestanding compilers.  */
27372
27373 #ifdef __STDC__
27374 # include <limits.h>
27375 #else
27376 # include <assert.h>
27377 #endif
27378
27379 #undef $ac_func
27380
27381 /* Override any GCC internal prototype to avoid an error.
27382    Use char because int might match the return type of a GCC
27383    builtin and then its argument prototype would still apply.  */
27384 #ifdef __cplusplus
27385 extern "C"
27386 #endif
27387 char $ac_func ();
27388 /* The GNU C library defines this for functions which it implements
27389     to always fail with ENOSYS.  Some functions are actually named
27390     something starting with __ and the normal name is an alias.  */
27391 #if defined __stub_$ac_func || defined __stub___$ac_func
27392 choke me
27393 #endif
27394
27395 int
27396 main ()
27397 {
27398 return $ac_func ();
27399   ;
27400   return 0;
27401 }
27402 _ACEOF
27403 rm -f conftest.$ac_objext conftest$ac_exeext
27404 if { (ac_try="$ac_link"
27405 case "(($ac_try" in
27406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407   *) ac_try_echo=$ac_try;;
27408 esac
27409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27410   (eval "$ac_link") 2>conftest.er1
27411   ac_status=$?
27412   grep -v '^ *+' conftest.er1 >conftest.err
27413   rm -f conftest.er1
27414   cat conftest.err >&5
27415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416   (exit $ac_status); } && {
27417          test -z "$ac_c_werror_flag" ||
27418          test ! -s conftest.err
27419        } && test -s conftest$ac_exeext &&
27420        $as_test_x conftest$ac_exeext; then
27421   eval "$as_ac_var=yes"
27422 else
27423   echo "$as_me: failed program was:" >&5
27424 sed 's/^/| /' conftest.$ac_ext >&5
27425
27426         eval "$as_ac_var=no"
27427 fi
27428
27429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27430       conftest$ac_exeext conftest.$ac_ext
27431 fi
27432 ac_res=`eval echo '${'$as_ac_var'}'`
27433                { echo "$as_me:$LINENO: result: $ac_res" >&5
27434 echo "${ECHO_T}$ac_res" >&6; }
27435 if test `eval echo '${'$as_ac_var'}'` = yes; then
27436   cat >>confdefs.h <<_ACEOF
27437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27438 _ACEOF
27439  have_cos=1
27440 fi
27441 done
27442
27443
27444 for ac_func in floor
27445 do
27446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27450   echo $ECHO_N "(cached) $ECHO_C" >&6
27451 else
27452   cat >conftest.$ac_ext <<_ACEOF
27453 /* confdefs.h.  */
27454 _ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h.  */
27458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27460 #define $ac_func innocuous_$ac_func
27461
27462 /* System header to define __stub macros and hopefully few prototypes,
27463     which can conflict with char $ac_func (); below.
27464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27465     <limits.h> exists even on freestanding compilers.  */
27466
27467 #ifdef __STDC__
27468 # include <limits.h>
27469 #else
27470 # include <assert.h>
27471 #endif
27472
27473 #undef $ac_func
27474
27475 /* Override any GCC internal prototype to avoid an error.
27476    Use char because int might match the return type of a GCC
27477    builtin and then its argument prototype would still apply.  */
27478 #ifdef __cplusplus
27479 extern "C"
27480 #endif
27481 char $ac_func ();
27482 /* The GNU C library defines this for functions which it implements
27483     to always fail with ENOSYS.  Some functions are actually named
27484     something starting with __ and the normal name is an alias.  */
27485 #if defined __stub_$ac_func || defined __stub___$ac_func
27486 choke me
27487 #endif
27488
27489 int
27490 main ()
27491 {
27492 return $ac_func ();
27493   ;
27494   return 0;
27495 }
27496 _ACEOF
27497 rm -f conftest.$ac_objext conftest$ac_exeext
27498 if { (ac_try="$ac_link"
27499 case "(($ac_try" in
27500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501   *) ac_try_echo=$ac_try;;
27502 esac
27503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504   (eval "$ac_link") 2>conftest.er1
27505   ac_status=$?
27506   grep -v '^ *+' conftest.er1 >conftest.err
27507   rm -f conftest.er1
27508   cat conftest.err >&5
27509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510   (exit $ac_status); } && {
27511          test -z "$ac_c_werror_flag" ||
27512          test ! -s conftest.err
27513        } && test -s conftest$ac_exeext &&
27514        $as_test_x conftest$ac_exeext; then
27515   eval "$as_ac_var=yes"
27516 else
27517   echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27519
27520         eval "$as_ac_var=no"
27521 fi
27522
27523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27524       conftest$ac_exeext conftest.$ac_ext
27525 fi
27526 ac_res=`eval echo '${'$as_ac_var'}'`
27527                { echo "$as_me:$LINENO: result: $ac_res" >&5
27528 echo "${ECHO_T}$ac_res" >&6; }
27529 if test `eval echo '${'$as_ac_var'}'` = yes; then
27530   cat >>confdefs.h <<_ACEOF
27531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27532 _ACEOF
27533  have_floor=1
27534 fi
27535 done
27536
27537 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27538 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27539 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27540     { echo "$as_me:$LINENO: result: yes" >&5
27541 echo "${ECHO_T}yes" >&6; }
27542 else
27543     { echo "$as_me:$LINENO: result: no" >&5
27544 echo "${ECHO_T}no" >&6; }
27545     LIBS="$LIBS -lm"
27546     # use different functions to avoid configure caching
27547     have_sin=0
27548     have_ceil=0
27549
27550 for ac_func in sin
27551 do
27552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27556   echo $ECHO_N "(cached) $ECHO_C" >&6
27557 else
27558   cat >conftest.$ac_ext <<_ACEOF
27559 /* confdefs.h.  */
27560 _ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h.  */
27564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27566 #define $ac_func innocuous_$ac_func
27567
27568 /* System header to define __stub macros and hopefully few prototypes,
27569     which can conflict with char $ac_func (); below.
27570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27571     <limits.h> exists even on freestanding compilers.  */
27572
27573 #ifdef __STDC__
27574 # include <limits.h>
27575 #else
27576 # include <assert.h>
27577 #endif
27578
27579 #undef $ac_func
27580
27581 /* Override any GCC internal prototype to avoid an error.
27582    Use char because int might match the return type of a GCC
27583    builtin and then its argument prototype would still apply.  */
27584 #ifdef __cplusplus
27585 extern "C"
27586 #endif
27587 char $ac_func ();
27588 /* The GNU C library defines this for functions which it implements
27589     to always fail with ENOSYS.  Some functions are actually named
27590     something starting with __ and the normal name is an alias.  */
27591 #if defined __stub_$ac_func || defined __stub___$ac_func
27592 choke me
27593 #endif
27594
27595 int
27596 main ()
27597 {
27598 return $ac_func ();
27599   ;
27600   return 0;
27601 }
27602 _ACEOF
27603 rm -f conftest.$ac_objext conftest$ac_exeext
27604 if { (ac_try="$ac_link"
27605 case "(($ac_try" in
27606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27607   *) ac_try_echo=$ac_try;;
27608 esac
27609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27610   (eval "$ac_link") 2>conftest.er1
27611   ac_status=$?
27612   grep -v '^ *+' conftest.er1 >conftest.err
27613   rm -f conftest.er1
27614   cat conftest.err >&5
27615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616   (exit $ac_status); } && {
27617          test -z "$ac_c_werror_flag" ||
27618          test ! -s conftest.err
27619        } && test -s conftest$ac_exeext &&
27620        $as_test_x conftest$ac_exeext; then
27621   eval "$as_ac_var=yes"
27622 else
27623   echo "$as_me: failed program was:" >&5
27624 sed 's/^/| /' conftest.$ac_ext >&5
27625
27626         eval "$as_ac_var=no"
27627 fi
27628
27629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27630       conftest$ac_exeext conftest.$ac_ext
27631 fi
27632 ac_res=`eval echo '${'$as_ac_var'}'`
27633                { echo "$as_me:$LINENO: result: $ac_res" >&5
27634 echo "${ECHO_T}$ac_res" >&6; }
27635 if test `eval echo '${'$as_ac_var'}'` = yes; then
27636   cat >>confdefs.h <<_ACEOF
27637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27638 _ACEOF
27639  have_sin=1
27640 fi
27641 done
27642
27643
27644 for ac_func in ceil
27645 do
27646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27650   echo $ECHO_N "(cached) $ECHO_C" >&6
27651 else
27652   cat >conftest.$ac_ext <<_ACEOF
27653 /* confdefs.h.  */
27654 _ACEOF
27655 cat confdefs.h >>conftest.$ac_ext
27656 cat >>conftest.$ac_ext <<_ACEOF
27657 /* end confdefs.h.  */
27658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27660 #define $ac_func innocuous_$ac_func
27661
27662 /* System header to define __stub macros and hopefully few prototypes,
27663     which can conflict with char $ac_func (); below.
27664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27665     <limits.h> exists even on freestanding compilers.  */
27666
27667 #ifdef __STDC__
27668 # include <limits.h>
27669 #else
27670 # include <assert.h>
27671 #endif
27672
27673 #undef $ac_func
27674
27675 /* Override any GCC internal prototype to avoid an error.
27676    Use char because int might match the return type of a GCC
27677    builtin and then its argument prototype would still apply.  */
27678 #ifdef __cplusplus
27679 extern "C"
27680 #endif
27681 char $ac_func ();
27682 /* The GNU C library defines this for functions which it implements
27683     to always fail with ENOSYS.  Some functions are actually named
27684     something starting with __ and the normal name is an alias.  */
27685 #if defined __stub_$ac_func || defined __stub___$ac_func
27686 choke me
27687 #endif
27688
27689 int
27690 main ()
27691 {
27692 return $ac_func ();
27693   ;
27694   return 0;
27695 }
27696 _ACEOF
27697 rm -f conftest.$ac_objext conftest$ac_exeext
27698 if { (ac_try="$ac_link"
27699 case "(($ac_try" in
27700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27701   *) ac_try_echo=$ac_try;;
27702 esac
27703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27704   (eval "$ac_link") 2>conftest.er1
27705   ac_status=$?
27706   grep -v '^ *+' conftest.er1 >conftest.err
27707   rm -f conftest.er1
27708   cat conftest.err >&5
27709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710   (exit $ac_status); } && {
27711          test -z "$ac_c_werror_flag" ||
27712          test ! -s conftest.err
27713        } && test -s conftest$ac_exeext &&
27714        $as_test_x conftest$ac_exeext; then
27715   eval "$as_ac_var=yes"
27716 else
27717   echo "$as_me: failed program was:" >&5
27718 sed 's/^/| /' conftest.$ac_ext >&5
27719
27720         eval "$as_ac_var=no"
27721 fi
27722
27723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27724       conftest$ac_exeext conftest.$ac_ext
27725 fi
27726 ac_res=`eval echo '${'$as_ac_var'}'`
27727                { echo "$as_me:$LINENO: result: $ac_res" >&5
27728 echo "${ECHO_T}$ac_res" >&6; }
27729 if test `eval echo '${'$as_ac_var'}'` = yes; then
27730   cat >>confdefs.h <<_ACEOF
27731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27732 _ACEOF
27733  have_ceil=1
27734 fi
27735 done
27736
27737     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27738 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27739     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27740         { echo "$as_me:$LINENO: result: yes" >&5
27741 echo "${ECHO_T}yes" >&6; }
27742     else
27743         { echo "$as_me:$LINENO: result: no" >&5
27744 echo "${ECHO_T}no" >&6; }
27745         # not sure we should warn the user, crash, etc.
27746     fi
27747 fi
27748
27749 ac_ext=cpp
27750 ac_cpp='$CXXCPP $CPPFLAGS'
27751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27754
27755 if test "wxUSE_UNICODE" = "yes"; then
27756
27757   for wx_func in wcstoull
27758   do
27759     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27760 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27761 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27762   echo $ECHO_N "(cached) $ECHO_C" >&6
27763 else
27764
27765         cat >conftest.$ac_ext <<_ACEOF
27766
27767             /* confdefs.h.  */
27768 _ACEOF
27769 cat confdefs.h >>conftest.$ac_ext
27770 cat >>conftest.$ac_ext <<_ACEOF
27771 /* end confdefs.h.  */
27772
27773
27774                 $ac_includes_default
27775
27776 int
27777 main ()
27778 {
27779
27780                 #ifndef $wx_func
27781                   &$wx_func;
27782                 #endif
27783
27784
27785   ;
27786   return 0;
27787 }
27788
27789 _ACEOF
27790 rm -f conftest.$ac_objext conftest$ac_exeext
27791 if { (ac_try="$ac_link"
27792 case "(($ac_try" in
27793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794   *) ac_try_echo=$ac_try;;
27795 esac
27796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27797   (eval "$ac_link") 2>conftest.er1
27798   ac_status=$?
27799   grep -v '^ *+' conftest.er1 >conftest.err
27800   rm -f conftest.er1
27801   cat conftest.err >&5
27802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803   (exit $ac_status); } && {
27804          test -z "$ac_cxx_werror_flag" ||
27805          test ! -s conftest.err
27806        } && test -s conftest$ac_exeext &&
27807        $as_test_x conftest$ac_exeext; then
27808   eval wx_cv_func_$wx_func=yes
27809 else
27810   echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27812
27813         eval wx_cv_func_$wx_func=no
27814 fi
27815
27816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27817       conftest$ac_exeext conftest.$ac_ext
27818
27819 fi
27820 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27821                { echo "$as_me:$LINENO: result: $ac_res" >&5
27822 echo "${ECHO_T}$ac_res" >&6; }
27823
27824     if eval test \$wx_cv_func_$wx_func = yes
27825     then
27826       cat >>confdefs.h <<_ACEOF
27827 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27828 _ACEOF
27829
27830
27831     else
27832       :
27833
27834     fi
27835   done
27836
27837 else
27838
27839   for wx_func in strtoull
27840   do
27841     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27842 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27843 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27844   echo $ECHO_N "(cached) $ECHO_C" >&6
27845 else
27846
27847         cat >conftest.$ac_ext <<_ACEOF
27848
27849             /* confdefs.h.  */
27850 _ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h.  */
27854
27855
27856                 $ac_includes_default
27857
27858 int
27859 main ()
27860 {
27861
27862                 #ifndef $wx_func
27863                   &$wx_func;
27864                 #endif
27865
27866
27867   ;
27868   return 0;
27869 }
27870
27871 _ACEOF
27872 rm -f conftest.$ac_objext conftest$ac_exeext
27873 if { (ac_try="$ac_link"
27874 case "(($ac_try" in
27875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27876   *) ac_try_echo=$ac_try;;
27877 esac
27878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27879   (eval "$ac_link") 2>conftest.er1
27880   ac_status=$?
27881   grep -v '^ *+' conftest.er1 >conftest.err
27882   rm -f conftest.er1
27883   cat conftest.err >&5
27884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885   (exit $ac_status); } && {
27886          test -z "$ac_cxx_werror_flag" ||
27887          test ! -s conftest.err
27888        } && test -s conftest$ac_exeext &&
27889        $as_test_x conftest$ac_exeext; then
27890   eval wx_cv_func_$wx_func=yes
27891 else
27892   echo "$as_me: failed program was:" >&5
27893 sed 's/^/| /' conftest.$ac_ext >&5
27894
27895         eval wx_cv_func_$wx_func=no
27896 fi
27897
27898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27899       conftest$ac_exeext conftest.$ac_ext
27900
27901 fi
27902 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27903                { echo "$as_me:$LINENO: result: $ac_res" >&5
27904 echo "${ECHO_T}$ac_res" >&6; }
27905
27906     if eval test \$wx_cv_func_$wx_func = yes
27907     then
27908       cat >>confdefs.h <<_ACEOF
27909 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27910 _ACEOF
27911
27912
27913     else
27914       :
27915
27916     fi
27917   done
27918
27919 fi
27920 ac_ext=c
27921 ac_cpp='$CPP $CPPFLAGS'
27922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27925
27926
27927
27928
27929 if test "$wxUSE_REGEX" != "no"; then
27930     cat >>confdefs.h <<\_ACEOF
27931 #define wxUSE_REGEX 1
27932 _ACEOF
27933
27934
27935     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
27936         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
27937 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
27938         wxUSE_REGEX=builtin
27939     fi
27940
27941     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
27942                         { echo "$as_me:$LINENO: checking for regex.h" >&5
27943 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
27944 if test "${ac_cv_header_regex_h+set}" = set; then
27945   echo $ECHO_N "(cached) $ECHO_C" >&6
27946 else
27947   cat >conftest.$ac_ext <<_ACEOF
27948 /* confdefs.h.  */
27949 _ACEOF
27950 cat confdefs.h >>conftest.$ac_ext
27951 cat >>conftest.$ac_ext <<_ACEOF
27952 /* end confdefs.h.  */
27953
27954
27955 #include <regex.h>
27956 _ACEOF
27957 rm -f conftest.$ac_objext
27958 if { (ac_try="$ac_compile"
27959 case "(($ac_try" in
27960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961   *) ac_try_echo=$ac_try;;
27962 esac
27963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964   (eval "$ac_compile") 2>conftest.er1
27965   ac_status=$?
27966   grep -v '^ *+' conftest.er1 >conftest.err
27967   rm -f conftest.er1
27968   cat conftest.err >&5
27969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970   (exit $ac_status); } && {
27971          test -z "$ac_c_werror_flag" ||
27972          test ! -s conftest.err
27973        } && test -s conftest.$ac_objext; then
27974   ac_cv_header_regex_h=yes
27975 else
27976   echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27978
27979         ac_cv_header_regex_h=no
27980 fi
27981
27982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27983 fi
27984 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
27985 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
27986 if test $ac_cv_header_regex_h = yes; then
27987
27988
27989 for ac_func in regcomp re_search
27990 do
27991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27995   echo $ECHO_N "(cached) $ECHO_C" >&6
27996 else
27997   cat >conftest.$ac_ext <<_ACEOF
27998 /* confdefs.h.  */
27999 _ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h.  */
28003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28005 #define $ac_func innocuous_$ac_func
28006
28007 /* System header to define __stub macros and hopefully few prototypes,
28008     which can conflict with char $ac_func (); below.
28009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28010     <limits.h> exists even on freestanding compilers.  */
28011
28012 #ifdef __STDC__
28013 # include <limits.h>
28014 #else
28015 # include <assert.h>
28016 #endif
28017
28018 #undef $ac_func
28019
28020 /* Override any GCC internal prototype to avoid an error.
28021    Use char because int might match the return type of a GCC
28022    builtin and then its argument prototype would still apply.  */
28023 #ifdef __cplusplus
28024 extern "C"
28025 #endif
28026 char $ac_func ();
28027 /* The GNU C library defines this for functions which it implements
28028     to always fail with ENOSYS.  Some functions are actually named
28029     something starting with __ and the normal name is an alias.  */
28030 #if defined __stub_$ac_func || defined __stub___$ac_func
28031 choke me
28032 #endif
28033
28034 int
28035 main ()
28036 {
28037 return $ac_func ();
28038   ;
28039   return 0;
28040 }
28041 _ACEOF
28042 rm -f conftest.$ac_objext conftest$ac_exeext
28043 if { (ac_try="$ac_link"
28044 case "(($ac_try" in
28045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046   *) ac_try_echo=$ac_try;;
28047 esac
28048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049   (eval "$ac_link") 2>conftest.er1
28050   ac_status=$?
28051   grep -v '^ *+' conftest.er1 >conftest.err
28052   rm -f conftest.er1
28053   cat conftest.err >&5
28054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055   (exit $ac_status); } && {
28056          test -z "$ac_c_werror_flag" ||
28057          test ! -s conftest.err
28058        } && test -s conftest$ac_exeext &&
28059        $as_test_x conftest$ac_exeext; then
28060   eval "$as_ac_var=yes"
28061 else
28062   echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.$ac_ext >&5
28064
28065         eval "$as_ac_var=no"
28066 fi
28067
28068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28069       conftest$ac_exeext conftest.$ac_ext
28070 fi
28071 ac_res=`eval echo '${'$as_ac_var'}'`
28072                { echo "$as_me:$LINENO: result: $ac_res" >&5
28073 echo "${ECHO_T}$ac_res" >&6; }
28074 if test `eval echo '${'$as_ac_var'}'` = yes; then
28075   cat >>confdefs.h <<_ACEOF
28076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28077 _ACEOF
28078
28079 fi
28080 done
28081
28082 fi
28083
28084
28085
28086         if test "x$ac_cv_func_regcomp" != "xyes"; then
28087             if test "$wxUSE_REGEX" = "sys" ; then
28088                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28089 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28090    { (exit 1); exit 1; }; }
28091             else
28092                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28093 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28094                 wxUSE_REGEX=builtin
28095             fi
28096         else
28097                         wxUSE_REGEX=sys
28098                         cat >>confdefs.h <<\_ACEOF
28099 #define WX_NO_REGEX_ADVANCED 1
28100 _ACEOF
28101
28102         fi
28103     fi
28104 fi
28105
28106
28107 ZLIB_LINK=
28108 if test "$wxUSE_ZLIB" != "no" ; then
28109     cat >>confdefs.h <<\_ACEOF
28110 #define wxUSE_ZLIB 1
28111 _ACEOF
28112
28113
28114     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28115                                                 if test "$USE_DARWIN" = 1; then
28116             system_zlib_h_ok="yes"
28117         else
28118                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28119 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28120 if test "${ac_cv_header_zlib_h+set}" = set; then
28121   echo $ECHO_N "(cached) $ECHO_C" >&6
28122 else
28123   if test "$cross_compiling" = yes; then
28124                       unset ac_cv_header_zlib_h
28125
28126 else
28127   cat >conftest.$ac_ext <<_ACEOF
28128 /* confdefs.h.  */
28129 _ACEOF
28130 cat confdefs.h >>conftest.$ac_ext
28131 cat >>conftest.$ac_ext <<_ACEOF
28132 /* end confdefs.h.  */
28133
28134                         #include <zlib.h>
28135                         #include <stdio.h>
28136
28137                         int main()
28138                         {
28139                             FILE *f=fopen("conftestval", "w");
28140                             if (!f) exit(1);
28141                             fprintf(f, "%s",
28142                                     ZLIB_VERSION[0] == '1' &&
28143                                     (ZLIB_VERSION[2] > '1' ||
28144                                     (ZLIB_VERSION[2] == '1' &&
28145                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28146                             exit(0);
28147                         }
28148
28149 _ACEOF
28150 rm -f conftest$ac_exeext
28151 if { (ac_try="$ac_link"
28152 case "(($ac_try" in
28153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28154   *) ac_try_echo=$ac_try;;
28155 esac
28156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28157   (eval "$ac_link") 2>&5
28158   ac_status=$?
28159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28161   { (case "(($ac_try" in
28162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28163   *) ac_try_echo=$ac_try;;
28164 esac
28165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28166   (eval "$ac_try") 2>&5
28167   ac_status=$?
28168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); }; }; then
28170   ac_cv_header_zlib_h=`cat conftestval`
28171 else
28172   echo "$as_me: program exited with status $ac_status" >&5
28173 echo "$as_me: failed program was:" >&5
28174 sed 's/^/| /' conftest.$ac_ext >&5
28175
28176 ( exit $ac_status )
28177 ac_cv_header_zlib_h=no
28178 fi
28179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28180 fi
28181
28182
28183
28184 fi
28185 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28186 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28187                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28188 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28189 if test "${ac_cv_header_zlib_h+set}" = set; then
28190   echo $ECHO_N "(cached) $ECHO_C" >&6
28191 else
28192   cat >conftest.$ac_ext <<_ACEOF
28193 /* confdefs.h.  */
28194 _ACEOF
28195 cat confdefs.h >>conftest.$ac_ext
28196 cat >>conftest.$ac_ext <<_ACEOF
28197 /* end confdefs.h.  */
28198
28199
28200 #include <zlib.h>
28201 _ACEOF
28202 rm -f conftest.$ac_objext
28203 if { (ac_try="$ac_compile"
28204 case "(($ac_try" in
28205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28206   *) ac_try_echo=$ac_try;;
28207 esac
28208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28209   (eval "$ac_compile") 2>conftest.er1
28210   ac_status=$?
28211   grep -v '^ *+' conftest.er1 >conftest.err
28212   rm -f conftest.er1
28213   cat conftest.err >&5
28214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215   (exit $ac_status); } && {
28216          test -z "$ac_c_werror_flag" ||
28217          test ! -s conftest.err
28218        } && test -s conftest.$ac_objext; then
28219   ac_cv_header_zlib_h=yes
28220 else
28221   echo "$as_me: failed program was:" >&5
28222 sed 's/^/| /' conftest.$ac_ext >&5
28223
28224         ac_cv_header_zlib_h=no
28225 fi
28226
28227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28228 fi
28229 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28230 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28231
28232
28233
28234             system_zlib_h_ok=$ac_cv_header_zlib_h
28235         fi
28236
28237         if test "$system_zlib_h_ok" = "yes"; then
28238             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28239 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28240 if test "${ac_cv_lib_z_deflate+set}" = set; then
28241   echo $ECHO_N "(cached) $ECHO_C" >&6
28242 else
28243   ac_check_lib_save_LIBS=$LIBS
28244 LIBS="-lz  $LIBS"
28245 cat >conftest.$ac_ext <<_ACEOF
28246 /* confdefs.h.  */
28247 _ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h.  */
28251
28252 /* Override any GCC internal prototype to avoid an error.
28253    Use char because int might match the return type of a GCC
28254    builtin and then its argument prototype would still apply.  */
28255 #ifdef __cplusplus
28256 extern "C"
28257 #endif
28258 char deflate ();
28259 int
28260 main ()
28261 {
28262 return deflate ();
28263   ;
28264   return 0;
28265 }
28266 _ACEOF
28267 rm -f conftest.$ac_objext conftest$ac_exeext
28268 if { (ac_try="$ac_link"
28269 case "(($ac_try" in
28270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28271   *) ac_try_echo=$ac_try;;
28272 esac
28273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28274   (eval "$ac_link") 2>conftest.er1
28275   ac_status=$?
28276   grep -v '^ *+' conftest.er1 >conftest.err
28277   rm -f conftest.er1
28278   cat conftest.err >&5
28279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280   (exit $ac_status); } && {
28281          test -z "$ac_c_werror_flag" ||
28282          test ! -s conftest.err
28283        } && test -s conftest$ac_exeext &&
28284        $as_test_x conftest$ac_exeext; then
28285   ac_cv_lib_z_deflate=yes
28286 else
28287   echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28289
28290         ac_cv_lib_z_deflate=no
28291 fi
28292
28293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28294       conftest$ac_exeext conftest.$ac_ext
28295 LIBS=$ac_check_lib_save_LIBS
28296 fi
28297 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28298 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28299 if test $ac_cv_lib_z_deflate = yes; then
28300   ZLIB_LINK=" -lz"
28301 fi
28302
28303         fi
28304
28305         if test "x$ZLIB_LINK" = "x" ; then
28306             if test "$wxUSE_ZLIB" = "sys" ; then
28307                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28308 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28309    { (exit 1); exit 1; }; }
28310             else
28311                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28312 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28313                 wxUSE_ZLIB=builtin
28314             fi
28315         else
28316                         wxUSE_ZLIB=sys
28317         fi
28318     fi
28319 fi
28320
28321
28322 PNG_LINK=
28323 if test "$wxUSE_LIBPNG" != "no" ; then
28324     cat >>confdefs.h <<\_ACEOF
28325 #define wxUSE_LIBPNG 1
28326 _ACEOF
28327
28328
28329     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28330         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28331 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28332         wxUSE_LIBPNG=sys
28333     fi
28334
28335                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28336         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28337 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28338         wxUSE_LIBPNG=builtin
28339     fi
28340
28341     if test "$wxUSE_MGL" != 1 ; then
28342                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28343                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28344 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28345 if test "${ac_cv_header_png_h+set}" = set; then
28346   echo $ECHO_N "(cached) $ECHO_C" >&6
28347 else
28348   if test "$cross_compiling" = yes; then
28349                       unset ac_cv_header_png_h
28350
28351 else
28352   cat >conftest.$ac_ext <<_ACEOF
28353 /* confdefs.h.  */
28354 _ACEOF
28355 cat confdefs.h >>conftest.$ac_ext
28356 cat >>conftest.$ac_ext <<_ACEOF
28357 /* end confdefs.h.  */
28358
28359                         #include <png.h>
28360                         #include <stdio.h>
28361
28362                         int main()
28363                         {
28364                             FILE *f=fopen("conftestval", "w");
28365                             if (!f) exit(1);
28366                             fprintf(f, "%s",
28367                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28368                             exit(0);
28369                         }
28370
28371 _ACEOF
28372 rm -f conftest$ac_exeext
28373 if { (ac_try="$ac_link"
28374 case "(($ac_try" in
28375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28376   *) ac_try_echo=$ac_try;;
28377 esac
28378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28379   (eval "$ac_link") 2>&5
28380   ac_status=$?
28381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28383   { (case "(($ac_try" in
28384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385   *) ac_try_echo=$ac_try;;
28386 esac
28387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388   (eval "$ac_try") 2>&5
28389   ac_status=$?
28390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391   (exit $ac_status); }; }; then
28392   ac_cv_header_png_h=`cat conftestval`
28393 else
28394   echo "$as_me: program exited with status $ac_status" >&5
28395 echo "$as_me: failed program was:" >&5
28396 sed 's/^/| /' conftest.$ac_ext >&5
28397
28398 ( exit $ac_status )
28399 ac_cv_header_png_h=no
28400 fi
28401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28402 fi
28403
28404
28405
28406 fi
28407 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28408 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28409             { echo "$as_me:$LINENO: checking for png.h" >&5
28410 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28411 if test "${ac_cv_header_png_h+set}" = set; then
28412   echo $ECHO_N "(cached) $ECHO_C" >&6
28413 else
28414   cat >conftest.$ac_ext <<_ACEOF
28415 /* confdefs.h.  */
28416 _ACEOF
28417 cat confdefs.h >>conftest.$ac_ext
28418 cat >>conftest.$ac_ext <<_ACEOF
28419 /* end confdefs.h.  */
28420
28421
28422 #include <png.h>
28423 _ACEOF
28424 rm -f conftest.$ac_objext
28425 if { (ac_try="$ac_compile"
28426 case "(($ac_try" in
28427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28428   *) ac_try_echo=$ac_try;;
28429 esac
28430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28431   (eval "$ac_compile") 2>conftest.er1
28432   ac_status=$?
28433   grep -v '^ *+' conftest.er1 >conftest.err
28434   rm -f conftest.er1
28435   cat conftest.err >&5
28436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437   (exit $ac_status); } && {
28438          test -z "$ac_c_werror_flag" ||
28439          test ! -s conftest.err
28440        } && test -s conftest.$ac_objext; then
28441   ac_cv_header_png_h=yes
28442 else
28443   echo "$as_me: failed program was:" >&5
28444 sed 's/^/| /' conftest.$ac_ext >&5
28445
28446         ac_cv_header_png_h=no
28447 fi
28448
28449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28450 fi
28451 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28452 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28453
28454
28455
28456             if test "$ac_cv_header_png_h" = "yes"; then
28457                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
28458 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
28459 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
28460   echo $ECHO_N "(cached) $ECHO_C" >&6
28461 else
28462   ac_check_lib_save_LIBS=$LIBS
28463 LIBS="-lpng -lz -lm $LIBS"
28464 cat >conftest.$ac_ext <<_ACEOF
28465 /* confdefs.h.  */
28466 _ACEOF
28467 cat confdefs.h >>conftest.$ac_ext
28468 cat >>conftest.$ac_ext <<_ACEOF
28469 /* end confdefs.h.  */
28470
28471 /* Override any GCC internal prototype to avoid an error.
28472    Use char because int might match the return type of a GCC
28473    builtin and then its argument prototype would still apply.  */
28474 #ifdef __cplusplus
28475 extern "C"
28476 #endif
28477 char png_sig_cmp ();
28478 int
28479 main ()
28480 {
28481 return png_sig_cmp ();
28482   ;
28483   return 0;
28484 }
28485 _ACEOF
28486 rm -f conftest.$ac_objext conftest$ac_exeext
28487 if { (ac_try="$ac_link"
28488 case "(($ac_try" in
28489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28490   *) ac_try_echo=$ac_try;;
28491 esac
28492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28493   (eval "$ac_link") 2>conftest.er1
28494   ac_status=$?
28495   grep -v '^ *+' conftest.er1 >conftest.err
28496   rm -f conftest.er1
28497   cat conftest.err >&5
28498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499   (exit $ac_status); } && {
28500          test -z "$ac_c_werror_flag" ||
28501          test ! -s conftest.err
28502        } && test -s conftest$ac_exeext &&
28503        $as_test_x conftest$ac_exeext; then
28504   ac_cv_lib_png_png_sig_cmp=yes
28505 else
28506   echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28508
28509         ac_cv_lib_png_png_sig_cmp=no
28510 fi
28511
28512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28513       conftest$ac_exeext conftest.$ac_ext
28514 LIBS=$ac_check_lib_save_LIBS
28515 fi
28516 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
28517 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
28518 if test $ac_cv_lib_png_png_sig_cmp = yes; then
28519   PNG_LINK=" -lpng -lz"
28520 fi
28521
28522             fi
28523
28524             if test "x$PNG_LINK" = "x" ; then
28525                 if test "$wxUSE_LIBPNG" = "sys" ; then
28526                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28527 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28528    { (exit 1); exit 1; }; }
28529                 else
28530                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28531 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28532                     wxUSE_LIBPNG=builtin
28533                 fi
28534             else
28535                                 wxUSE_LIBPNG=sys
28536             fi
28537         fi
28538     fi
28539 fi
28540
28541
28542 JPEG_LINK=
28543 if test "$wxUSE_LIBJPEG" != "no" ; then
28544     cat >>confdefs.h <<\_ACEOF
28545 #define wxUSE_LIBJPEG 1
28546 _ACEOF
28547
28548
28549     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28550         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28551 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28552         wxUSE_LIBJPEG=sys
28553     fi
28554
28555     if test "$wxUSE_MGL" != 1 ; then
28556                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28557                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28558 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28559             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28560   echo $ECHO_N "(cached) $ECHO_C" >&6
28561 else
28562   cat >conftest.$ac_ext <<_ACEOF
28563 /* confdefs.h.  */
28564 _ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h.  */
28568
28569                         #undef HAVE_STDLIB_H
28570                         #include <stdio.h>
28571                         #include <jpeglib.h>
28572
28573 int
28574 main ()
28575 {
28576
28577
28578   ;
28579   return 0;
28580 }
28581 _ACEOF
28582 rm -f conftest.$ac_objext
28583 if { (ac_try="$ac_compile"
28584 case "(($ac_try" in
28585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586   *) ac_try_echo=$ac_try;;
28587 esac
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589   (eval "$ac_compile") 2>conftest.er1
28590   ac_status=$?
28591   grep -v '^ *+' conftest.er1 >conftest.err
28592   rm -f conftest.er1
28593   cat conftest.err >&5
28594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595   (exit $ac_status); } && {
28596          test -z "$ac_c_werror_flag" ||
28597          test ! -s conftest.err
28598        } && test -s conftest.$ac_objext; then
28599   ac_cv_header_jpeglib_h=yes
28600 else
28601   echo "$as_me: failed program was:" >&5
28602 sed 's/^/| /' conftest.$ac_ext >&5
28603
28604         ac_cv_header_jpeglib_h=no
28605
28606 fi
28607
28608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28609
28610 fi
28611
28612             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28613 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28614
28615             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28616                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28617 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28618 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28619   echo $ECHO_N "(cached) $ECHO_C" >&6
28620 else
28621   ac_check_lib_save_LIBS=$LIBS
28622 LIBS="-ljpeg  $LIBS"
28623 cat >conftest.$ac_ext <<_ACEOF
28624 /* confdefs.h.  */
28625 _ACEOF
28626 cat confdefs.h >>conftest.$ac_ext
28627 cat >>conftest.$ac_ext <<_ACEOF
28628 /* end confdefs.h.  */
28629
28630 /* Override any GCC internal prototype to avoid an error.
28631    Use char because int might match the return type of a GCC
28632    builtin and then its argument prototype would still apply.  */
28633 #ifdef __cplusplus
28634 extern "C"
28635 #endif
28636 char jpeg_read_header ();
28637 int
28638 main ()
28639 {
28640 return jpeg_read_header ();
28641   ;
28642   return 0;
28643 }
28644 _ACEOF
28645 rm -f conftest.$ac_objext conftest$ac_exeext
28646 if { (ac_try="$ac_link"
28647 case "(($ac_try" in
28648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28649   *) ac_try_echo=$ac_try;;
28650 esac
28651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28652   (eval "$ac_link") 2>conftest.er1
28653   ac_status=$?
28654   grep -v '^ *+' conftest.er1 >conftest.err
28655   rm -f conftest.er1
28656   cat conftest.err >&5
28657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658   (exit $ac_status); } && {
28659          test -z "$ac_c_werror_flag" ||
28660          test ! -s conftest.err
28661        } && test -s conftest$ac_exeext &&
28662        $as_test_x conftest$ac_exeext; then
28663   ac_cv_lib_jpeg_jpeg_read_header=yes
28664 else
28665   echo "$as_me: failed program was:" >&5
28666 sed 's/^/| /' conftest.$ac_ext >&5
28667
28668         ac_cv_lib_jpeg_jpeg_read_header=no
28669 fi
28670
28671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28672       conftest$ac_exeext conftest.$ac_ext
28673 LIBS=$ac_check_lib_save_LIBS
28674 fi
28675 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28676 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28677 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28678   JPEG_LINK=" -ljpeg"
28679 fi
28680
28681             fi
28682
28683             if test "x$JPEG_LINK" = "x" ; then
28684                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28685                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28686 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28687    { (exit 1); exit 1; }; }
28688                 else
28689                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28690 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28691                     wxUSE_LIBJPEG=builtin
28692                 fi
28693             else
28694                                 wxUSE_LIBJPEG=sys
28695
28696                 if test "$wxUSE_MSW" = 1; then
28697                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28698 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28699 if test "${ac_cv_type_boolean+set}" = set; then
28700   echo $ECHO_N "(cached) $ECHO_C" >&6
28701 else
28702   cat >conftest.$ac_ext <<_ACEOF
28703 /* confdefs.h.  */
28704 _ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h.  */
28708 #include <windows.h>
28709
28710 typedef boolean ac__type_new_;
28711 int
28712 main ()
28713 {
28714 if ((ac__type_new_ *) 0)
28715   return 0;
28716 if (sizeof (ac__type_new_))
28717   return 0;
28718   ;
28719   return 0;
28720 }
28721 _ACEOF
28722 rm -f conftest.$ac_objext
28723 if { (ac_try="$ac_compile"
28724 case "(($ac_try" in
28725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28726   *) ac_try_echo=$ac_try;;
28727 esac
28728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729   (eval "$ac_compile") 2>conftest.er1
28730   ac_status=$?
28731   grep -v '^ *+' conftest.er1 >conftest.err
28732   rm -f conftest.er1
28733   cat conftest.err >&5
28734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735   (exit $ac_status); } && {
28736          test -z "$ac_c_werror_flag" ||
28737          test ! -s conftest.err
28738        } && test -s conftest.$ac_objext; then
28739   ac_cv_type_boolean=yes
28740 else
28741   echo "$as_me: failed program was:" >&5
28742 sed 's/^/| /' conftest.$ac_ext >&5
28743
28744         ac_cv_type_boolean=no
28745 fi
28746
28747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28748 fi
28749 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28750 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28751 if test $ac_cv_type_boolean = yes; then
28752
28753 cat >>confdefs.h <<_ACEOF
28754 #define HAVE_BOOLEAN 1
28755 _ACEOF
28756
28757
28758                             { echo "$as_me:$LINENO: checking for boolean" >&5
28759 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28760 if test "${ac_cv_type_boolean+set}" = set; then
28761   echo $ECHO_N "(cached) $ECHO_C" >&6
28762 else
28763   cat >conftest.$ac_ext <<_ACEOF
28764 /* confdefs.h.  */
28765 _ACEOF
28766 cat confdefs.h >>conftest.$ac_ext
28767 cat >>conftest.$ac_ext <<_ACEOF
28768 /* end confdefs.h.  */
28769
28770                                     #undef HAVE_BOOLEAN
28771                                     #include <stdio.h>
28772                                     #include <jpeglib.h>
28773
28774
28775 typedef boolean ac__type_new_;
28776 int
28777 main ()
28778 {
28779 if ((ac__type_new_ *) 0)
28780   return 0;
28781 if (sizeof (ac__type_new_))
28782   return 0;
28783   ;
28784   return 0;
28785 }
28786 _ACEOF
28787 rm -f conftest.$ac_objext
28788 if { (ac_try="$ac_compile"
28789 case "(($ac_try" in
28790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28791   *) ac_try_echo=$ac_try;;
28792 esac
28793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28794   (eval "$ac_compile") 2>conftest.er1
28795   ac_status=$?
28796   grep -v '^ *+' conftest.er1 >conftest.err
28797   rm -f conftest.er1
28798   cat conftest.err >&5
28799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800   (exit $ac_status); } && {
28801          test -z "$ac_c_werror_flag" ||
28802          test ! -s conftest.err
28803        } && test -s conftest.$ac_objext; then
28804   ac_cv_type_boolean=yes
28805 else
28806   echo "$as_me: failed program was:" >&5
28807 sed 's/^/| /' conftest.$ac_ext >&5
28808
28809         ac_cv_type_boolean=no
28810 fi
28811
28812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28813 fi
28814 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28815 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28816
28817 # The cast to long int works around a bug in the HP C Compiler
28818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28820 # This bug is HP SR number 8606223364.
28821 { echo "$as_me:$LINENO: checking size of boolean" >&5
28822 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28823 if test "${ac_cv_sizeof_boolean+set}" = set; then
28824   echo $ECHO_N "(cached) $ECHO_C" >&6
28825 else
28826   if test "$cross_compiling" = yes; then
28827   # Depending upon the size, compute the lo and hi bounds.
28828 cat >conftest.$ac_ext <<_ACEOF
28829 /* confdefs.h.  */
28830 _ACEOF
28831 cat confdefs.h >>conftest.$ac_ext
28832 cat >>conftest.$ac_ext <<_ACEOF
28833 /* end confdefs.h.  */
28834
28835                                     #undef HAVE_BOOLEAN
28836                                     #include <stdio.h>
28837                                     #include <jpeglib.h>
28838
28839
28840    typedef boolean ac__type_sizeof_;
28841 int
28842 main ()
28843 {
28844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28845 test_array [0] = 0
28846
28847   ;
28848   return 0;
28849 }
28850 _ACEOF
28851 rm -f conftest.$ac_objext
28852 if { (ac_try="$ac_compile"
28853 case "(($ac_try" in
28854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28855   *) ac_try_echo=$ac_try;;
28856 esac
28857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28858   (eval "$ac_compile") 2>conftest.er1
28859   ac_status=$?
28860   grep -v '^ *+' conftest.er1 >conftest.err
28861   rm -f conftest.er1
28862   cat conftest.err >&5
28863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864   (exit $ac_status); } && {
28865          test -z "$ac_c_werror_flag" ||
28866          test ! -s conftest.err
28867        } && test -s conftest.$ac_objext; then
28868   ac_lo=0 ac_mid=0
28869   while :; do
28870     cat >conftest.$ac_ext <<_ACEOF
28871 /* confdefs.h.  */
28872 _ACEOF
28873 cat confdefs.h >>conftest.$ac_ext
28874 cat >>conftest.$ac_ext <<_ACEOF
28875 /* end confdefs.h.  */
28876
28877                                     #undef HAVE_BOOLEAN
28878                                     #include <stdio.h>
28879                                     #include <jpeglib.h>
28880
28881
28882    typedef boolean ac__type_sizeof_;
28883 int
28884 main ()
28885 {
28886 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28887 test_array [0] = 0
28888
28889   ;
28890   return 0;
28891 }
28892 _ACEOF
28893 rm -f conftest.$ac_objext
28894 if { (ac_try="$ac_compile"
28895 case "(($ac_try" in
28896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897   *) ac_try_echo=$ac_try;;
28898 esac
28899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900   (eval "$ac_compile") 2>conftest.er1
28901   ac_status=$?
28902   grep -v '^ *+' conftest.er1 >conftest.err
28903   rm -f conftest.er1
28904   cat conftest.err >&5
28905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906   (exit $ac_status); } && {
28907          test -z "$ac_c_werror_flag" ||
28908          test ! -s conftest.err
28909        } && test -s conftest.$ac_objext; then
28910   ac_hi=$ac_mid; break
28911 else
28912   echo "$as_me: failed program was:" >&5
28913 sed 's/^/| /' conftest.$ac_ext >&5
28914
28915         ac_lo=`expr $ac_mid + 1`
28916                         if test $ac_lo -le $ac_mid; then
28917                           ac_lo= ac_hi=
28918                           break
28919                         fi
28920                         ac_mid=`expr 2 '*' $ac_mid + 1`
28921 fi
28922
28923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28924   done
28925 else
28926   echo "$as_me: failed program was:" >&5
28927 sed 's/^/| /' conftest.$ac_ext >&5
28928
28929         cat >conftest.$ac_ext <<_ACEOF
28930 /* confdefs.h.  */
28931 _ACEOF
28932 cat confdefs.h >>conftest.$ac_ext
28933 cat >>conftest.$ac_ext <<_ACEOF
28934 /* end confdefs.h.  */
28935
28936                                     #undef HAVE_BOOLEAN
28937                                     #include <stdio.h>
28938                                     #include <jpeglib.h>
28939
28940
28941    typedef boolean ac__type_sizeof_;
28942 int
28943 main ()
28944 {
28945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28946 test_array [0] = 0
28947
28948   ;
28949   return 0;
28950 }
28951 _ACEOF
28952 rm -f conftest.$ac_objext
28953 if { (ac_try="$ac_compile"
28954 case "(($ac_try" in
28955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956   *) ac_try_echo=$ac_try;;
28957 esac
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959   (eval "$ac_compile") 2>conftest.er1
28960   ac_status=$?
28961   grep -v '^ *+' conftest.er1 >conftest.err
28962   rm -f conftest.er1
28963   cat conftest.err >&5
28964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965   (exit $ac_status); } && {
28966          test -z "$ac_c_werror_flag" ||
28967          test ! -s conftest.err
28968        } && test -s conftest.$ac_objext; then
28969   ac_hi=-1 ac_mid=-1
28970   while :; do
28971     cat >conftest.$ac_ext <<_ACEOF
28972 /* confdefs.h.  */
28973 _ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h.  */
28977
28978                                     #undef HAVE_BOOLEAN
28979                                     #include <stdio.h>
28980                                     #include <jpeglib.h>
28981
28982
28983    typedef boolean ac__type_sizeof_;
28984 int
28985 main ()
28986 {
28987 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28988 test_array [0] = 0
28989
28990   ;
28991   return 0;
28992 }
28993 _ACEOF
28994 rm -f conftest.$ac_objext
28995 if { (ac_try="$ac_compile"
28996 case "(($ac_try" in
28997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998   *) ac_try_echo=$ac_try;;
28999 esac
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001   (eval "$ac_compile") 2>conftest.er1
29002   ac_status=$?
29003   grep -v '^ *+' conftest.er1 >conftest.err
29004   rm -f conftest.er1
29005   cat conftest.err >&5
29006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007   (exit $ac_status); } && {
29008          test -z "$ac_c_werror_flag" ||
29009          test ! -s conftest.err
29010        } && test -s conftest.$ac_objext; then
29011   ac_lo=$ac_mid; break
29012 else
29013   echo "$as_me: failed program was:" >&5
29014 sed 's/^/| /' conftest.$ac_ext >&5
29015
29016         ac_hi=`expr '(' $ac_mid ')' - 1`
29017                         if test $ac_mid -le $ac_hi; then
29018                           ac_lo= ac_hi=
29019                           break
29020                         fi
29021                         ac_mid=`expr 2 '*' $ac_mid`
29022 fi
29023
29024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29025   done
29026 else
29027   echo "$as_me: failed program was:" >&5
29028 sed 's/^/| /' conftest.$ac_ext >&5
29029
29030         ac_lo= ac_hi=
29031 fi
29032
29033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034 fi
29035
29036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29037 # Binary search between lo and hi bounds.
29038 while test "x$ac_lo" != "x$ac_hi"; do
29039   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29040   cat >conftest.$ac_ext <<_ACEOF
29041 /* confdefs.h.  */
29042 _ACEOF
29043 cat confdefs.h >>conftest.$ac_ext
29044 cat >>conftest.$ac_ext <<_ACEOF
29045 /* end confdefs.h.  */
29046
29047                                     #undef HAVE_BOOLEAN
29048                                     #include <stdio.h>
29049                                     #include <jpeglib.h>
29050
29051
29052    typedef boolean ac__type_sizeof_;
29053 int
29054 main ()
29055 {
29056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29057 test_array [0] = 0
29058
29059   ;
29060   return 0;
29061 }
29062 _ACEOF
29063 rm -f conftest.$ac_objext
29064 if { (ac_try="$ac_compile"
29065 case "(($ac_try" in
29066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29067   *) ac_try_echo=$ac_try;;
29068 esac
29069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29070   (eval "$ac_compile") 2>conftest.er1
29071   ac_status=$?
29072   grep -v '^ *+' conftest.er1 >conftest.err
29073   rm -f conftest.er1
29074   cat conftest.err >&5
29075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076   (exit $ac_status); } && {
29077          test -z "$ac_c_werror_flag" ||
29078          test ! -s conftest.err
29079        } && test -s conftest.$ac_objext; then
29080   ac_hi=$ac_mid
29081 else
29082   echo "$as_me: failed program was:" >&5
29083 sed 's/^/| /' conftest.$ac_ext >&5
29084
29085         ac_lo=`expr '(' $ac_mid ')' + 1`
29086 fi
29087
29088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29089 done
29090 case $ac_lo in
29091 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29092 '') if test "$ac_cv_type_boolean" = yes; then
29093      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29094 See \`config.log' for more details." >&5
29095 echo "$as_me: error: cannot compute sizeof (boolean)
29096 See \`config.log' for more details." >&2;}
29097    { (exit 77); exit 77; }; }
29098    else
29099      ac_cv_sizeof_boolean=0
29100    fi ;;
29101 esac
29102 else
29103   cat >conftest.$ac_ext <<_ACEOF
29104 /* confdefs.h.  */
29105 _ACEOF
29106 cat confdefs.h >>conftest.$ac_ext
29107 cat >>conftest.$ac_ext <<_ACEOF
29108 /* end confdefs.h.  */
29109
29110                                     #undef HAVE_BOOLEAN
29111                                     #include <stdio.h>
29112                                     #include <jpeglib.h>
29113
29114
29115    typedef boolean ac__type_sizeof_;
29116 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29117 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29118 #include <stdio.h>
29119 #include <stdlib.h>
29120 int
29121 main ()
29122 {
29123
29124   FILE *f = fopen ("conftest.val", "w");
29125   if (! f)
29126     return 1;
29127   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29128     {
29129       long int i = longval ();
29130       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29131         return 1;
29132       fprintf (f, "%ld\n", i);
29133     }
29134   else
29135     {
29136       unsigned long int i = ulongval ();
29137       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29138         return 1;
29139       fprintf (f, "%lu\n", i);
29140     }
29141   return ferror (f) || fclose (f) != 0;
29142
29143   ;
29144   return 0;
29145 }
29146 _ACEOF
29147 rm -f conftest$ac_exeext
29148 if { (ac_try="$ac_link"
29149 case "(($ac_try" in
29150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151   *) ac_try_echo=$ac_try;;
29152 esac
29153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154   (eval "$ac_link") 2>&5
29155   ac_status=$?
29156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29158   { (case "(($ac_try" in
29159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29160   *) ac_try_echo=$ac_try;;
29161 esac
29162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29163   (eval "$ac_try") 2>&5
29164   ac_status=$?
29165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166   (exit $ac_status); }; }; then
29167   ac_cv_sizeof_boolean=`cat conftest.val`
29168 else
29169   echo "$as_me: program exited with status $ac_status" >&5
29170 echo "$as_me: failed program was:" >&5
29171 sed 's/^/| /' conftest.$ac_ext >&5
29172
29173 ( exit $ac_status )
29174 if test "$ac_cv_type_boolean" = yes; then
29175      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29176 See \`config.log' for more details." >&5
29177 echo "$as_me: error: cannot compute sizeof (boolean)
29178 See \`config.log' for more details." >&2;}
29179    { (exit 77); exit 77; }; }
29180    else
29181      ac_cv_sizeof_boolean=0
29182    fi
29183 fi
29184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29185 fi
29186 rm -f conftest.val
29187 fi
29188 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29189 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29190
29191
29192
29193 cat >>confdefs.h <<_ACEOF
29194 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29195 _ACEOF
29196
29197
29198                             cat >>confdefs.h <<_ACEOF
29199 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29200 _ACEOF
29201
29202
29203 fi
29204
29205                 fi
29206             fi
29207         fi
29208     fi
29209 fi
29210
29211
29212 TIFF_LINK=
29213 TIFF_PREREQ_LINKS=-lm
29214 if test "$wxUSE_LIBTIFF" != "no" ; then
29215     cat >>confdefs.h <<\_ACEOF
29216 #define wxUSE_LIBTIFF 1
29217 _ACEOF
29218
29219
29220     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29221                         if test "$wxUSE_LIBJPEG" = "sys"; then
29222             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29223         fi
29224         if test "$wxUSE_ZLIB" = "sys"; then
29225             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29226         fi
29227         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29228 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29229 if test "${ac_cv_header_tiffio_h+set}" = set; then
29230   echo $ECHO_N "(cached) $ECHO_C" >&6
29231 else
29232   cat >conftest.$ac_ext <<_ACEOF
29233 /* confdefs.h.  */
29234 _ACEOF
29235 cat confdefs.h >>conftest.$ac_ext
29236 cat >>conftest.$ac_ext <<_ACEOF
29237 /* end confdefs.h.  */
29238
29239
29240
29241 #include <tiffio.h>
29242 _ACEOF
29243 rm -f conftest.$ac_objext
29244 if { (ac_try="$ac_compile"
29245 case "(($ac_try" in
29246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29247   *) ac_try_echo=$ac_try;;
29248 esac
29249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29250   (eval "$ac_compile") 2>conftest.er1
29251   ac_status=$?
29252   grep -v '^ *+' conftest.er1 >conftest.err
29253   rm -f conftest.er1
29254   cat conftest.err >&5
29255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256   (exit $ac_status); } && {
29257          test -z "$ac_c_werror_flag" ||
29258          test ! -s conftest.err
29259        } && test -s conftest.$ac_objext; then
29260   ac_cv_header_tiffio_h=yes
29261 else
29262   echo "$as_me: failed program was:" >&5
29263 sed 's/^/| /' conftest.$ac_ext >&5
29264
29265         ac_cv_header_tiffio_h=no
29266 fi
29267
29268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29269 fi
29270 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29271 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29272 if test $ac_cv_header_tiffio_h = yes; then
29273
29274                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29275 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29276 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29277   echo $ECHO_N "(cached) $ECHO_C" >&6
29278 else
29279   ac_check_lib_save_LIBS=$LIBS
29280 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29281 cat >conftest.$ac_ext <<_ACEOF
29282 /* confdefs.h.  */
29283 _ACEOF
29284 cat confdefs.h >>conftest.$ac_ext
29285 cat >>conftest.$ac_ext <<_ACEOF
29286 /* end confdefs.h.  */
29287
29288 /* Override any GCC internal prototype to avoid an error.
29289    Use char because int might match the return type of a GCC
29290    builtin and then its argument prototype would still apply.  */
29291 #ifdef __cplusplus
29292 extern "C"
29293 #endif
29294 char TIFFError ();
29295 int
29296 main ()
29297 {
29298 return TIFFError ();
29299   ;
29300   return 0;
29301 }
29302 _ACEOF
29303 rm -f conftest.$ac_objext conftest$ac_exeext
29304 if { (ac_try="$ac_link"
29305 case "(($ac_try" in
29306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29307   *) ac_try_echo=$ac_try;;
29308 esac
29309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29310   (eval "$ac_link") 2>conftest.er1
29311   ac_status=$?
29312   grep -v '^ *+' conftest.er1 >conftest.err
29313   rm -f conftest.er1
29314   cat conftest.err >&5
29315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316   (exit $ac_status); } && {
29317          test -z "$ac_c_werror_flag" ||
29318          test ! -s conftest.err
29319        } && test -s conftest$ac_exeext &&
29320        $as_test_x conftest$ac_exeext; then
29321   ac_cv_lib_tiff_TIFFError=yes
29322 else
29323   echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.$ac_ext >&5
29325
29326         ac_cv_lib_tiff_TIFFError=no
29327 fi
29328
29329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29330       conftest$ac_exeext conftest.$ac_ext
29331 LIBS=$ac_check_lib_save_LIBS
29332 fi
29333 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29334 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29335 if test $ac_cv_lib_tiff_TIFFError = yes; then
29336   TIFF_LINK=" -ltiff"
29337 fi
29338
29339
29340 fi
29341
29342
29343
29344         if test "x$TIFF_LINK" = "x" ; then
29345             if test "$wxUSE_LIBTIFF" = "sys" ; then
29346                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29347 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29348    { (exit 1); exit 1; }; }
29349             else
29350                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29351 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29352                 wxUSE_LIBTIFF=builtin
29353             fi
29354         else
29355                         wxUSE_LIBTIFF=sys
29356         fi
29357     fi
29358     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29359         if test "$wxUSE_LIBJPEG" = "no"; then
29360                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
29361         fi
29362         subdirs="$subdirs src/tiff"
29363
29364     fi
29365 fi
29366
29367
29368 if test "$wxUSE_EXPAT" != "no"; then
29369     wxUSE_XML=yes
29370     cat >>confdefs.h <<\_ACEOF
29371 #define wxUSE_EXPAT 1
29372 _ACEOF
29373
29374     cat >>confdefs.h <<\_ACEOF
29375 #define wxUSE_XML 1
29376 _ACEOF
29377
29378
29379     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29380         { echo "$as_me:$LINENO: checking for expat.h" >&5
29381 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29382 if test "${ac_cv_header_expat_h+set}" = set; then
29383   echo $ECHO_N "(cached) $ECHO_C" >&6
29384 else
29385   cat >conftest.$ac_ext <<_ACEOF
29386 /* confdefs.h.  */
29387 _ACEOF
29388 cat confdefs.h >>conftest.$ac_ext
29389 cat >>conftest.$ac_ext <<_ACEOF
29390 /* end confdefs.h.  */
29391
29392
29393 #include <expat.h>
29394 _ACEOF
29395 rm -f conftest.$ac_objext
29396 if { (ac_try="$ac_compile"
29397 case "(($ac_try" in
29398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29399   *) ac_try_echo=$ac_try;;
29400 esac
29401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29402   (eval "$ac_compile") 2>conftest.er1
29403   ac_status=$?
29404   grep -v '^ *+' conftest.er1 >conftest.err
29405   rm -f conftest.er1
29406   cat conftest.err >&5
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); } && {
29409          test -z "$ac_c_werror_flag" ||
29410          test ! -s conftest.err
29411        } && test -s conftest.$ac_objext; then
29412   ac_cv_header_expat_h=yes
29413 else
29414   echo "$as_me: failed program was:" >&5
29415 sed 's/^/| /' conftest.$ac_ext >&5
29416
29417         ac_cv_header_expat_h=no
29418 fi
29419
29420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29421 fi
29422 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29423 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29424 if test $ac_cv_header_expat_h = yes; then
29425   found_expat_h=1
29426 fi
29427
29428
29429         if test "x$found_expat_h" = "x1"; then
29430                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29431 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29432 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29433   echo $ECHO_N "(cached) $ECHO_C" >&6
29434 else
29435
29436                 ac_ext=cpp
29437 ac_cpp='$CXXCPP $CPPFLAGS'
29438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29441
29442                 cat >conftest.$ac_ext <<_ACEOF
29443 /* confdefs.h.  */
29444 _ACEOF
29445 cat confdefs.h >>conftest.$ac_ext
29446 cat >>conftest.$ac_ext <<_ACEOF
29447 /* end confdefs.h.  */
29448 #include <expat.h>
29449 int
29450 main ()
29451 {
29452
29453   ;
29454   return 0;
29455 }
29456 _ACEOF
29457 rm -f conftest.$ac_objext
29458 if { (ac_try="$ac_compile"
29459 case "(($ac_try" in
29460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29461   *) ac_try_echo=$ac_try;;
29462 esac
29463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29464   (eval "$ac_compile") 2>conftest.er1
29465   ac_status=$?
29466   grep -v '^ *+' conftest.er1 >conftest.err
29467   rm -f conftest.er1
29468   cat conftest.err >&5
29469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470   (exit $ac_status); } && {
29471          test -z "$ac_cxx_werror_flag" ||
29472          test ! -s conftest.err
29473        } && test -s conftest.$ac_objext; then
29474   wx_cv_expat_is_not_broken=yes
29475 else
29476   echo "$as_me: failed program was:" >&5
29477 sed 's/^/| /' conftest.$ac_ext >&5
29478
29479         wx_cv_expat_is_not_broken=no
29480
29481 fi
29482
29483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29484                 ac_ext=c
29485 ac_cpp='$CPP $CPPFLAGS'
29486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29489
29490
29491
29492 fi
29493 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29494 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29495             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29496                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29497 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29498 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29499   echo $ECHO_N "(cached) $ECHO_C" >&6
29500 else
29501   ac_check_lib_save_LIBS=$LIBS
29502 LIBS="-lexpat  $LIBS"
29503 cat >conftest.$ac_ext <<_ACEOF
29504 /* confdefs.h.  */
29505 _ACEOF
29506 cat confdefs.h >>conftest.$ac_ext
29507 cat >>conftest.$ac_ext <<_ACEOF
29508 /* end confdefs.h.  */
29509
29510 /* Override any GCC internal prototype to avoid an error.
29511    Use char because int might match the return type of a GCC
29512    builtin and then its argument prototype would still apply.  */
29513 #ifdef __cplusplus
29514 extern "C"
29515 #endif
29516 char XML_ParserCreate ();
29517 int
29518 main ()
29519 {
29520 return XML_ParserCreate ();
29521   ;
29522   return 0;
29523 }
29524 _ACEOF
29525 rm -f conftest.$ac_objext conftest$ac_exeext
29526 if { (ac_try="$ac_link"
29527 case "(($ac_try" in
29528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529   *) ac_try_echo=$ac_try;;
29530 esac
29531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532   (eval "$ac_link") 2>conftest.er1
29533   ac_status=$?
29534   grep -v '^ *+' conftest.er1 >conftest.err
29535   rm -f conftest.er1
29536   cat conftest.err >&5
29537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538   (exit $ac_status); } && {
29539          test -z "$ac_c_werror_flag" ||
29540          test ! -s conftest.err
29541        } && test -s conftest$ac_exeext &&
29542        $as_test_x conftest$ac_exeext; then
29543   ac_cv_lib_expat_XML_ParserCreate=yes
29544 else
29545   echo "$as_me: failed program was:" >&5
29546 sed 's/^/| /' conftest.$ac_ext >&5
29547
29548         ac_cv_lib_expat_XML_ParserCreate=no
29549 fi
29550
29551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29552       conftest$ac_exeext conftest.$ac_ext
29553 LIBS=$ac_check_lib_save_LIBS
29554 fi
29555 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29556 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29557 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29558   EXPAT_LINK=" -lexpat"
29559 fi
29560
29561             fi
29562         fi
29563         if test "x$EXPAT_LINK" = "x" ; then
29564             if test "$wxUSE_EXPAT" = "sys" ; then
29565                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29566 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29567    { (exit 1); exit 1; }; }
29568             else
29569                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29570 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29571                 wxUSE_EXPAT=builtin
29572             fi
29573         else
29574                         wxUSE_EXPAT=sys
29575         fi
29576     fi
29577     if test "$wxUSE_EXPAT" = "builtin" ; then
29578                 subdirs="$subdirs src/expat"
29579
29580     fi
29581 fi
29582
29583
29584
29585 if test "$wxUSE_LIBMSPACK" != "no"; then
29586     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29587 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29588 if test "${ac_cv_header_mspack_h+set}" = set; then
29589   echo $ECHO_N "(cached) $ECHO_C" >&6
29590 else
29591   cat >conftest.$ac_ext <<_ACEOF
29592 /* confdefs.h.  */
29593 _ACEOF
29594 cat confdefs.h >>conftest.$ac_ext
29595 cat >>conftest.$ac_ext <<_ACEOF
29596 /* end confdefs.h.  */
29597
29598
29599 #include <mspack.h>
29600 _ACEOF
29601 rm -f conftest.$ac_objext
29602 if { (ac_try="$ac_compile"
29603 case "(($ac_try" in
29604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29605   *) ac_try_echo=$ac_try;;
29606 esac
29607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29608   (eval "$ac_compile") 2>conftest.er1
29609   ac_status=$?
29610   grep -v '^ *+' conftest.er1 >conftest.err
29611   rm -f conftest.er1
29612   cat conftest.err >&5
29613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614   (exit $ac_status); } && {
29615          test -z "$ac_c_werror_flag" ||
29616          test ! -s conftest.err
29617        } && test -s conftest.$ac_objext; then
29618   ac_cv_header_mspack_h=yes
29619 else
29620   echo "$as_me: failed program was:" >&5
29621 sed 's/^/| /' conftest.$ac_ext >&5
29622
29623         ac_cv_header_mspack_h=no
29624 fi
29625
29626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29627 fi
29628 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29629 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29630 if test $ac_cv_header_mspack_h = yes; then
29631   found_mspack_h=1
29632 fi
29633
29634
29635     if test "x$found_mspack_h" = "x1"; then
29636         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29637 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29638 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29639   echo $ECHO_N "(cached) $ECHO_C" >&6
29640 else
29641   ac_check_lib_save_LIBS=$LIBS
29642 LIBS="-lmspack  $LIBS"
29643 cat >conftest.$ac_ext <<_ACEOF
29644 /* confdefs.h.  */
29645 _ACEOF
29646 cat confdefs.h >>conftest.$ac_ext
29647 cat >>conftest.$ac_ext <<_ACEOF
29648 /* end confdefs.h.  */
29649
29650 /* Override any GCC internal prototype to avoid an error.
29651    Use char because int might match the return type of a GCC
29652    builtin and then its argument prototype would still apply.  */
29653 #ifdef __cplusplus
29654 extern "C"
29655 #endif
29656 char mspack_create_chm_decompressor ();
29657 int
29658 main ()
29659 {
29660 return mspack_create_chm_decompressor ();
29661   ;
29662   return 0;
29663 }
29664 _ACEOF
29665 rm -f conftest.$ac_objext conftest$ac_exeext
29666 if { (ac_try="$ac_link"
29667 case "(($ac_try" in
29668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29669   *) ac_try_echo=$ac_try;;
29670 esac
29671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29672   (eval "$ac_link") 2>conftest.er1
29673   ac_status=$?
29674   grep -v '^ *+' conftest.er1 >conftest.err
29675   rm -f conftest.er1
29676   cat conftest.err >&5
29677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678   (exit $ac_status); } && {
29679          test -z "$ac_c_werror_flag" ||
29680          test ! -s conftest.err
29681        } && test -s conftest$ac_exeext &&
29682        $as_test_x conftest$ac_exeext; then
29683   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29684 else
29685   echo "$as_me: failed program was:" >&5
29686 sed 's/^/| /' conftest.$ac_ext >&5
29687
29688         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29689 fi
29690
29691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29692       conftest$ac_exeext conftest.$ac_ext
29693 LIBS=$ac_check_lib_save_LIBS
29694 fi
29695 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29696 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29697 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29698   MSPACK_LINK=" -lmspack"
29699 fi
29700
29701     fi
29702     if test "x$MSPACK_LINK" = "x" ; then
29703         wxUSE_LIBMSPACK=no
29704     fi
29705 fi
29706
29707 if test "$wxUSE_LIBMSPACK" != "no"; then
29708     cat >>confdefs.h <<\_ACEOF
29709 #define wxUSE_LIBMSPACK 1
29710 _ACEOF
29711
29712 fi
29713
29714
29715
29716 AFMINSTALL=
29717 WIN32INSTALL=
29718
29719 TOOLKIT=
29720 TOOLKIT_INCLUDE=
29721 WIDGET_SET=
29722
29723 if test "$USE_WIN32" = 1 ; then
29724
29725 for ac_header in w32api.h
29726 do
29727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29731   echo $ECHO_N "(cached) $ECHO_C" >&6
29732 else
29733   cat >conftest.$ac_ext <<_ACEOF
29734 /* confdefs.h.  */
29735 _ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h.  */
29739
29740
29741 #include <$ac_header>
29742 _ACEOF
29743 rm -f conftest.$ac_objext
29744 if { (ac_try="$ac_compile"
29745 case "(($ac_try" in
29746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29747   *) ac_try_echo=$ac_try;;
29748 esac
29749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29750   (eval "$ac_compile") 2>conftest.er1
29751   ac_status=$?
29752   grep -v '^ *+' conftest.er1 >conftest.err
29753   rm -f conftest.er1
29754   cat conftest.err >&5
29755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756   (exit $ac_status); } && {
29757          test -z "$ac_c_werror_flag" ||
29758          test ! -s conftest.err
29759        } && test -s conftest.$ac_objext; then
29760   eval "$as_ac_Header=yes"
29761 else
29762   echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.$ac_ext >&5
29764
29765         eval "$as_ac_Header=no"
29766 fi
29767
29768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29769 fi
29770 ac_res=`eval echo '${'$as_ac_Header'}'`
29771                { echo "$as_me:$LINENO: result: $ac_res" >&5
29772 echo "${ECHO_T}$ac_res" >&6; }
29773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29774   cat >>confdefs.h <<_ACEOF
29775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29776 _ACEOF
29777
29778 fi
29779
29780 done
29781
29782     { echo "$as_me:$LINENO: checking for windows.h" >&5
29783 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29784 if test "${ac_cv_header_windows_h+set}" = set; then
29785   echo $ECHO_N "(cached) $ECHO_C" >&6
29786 else
29787   cat >conftest.$ac_ext <<_ACEOF
29788 /* confdefs.h.  */
29789 _ACEOF
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h.  */
29793
29794
29795 #include <windows.h>
29796 _ACEOF
29797 rm -f conftest.$ac_objext
29798 if { (ac_try="$ac_compile"
29799 case "(($ac_try" in
29800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29801   *) ac_try_echo=$ac_try;;
29802 esac
29803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29804   (eval "$ac_compile") 2>conftest.er1
29805   ac_status=$?
29806   grep -v '^ *+' conftest.er1 >conftest.err
29807   rm -f conftest.er1
29808   cat conftest.err >&5
29809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810   (exit $ac_status); } && {
29811          test -z "$ac_c_werror_flag" ||
29812          test ! -s conftest.err
29813        } && test -s conftest.$ac_objext; then
29814   ac_cv_header_windows_h=yes
29815 else
29816   echo "$as_me: failed program was:" >&5
29817 sed 's/^/| /' conftest.$ac_ext >&5
29818
29819         ac_cv_header_windows_h=no
29820 fi
29821
29822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29823 fi
29824 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29825 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29826 if test $ac_cv_header_windows_h = yes; then
29827   :
29828 else
29829
29830         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29831 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29832    { (exit 1); exit 1; }; }
29833
29834 fi
29835
29836
29837
29838     LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32"
29839     case "${host}" in
29840         x86_64-*-mingw32* )
29841                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
29842         ;;
29843     esac
29844     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29845         LIBS="$LIBS -loleacc"
29846     fi
29847
29848     case "${host}" in
29849         *-*-cygwin* )
29850                         LIBS="$LIBS -lkernel32 -luser32"
29851     esac
29852
29853         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29854     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29855
29856                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29857
29858         WIN32INSTALL=win32install
29859
29860         { echo "$as_me:$LINENO: checking for pbt.h" >&5
29861 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
29862 if test "${ac_cv_header_pbt_h+set}" = set; then
29863   echo $ECHO_N "(cached) $ECHO_C" >&6
29864 else
29865   cat >conftest.$ac_ext <<_ACEOF
29866 /* confdefs.h.  */
29867 _ACEOF
29868 cat confdefs.h >>conftest.$ac_ext
29869 cat >>conftest.$ac_ext <<_ACEOF
29870 /* end confdefs.h.  */
29871
29872
29873 #include <pbt.h>
29874 _ACEOF
29875 rm -f conftest.$ac_objext
29876 if { (ac_try="$ac_compile"
29877 case "(($ac_try" in
29878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29879   *) ac_try_echo=$ac_try;;
29880 esac
29881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29882   (eval "$ac_compile") 2>conftest.er1
29883   ac_status=$?
29884   grep -v '^ *+' conftest.er1 >conftest.err
29885   rm -f conftest.er1
29886   cat conftest.err >&5
29887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888   (exit $ac_status); } && {
29889          test -z "$ac_c_werror_flag" ||
29890          test ! -s conftest.err
29891        } && test -s conftest.$ac_objext; then
29892   ac_cv_header_pbt_h=yes
29893 else
29894   echo "$as_me: failed program was:" >&5
29895 sed 's/^/| /' conftest.$ac_ext >&5
29896
29897         ac_cv_header_pbt_h=no
29898 fi
29899
29900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29901 fi
29902 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
29903 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
29904 if test $ac_cv_header_pbt_h = yes; then
29905   :
29906 else
29907   cat >>confdefs.h <<\_ACEOF
29908 #define NEED_PBT_H 1
29909 _ACEOF
29910
29911 fi
29912
29913
29914 fi
29915
29916 if test "$wxUSE_GUI" = "yes"; then
29917     USE_GUI=1
29918
29919     GUI_TK_LIBRARY=
29920
29921     WXGTK127=
29922     WXGTK2=
29923     WXGPE=
29924
29925     if test "$wxUSE_OLD_COCOA" = 1 ; then
29926         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
29927             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
29928 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
29929             wxUSE_PRINTING_ARCHITECTURE=no
29930         fi
29931         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
29932             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
29933 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
29934             wxUSE_DRAG_AND_DROP=no
29935         fi
29936         if test "$wxUSE_DRAGIMAGE" = "yes"; then
29937             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
29938 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
29939             wxUSE_DRAGIMAGE=no
29940         fi
29941     fi
29942
29943     if test "$wxUSE_MSW" = 1 ; then
29944         TOOLKIT=MSW
29945         GUIDIST=MSW_DIST
29946
29947                 case "${host}" in
29948             *-*-mingw32* )
29949                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
29950         esac
29951     fi
29952
29953     if test "$wxUSE_GTK" = 1; then
29954                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
29955 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
29956
29957         gtk_version_cached=1
29958         if test "${wx_cv_lib_gtk+set}" = set; then
29959   echo $ECHO_N "(cached) $ECHO_C" >&6
29960 else
29961
29962                                                 gtk_version_cached=0
29963                 { echo "$as_me:$LINENO: result: " >&5
29964 echo "${ECHO_T}" >&6; }
29965
29966                                                 GTK_MODULES=
29967                 if test "$wxUSE_THREADS" = "yes"; then
29968                     GTK_MODULES=gthread
29969                 fi
29970
29971                                 wx_cv_lib_gtk=
29972                 if test "x$wxGTK_VERSION" != "x1"
29973                 then
29974                                                                                 case "${host}" in
29975                         *-*-solaris2* )
29976                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
29977                                 enable_gtktest=no
29978                             fi
29979                     esac
29980
29981                     # Check whether --enable-gtktest was given.
29982 if test "${enable_gtktest+set}" = set; then
29983   enableval=$enable_gtktest;
29984 else
29985   enable_gtktest=yes
29986 fi
29987
29988
29989   pkg_config_args=gtk+-2.0
29990   for module in . $GTK_MODULES
29991   do
29992       case "$module" in
29993          gthread)
29994              pkg_config_args="$pkg_config_args gthread-2.0"
29995          ;;
29996       esac
29997   done
29998
29999   no_gtk=""
30000
30001   # Extract the first word of "pkg-config", so it can be a program name with args.
30002 set dummy pkg-config; ac_word=$2
30003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30005 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30006   echo $ECHO_N "(cached) $ECHO_C" >&6
30007 else
30008   case $PKG_CONFIG in
30009   [\\/]* | ?:[\\/]*)
30010   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30011   ;;
30012   *)
30013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30014 for as_dir in $PATH
30015 do
30016   IFS=$as_save_IFS
30017   test -z "$as_dir" && as_dir=.
30018   for ac_exec_ext in '' $ac_executable_extensions; do
30019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30020     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30022     break 2
30023   fi
30024 done
30025 done
30026 IFS=$as_save_IFS
30027
30028   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30029   ;;
30030 esac
30031 fi
30032 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30033 if test -n "$PKG_CONFIG"; then
30034   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30035 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30036 else
30037   { echo "$as_me:$LINENO: result: no" >&5
30038 echo "${ECHO_T}no" >&6; }
30039 fi
30040
30041
30042
30043   if test x$PKG_CONFIG != xno ; then
30044     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30045       :
30046     else
30047       echo "*** pkg-config too old; version 0.7 or better required."
30048       no_gtk=yes
30049       PKG_CONFIG=no
30050     fi
30051   else
30052     no_gtk=yes
30053   fi
30054
30055   min_gtk_version=2.4.0
30056   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30057 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30058
30059   if test x$PKG_CONFIG != xno ; then
30060     ## don't try to run the test against uninstalled libtool libs
30061     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30062           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30063           enable_gtktest=no
30064     fi
30065
30066     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30067           :
30068     else
30069           no_gtk=yes
30070     fi
30071   fi
30072
30073   if test x"$no_gtk" = x ; then
30074     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30075     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30076     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30077            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30078     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30079            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30080     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30081            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30082     if test "x$enable_gtktest" = "xyes" ; then
30083       ac_save_CFLAGS="$CFLAGS"
30084       ac_save_LIBS="$LIBS"
30085       CFLAGS="$CFLAGS $GTK_CFLAGS"
30086       LIBS="$GTK_LIBS $LIBS"
30087       rm -f conf.gtktest
30088       if test "$cross_compiling" = yes; then
30089   echo $ac_n "cross compiling; assumed OK... $ac_c"
30090 else
30091   cat >conftest.$ac_ext <<_ACEOF
30092 /* confdefs.h.  */
30093 _ACEOF
30094 cat confdefs.h >>conftest.$ac_ext
30095 cat >>conftest.$ac_ext <<_ACEOF
30096 /* end confdefs.h.  */
30097
30098 #include <gtk/gtk.h>
30099 #include <stdio.h>
30100 #include <stdlib.h>
30101
30102 int
30103 main ()
30104 {
30105   int major, minor, micro;
30106   char *tmp_version;
30107
30108   system ("touch conf.gtktest");
30109
30110   /* HP/UX 9 (%@#!) writes to sscanf strings */
30111   tmp_version = g_strdup("$min_gtk_version");
30112   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30113      printf("%s, bad version string\n", "$min_gtk_version");
30114      exit(1);
30115    }
30116
30117   if ((gtk_major_version != $gtk_config_major_version) ||
30118       (gtk_minor_version != $gtk_config_minor_version) ||
30119       (gtk_micro_version != $gtk_config_micro_version))
30120     {
30121       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30122              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30123              gtk_major_version, gtk_minor_version, gtk_micro_version);
30124       printf ("*** was found! If pkg-config was correct, then it is best\n");
30125       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30126       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30127       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30128       printf("*** required on your system.\n");
30129       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30130       printf("*** to point to the correct configuration files\n");
30131     }
30132   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30133            (gtk_minor_version != GTK_MINOR_VERSION) ||
30134            (gtk_micro_version != GTK_MICRO_VERSION))
30135     {
30136       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30137              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30138       printf("*** library (version %d.%d.%d)\n",
30139              gtk_major_version, gtk_minor_version, gtk_micro_version);
30140     }
30141   else
30142     {
30143       if ((gtk_major_version > major) ||
30144         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30145         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30146       {
30147         return 0;
30148        }
30149      else
30150       {
30151         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30152                gtk_major_version, gtk_minor_version, gtk_micro_version);
30153         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30154                major, minor, micro);
30155         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30156         printf("***\n");
30157         printf("*** If you have already installed a sufficiently new version, this error\n");
30158         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30159         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30160         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30161         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30162         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30163         printf("*** so that the correct libraries are found at run-time))\n");
30164       }
30165     }
30166   return 1;
30167 }
30168
30169 _ACEOF
30170 rm -f conftest$ac_exeext
30171 if { (ac_try="$ac_link"
30172 case "(($ac_try" in
30173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174   *) ac_try_echo=$ac_try;;
30175 esac
30176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177   (eval "$ac_link") 2>&5
30178   ac_status=$?
30179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30181   { (case "(($ac_try" in
30182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183   *) ac_try_echo=$ac_try;;
30184 esac
30185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186   (eval "$ac_try") 2>&5
30187   ac_status=$?
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); }; }; then
30190   :
30191 else
30192   echo "$as_me: program exited with status $ac_status" >&5
30193 echo "$as_me: failed program was:" >&5
30194 sed 's/^/| /' conftest.$ac_ext >&5
30195
30196 ( exit $ac_status )
30197 no_gtk=yes
30198 fi
30199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30200 fi
30201
30202
30203        CFLAGS="$ac_save_CFLAGS"
30204        LIBS="$ac_save_LIBS"
30205      fi
30206   fi
30207   if test "x$no_gtk" = x ; then
30208      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30209 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30210      wx_cv_lib_gtk=2.0
30211   else
30212      { echo "$as_me:$LINENO: result: no" >&5
30213 echo "${ECHO_T}no" >&6; }
30214      if test "$PKG_CONFIG" = "no" ; then
30215        echo "*** A new enough version of pkg-config was not found."
30216        echo "*** See http://pkgconfig.sourceforge.net"
30217      else
30218        if test -f conf.gtktest ; then
30219         :
30220        else
30221           echo "*** Could not run GTK+ test program, checking why..."
30222           ac_save_CFLAGS="$CFLAGS"
30223           ac_save_LIBS="$LIBS"
30224           CFLAGS="$CFLAGS $GTK_CFLAGS"
30225           LIBS="$LIBS $GTK_LIBS"
30226           cat >conftest.$ac_ext <<_ACEOF
30227 /* confdefs.h.  */
30228 _ACEOF
30229 cat confdefs.h >>conftest.$ac_ext
30230 cat >>conftest.$ac_ext <<_ACEOF
30231 /* end confdefs.h.  */
30232
30233 #include <gtk/gtk.h>
30234 #include <stdio.h>
30235
30236 int
30237 main ()
30238 {
30239  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30240   ;
30241   return 0;
30242 }
30243 _ACEOF
30244 rm -f conftest.$ac_objext conftest$ac_exeext
30245 if { (ac_try="$ac_link"
30246 case "(($ac_try" in
30247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30248   *) ac_try_echo=$ac_try;;
30249 esac
30250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30251   (eval "$ac_link") 2>conftest.er1
30252   ac_status=$?
30253   grep -v '^ *+' conftest.er1 >conftest.err
30254   rm -f conftest.er1
30255   cat conftest.err >&5
30256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257   (exit $ac_status); } && {
30258          test -z "$ac_c_werror_flag" ||
30259          test ! -s conftest.err
30260        } && test -s conftest$ac_exeext &&
30261        $as_test_x conftest$ac_exeext; then
30262    echo "*** The test program compiled, but did not run. This usually means"
30263           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30264           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30265           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30266           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30267           echo "*** is required on your system"
30268           echo "***"
30269           echo "*** If you have an old version installed, it is best to remove it, although"
30270           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30271 else
30272   echo "$as_me: failed program was:" >&5
30273 sed 's/^/| /' conftest.$ac_ext >&5
30274
30275          echo "*** The test program failed to compile or link. See the file config.log for the"
30276           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30277 fi
30278
30279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30280       conftest$ac_exeext conftest.$ac_ext
30281           CFLAGS="$ac_save_CFLAGS"
30282           LIBS="$ac_save_LIBS"
30283        fi
30284      fi
30285      GTK_CFLAGS=""
30286      GTK_LIBS=""
30287      :
30288   fi
30289
30290
30291   rm -f conf.gtktest
30292
30293                 fi
30294
30295                                 if test -z "$wx_cv_lib_gtk"; then
30296                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30297
30298 # Check whether --with-gtk-prefix was given.
30299 if test "${with_gtk_prefix+set}" = set; then
30300   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30301 else
30302   gtk_config_prefix=""
30303 fi
30304
30305
30306 # Check whether --with-gtk-exec-prefix was given.
30307 if test "${with_gtk_exec_prefix+set}" = set; then
30308   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30309 else
30310   gtk_config_exec_prefix=""
30311 fi
30312
30313 # Check whether --enable-gtktest was given.
30314 if test "${enable_gtktest+set}" = set; then
30315   enableval=$enable_gtktest;
30316 else
30317   enable_gtktest=yes
30318 fi
30319
30320
30321   for module in . $GTK_MODULES
30322   do
30323       case "$module" in
30324          gthread)
30325              gtk_config_args="$gtk_config_args gthread"
30326          ;;
30327       esac
30328   done
30329
30330   if test x$gtk_config_exec_prefix != x ; then
30331      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30332      if test x${GTK_CONFIG+set} != xset ; then
30333         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30334      fi
30335   fi
30336   if test x$gtk_config_prefix != x ; then
30337      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30338      if test x${GTK_CONFIG+set} != xset ; then
30339         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30340      fi
30341   fi
30342
30343   # Extract the first word of "gtk-config", so it can be a program name with args.
30344 set dummy gtk-config; ac_word=$2
30345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30347 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30348   echo $ECHO_N "(cached) $ECHO_C" >&6
30349 else
30350   case $GTK_CONFIG in
30351   [\\/]* | ?:[\\/]*)
30352   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30353   ;;
30354   *)
30355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30356 for as_dir in $PATH
30357 do
30358   IFS=$as_save_IFS
30359   test -z "$as_dir" && as_dir=.
30360   for ac_exec_ext in '' $ac_executable_extensions; do
30361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30362     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30364     break 2
30365   fi
30366 done
30367 done
30368 IFS=$as_save_IFS
30369
30370   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30371   ;;
30372 esac
30373 fi
30374 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30375 if test -n "$GTK_CONFIG"; then
30376   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30377 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30378 else
30379   { echo "$as_me:$LINENO: result: no" >&5
30380 echo "${ECHO_T}no" >&6; }
30381 fi
30382
30383
30384   min_gtk_version=1.2.7
30385   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30386 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30387   no_gtk=""
30388   if test "$GTK_CONFIG" = "no" ; then
30389     no_gtk=yes
30390   else
30391     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30392     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30393     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30394            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30395     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30396            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30397     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30398            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30399     if test "x$enable_gtktest" = "xyes" ; then
30400       ac_save_CFLAGS="$CFLAGS"
30401       ac_save_LIBS="$LIBS"
30402       CFLAGS="$CFLAGS $GTK_CFLAGS"
30403       LIBS="$GTK_LIBS $LIBS"
30404       rm -f conf.gtktest
30405       if test "$cross_compiling" = yes; then
30406   echo $ac_n "cross compiling; assumed OK... $ac_c"
30407 else
30408   cat >conftest.$ac_ext <<_ACEOF
30409 /* confdefs.h.  */
30410 _ACEOF
30411 cat confdefs.h >>conftest.$ac_ext
30412 cat >>conftest.$ac_ext <<_ACEOF
30413 /* end confdefs.h.  */
30414
30415 #include <gtk/gtk.h>
30416 #include <stdio.h>
30417 #include <stdlib.h>
30418
30419 int
30420 main ()
30421 {
30422   int major, minor, micro;
30423   char *tmp_version;
30424
30425   system ("touch conf.gtktest");
30426
30427   /* HP/UX 9 (%@#!) writes to sscanf strings */
30428   tmp_version = g_strdup("$min_gtk_version");
30429   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30430      printf("%s, bad version string\n", "$min_gtk_version");
30431      exit(1);
30432    }
30433
30434   if ((gtk_major_version != $gtk_config_major_version) ||
30435       (gtk_minor_version != $gtk_config_minor_version) ||
30436       (gtk_micro_version != $gtk_config_micro_version))
30437     {
30438       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30439              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30440              gtk_major_version, gtk_minor_version, gtk_micro_version);
30441       printf ("*** was found! If gtk-config was correct, then it is best\n");
30442       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30443       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30444       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30445       printf("*** required on your system.\n");
30446       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30447       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30448       printf("*** before re-running configure\n");
30449     }
30450 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30451   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30452            (gtk_minor_version != GTK_MINOR_VERSION) ||
30453            (gtk_micro_version != GTK_MICRO_VERSION))
30454     {
30455       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30456              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30457       printf("*** library (version %d.%d.%d)\n",
30458              gtk_major_version, gtk_minor_version, gtk_micro_version);
30459     }
30460 #endif /* defined (GTK_MAJOR_VERSION) ... */
30461   else
30462     {
30463       if ((gtk_major_version > major) ||
30464         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30465         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30466       {
30467         return 0;
30468        }
30469      else
30470       {
30471         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30472                gtk_major_version, gtk_minor_version, gtk_micro_version);
30473         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30474                major, minor, micro);
30475         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30476         printf("***\n");
30477         printf("*** If you have already installed a sufficiently new version, this error\n");
30478         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30479         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30480         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30481         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30482         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30483         printf("*** so that the correct libraries are found at run-time))\n");
30484       }
30485     }
30486   return 1;
30487 }
30488
30489 _ACEOF
30490 rm -f conftest$ac_exeext
30491 if { (ac_try="$ac_link"
30492 case "(($ac_try" in
30493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30494   *) ac_try_echo=$ac_try;;
30495 esac
30496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30497   (eval "$ac_link") 2>&5
30498   ac_status=$?
30499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30501   { (case "(($ac_try" in
30502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30503   *) ac_try_echo=$ac_try;;
30504 esac
30505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30506   (eval "$ac_try") 2>&5
30507   ac_status=$?
30508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509   (exit $ac_status); }; }; then
30510   :
30511 else
30512   echo "$as_me: program exited with status $ac_status" >&5
30513 echo "$as_me: failed program was:" >&5
30514 sed 's/^/| /' conftest.$ac_ext >&5
30515
30516 ( exit $ac_status )
30517 no_gtk=yes
30518 fi
30519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30520 fi
30521
30522
30523        CFLAGS="$ac_save_CFLAGS"
30524        LIBS="$ac_save_LIBS"
30525      fi
30526   fi
30527   if test "x$no_gtk" = x ; then
30528      { echo "$as_me:$LINENO: result: yes" >&5
30529 echo "${ECHO_T}yes" >&6; }
30530      wx_cv_lib_gtk=1.2.7
30531   else
30532      { echo "$as_me:$LINENO: result: no" >&5
30533 echo "${ECHO_T}no" >&6; }
30534      if test "$GTK_CONFIG" = "no" ; then
30535        echo "*** The gtk-config script installed by GTK could not be found"
30536        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30537        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30538        echo "*** full path to gtk-config."
30539      else
30540        if test -f conf.gtktest ; then
30541         :
30542        else
30543           echo "*** Could not run GTK test program, checking why..."
30544           CFLAGS="$CFLAGS $GTK_CFLAGS"
30545           LIBS="$LIBS $GTK_LIBS"
30546           cat >conftest.$ac_ext <<_ACEOF
30547 /* confdefs.h.  */
30548 _ACEOF
30549 cat confdefs.h >>conftest.$ac_ext
30550 cat >>conftest.$ac_ext <<_ACEOF
30551 /* end confdefs.h.  */
30552
30553 #include <gtk/gtk.h>
30554 #include <stdio.h>
30555
30556 int
30557 main ()
30558 {
30559  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30560   ;
30561   return 0;
30562 }
30563 _ACEOF
30564 rm -f conftest.$ac_objext conftest$ac_exeext
30565 if { (ac_try="$ac_link"
30566 case "(($ac_try" in
30567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30568   *) ac_try_echo=$ac_try;;
30569 esac
30570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30571   (eval "$ac_link") 2>conftest.er1
30572   ac_status=$?
30573   grep -v '^ *+' conftest.er1 >conftest.err
30574   rm -f conftest.er1
30575   cat conftest.err >&5
30576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577   (exit $ac_status); } && {
30578          test -z "$ac_c_werror_flag" ||
30579          test ! -s conftest.err
30580        } && test -s conftest$ac_exeext &&
30581        $as_test_x conftest$ac_exeext; then
30582    echo "*** The test program compiled, but did not run. This usually means"
30583           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30584           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30585           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30586           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30587           echo "*** is required on your system"
30588           echo "***"
30589           echo "*** If you have an old version installed, it is best to remove it, although"
30590           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30591           echo "***"
30592           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30593           echo "*** came with the system with the command"
30594           echo "***"
30595           echo "***    rpm --erase --nodeps gtk gtk-devel"
30596 else
30597   echo "$as_me: failed program was:" >&5
30598 sed 's/^/| /' conftest.$ac_ext >&5
30599
30600          echo "*** The test program failed to compile or link. See the file config.log for the"
30601           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30602           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30603           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30604 fi
30605
30606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30607       conftest$ac_exeext conftest.$ac_ext
30608           CFLAGS="$ac_save_CFLAGS"
30609           LIBS="$ac_save_LIBS"
30610        fi
30611      fi
30612      GTK_CFLAGS=""
30613      GTK_LIBS=""
30614      :
30615   fi
30616
30617
30618   rm -f conf.gtktest
30619
30620
30621                         if test -z "$wx_cv_lib_gtk"; then
30622
30623 # Check whether --with-gtk-prefix was given.
30624 if test "${with_gtk_prefix+set}" = set; then
30625   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30626 else
30627   gtk_config_prefix=""
30628 fi
30629
30630
30631 # Check whether --with-gtk-exec-prefix was given.
30632 if test "${with_gtk_exec_prefix+set}" = set; then
30633   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30634 else
30635   gtk_config_exec_prefix=""
30636 fi
30637
30638 # Check whether --enable-gtktest was given.
30639 if test "${enable_gtktest+set}" = set; then
30640   enableval=$enable_gtktest;
30641 else
30642   enable_gtktest=yes
30643 fi
30644
30645
30646   for module in . $GTK_MODULES
30647   do
30648       case "$module" in
30649          gthread)
30650              gtk_config_args="$gtk_config_args gthread"
30651          ;;
30652       esac
30653   done
30654
30655   if test x$gtk_config_exec_prefix != x ; then
30656      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30657      if test x${GTK_CONFIG+set} != xset ; then
30658         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30659      fi
30660   fi
30661   if test x$gtk_config_prefix != x ; then
30662      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30663      if test x${GTK_CONFIG+set} != xset ; then
30664         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30665      fi
30666   fi
30667
30668   # Extract the first word of "gtk-config", so it can be a program name with args.
30669 set dummy gtk-config; ac_word=$2
30670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30672 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30673   echo $ECHO_N "(cached) $ECHO_C" >&6
30674 else
30675   case $GTK_CONFIG in
30676   [\\/]* | ?:[\\/]*)
30677   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30678   ;;
30679   *)
30680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30681 for as_dir in $PATH
30682 do
30683   IFS=$as_save_IFS
30684   test -z "$as_dir" && as_dir=.
30685   for ac_exec_ext in '' $ac_executable_extensions; do
30686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30687     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30689     break 2
30690   fi
30691 done
30692 done
30693 IFS=$as_save_IFS
30694
30695   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30696   ;;
30697 esac
30698 fi
30699 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30700 if test -n "$GTK_CONFIG"; then
30701   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30702 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30703 else
30704   { echo "$as_me:$LINENO: result: no" >&5
30705 echo "${ECHO_T}no" >&6; }
30706 fi
30707
30708
30709   min_gtk_version=1.2.3
30710   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30711 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30712   no_gtk=""
30713   if test "$GTK_CONFIG" = "no" ; then
30714     no_gtk=yes
30715   else
30716     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30717     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30718     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30719            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30720     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30721            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30722     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30723            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30724     if test "x$enable_gtktest" = "xyes" ; then
30725       ac_save_CFLAGS="$CFLAGS"
30726       ac_save_LIBS="$LIBS"
30727       CFLAGS="$CFLAGS $GTK_CFLAGS"
30728       LIBS="$GTK_LIBS $LIBS"
30729       rm -f conf.gtktest
30730       if test "$cross_compiling" = yes; then
30731   echo $ac_n "cross compiling; assumed OK... $ac_c"
30732 else
30733   cat >conftest.$ac_ext <<_ACEOF
30734 /* confdefs.h.  */
30735 _ACEOF
30736 cat confdefs.h >>conftest.$ac_ext
30737 cat >>conftest.$ac_ext <<_ACEOF
30738 /* end confdefs.h.  */
30739
30740 #include <gtk/gtk.h>
30741 #include <stdio.h>
30742 #include <stdlib.h>
30743
30744 int
30745 main ()
30746 {
30747   int major, minor, micro;
30748   char *tmp_version;
30749
30750   system ("touch conf.gtktest");
30751
30752   /* HP/UX 9 (%@#!) writes to sscanf strings */
30753   tmp_version = g_strdup("$min_gtk_version");
30754   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30755      printf("%s, bad version string\n", "$min_gtk_version");
30756      exit(1);
30757    }
30758
30759   if ((gtk_major_version != $gtk_config_major_version) ||
30760       (gtk_minor_version != $gtk_config_minor_version) ||
30761       (gtk_micro_version != $gtk_config_micro_version))
30762     {
30763       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30764              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30765              gtk_major_version, gtk_minor_version, gtk_micro_version);
30766       printf ("*** was found! If gtk-config was correct, then it is best\n");
30767       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30768       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30769       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30770       printf("*** required on your system.\n");
30771       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30772       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30773       printf("*** before re-running configure\n");
30774     }
30775 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30776   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30777            (gtk_minor_version != GTK_MINOR_VERSION) ||
30778            (gtk_micro_version != GTK_MICRO_VERSION))
30779     {
30780       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30781              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30782       printf("*** library (version %d.%d.%d)\n",
30783              gtk_major_version, gtk_minor_version, gtk_micro_version);
30784     }
30785 #endif /* defined (GTK_MAJOR_VERSION) ... */
30786   else
30787     {
30788       if ((gtk_major_version > major) ||
30789         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30790         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30791       {
30792         return 0;
30793        }
30794      else
30795       {
30796         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30797                gtk_major_version, gtk_minor_version, gtk_micro_version);
30798         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30799                major, minor, micro);
30800         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30801         printf("***\n");
30802         printf("*** If you have already installed a sufficiently new version, this error\n");
30803         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30804         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30805         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30806         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30807         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30808         printf("*** so that the correct libraries are found at run-time))\n");
30809       }
30810     }
30811   return 1;
30812 }
30813
30814 _ACEOF
30815 rm -f conftest$ac_exeext
30816 if { (ac_try="$ac_link"
30817 case "(($ac_try" in
30818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30819   *) ac_try_echo=$ac_try;;
30820 esac
30821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30822   (eval "$ac_link") 2>&5
30823   ac_status=$?
30824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30826   { (case "(($ac_try" in
30827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30828   *) ac_try_echo=$ac_try;;
30829 esac
30830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30831   (eval "$ac_try") 2>&5
30832   ac_status=$?
30833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834   (exit $ac_status); }; }; then
30835   :
30836 else
30837   echo "$as_me: program exited with status $ac_status" >&5
30838 echo "$as_me: failed program was:" >&5
30839 sed 's/^/| /' conftest.$ac_ext >&5
30840
30841 ( exit $ac_status )
30842 no_gtk=yes
30843 fi
30844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30845 fi
30846
30847
30848        CFLAGS="$ac_save_CFLAGS"
30849        LIBS="$ac_save_LIBS"
30850      fi
30851   fi
30852   if test "x$no_gtk" = x ; then
30853      { echo "$as_me:$LINENO: result: yes" >&5
30854 echo "${ECHO_T}yes" >&6; }
30855      wx_cv_lib_gtk=1.2.3
30856   else
30857      { echo "$as_me:$LINENO: result: no" >&5
30858 echo "${ECHO_T}no" >&6; }
30859      if test "$GTK_CONFIG" = "no" ; then
30860        echo "*** The gtk-config script installed by GTK could not be found"
30861        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30862        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30863        echo "*** full path to gtk-config."
30864      else
30865        if test -f conf.gtktest ; then
30866         :
30867        else
30868           echo "*** Could not run GTK test program, checking why..."
30869           CFLAGS="$CFLAGS $GTK_CFLAGS"
30870           LIBS="$LIBS $GTK_LIBS"
30871           cat >conftest.$ac_ext <<_ACEOF
30872 /* confdefs.h.  */
30873 _ACEOF
30874 cat confdefs.h >>conftest.$ac_ext
30875 cat >>conftest.$ac_ext <<_ACEOF
30876 /* end confdefs.h.  */
30877
30878 #include <gtk/gtk.h>
30879 #include <stdio.h>
30880
30881 int
30882 main ()
30883 {
30884  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30885   ;
30886   return 0;
30887 }
30888 _ACEOF
30889 rm -f conftest.$ac_objext conftest$ac_exeext
30890 if { (ac_try="$ac_link"
30891 case "(($ac_try" in
30892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30893   *) ac_try_echo=$ac_try;;
30894 esac
30895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30896   (eval "$ac_link") 2>conftest.er1
30897   ac_status=$?
30898   grep -v '^ *+' conftest.er1 >conftest.err
30899   rm -f conftest.er1
30900   cat conftest.err >&5
30901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902   (exit $ac_status); } && {
30903          test -z "$ac_c_werror_flag" ||
30904          test ! -s conftest.err
30905        } && test -s conftest$ac_exeext &&
30906        $as_test_x conftest$ac_exeext; then
30907    echo "*** The test program compiled, but did not run. This usually means"
30908           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30909           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30910           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30911           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30912           echo "*** is required on your system"
30913           echo "***"
30914           echo "*** If you have an old version installed, it is best to remove it, although"
30915           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30916           echo "***"
30917           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30918           echo "*** came with the system with the command"
30919           echo "***"
30920           echo "***    rpm --erase --nodeps gtk gtk-devel"
30921 else
30922   echo "$as_me: failed program was:" >&5
30923 sed 's/^/| /' conftest.$ac_ext >&5
30924
30925          echo "*** The test program failed to compile or link. See the file config.log for the"
30926           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30927           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30928           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30929 fi
30930
30931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30932       conftest$ac_exeext conftest.$ac_ext
30933           CFLAGS="$ac_save_CFLAGS"
30934           LIBS="$ac_save_LIBS"
30935        fi
30936      fi
30937      GTK_CFLAGS=""
30938      GTK_LIBS=""
30939      :
30940   fi
30941
30942
30943   rm -f conf.gtktest
30944
30945                         fi
30946                     fi
30947                 fi
30948
30949                 if test -z "$wx_cv_lib_gtk"; then
30950                                         wx_cv_lib_gtk=none
30951                 else
30952                                         GTK_LIBS="$GTK_LIBS -lX11"
30953
30954                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
30955                     wx_cv_libs_gtk=$GTK_LIBS
30956                 fi
30957
30958
30959 fi
30960
30961
30962                         if test "$gtk_version_cached" = 1; then
30963             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
30964 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
30965         fi
30966
30967         case "$wx_cv_lib_gtk" in
30968             2.0)    WXGTK2=1
30969                     TOOLKIT_VERSION=2
30970                     ;;
30971             1.2.7)  WXGTK127=1
30972                     ;;
30973             1.2*) ;;
30974             *)      { { echo "$as_me:$LINENO: error:
30975 The development files for GTK+ were not found. For GTK+ 2, please
30976 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30977 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30978 and that the version is 1.2.3 or above. Also check that the
30979 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30980 --libs' are in the LD_LIBRARY_PATH or equivalent.
30981                             " >&5
30982 echo "$as_me: error:
30983 The development files for GTK+ were not found. For GTK+ 2, please
30984 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30985 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30986 and that the version is 1.2.3 or above. Also check that the
30987 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30988 --libs' are in the LD_LIBRARY_PATH or equivalent.
30989                             " >&2;}
30990    { (exit 1); exit 1; }; }
30991                     ;;
30992         esac
30993
30994         if test "$WXGTK2" = 1; then
30995             save_CFLAGS="$CFLAGS"
30996             save_LIBS="$LIBS"
30997             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
30998             LIBS="$LIBS $wx_cv_libs_gtk"
30999
31000                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
31001 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
31002             cat >conftest.$ac_ext <<_ACEOF
31003 /* confdefs.h.  */
31004 _ACEOF
31005 cat confdefs.h >>conftest.$ac_ext
31006 cat >>conftest.$ac_ext <<_ACEOF
31007 /* end confdefs.h.  */
31008
31009                             #include <gtk/gtk.h>
31010
31011 int
31012 main ()
31013 {
31014
31015                             #if !GTK_CHECK_VERSION(2,18,0)
31016                             Not GTK+ 2.18
31017                             #endif
31018
31019   ;
31020   return 0;
31021 }
31022 _ACEOF
31023 rm -f conftest.$ac_objext
31024 if { (ac_try="$ac_compile"
31025 case "(($ac_try" in
31026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31027   *) ac_try_echo=$ac_try;;
31028 esac
31029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31030   (eval "$ac_compile") 2>conftest.er1
31031   ac_status=$?
31032   grep -v '^ *+' conftest.er1 >conftest.err
31033   rm -f conftest.er1
31034   cat conftest.err >&5
31035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036   (exit $ac_status); } && {
31037          test -z "$ac_c_werror_flag" ||
31038          test ! -s conftest.err
31039        } && test -s conftest.$ac_objext; then
31040
31041                             cat >>confdefs.h <<\_ACEOF
31042 #define __WXGTK218__ 1
31043 _ACEOF
31044
31045                             cat >>confdefs.h <<\_ACEOF
31046 #define __WXGTK210__ 1
31047 _ACEOF
31048
31049                             cat >>confdefs.h <<\_ACEOF
31050 #define __WXGTK26__ 1
31051 _ACEOF
31052
31053                             { echo "$as_me:$LINENO: result: yes" >&5
31054 echo "${ECHO_T}yes" >&6; }
31055                             ac_wxgtk218=1
31056
31057 else
31058   echo "$as_me: failed program was:" >&5
31059 sed 's/^/| /' conftest.$ac_ext >&5
31060
31061
31062                             { echo "$as_me:$LINENO: result: no" >&5
31063 echo "${ECHO_T}no" >&6; }
31064                             ac_wxgtk218=0
31065
31066 fi
31067
31068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31069
31070             if test "$ac_wxgtk218" = 0; then
31071                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31072 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31073                 cat >conftest.$ac_ext <<_ACEOF
31074 /* confdefs.h.  */
31075 _ACEOF
31076 cat confdefs.h >>conftest.$ac_ext
31077 cat >>conftest.$ac_ext <<_ACEOF
31078 /* end confdefs.h.  */
31079
31080                                 #include <gtk/gtk.h>
31081
31082 int
31083 main ()
31084 {
31085
31086                                 #if !GTK_CHECK_VERSION(2,10,0)
31087                                 Not GTK+ 2.10
31088                                 #endif
31089
31090   ;
31091   return 0;
31092 }
31093 _ACEOF
31094 rm -f conftest.$ac_objext
31095 if { (ac_try="$ac_compile"
31096 case "(($ac_try" in
31097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31098   *) ac_try_echo=$ac_try;;
31099 esac
31100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31101   (eval "$ac_compile") 2>conftest.er1
31102   ac_status=$?
31103   grep -v '^ *+' conftest.er1 >conftest.err
31104   rm -f conftest.er1
31105   cat conftest.err >&5
31106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107   (exit $ac_status); } && {
31108          test -z "$ac_c_werror_flag" ||
31109          test ! -s conftest.err
31110        } && test -s conftest.$ac_objext; then
31111
31112                                 cat >>confdefs.h <<\_ACEOF
31113 #define __WXGTK210__ 1
31114 _ACEOF
31115
31116                                 cat >>confdefs.h <<\_ACEOF
31117 #define __WXGTK26__ 1
31118 _ACEOF
31119
31120                                 { echo "$as_me:$LINENO: result: yes" >&5
31121 echo "${ECHO_T}yes" >&6; }
31122                                 ac_wxgtk210=1
31123
31124 else
31125   echo "$as_me: failed program was:" >&5
31126 sed 's/^/| /' conftest.$ac_ext >&5
31127
31128
31129                                 { echo "$as_me:$LINENO: result: no" >&5
31130 echo "${ECHO_T}no" >&6; }
31131                                 ac_wxgtk210=0
31132
31133 fi
31134
31135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31136
31137                 if test "$ac_wxgtk210" = 0; then
31138                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31139 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31140                     cat >conftest.$ac_ext <<_ACEOF
31141 /* confdefs.h.  */
31142 _ACEOF
31143 cat confdefs.h >>conftest.$ac_ext
31144 cat >>conftest.$ac_ext <<_ACEOF
31145 /* end confdefs.h.  */
31146
31147                                     #include <gtk/gtk.h>
31148
31149 int
31150 main ()
31151 {
31152
31153                                     #if !GTK_CHECK_VERSION(2,6,0)
31154                                     Not GTK+ 2.6
31155                                     #endif
31156
31157   ;
31158   return 0;
31159 }
31160 _ACEOF
31161 rm -f conftest.$ac_objext
31162 if { (ac_try="$ac_compile"
31163 case "(($ac_try" in
31164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31165   *) ac_try_echo=$ac_try;;
31166 esac
31167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31168   (eval "$ac_compile") 2>conftest.er1
31169   ac_status=$?
31170   grep -v '^ *+' conftest.er1 >conftest.err
31171   rm -f conftest.er1
31172   cat conftest.err >&5
31173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174   (exit $ac_status); } && {
31175          test -z "$ac_c_werror_flag" ||
31176          test ! -s conftest.err
31177        } && test -s conftest.$ac_objext; then
31178
31179                                     cat >>confdefs.h <<\_ACEOF
31180 #define __WXGTK26__ 1
31181 _ACEOF
31182
31183                                     { echo "$as_me:$LINENO: result: yes" >&5
31184 echo "${ECHO_T}yes" >&6; }
31185                                     ac_wxgtk26=1
31186
31187 else
31188   echo "$as_me: failed program was:" >&5
31189 sed 's/^/| /' conftest.$ac_ext >&5
31190
31191
31192                                     { echo "$as_me:$LINENO: result: no" >&5
31193 echo "${ECHO_T}no" >&6; }
31194                                     ac_wxgtk26=0
31195
31196 fi
31197
31198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31199                 fi
31200             fi
31201
31202             CFLAGS="$save_CFLAGS"
31203             LIBS="$save_LIBS"
31204         else
31205             if test "$wxUSE_UNICODE" = "yes"; then
31206                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31207 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31208                 wxUSE_UNICODE=no
31209             fi
31210
31211                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31212 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31213 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31214   echo $ECHO_N "(cached) $ECHO_C" >&6
31215 else
31216   ac_check_lib_save_LIBS=$LIBS
31217 LIBS="-lgdk  $LIBS"
31218 cat >conftest.$ac_ext <<_ACEOF
31219 /* confdefs.h.  */
31220 _ACEOF
31221 cat confdefs.h >>conftest.$ac_ext
31222 cat >>conftest.$ac_ext <<_ACEOF
31223 /* end confdefs.h.  */
31224
31225 /* Override any GCC internal prototype to avoid an error.
31226    Use char because int might match the return type of a GCC
31227    builtin and then its argument prototype would still apply.  */
31228 #ifdef __cplusplus
31229 extern "C"
31230 #endif
31231 char gdk_im_open ();
31232 int
31233 main ()
31234 {
31235 return gdk_im_open ();
31236   ;
31237   return 0;
31238 }
31239 _ACEOF
31240 rm -f conftest.$ac_objext conftest$ac_exeext
31241 if { (ac_try="$ac_link"
31242 case "(($ac_try" in
31243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31244   *) ac_try_echo=$ac_try;;
31245 esac
31246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31247   (eval "$ac_link") 2>conftest.er1
31248   ac_status=$?
31249   grep -v '^ *+' conftest.er1 >conftest.err
31250   rm -f conftest.er1
31251   cat conftest.err >&5
31252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31253   (exit $ac_status); } && {
31254          test -z "$ac_c_werror_flag" ||
31255          test ! -s conftest.err
31256        } && test -s conftest$ac_exeext &&
31257        $as_test_x conftest$ac_exeext; then
31258   ac_cv_lib_gdk_gdk_im_open=yes
31259 else
31260   echo "$as_me: failed program was:" >&5
31261 sed 's/^/| /' conftest.$ac_ext >&5
31262
31263         ac_cv_lib_gdk_gdk_im_open=no
31264 fi
31265
31266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31267       conftest$ac_exeext conftest.$ac_ext
31268 LIBS=$ac_check_lib_save_LIBS
31269 fi
31270 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31271 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31272 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31273   cat >>confdefs.h <<\_ACEOF
31274 #define HAVE_XIM 1
31275 _ACEOF
31276
31277 fi
31278
31279
31280                                     if test "$USE_DARWIN" != 1; then
31281
31282 for ac_func in poll
31283 do
31284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31288   echo $ECHO_N "(cached) $ECHO_C" >&6
31289 else
31290   cat >conftest.$ac_ext <<_ACEOF
31291 /* confdefs.h.  */
31292 _ACEOF
31293 cat confdefs.h >>conftest.$ac_ext
31294 cat >>conftest.$ac_ext <<_ACEOF
31295 /* end confdefs.h.  */
31296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31298 #define $ac_func innocuous_$ac_func
31299
31300 /* System header to define __stub macros and hopefully few prototypes,
31301     which can conflict with char $ac_func (); below.
31302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31303     <limits.h> exists even on freestanding compilers.  */
31304
31305 #ifdef __STDC__
31306 # include <limits.h>
31307 #else
31308 # include <assert.h>
31309 #endif
31310
31311 #undef $ac_func
31312
31313 /* Override any GCC internal prototype to avoid an error.
31314    Use char because int might match the return type of a GCC
31315    builtin and then its argument prototype would still apply.  */
31316 #ifdef __cplusplus
31317 extern "C"
31318 #endif
31319 char $ac_func ();
31320 /* The GNU C library defines this for functions which it implements
31321     to always fail with ENOSYS.  Some functions are actually named
31322     something starting with __ and the normal name is an alias.  */
31323 #if defined __stub_$ac_func || defined __stub___$ac_func
31324 choke me
31325 #endif
31326
31327 int
31328 main ()
31329 {
31330 return $ac_func ();
31331   ;
31332   return 0;
31333 }
31334 _ACEOF
31335 rm -f conftest.$ac_objext conftest$ac_exeext
31336 if { (ac_try="$ac_link"
31337 case "(($ac_try" in
31338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31339   *) ac_try_echo=$ac_try;;
31340 esac
31341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31342   (eval "$ac_link") 2>conftest.er1
31343   ac_status=$?
31344   grep -v '^ *+' conftest.er1 >conftest.err
31345   rm -f conftest.er1
31346   cat conftest.err >&5
31347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348   (exit $ac_status); } && {
31349          test -z "$ac_c_werror_flag" ||
31350          test ! -s conftest.err
31351        } && test -s conftest$ac_exeext &&
31352        $as_test_x conftest$ac_exeext; then
31353   eval "$as_ac_var=yes"
31354 else
31355   echo "$as_me: failed program was:" >&5
31356 sed 's/^/| /' conftest.$ac_ext >&5
31357
31358         eval "$as_ac_var=no"
31359 fi
31360
31361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31362       conftest$ac_exeext conftest.$ac_ext
31363 fi
31364 ac_res=`eval echo '${'$as_ac_var'}'`
31365                { echo "$as_me:$LINENO: result: $ac_res" >&5
31366 echo "${ECHO_T}$ac_res" >&6; }
31367 if test `eval echo '${'$as_ac_var'}'` = yes; then
31368   cat >>confdefs.h <<_ACEOF
31369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31370 _ACEOF
31371
31372 fi
31373 done
31374
31375             fi
31376         fi
31377
31378         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31379         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31380         AFMINSTALL=afminstall
31381         TOOLKIT=GTK
31382         GUIDIST=GTK_DIST
31383
31384                 if test "$wxUSE_GPE" = "yes"; then
31385             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31386 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31387
31388   ac_find_libraries=
31389   for ac_dir in $SEARCH_LIB
31390   do
31391     for ac_extension in a so sl dylib dll.a; do
31392       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31393         ac_find_libraries=$ac_dir
31394         break 2
31395       fi
31396     done
31397   done
31398
31399             if test "$ac_find_libraries" != "" ; then
31400
31401     if test "$ac_find_libraries" = "default location"; then
31402     ac_path_to_link=""
31403   else
31404     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31405     result=$?
31406     if test $result = 0; then
31407       ac_path_to_link=""
31408     else
31409       ac_path_to_link=" -L$ac_find_libraries"
31410     fi
31411   fi
31412
31413                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31414                 WXGPE=1
31415                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31416 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31417             else
31418                 { echo "$as_me:$LINENO: result: not found" >&5
31419 echo "${ECHO_T}not found" >&6; }
31420             fi
31421
31422                                                                                                                     fi
31423     fi
31424
31425     if test "$wxUSE_MGL" = 1; then
31426        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31427 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31428         if test "x$MGL_ROOT" = x ; then
31429             { echo "$as_me:$LINENO: result: not found" >&5
31430 echo "${ECHO_T}not found" >&6; }
31431             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31432 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31433    { (exit 1); exit 1; }; }
31434         else
31435             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31436 echo "${ECHO_T}$MGL_ROOT" >&6; }
31437         fi
31438
31439         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31440 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31441                                 case "${host}" in
31442             *-*-linux* )
31443                                           if test "x$wxUSE_SHARED" = xyes ; then
31444                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31445               else
31446                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31447               fi
31448               ;;
31449             *-pc-msdosdjgpp )
31450               mgl_os_candidates="dos32/dj2"
31451               ;;
31452             *)
31453               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31454 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31455    { (exit 1); exit 1; }; }
31456         esac
31457
31458         mgl_lib_type=""
31459         mgl_os=""
31460
31461         for mgl_os_i in $mgl_os_candidates ; do
31462             if test "x$mgl_os" = x ; then
31463                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31464                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31465                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31466                         mgl_lib_type=debug
31467                         mgl_os=$mgl_os_i
31468                     fi
31469                 fi
31470                 if test "x$mgl_lib_type" = x ; then
31471                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31472                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31473                         mgl_lib_type=release
31474                         mgl_os=$mgl_os_i
31475                     fi
31476                 fi
31477             fi
31478         done
31479
31480         if test "x$mgl_os" = x ; then
31481             { echo "$as_me:$LINENO: result: not found" >&5
31482 echo "${ECHO_T}not found" >&6; }
31483             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31484 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31485    { (exit 1); exit 1; }; }
31486         fi
31487         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31488 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31489
31490         wxUSE_UNIVERSAL="yes"
31491
31492         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31493         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31494
31495         AFMINSTALL=afminstall
31496         TOOLKIT=MGL
31497         GUIDIST=MGL_DIST
31498     fi
31499
31500     if test "$wxUSE_DFB" = 1; then
31501
31502
31503 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31504         if test -n "$ac_tool_prefix"; then
31505   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31506 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31510   echo $ECHO_N "(cached) $ECHO_C" >&6
31511 else
31512   case $PKG_CONFIG in
31513   [\\/]* | ?:[\\/]*)
31514   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31515   ;;
31516   *)
31517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31518 for as_dir in $PATH
31519 do
31520   IFS=$as_save_IFS
31521   test -z "$as_dir" && as_dir=.
31522   for ac_exec_ext in '' $ac_executable_extensions; do
31523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31524     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31526     break 2
31527   fi
31528 done
31529 done
31530 IFS=$as_save_IFS
31531
31532   ;;
31533 esac
31534 fi
31535 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31536 if test -n "$PKG_CONFIG"; then
31537   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31538 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31539 else
31540   { echo "$as_me:$LINENO: result: no" >&5
31541 echo "${ECHO_T}no" >&6; }
31542 fi
31543
31544
31545 fi
31546 if test -z "$ac_cv_path_PKG_CONFIG"; then
31547   ac_pt_PKG_CONFIG=$PKG_CONFIG
31548   # Extract the first word of "pkg-config", so it can be a program name with args.
31549 set dummy pkg-config; ac_word=$2
31550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31552 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31553   echo $ECHO_N "(cached) $ECHO_C" >&6
31554 else
31555   case $ac_pt_PKG_CONFIG in
31556   [\\/]* | ?:[\\/]*)
31557   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31558   ;;
31559   *)
31560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31561 for as_dir in $PATH
31562 do
31563   IFS=$as_save_IFS
31564   test -z "$as_dir" && as_dir=.
31565   for ac_exec_ext in '' $ac_executable_extensions; do
31566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31567     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31569     break 2
31570   fi
31571 done
31572 done
31573 IFS=$as_save_IFS
31574
31575   ;;
31576 esac
31577 fi
31578 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31579 if test -n "$ac_pt_PKG_CONFIG"; then
31580   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31581 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31582 else
31583   { echo "$as_me:$LINENO: result: no" >&5
31584 echo "${ECHO_T}no" >&6; }
31585 fi
31586
31587   if test "x$ac_pt_PKG_CONFIG" = x; then
31588     PKG_CONFIG=""
31589   else
31590     case $cross_compiling:$ac_tool_warned in
31591 yes:)
31592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31593 whose name does not start with the host triplet.  If you think this
31594 configuration is useful to you, please write to autoconf@gnu.org." >&5
31595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31596 whose name does not start with the host triplet.  If you think this
31597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31598 ac_tool_warned=yes ;;
31599 esac
31600     PKG_CONFIG=$ac_pt_PKG_CONFIG
31601   fi
31602 else
31603   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31604 fi
31605
31606 fi
31607 if test -n "$PKG_CONFIG"; then
31608         _pkg_min_version=0.9.0
31609         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31610 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31611         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31612                 { echo "$as_me:$LINENO: result: yes" >&5
31613 echo "${ECHO_T}yes" >&6; }
31614         else
31615                 { echo "$as_me:$LINENO: result: no" >&5
31616 echo "${ECHO_T}no" >&6; }
31617                 PKG_CONFIG=""
31618         fi
31619
31620 fi
31621
31622
31623 pkg_failed=no
31624 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31625 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31626
31627 if test -n "$PKG_CONFIG"; then
31628     if test -n "$DIRECTFB_CFLAGS"; then
31629         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31630     else
31631         if test -n "$PKG_CONFIG" && \
31632     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31633   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31634   ac_status=$?
31635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636   (exit $ac_status); }; then
31637   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31638 else
31639   pkg_failed=yes
31640 fi
31641     fi
31642 else
31643         pkg_failed=untried
31644 fi
31645 if test -n "$PKG_CONFIG"; then
31646     if test -n "$DIRECTFB_LIBS"; then
31647         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31648     else
31649         if test -n "$PKG_CONFIG" && \
31650     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31651   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31652   ac_status=$?
31653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31654   (exit $ac_status); }; then
31655   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31656 else
31657   pkg_failed=yes
31658 fi
31659     fi
31660 else
31661         pkg_failed=untried
31662 fi
31663
31664
31665
31666 if test $pkg_failed = yes; then
31667
31668 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31669         _pkg_short_errors_supported=yes
31670 else
31671         _pkg_short_errors_supported=no
31672 fi
31673         if test $_pkg_short_errors_supported = yes; then
31674                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31675         else
31676                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31677         fi
31678         # Put the nasty error message in config.log where it belongs
31679         echo "$DIRECTFB_PKG_ERRORS" >&5
31680
31681
31682                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31683 echo "$as_me: error: DirectFB not found." >&2;}
31684    { (exit 1); exit 1; }; }
31685
31686
31687 elif test $pkg_failed = untried; then
31688
31689                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31690 echo "$as_me: error: DirectFB not found." >&2;}
31691    { (exit 1); exit 1; }; }
31692
31693
31694 else
31695         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31696         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31697         { echo "$as_me:$LINENO: result: yes" >&5
31698 echo "${ECHO_T}yes" >&6; }
31699
31700                            wxUSE_UNIVERSAL="yes"
31701                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31702                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31703                            TOOLKIT=DFB
31704                            GUIDIST=DFB_DIST
31705
31706 fi
31707     fi
31708
31709     if test "$wxUSE_MICROWIN" = 1; then
31710         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31711 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31712         if test "x$MICROWINDOWS" = x ; then
31713             { echo "$as_me:$LINENO: result: not found" >&5
31714 echo "${ECHO_T}not found" >&6; }
31715             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31716 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31717    { (exit 1); exit 1; }; }
31718         else
31719             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31720 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31721         fi
31722
31723         if test -f $MICROWINDOWS/lib/libmwin.a; then
31724             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31725 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31726         else
31727             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31728 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31729    { (exit 1); exit 1; }; }
31730         fi
31731
31732         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31733         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31734
31735         wxUSE_UNIVERSAL="yes"
31736
31737         AFMINSTALL=afminstall
31738         TOOLKIT=MICROWIN
31739         GUIDIST=MICROWIN_DIST
31740
31741         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31742     fi
31743
31744         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31745                                 { echo "$as_me:$LINENO: checking for X" >&5
31746 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31747
31748
31749 # Check whether --with-x was given.
31750 if test "${with_x+set}" = set; then
31751   withval=$with_x;
31752 fi
31753
31754 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31755 if test "x$with_x" = xno; then
31756   # The user explicitly disabled X.
31757   have_x=disabled
31758 else
31759   case $x_includes,$x_libraries in #(
31760     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31761 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31762    { (exit 1); exit 1; }; };; #(
31763     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31764   echo $ECHO_N "(cached) $ECHO_C" >&6
31765 else
31766   # One or both of the vars are not set, and there is no cached value.
31767 ac_x_includes=no ac_x_libraries=no
31768 rm -f -r conftest.dir
31769 if mkdir conftest.dir; then
31770   cd conftest.dir
31771   cat >Imakefile <<'_ACEOF'
31772 incroot:
31773         @echo incroot='${INCROOT}'
31774 usrlibdir:
31775         @echo usrlibdir='${USRLIBDIR}'
31776 libdir:
31777         @echo libdir='${LIBDIR}'
31778 _ACEOF
31779   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31780     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31781     for ac_var in incroot usrlibdir libdir; do
31782       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31783     done
31784     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31785     for ac_extension in a so sl; do
31786       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31787          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31788         ac_im_usrlibdir=$ac_im_libdir; break
31789       fi
31790     done
31791     # Screen out bogus values from the imake configuration.  They are
31792     # bogus both because they are the default anyway, and because
31793     # using them would break gcc on systems where it needs fixed includes.
31794     case $ac_im_incroot in
31795         /usr/include) ac_x_includes= ;;
31796         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31797     esac
31798     case $ac_im_usrlibdir in
31799         /usr/lib | /lib) ;;
31800         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31801     esac
31802   fi
31803   cd ..
31804   rm -f -r conftest.dir
31805 fi
31806
31807 # Standard set of common directories for X headers.
31808 # Check X11 before X11Rn because it is often a symlink to the current release.
31809 ac_x_header_dirs='
31810 /usr/X11/include
31811 /usr/X11R6/include
31812 /usr/X11R5/include
31813 /usr/X11R4/include
31814
31815 /usr/include/X11
31816 /usr/include/X11R6
31817 /usr/include/X11R5
31818 /usr/include/X11R4
31819
31820 /usr/local/X11/include
31821 /usr/local/X11R6/include
31822 /usr/local/X11R5/include
31823 /usr/local/X11R4/include
31824
31825 /usr/local/include/X11
31826 /usr/local/include/X11R6
31827 /usr/local/include/X11R5
31828 /usr/local/include/X11R4
31829
31830 /usr/X386/include
31831 /usr/x386/include
31832 /usr/XFree86/include/X11
31833
31834 /usr/include
31835 /usr/local/include
31836 /usr/unsupported/include
31837 /usr/athena/include
31838 /usr/local/x11r5/include
31839 /usr/lpp/Xamples/include
31840
31841 /usr/openwin/include
31842 /usr/openwin/share/include'
31843
31844 if test "$ac_x_includes" = no; then
31845   # Guess where to find include files, by looking for Xlib.h.
31846   # First, try using that file with no special directory specified.
31847   cat >conftest.$ac_ext <<_ACEOF
31848 /* confdefs.h.  */
31849 _ACEOF
31850 cat confdefs.h >>conftest.$ac_ext
31851 cat >>conftest.$ac_ext <<_ACEOF
31852 /* end confdefs.h.  */
31853 #include <X11/Xlib.h>
31854 _ACEOF
31855 if { (ac_try="$ac_cpp conftest.$ac_ext"
31856 case "(($ac_try" in
31857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31858   *) ac_try_echo=$ac_try;;
31859 esac
31860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31862   ac_status=$?
31863   grep -v '^ *+' conftest.er1 >conftest.err
31864   rm -f conftest.er1
31865   cat conftest.err >&5
31866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867   (exit $ac_status); } >/dev/null && {
31868          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31869          test ! -s conftest.err
31870        }; then
31871   # We can compile using X headers with no special include directory.
31872 ac_x_includes=
31873 else
31874   echo "$as_me: failed program was:" >&5
31875 sed 's/^/| /' conftest.$ac_ext >&5
31876
31877   for ac_dir in $ac_x_header_dirs; do
31878   if test -r "$ac_dir/X11/Xlib.h"; then
31879     ac_x_includes=$ac_dir
31880     break
31881   fi
31882 done
31883 fi
31884
31885 rm -f conftest.err conftest.$ac_ext
31886 fi # $ac_x_includes = no
31887
31888 if test "$ac_x_libraries" = no; then
31889   # Check for the libraries.
31890   # See if we find them without any special options.
31891   # Don't add to $LIBS permanently.
31892   ac_save_LIBS=$LIBS
31893   LIBS="-lX11 $LIBS"
31894   cat >conftest.$ac_ext <<_ACEOF
31895 /* confdefs.h.  */
31896 _ACEOF
31897 cat confdefs.h >>conftest.$ac_ext
31898 cat >>conftest.$ac_ext <<_ACEOF
31899 /* end confdefs.h.  */
31900 #include <X11/Xlib.h>
31901 int
31902 main ()
31903 {
31904 XrmInitialize ()
31905   ;
31906   return 0;
31907 }
31908 _ACEOF
31909 rm -f conftest.$ac_objext conftest$ac_exeext
31910 if { (ac_try="$ac_link"
31911 case "(($ac_try" in
31912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31913   *) ac_try_echo=$ac_try;;
31914 esac
31915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31916   (eval "$ac_link") 2>conftest.er1
31917   ac_status=$?
31918   grep -v '^ *+' conftest.er1 >conftest.err
31919   rm -f conftest.er1
31920   cat conftest.err >&5
31921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922   (exit $ac_status); } && {
31923          test -z "$ac_c_werror_flag" ||
31924          test ! -s conftest.err
31925        } && test -s conftest$ac_exeext &&
31926        $as_test_x conftest$ac_exeext; then
31927   LIBS=$ac_save_LIBS
31928 # We can link X programs with no special library path.
31929 ac_x_libraries=
31930 else
31931   echo "$as_me: failed program was:" >&5
31932 sed 's/^/| /' conftest.$ac_ext >&5
31933
31934         LIBS=$ac_save_LIBS
31935 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31936 do
31937   # Don't even attempt the hair of trying to link an X program!
31938   for ac_extension in a so sl; do
31939     if test -r "$ac_dir/libX11.$ac_extension"; then
31940       ac_x_libraries=$ac_dir
31941       break 2
31942     fi
31943   done
31944 done
31945 fi
31946
31947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31948       conftest$ac_exeext conftest.$ac_ext
31949 fi # $ac_x_libraries = no
31950
31951 case $ac_x_includes,$ac_x_libraries in #(
31952   no,* | *,no | *\'*)
31953     # Didn't find X, or a directory has "'" in its name.
31954     ac_cv_have_x="have_x=no";; #(
31955   *)
31956     # Record where we found X for the cache.
31957     ac_cv_have_x="have_x=yes\
31958         ac_x_includes='$ac_x_includes'\
31959         ac_x_libraries='$ac_x_libraries'"
31960 esac
31961 fi
31962 ;; #(
31963     *) have_x=yes;;
31964   esac
31965   eval "$ac_cv_have_x"
31966 fi # $with_x != no
31967
31968 if test "$have_x" != yes; then
31969   { echo "$as_me:$LINENO: result: $have_x" >&5
31970 echo "${ECHO_T}$have_x" >&6; }
31971   no_x=yes
31972 else
31973   # If each of the values was on the command line, it overrides each guess.
31974   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
31975   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
31976   # Update the cache value to reflect the command line values.
31977   ac_cv_have_x="have_x=yes\
31978         ac_x_includes='$x_includes'\
31979         ac_x_libraries='$x_libraries'"
31980   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
31981 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
31982 fi
31983
31984 if test "$no_x" = yes; then
31985   # Not all programs may use this symbol, but it does not hurt to define it.
31986
31987 cat >>confdefs.h <<\_ACEOF
31988 #define X_DISPLAY_MISSING 1
31989 _ACEOF
31990
31991   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
31992 else
31993   if test -n "$x_includes"; then
31994     X_CFLAGS="$X_CFLAGS -I$x_includes"
31995   fi
31996
31997   # It would also be nice to do this for all -L options, not just this one.
31998   if test -n "$x_libraries"; then
31999     X_LIBS="$X_LIBS -L$x_libraries"
32000     # For Solaris; some versions of Sun CC require a space after -R and
32001     # others require no space.  Words are not sufficient . . . .
32002     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32003 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32004     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32005     ac_xsave_c_werror_flag=$ac_c_werror_flag
32006     ac_c_werror_flag=yes
32007     cat >conftest.$ac_ext <<_ACEOF
32008 /* confdefs.h.  */
32009 _ACEOF
32010 cat confdefs.h >>conftest.$ac_ext
32011 cat >>conftest.$ac_ext <<_ACEOF
32012 /* end confdefs.h.  */
32013
32014 int
32015 main ()
32016 {
32017
32018   ;
32019   return 0;
32020 }
32021 _ACEOF
32022 rm -f conftest.$ac_objext conftest$ac_exeext
32023 if { (ac_try="$ac_link"
32024 case "(($ac_try" in
32025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026   *) ac_try_echo=$ac_try;;
32027 esac
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029   (eval "$ac_link") 2>conftest.er1
32030   ac_status=$?
32031   grep -v '^ *+' conftest.er1 >conftest.err
32032   rm -f conftest.er1
32033   cat conftest.err >&5
32034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035   (exit $ac_status); } && {
32036          test -z "$ac_c_werror_flag" ||
32037          test ! -s conftest.err
32038        } && test -s conftest$ac_exeext &&
32039        $as_test_x conftest$ac_exeext; then
32040   { echo "$as_me:$LINENO: result: no" >&5
32041 echo "${ECHO_T}no" >&6; }
32042        X_LIBS="$X_LIBS -R$x_libraries"
32043 else
32044   echo "$as_me: failed program was:" >&5
32045 sed 's/^/| /' conftest.$ac_ext >&5
32046
32047         LIBS="$ac_xsave_LIBS -R $x_libraries"
32048        cat >conftest.$ac_ext <<_ACEOF
32049 /* confdefs.h.  */
32050 _ACEOF
32051 cat confdefs.h >>conftest.$ac_ext
32052 cat >>conftest.$ac_ext <<_ACEOF
32053 /* end confdefs.h.  */
32054
32055 int
32056 main ()
32057 {
32058
32059   ;
32060   return 0;
32061 }
32062 _ACEOF
32063 rm -f conftest.$ac_objext conftest$ac_exeext
32064 if { (ac_try="$ac_link"
32065 case "(($ac_try" in
32066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32067   *) ac_try_echo=$ac_try;;
32068 esac
32069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32070   (eval "$ac_link") 2>conftest.er1
32071   ac_status=$?
32072   grep -v '^ *+' conftest.er1 >conftest.err
32073   rm -f conftest.er1
32074   cat conftest.err >&5
32075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076   (exit $ac_status); } && {
32077          test -z "$ac_c_werror_flag" ||
32078          test ! -s conftest.err
32079        } && test -s conftest$ac_exeext &&
32080        $as_test_x conftest$ac_exeext; then
32081   { echo "$as_me:$LINENO: result: yes" >&5
32082 echo "${ECHO_T}yes" >&6; }
32083           X_LIBS="$X_LIBS -R $x_libraries"
32084 else
32085   echo "$as_me: failed program was:" >&5
32086 sed 's/^/| /' conftest.$ac_ext >&5
32087
32088         { echo "$as_me:$LINENO: result: neither works" >&5
32089 echo "${ECHO_T}neither works" >&6; }
32090 fi
32091
32092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32093       conftest$ac_exeext conftest.$ac_ext
32094 fi
32095
32096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32097       conftest$ac_exeext conftest.$ac_ext
32098     ac_c_werror_flag=$ac_xsave_c_werror_flag
32099     LIBS=$ac_xsave_LIBS
32100   fi
32101
32102   # Check for system-dependent libraries X programs must link with.
32103   # Do this before checking for the system-independent R6 libraries
32104   # (-lICE), since we may need -lsocket or whatever for X linking.
32105
32106   if test "$ISC" = yes; then
32107     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32108   else
32109     # Martyn Johnson says this is needed for Ultrix, if the X
32110     # libraries were built with DECnet support.  And Karl Berry says
32111     # the Alpha needs dnet_stub (dnet does not exist).
32112     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32113     cat >conftest.$ac_ext <<_ACEOF
32114 /* confdefs.h.  */
32115 _ACEOF
32116 cat confdefs.h >>conftest.$ac_ext
32117 cat >>conftest.$ac_ext <<_ACEOF
32118 /* end confdefs.h.  */
32119
32120 /* Override any GCC internal prototype to avoid an error.
32121    Use char because int might match the return type of a GCC
32122    builtin and then its argument prototype would still apply.  */
32123 #ifdef __cplusplus
32124 extern "C"
32125 #endif
32126 char XOpenDisplay ();
32127 int
32128 main ()
32129 {
32130 return XOpenDisplay ();
32131   ;
32132   return 0;
32133 }
32134 _ACEOF
32135 rm -f conftest.$ac_objext conftest$ac_exeext
32136 if { (ac_try="$ac_link"
32137 case "(($ac_try" in
32138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32139   *) ac_try_echo=$ac_try;;
32140 esac
32141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32142   (eval "$ac_link") 2>conftest.er1
32143   ac_status=$?
32144   grep -v '^ *+' conftest.er1 >conftest.err
32145   rm -f conftest.er1
32146   cat conftest.err >&5
32147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148   (exit $ac_status); } && {
32149          test -z "$ac_c_werror_flag" ||
32150          test ! -s conftest.err
32151        } && test -s conftest$ac_exeext &&
32152        $as_test_x conftest$ac_exeext; then
32153   :
32154 else
32155   echo "$as_me: failed program was:" >&5
32156 sed 's/^/| /' conftest.$ac_ext >&5
32157
32158         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32159 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32160 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32161   echo $ECHO_N "(cached) $ECHO_C" >&6
32162 else
32163   ac_check_lib_save_LIBS=$LIBS
32164 LIBS="-ldnet  $LIBS"
32165 cat >conftest.$ac_ext <<_ACEOF
32166 /* confdefs.h.  */
32167 _ACEOF
32168 cat confdefs.h >>conftest.$ac_ext
32169 cat >>conftest.$ac_ext <<_ACEOF
32170 /* end confdefs.h.  */
32171
32172 /* Override any GCC internal prototype to avoid an error.
32173    Use char because int might match the return type of a GCC
32174    builtin and then its argument prototype would still apply.  */
32175 #ifdef __cplusplus
32176 extern "C"
32177 #endif
32178 char dnet_ntoa ();
32179 int
32180 main ()
32181 {
32182 return dnet_ntoa ();
32183   ;
32184   return 0;
32185 }
32186 _ACEOF
32187 rm -f conftest.$ac_objext conftest$ac_exeext
32188 if { (ac_try="$ac_link"
32189 case "(($ac_try" in
32190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191   *) ac_try_echo=$ac_try;;
32192 esac
32193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194   (eval "$ac_link") 2>conftest.er1
32195   ac_status=$?
32196   grep -v '^ *+' conftest.er1 >conftest.err
32197   rm -f conftest.er1
32198   cat conftest.err >&5
32199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200   (exit $ac_status); } && {
32201          test -z "$ac_c_werror_flag" ||
32202          test ! -s conftest.err
32203        } && test -s conftest$ac_exeext &&
32204        $as_test_x conftest$ac_exeext; then
32205   ac_cv_lib_dnet_dnet_ntoa=yes
32206 else
32207   echo "$as_me: failed program was:" >&5
32208 sed 's/^/| /' conftest.$ac_ext >&5
32209
32210         ac_cv_lib_dnet_dnet_ntoa=no
32211 fi
32212
32213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32214       conftest$ac_exeext conftest.$ac_ext
32215 LIBS=$ac_check_lib_save_LIBS
32216 fi
32217 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32218 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32219 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32220   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32221 fi
32222
32223     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32224       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32225 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32226 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32227   echo $ECHO_N "(cached) $ECHO_C" >&6
32228 else
32229   ac_check_lib_save_LIBS=$LIBS
32230 LIBS="-ldnet_stub  $LIBS"
32231 cat >conftest.$ac_ext <<_ACEOF
32232 /* confdefs.h.  */
32233 _ACEOF
32234 cat confdefs.h >>conftest.$ac_ext
32235 cat >>conftest.$ac_ext <<_ACEOF
32236 /* end confdefs.h.  */
32237
32238 /* Override any GCC internal prototype to avoid an error.
32239    Use char because int might match the return type of a GCC
32240    builtin and then its argument prototype would still apply.  */
32241 #ifdef __cplusplus
32242 extern "C"
32243 #endif
32244 char dnet_ntoa ();
32245 int
32246 main ()
32247 {
32248 return dnet_ntoa ();
32249   ;
32250   return 0;
32251 }
32252 _ACEOF
32253 rm -f conftest.$ac_objext conftest$ac_exeext
32254 if { (ac_try="$ac_link"
32255 case "(($ac_try" in
32256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32257   *) ac_try_echo=$ac_try;;
32258 esac
32259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32260   (eval "$ac_link") 2>conftest.er1
32261   ac_status=$?
32262   grep -v '^ *+' conftest.er1 >conftest.err
32263   rm -f conftest.er1
32264   cat conftest.err >&5
32265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266   (exit $ac_status); } && {
32267          test -z "$ac_c_werror_flag" ||
32268          test ! -s conftest.err
32269        } && test -s conftest$ac_exeext &&
32270        $as_test_x conftest$ac_exeext; then
32271   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32272 else
32273   echo "$as_me: failed program was:" >&5
32274 sed 's/^/| /' conftest.$ac_ext >&5
32275
32276         ac_cv_lib_dnet_stub_dnet_ntoa=no
32277 fi
32278
32279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32280       conftest$ac_exeext conftest.$ac_ext
32281 LIBS=$ac_check_lib_save_LIBS
32282 fi
32283 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32284 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32285 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32286   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32287 fi
32288
32289     fi
32290 fi
32291
32292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32293       conftest$ac_exeext conftest.$ac_ext
32294     LIBS="$ac_xsave_LIBS"
32295
32296     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32297     # to get the SysV transport functions.
32298     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32299     # needs -lnsl.
32300     # The nsl library prevents programs from opening the X display
32301     # on Irix 5.2, according to T.E. Dickey.
32302     # The functions gethostbyname, getservbyname, and inet_addr are
32303     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32304     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32305 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32306 if test "${ac_cv_func_gethostbyname+set}" = set; then
32307   echo $ECHO_N "(cached) $ECHO_C" >&6
32308 else
32309   cat >conftest.$ac_ext <<_ACEOF
32310 /* confdefs.h.  */
32311 _ACEOF
32312 cat confdefs.h >>conftest.$ac_ext
32313 cat >>conftest.$ac_ext <<_ACEOF
32314 /* end confdefs.h.  */
32315 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32317 #define gethostbyname innocuous_gethostbyname
32318
32319 /* System header to define __stub macros and hopefully few prototypes,
32320     which can conflict with char gethostbyname (); below.
32321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32322     <limits.h> exists even on freestanding compilers.  */
32323
32324 #ifdef __STDC__
32325 # include <limits.h>
32326 #else
32327 # include <assert.h>
32328 #endif
32329
32330 #undef gethostbyname
32331
32332 /* Override any GCC internal prototype to avoid an error.
32333    Use char because int might match the return type of a GCC
32334    builtin and then its argument prototype would still apply.  */
32335 #ifdef __cplusplus
32336 extern "C"
32337 #endif
32338 char gethostbyname ();
32339 /* The GNU C library defines this for functions which it implements
32340     to always fail with ENOSYS.  Some functions are actually named
32341     something starting with __ and the normal name is an alias.  */
32342 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32343 choke me
32344 #endif
32345
32346 int
32347 main ()
32348 {
32349 return gethostbyname ();
32350   ;
32351   return 0;
32352 }
32353 _ACEOF
32354 rm -f conftest.$ac_objext conftest$ac_exeext
32355 if { (ac_try="$ac_link"
32356 case "(($ac_try" in
32357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358   *) ac_try_echo=$ac_try;;
32359 esac
32360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361   (eval "$ac_link") 2>conftest.er1
32362   ac_status=$?
32363   grep -v '^ *+' conftest.er1 >conftest.err
32364   rm -f conftest.er1
32365   cat conftest.err >&5
32366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367   (exit $ac_status); } && {
32368          test -z "$ac_c_werror_flag" ||
32369          test ! -s conftest.err
32370        } && test -s conftest$ac_exeext &&
32371        $as_test_x conftest$ac_exeext; then
32372   ac_cv_func_gethostbyname=yes
32373 else
32374   echo "$as_me: failed program was:" >&5
32375 sed 's/^/| /' conftest.$ac_ext >&5
32376
32377         ac_cv_func_gethostbyname=no
32378 fi
32379
32380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32381       conftest$ac_exeext conftest.$ac_ext
32382 fi
32383 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32384 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32385
32386     if test $ac_cv_func_gethostbyname = no; then
32387       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32388 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32389 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32390   echo $ECHO_N "(cached) $ECHO_C" >&6
32391 else
32392   ac_check_lib_save_LIBS=$LIBS
32393 LIBS="-lnsl  $LIBS"
32394 cat >conftest.$ac_ext <<_ACEOF
32395 /* confdefs.h.  */
32396 _ACEOF
32397 cat confdefs.h >>conftest.$ac_ext
32398 cat >>conftest.$ac_ext <<_ACEOF
32399 /* end confdefs.h.  */
32400
32401 /* Override any GCC internal prototype to avoid an error.
32402    Use char because int might match the return type of a GCC
32403    builtin and then its argument prototype would still apply.  */
32404 #ifdef __cplusplus
32405 extern "C"
32406 #endif
32407 char gethostbyname ();
32408 int
32409 main ()
32410 {
32411 return gethostbyname ();
32412   ;
32413   return 0;
32414 }
32415 _ACEOF
32416 rm -f conftest.$ac_objext conftest$ac_exeext
32417 if { (ac_try="$ac_link"
32418 case "(($ac_try" in
32419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32420   *) ac_try_echo=$ac_try;;
32421 esac
32422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32423   (eval "$ac_link") 2>conftest.er1
32424   ac_status=$?
32425   grep -v '^ *+' conftest.er1 >conftest.err
32426   rm -f conftest.er1
32427   cat conftest.err >&5
32428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32429   (exit $ac_status); } && {
32430          test -z "$ac_c_werror_flag" ||
32431          test ! -s conftest.err
32432        } && test -s conftest$ac_exeext &&
32433        $as_test_x conftest$ac_exeext; then
32434   ac_cv_lib_nsl_gethostbyname=yes
32435 else
32436   echo "$as_me: failed program was:" >&5
32437 sed 's/^/| /' conftest.$ac_ext >&5
32438
32439         ac_cv_lib_nsl_gethostbyname=no
32440 fi
32441
32442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32443       conftest$ac_exeext conftest.$ac_ext
32444 LIBS=$ac_check_lib_save_LIBS
32445 fi
32446 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32447 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32448 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32449   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32450 fi
32451
32452       if test $ac_cv_lib_nsl_gethostbyname = no; then
32453         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32454 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32455 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32456   echo $ECHO_N "(cached) $ECHO_C" >&6
32457 else
32458   ac_check_lib_save_LIBS=$LIBS
32459 LIBS="-lbsd  $LIBS"
32460 cat >conftest.$ac_ext <<_ACEOF
32461 /* confdefs.h.  */
32462 _ACEOF
32463 cat confdefs.h >>conftest.$ac_ext
32464 cat >>conftest.$ac_ext <<_ACEOF
32465 /* end confdefs.h.  */
32466
32467 /* Override any GCC internal prototype to avoid an error.
32468    Use char because int might match the return type of a GCC
32469    builtin and then its argument prototype would still apply.  */
32470 #ifdef __cplusplus
32471 extern "C"
32472 #endif
32473 char gethostbyname ();
32474 int
32475 main ()
32476 {
32477 return gethostbyname ();
32478   ;
32479   return 0;
32480 }
32481 _ACEOF
32482 rm -f conftest.$ac_objext conftest$ac_exeext
32483 if { (ac_try="$ac_link"
32484 case "(($ac_try" in
32485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32486   *) ac_try_echo=$ac_try;;
32487 esac
32488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32489   (eval "$ac_link") 2>conftest.er1
32490   ac_status=$?
32491   grep -v '^ *+' conftest.er1 >conftest.err
32492   rm -f conftest.er1
32493   cat conftest.err >&5
32494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495   (exit $ac_status); } && {
32496          test -z "$ac_c_werror_flag" ||
32497          test ! -s conftest.err
32498        } && test -s conftest$ac_exeext &&
32499        $as_test_x conftest$ac_exeext; then
32500   ac_cv_lib_bsd_gethostbyname=yes
32501 else
32502   echo "$as_me: failed program was:" >&5
32503 sed 's/^/| /' conftest.$ac_ext >&5
32504
32505         ac_cv_lib_bsd_gethostbyname=no
32506 fi
32507
32508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32509       conftest$ac_exeext conftest.$ac_ext
32510 LIBS=$ac_check_lib_save_LIBS
32511 fi
32512 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32513 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32514 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32515   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32516 fi
32517
32518       fi
32519     fi
32520
32521     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32522     # socket/setsockopt and other routines are undefined under SCO ODT
32523     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32524     # on later versions), says Simon Leinen: it contains gethostby*
32525     # variants that don't use the name server (or something).  -lsocket
32526     # must be given before -lnsl if both are needed.  We assume that
32527     # if connect needs -lnsl, so does gethostbyname.
32528     { echo "$as_me:$LINENO: checking for connect" >&5
32529 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32530 if test "${ac_cv_func_connect+set}" = set; then
32531   echo $ECHO_N "(cached) $ECHO_C" >&6
32532 else
32533   cat >conftest.$ac_ext <<_ACEOF
32534 /* confdefs.h.  */
32535 _ACEOF
32536 cat confdefs.h >>conftest.$ac_ext
32537 cat >>conftest.$ac_ext <<_ACEOF
32538 /* end confdefs.h.  */
32539 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32541 #define connect innocuous_connect
32542
32543 /* System header to define __stub macros and hopefully few prototypes,
32544     which can conflict with char connect (); below.
32545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32546     <limits.h> exists even on freestanding compilers.  */
32547
32548 #ifdef __STDC__
32549 # include <limits.h>
32550 #else
32551 # include <assert.h>
32552 #endif
32553
32554 #undef connect
32555
32556 /* Override any GCC internal prototype to avoid an error.
32557    Use char because int might match the return type of a GCC
32558    builtin and then its argument prototype would still apply.  */
32559 #ifdef __cplusplus
32560 extern "C"
32561 #endif
32562 char connect ();
32563 /* The GNU C library defines this for functions which it implements
32564     to always fail with ENOSYS.  Some functions are actually named
32565     something starting with __ and the normal name is an alias.  */
32566 #if defined __stub_connect || defined __stub___connect
32567 choke me
32568 #endif
32569
32570 int
32571 main ()
32572 {
32573 return connect ();
32574   ;
32575   return 0;
32576 }
32577 _ACEOF
32578 rm -f conftest.$ac_objext conftest$ac_exeext
32579 if { (ac_try="$ac_link"
32580 case "(($ac_try" in
32581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582   *) ac_try_echo=$ac_try;;
32583 esac
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585   (eval "$ac_link") 2>conftest.er1
32586   ac_status=$?
32587   grep -v '^ *+' conftest.er1 >conftest.err
32588   rm -f conftest.er1
32589   cat conftest.err >&5
32590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591   (exit $ac_status); } && {
32592          test -z "$ac_c_werror_flag" ||
32593          test ! -s conftest.err
32594        } && test -s conftest$ac_exeext &&
32595        $as_test_x conftest$ac_exeext; then
32596   ac_cv_func_connect=yes
32597 else
32598   echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.$ac_ext >&5
32600
32601         ac_cv_func_connect=no
32602 fi
32603
32604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32605       conftest$ac_exeext conftest.$ac_ext
32606 fi
32607 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32608 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32609
32610     if test $ac_cv_func_connect = no; then
32611       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32612 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32613 if test "${ac_cv_lib_socket_connect+set}" = set; then
32614   echo $ECHO_N "(cached) $ECHO_C" >&6
32615 else
32616   ac_check_lib_save_LIBS=$LIBS
32617 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32618 cat >conftest.$ac_ext <<_ACEOF
32619 /* confdefs.h.  */
32620 _ACEOF
32621 cat confdefs.h >>conftest.$ac_ext
32622 cat >>conftest.$ac_ext <<_ACEOF
32623 /* end confdefs.h.  */
32624
32625 /* Override any GCC internal prototype to avoid an error.
32626    Use char because int might match the return type of a GCC
32627    builtin and then its argument prototype would still apply.  */
32628 #ifdef __cplusplus
32629 extern "C"
32630 #endif
32631 char connect ();
32632 int
32633 main ()
32634 {
32635 return connect ();
32636   ;
32637   return 0;
32638 }
32639 _ACEOF
32640 rm -f conftest.$ac_objext conftest$ac_exeext
32641 if { (ac_try="$ac_link"
32642 case "(($ac_try" in
32643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644   *) ac_try_echo=$ac_try;;
32645 esac
32646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647   (eval "$ac_link") 2>conftest.er1
32648   ac_status=$?
32649   grep -v '^ *+' conftest.er1 >conftest.err
32650   rm -f conftest.er1
32651   cat conftest.err >&5
32652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653   (exit $ac_status); } && {
32654          test -z "$ac_c_werror_flag" ||
32655          test ! -s conftest.err
32656        } && test -s conftest$ac_exeext &&
32657        $as_test_x conftest$ac_exeext; then
32658   ac_cv_lib_socket_connect=yes
32659 else
32660   echo "$as_me: failed program was:" >&5
32661 sed 's/^/| /' conftest.$ac_ext >&5
32662
32663         ac_cv_lib_socket_connect=no
32664 fi
32665
32666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32667       conftest$ac_exeext conftest.$ac_ext
32668 LIBS=$ac_check_lib_save_LIBS
32669 fi
32670 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32671 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32672 if test $ac_cv_lib_socket_connect = yes; then
32673   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32674 fi
32675
32676     fi
32677
32678     # Guillermo Gomez says -lposix is necessary on A/UX.
32679     { echo "$as_me:$LINENO: checking for remove" >&5
32680 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32681 if test "${ac_cv_func_remove+set}" = set; then
32682   echo $ECHO_N "(cached) $ECHO_C" >&6
32683 else
32684   cat >conftest.$ac_ext <<_ACEOF
32685 /* confdefs.h.  */
32686 _ACEOF
32687 cat confdefs.h >>conftest.$ac_ext
32688 cat >>conftest.$ac_ext <<_ACEOF
32689 /* end confdefs.h.  */
32690 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32692 #define remove innocuous_remove
32693
32694 /* System header to define __stub macros and hopefully few prototypes,
32695     which can conflict with char remove (); below.
32696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32697     <limits.h> exists even on freestanding compilers.  */
32698
32699 #ifdef __STDC__
32700 # include <limits.h>
32701 #else
32702 # include <assert.h>
32703 #endif
32704
32705 #undef remove
32706
32707 /* Override any GCC internal prototype to avoid an error.
32708    Use char because int might match the return type of a GCC
32709    builtin and then its argument prototype would still apply.  */
32710 #ifdef __cplusplus
32711 extern "C"
32712 #endif
32713 char remove ();
32714 /* The GNU C library defines this for functions which it implements
32715     to always fail with ENOSYS.  Some functions are actually named
32716     something starting with __ and the normal name is an alias.  */
32717 #if defined __stub_remove || defined __stub___remove
32718 choke me
32719 #endif
32720
32721 int
32722 main ()
32723 {
32724 return remove ();
32725   ;
32726   return 0;
32727 }
32728 _ACEOF
32729 rm -f conftest.$ac_objext conftest$ac_exeext
32730 if { (ac_try="$ac_link"
32731 case "(($ac_try" in
32732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733   *) ac_try_echo=$ac_try;;
32734 esac
32735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736   (eval "$ac_link") 2>conftest.er1
32737   ac_status=$?
32738   grep -v '^ *+' conftest.er1 >conftest.err
32739   rm -f conftest.er1
32740   cat conftest.err >&5
32741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742   (exit $ac_status); } && {
32743          test -z "$ac_c_werror_flag" ||
32744          test ! -s conftest.err
32745        } && test -s conftest$ac_exeext &&
32746        $as_test_x conftest$ac_exeext; then
32747   ac_cv_func_remove=yes
32748 else
32749   echo "$as_me: failed program was:" >&5
32750 sed 's/^/| /' conftest.$ac_ext >&5
32751
32752         ac_cv_func_remove=no
32753 fi
32754
32755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32756       conftest$ac_exeext conftest.$ac_ext
32757 fi
32758 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32759 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32760
32761     if test $ac_cv_func_remove = no; then
32762       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32763 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32764 if test "${ac_cv_lib_posix_remove+set}" = set; then
32765   echo $ECHO_N "(cached) $ECHO_C" >&6
32766 else
32767   ac_check_lib_save_LIBS=$LIBS
32768 LIBS="-lposix  $LIBS"
32769 cat >conftest.$ac_ext <<_ACEOF
32770 /* confdefs.h.  */
32771 _ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h.  */
32775
32776 /* Override any GCC internal prototype to avoid an error.
32777    Use char because int might match the return type of a GCC
32778    builtin and then its argument prototype would still apply.  */
32779 #ifdef __cplusplus
32780 extern "C"
32781 #endif
32782 char remove ();
32783 int
32784 main ()
32785 {
32786 return remove ();
32787   ;
32788   return 0;
32789 }
32790 _ACEOF
32791 rm -f conftest.$ac_objext conftest$ac_exeext
32792 if { (ac_try="$ac_link"
32793 case "(($ac_try" in
32794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795   *) ac_try_echo=$ac_try;;
32796 esac
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798   (eval "$ac_link") 2>conftest.er1
32799   ac_status=$?
32800   grep -v '^ *+' conftest.er1 >conftest.err
32801   rm -f conftest.er1
32802   cat conftest.err >&5
32803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804   (exit $ac_status); } && {
32805          test -z "$ac_c_werror_flag" ||
32806          test ! -s conftest.err
32807        } && test -s conftest$ac_exeext &&
32808        $as_test_x conftest$ac_exeext; then
32809   ac_cv_lib_posix_remove=yes
32810 else
32811   echo "$as_me: failed program was:" >&5
32812 sed 's/^/| /' conftest.$ac_ext >&5
32813
32814         ac_cv_lib_posix_remove=no
32815 fi
32816
32817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32818       conftest$ac_exeext conftest.$ac_ext
32819 LIBS=$ac_check_lib_save_LIBS
32820 fi
32821 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32822 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32823 if test $ac_cv_lib_posix_remove = yes; then
32824   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32825 fi
32826
32827     fi
32828
32829     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32830     { echo "$as_me:$LINENO: checking for shmat" >&5
32831 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32832 if test "${ac_cv_func_shmat+set}" = set; then
32833   echo $ECHO_N "(cached) $ECHO_C" >&6
32834 else
32835   cat >conftest.$ac_ext <<_ACEOF
32836 /* confdefs.h.  */
32837 _ACEOF
32838 cat confdefs.h >>conftest.$ac_ext
32839 cat >>conftest.$ac_ext <<_ACEOF
32840 /* end confdefs.h.  */
32841 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32843 #define shmat innocuous_shmat
32844
32845 /* System header to define __stub macros and hopefully few prototypes,
32846     which can conflict with char shmat (); below.
32847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32848     <limits.h> exists even on freestanding compilers.  */
32849
32850 #ifdef __STDC__
32851 # include <limits.h>
32852 #else
32853 # include <assert.h>
32854 #endif
32855
32856 #undef shmat
32857
32858 /* Override any GCC internal prototype to avoid an error.
32859    Use char because int might match the return type of a GCC
32860    builtin and then its argument prototype would still apply.  */
32861 #ifdef __cplusplus
32862 extern "C"
32863 #endif
32864 char shmat ();
32865 /* The GNU C library defines this for functions which it implements
32866     to always fail with ENOSYS.  Some functions are actually named
32867     something starting with __ and the normal name is an alias.  */
32868 #if defined __stub_shmat || defined __stub___shmat
32869 choke me
32870 #endif
32871
32872 int
32873 main ()
32874 {
32875 return shmat ();
32876   ;
32877   return 0;
32878 }
32879 _ACEOF
32880 rm -f conftest.$ac_objext conftest$ac_exeext
32881 if { (ac_try="$ac_link"
32882 case "(($ac_try" in
32883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32884   *) ac_try_echo=$ac_try;;
32885 esac
32886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32887   (eval "$ac_link") 2>conftest.er1
32888   ac_status=$?
32889   grep -v '^ *+' conftest.er1 >conftest.err
32890   rm -f conftest.er1
32891   cat conftest.err >&5
32892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893   (exit $ac_status); } && {
32894          test -z "$ac_c_werror_flag" ||
32895          test ! -s conftest.err
32896        } && test -s conftest$ac_exeext &&
32897        $as_test_x conftest$ac_exeext; then
32898   ac_cv_func_shmat=yes
32899 else
32900   echo "$as_me: failed program was:" >&5
32901 sed 's/^/| /' conftest.$ac_ext >&5
32902
32903         ac_cv_func_shmat=no
32904 fi
32905
32906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32907       conftest$ac_exeext conftest.$ac_ext
32908 fi
32909 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32910 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
32911
32912     if test $ac_cv_func_shmat = no; then
32913       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32914 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
32915 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32916   echo $ECHO_N "(cached) $ECHO_C" >&6
32917 else
32918   ac_check_lib_save_LIBS=$LIBS
32919 LIBS="-lipc  $LIBS"
32920 cat >conftest.$ac_ext <<_ACEOF
32921 /* confdefs.h.  */
32922 _ACEOF
32923 cat confdefs.h >>conftest.$ac_ext
32924 cat >>conftest.$ac_ext <<_ACEOF
32925 /* end confdefs.h.  */
32926
32927 /* Override any GCC internal prototype to avoid an error.
32928    Use char because int might match the return type of a GCC
32929    builtin and then its argument prototype would still apply.  */
32930 #ifdef __cplusplus
32931 extern "C"
32932 #endif
32933 char shmat ();
32934 int
32935 main ()
32936 {
32937 return shmat ();
32938   ;
32939   return 0;
32940 }
32941 _ACEOF
32942 rm -f conftest.$ac_objext conftest$ac_exeext
32943 if { (ac_try="$ac_link"
32944 case "(($ac_try" in
32945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32946   *) ac_try_echo=$ac_try;;
32947 esac
32948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32949   (eval "$ac_link") 2>conftest.er1
32950   ac_status=$?
32951   grep -v '^ *+' conftest.er1 >conftest.err
32952   rm -f conftest.er1
32953   cat conftest.err >&5
32954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955   (exit $ac_status); } && {
32956          test -z "$ac_c_werror_flag" ||
32957          test ! -s conftest.err
32958        } && test -s conftest$ac_exeext &&
32959        $as_test_x conftest$ac_exeext; then
32960   ac_cv_lib_ipc_shmat=yes
32961 else
32962   echo "$as_me: failed program was:" >&5
32963 sed 's/^/| /' conftest.$ac_ext >&5
32964
32965         ac_cv_lib_ipc_shmat=no
32966 fi
32967
32968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32969       conftest$ac_exeext conftest.$ac_ext
32970 LIBS=$ac_check_lib_save_LIBS
32971 fi
32972 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
32973 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
32974 if test $ac_cv_lib_ipc_shmat = yes; then
32975   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
32976 fi
32977
32978     fi
32979   fi
32980
32981   # Check for libraries that X11R6 Xt/Xaw programs need.
32982   ac_save_LDFLAGS=$LDFLAGS
32983   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
32984   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
32985   # check for ICE first), but we must link in the order -lSM -lICE or
32986   # we get undefined symbols.  So assume we have SM if we have ICE.
32987   # These have to be linked with before -lX11, unlike the other
32988   # libraries we check for below, so use a different variable.
32989   # John Interrante, Karl Berry
32990   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
32991 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
32992 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
32993   echo $ECHO_N "(cached) $ECHO_C" >&6
32994 else
32995   ac_check_lib_save_LIBS=$LIBS
32996 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
32997 cat >conftest.$ac_ext <<_ACEOF
32998 /* confdefs.h.  */
32999 _ACEOF
33000 cat confdefs.h >>conftest.$ac_ext
33001 cat >>conftest.$ac_ext <<_ACEOF
33002 /* end confdefs.h.  */
33003
33004 /* Override any GCC internal prototype to avoid an error.
33005    Use char because int might match the return type of a GCC
33006    builtin and then its argument prototype would still apply.  */
33007 #ifdef __cplusplus
33008 extern "C"
33009 #endif
33010 char IceConnectionNumber ();
33011 int
33012 main ()
33013 {
33014 return IceConnectionNumber ();
33015   ;
33016   return 0;
33017 }
33018 _ACEOF
33019 rm -f conftest.$ac_objext conftest$ac_exeext
33020 if { (ac_try="$ac_link"
33021 case "(($ac_try" in
33022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33023   *) ac_try_echo=$ac_try;;
33024 esac
33025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33026   (eval "$ac_link") 2>conftest.er1
33027   ac_status=$?
33028   grep -v '^ *+' conftest.er1 >conftest.err
33029   rm -f conftest.er1
33030   cat conftest.err >&5
33031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33032   (exit $ac_status); } && {
33033          test -z "$ac_c_werror_flag" ||
33034          test ! -s conftest.err
33035        } && test -s conftest$ac_exeext &&
33036        $as_test_x conftest$ac_exeext; then
33037   ac_cv_lib_ICE_IceConnectionNumber=yes
33038 else
33039   echo "$as_me: failed program was:" >&5
33040 sed 's/^/| /' conftest.$ac_ext >&5
33041
33042         ac_cv_lib_ICE_IceConnectionNumber=no
33043 fi
33044
33045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33046       conftest$ac_exeext conftest.$ac_ext
33047 LIBS=$ac_check_lib_save_LIBS
33048 fi
33049 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33050 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33051 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33052   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33053 fi
33054
33055   LDFLAGS=$ac_save_LDFLAGS
33056
33057 fi
33058
33059
33060         if test "$no_x" = "yes"; then
33061           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33062 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33063    { (exit 1); exit 1; }; }
33064         fi
33065
33066                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33067         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33068         AFMINSTALL=afminstall
33069         COMPILED_X_PROGRAM=0
33070
33071     fi
33072
33073     if test "$wxUSE_X11" = 1; then
33074         if test "$wxUSE_NANOX" = "yes"; then
33075             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33076 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33077             if test "x$MICROWIN" = x ; then
33078                 { echo "$as_me:$LINENO: result: not found" >&5
33079 echo "${ECHO_T}not found" >&6; }
33080                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33081 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33082    { (exit 1); exit 1; }; }
33083             else
33084                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33085 echo "${ECHO_T}$MICROWIN" >&6; }
33086                 cat >>confdefs.h <<\_ACEOF
33087 #define wxUSE_NANOX 1
33088 _ACEOF
33089
33090             fi
33091         fi
33092
33093         if test "$wxUSE_UNICODE" = "yes"; then
33094
33095
33096 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33097         if test -n "$ac_tool_prefix"; then
33098   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33099 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33102 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33103   echo $ECHO_N "(cached) $ECHO_C" >&6
33104 else
33105   case $PKG_CONFIG in
33106   [\\/]* | ?:[\\/]*)
33107   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33108   ;;
33109   *)
33110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33111 for as_dir in $PATH
33112 do
33113   IFS=$as_save_IFS
33114   test -z "$as_dir" && as_dir=.
33115   for ac_exec_ext in '' $ac_executable_extensions; do
33116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33117     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33119     break 2
33120   fi
33121 done
33122 done
33123 IFS=$as_save_IFS
33124
33125   ;;
33126 esac
33127 fi
33128 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33129 if test -n "$PKG_CONFIG"; then
33130   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33131 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33132 else
33133   { echo "$as_me:$LINENO: result: no" >&5
33134 echo "${ECHO_T}no" >&6; }
33135 fi
33136
33137
33138 fi
33139 if test -z "$ac_cv_path_PKG_CONFIG"; then
33140   ac_pt_PKG_CONFIG=$PKG_CONFIG
33141   # Extract the first word of "pkg-config", so it can be a program name with args.
33142 set dummy pkg-config; ac_word=$2
33143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33145 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33146   echo $ECHO_N "(cached) $ECHO_C" >&6
33147 else
33148   case $ac_pt_PKG_CONFIG in
33149   [\\/]* | ?:[\\/]*)
33150   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33151   ;;
33152   *)
33153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33154 for as_dir in $PATH
33155 do
33156   IFS=$as_save_IFS
33157   test -z "$as_dir" && as_dir=.
33158   for ac_exec_ext in '' $ac_executable_extensions; do
33159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33160     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33162     break 2
33163   fi
33164 done
33165 done
33166 IFS=$as_save_IFS
33167
33168   ;;
33169 esac
33170 fi
33171 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33172 if test -n "$ac_pt_PKG_CONFIG"; then
33173   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33174 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33175 else
33176   { echo "$as_me:$LINENO: result: no" >&5
33177 echo "${ECHO_T}no" >&6; }
33178 fi
33179
33180   if test "x$ac_pt_PKG_CONFIG" = x; then
33181     PKG_CONFIG=""
33182   else
33183     case $cross_compiling:$ac_tool_warned in
33184 yes:)
33185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33186 whose name does not start with the host triplet.  If you think this
33187 configuration is useful to you, please write to autoconf@gnu.org." >&5
33188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33189 whose name does not start with the host triplet.  If you think this
33190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33191 ac_tool_warned=yes ;;
33192 esac
33193     PKG_CONFIG=$ac_pt_PKG_CONFIG
33194   fi
33195 else
33196   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33197 fi
33198
33199 fi
33200 if test -n "$PKG_CONFIG"; then
33201         _pkg_min_version=0.9.0
33202         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33203 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33204         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33205                 { echo "$as_me:$LINENO: result: yes" >&5
33206 echo "${ECHO_T}yes" >&6; }
33207         else
33208                 { echo "$as_me:$LINENO: result: no" >&5
33209 echo "${ECHO_T}no" >&6; }
33210                 PKG_CONFIG=""
33211         fi
33212
33213 fi
33214
33215
33216 pkg_failed=no
33217 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33218 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33219
33220 if test -n "$PKG_CONFIG"; then
33221     if test -n "$PANGOX_CFLAGS"; then
33222         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33223     else
33224         if test -n "$PKG_CONFIG" && \
33225     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33226   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33227   ac_status=$?
33228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229   (exit $ac_status); }; then
33230   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33231 else
33232   pkg_failed=yes
33233 fi
33234     fi
33235 else
33236         pkg_failed=untried
33237 fi
33238 if test -n "$PKG_CONFIG"; then
33239     if test -n "$PANGOX_LIBS"; then
33240         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33241     else
33242         if test -n "$PKG_CONFIG" && \
33243     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33244   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33245   ac_status=$?
33246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247   (exit $ac_status); }; then
33248   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33249 else
33250   pkg_failed=yes
33251 fi
33252     fi
33253 else
33254         pkg_failed=untried
33255 fi
33256
33257
33258
33259 if test $pkg_failed = yes; then
33260
33261 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33262         _pkg_short_errors_supported=yes
33263 else
33264         _pkg_short_errors_supported=no
33265 fi
33266         if test $_pkg_short_errors_supported = yes; then
33267                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33268         else
33269                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33270         fi
33271         # Put the nasty error message in config.log where it belongs
33272         echo "$PANGOX_PKG_ERRORS" >&5
33273
33274
33275                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33276 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33277    { (exit 1); exit 1; }; }
33278
33279
33280 elif test $pkg_failed = untried; then
33281
33282                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33283 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33284    { (exit 1); exit 1; }; }
33285
33286
33287 else
33288         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33289         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33290         { echo "$as_me:$LINENO: result: yes" >&5
33291 echo "${ECHO_T}yes" >&6; }
33292
33293                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33294                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33295                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33296
33297 fi
33298
33299 pkg_failed=no
33300 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33301 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33302
33303 if test -n "$PKG_CONFIG"; then
33304     if test -n "$PANGOFT2_CFLAGS"; then
33305         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33306     else
33307         if test -n "$PKG_CONFIG" && \
33308     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33309   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33310   ac_status=$?
33311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312   (exit $ac_status); }; then
33313   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33314 else
33315   pkg_failed=yes
33316 fi
33317     fi
33318 else
33319         pkg_failed=untried
33320 fi
33321 if test -n "$PKG_CONFIG"; then
33322     if test -n "$PANGOFT2_LIBS"; then
33323         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33324     else
33325         if test -n "$PKG_CONFIG" && \
33326     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33327   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33328   ac_status=$?
33329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330   (exit $ac_status); }; then
33331   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33332 else
33333   pkg_failed=yes
33334 fi
33335     fi
33336 else
33337         pkg_failed=untried
33338 fi
33339
33340
33341
33342 if test $pkg_failed = yes; then
33343
33344 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33345         _pkg_short_errors_supported=yes
33346 else
33347         _pkg_short_errors_supported=no
33348 fi
33349         if test $_pkg_short_errors_supported = yes; then
33350                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33351         else
33352                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33353         fi
33354         # Put the nasty error message in config.log where it belongs
33355         echo "$PANGOFT2_PKG_ERRORS" >&5
33356
33357
33358                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33359 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33360                     wxUSE_PRINTING_ARCHITECTURE="no"
33361
33362
33363 elif test $pkg_failed = untried; then
33364
33365                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33366 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33367                     wxUSE_PRINTING_ARCHITECTURE="no"
33368
33369
33370 else
33371         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33372         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33373         { echo "$as_me:$LINENO: result: yes" >&5
33374 echo "${ECHO_T}yes" >&6; }
33375
33376                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33377                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33378                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33379
33380 fi
33381
33382 pkg_failed=no
33383 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33384 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33385
33386 if test -n "$PKG_CONFIG"; then
33387     if test -n "$PANGOXFT_CFLAGS"; then
33388         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33389     else
33390         if test -n "$PKG_CONFIG" && \
33391     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33392   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33393   ac_status=$?
33394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33395   (exit $ac_status); }; then
33396   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33397 else
33398   pkg_failed=yes
33399 fi
33400     fi
33401 else
33402         pkg_failed=untried
33403 fi
33404 if test -n "$PKG_CONFIG"; then
33405     if test -n "$PANGOXFT_LIBS"; then
33406         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33407     else
33408         if test -n "$PKG_CONFIG" && \
33409     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33410   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33411   ac_status=$?
33412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413   (exit $ac_status); }; then
33414   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33415 else
33416   pkg_failed=yes
33417 fi
33418     fi
33419 else
33420         pkg_failed=untried
33421 fi
33422
33423
33424
33425 if test $pkg_failed = yes; then
33426
33427 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33428         _pkg_short_errors_supported=yes
33429 else
33430         _pkg_short_errors_supported=no
33431 fi
33432         if test $_pkg_short_errors_supported = yes; then
33433                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33434         else
33435                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33436         fi
33437         # Put the nasty error message in config.log where it belongs
33438         echo "$PANGOXFT_PKG_ERRORS" >&5
33439
33440
33441                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33442 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33443
33444
33445 elif test $pkg_failed = untried; then
33446
33447                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33448 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33449
33450
33451 else
33452         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33453         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33454         { echo "$as_me:$LINENO: result: yes" >&5
33455 echo "${ECHO_T}yes" >&6; }
33456
33457                     cat >>confdefs.h <<\_ACEOF
33458 #define HAVE_PANGO_XFT 1
33459 _ACEOF
33460
33461                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33462                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33463                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33464
33465 fi
33466             save_LIBS="$LIBS"
33467             LIBS="$LIBS $PANGOX_LIBS"
33468
33469 for ac_func in pango_font_family_is_monospace
33470 do
33471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33475   echo $ECHO_N "(cached) $ECHO_C" >&6
33476 else
33477   cat >conftest.$ac_ext <<_ACEOF
33478 /* confdefs.h.  */
33479 _ACEOF
33480 cat confdefs.h >>conftest.$ac_ext
33481 cat >>conftest.$ac_ext <<_ACEOF
33482 /* end confdefs.h.  */
33483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33485 #define $ac_func innocuous_$ac_func
33486
33487 /* System header to define __stub macros and hopefully few prototypes,
33488     which can conflict with char $ac_func (); below.
33489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33490     <limits.h> exists even on freestanding compilers.  */
33491
33492 #ifdef __STDC__
33493 # include <limits.h>
33494 #else
33495 # include <assert.h>
33496 #endif
33497
33498 #undef $ac_func
33499
33500 /* Override any GCC internal prototype to avoid an error.
33501    Use char because int might match the return type of a GCC
33502    builtin and then its argument prototype would still apply.  */
33503 #ifdef __cplusplus
33504 extern "C"
33505 #endif
33506 char $ac_func ();
33507 /* The GNU C library defines this for functions which it implements
33508     to always fail with ENOSYS.  Some functions are actually named
33509     something starting with __ and the normal name is an alias.  */
33510 #if defined __stub_$ac_func || defined __stub___$ac_func
33511 choke me
33512 #endif
33513
33514 int
33515 main ()
33516 {
33517 return $ac_func ();
33518   ;
33519   return 0;
33520 }
33521 _ACEOF
33522 rm -f conftest.$ac_objext conftest$ac_exeext
33523 if { (ac_try="$ac_link"
33524 case "(($ac_try" in
33525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33526   *) ac_try_echo=$ac_try;;
33527 esac
33528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33529   (eval "$ac_link") 2>conftest.er1
33530   ac_status=$?
33531   grep -v '^ *+' conftest.er1 >conftest.err
33532   rm -f conftest.er1
33533   cat conftest.err >&5
33534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33535   (exit $ac_status); } && {
33536          test -z "$ac_c_werror_flag" ||
33537          test ! -s conftest.err
33538        } && test -s conftest$ac_exeext &&
33539        $as_test_x conftest$ac_exeext; then
33540   eval "$as_ac_var=yes"
33541 else
33542   echo "$as_me: failed program was:" >&5
33543 sed 's/^/| /' conftest.$ac_ext >&5
33544
33545         eval "$as_ac_var=no"
33546 fi
33547
33548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33549       conftest$ac_exeext conftest.$ac_ext
33550 fi
33551 ac_res=`eval echo '${'$as_ac_var'}'`
33552                { echo "$as_me:$LINENO: result: $ac_res" >&5
33553 echo "${ECHO_T}$ac_res" >&6; }
33554 if test `eval echo '${'$as_ac_var'}'` = yes; then
33555   cat >>confdefs.h <<_ACEOF
33556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33557 _ACEOF
33558
33559 fi
33560 done
33561
33562             LIBS="$save_LIBS"
33563         fi
33564
33565         wxUSE_UNIVERSAL="yes"
33566
33567         if test "$wxUSE_NANOX" = "yes"; then
33568             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33569             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"
33570             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33571         else
33572             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33573         fi
33574
33575         TOOLKIT=X11
33576         GUIDIST=X11_DIST
33577     fi
33578
33579     if test "$wxUSE_MOTIF" = 1; then
33580         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33581 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33582
33583 ac_find_includes=
33584 for ac_dir in $SEARCH_INCLUDE /usr/include
33585   do
33586     if test -f "$ac_dir/Xm/Xm.h"; then
33587       ac_find_includes=$ac_dir
33588       break
33589     fi
33590   done
33591
33592         if test "$ac_find_includes" != "" ; then
33593             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33594 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33595
33596     if test "x$ac_find_includes" = "x/usr/include"; then
33597     ac_path_to_include=""
33598   else
33599     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33600     result=$?
33601     if test $result = 0; then
33602       ac_path_to_include=""
33603     else
33604       ac_path_to_include=" -I$ac_find_includes"
33605     fi
33606   fi
33607
33608             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33609         else
33610             save_CFLAGS=$CFLAGS
33611             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33612
33613             cat >conftest.$ac_ext <<_ACEOF
33614 /* confdefs.h.  */
33615 _ACEOF
33616 cat confdefs.h >>conftest.$ac_ext
33617 cat >>conftest.$ac_ext <<_ACEOF
33618 /* end confdefs.h.  */
33619
33620                     #include <Xm/Xm.h>
33621
33622 int
33623 main ()
33624 {
33625
33626                     int version;
33627                     version = xmUseVersion;
33628
33629   ;
33630   return 0;
33631 }
33632 _ACEOF
33633 rm -f conftest.$ac_objext
33634 if { (ac_try="$ac_compile"
33635 case "(($ac_try" in
33636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33637   *) ac_try_echo=$ac_try;;
33638 esac
33639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33640   (eval "$ac_compile") 2>conftest.er1
33641   ac_status=$?
33642   grep -v '^ *+' conftest.er1 >conftest.err
33643   rm -f conftest.er1
33644   cat conftest.err >&5
33645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646   (exit $ac_status); } && {
33647          test -z "$ac_c_werror_flag" ||
33648          test ! -s conftest.err
33649        } && test -s conftest.$ac_objext; then
33650
33651                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33652 echo "${ECHO_T}found in default search path" >&6; }
33653                     COMPILED_X_PROGRAM=1
33654
33655 else
33656   echo "$as_me: failed program was:" >&5
33657 sed 's/^/| /' conftest.$ac_ext >&5
33658
33659
33660                     { echo "$as_me:$LINENO: result: no" >&5
33661 echo "${ECHO_T}no" >&6; }
33662                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33663 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33664    { (exit 1); exit 1; }; }
33665
33666
33667 fi
33668
33669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33670
33671             CFLAGS=$save_CFLAGS
33672         fi
33673
33674
33675         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33676 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33677
33678   ac_find_libraries=
33679   for ac_dir in $SEARCH_LIB
33680   do
33681     for ac_extension in a so sl dylib dll.a; do
33682       if test -f "$ac_dir/libXm.$ac_extension"; then
33683         ac_find_libraries=$ac_dir
33684         break 2
33685       fi
33686     done
33687   done
33688
33689
33690         if test "x$ac_find_libraries" != "x" ; then
33691             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33692 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33693
33694
33695     if test "$ac_find_libraries" = "default location"; then
33696     ac_path_to_link=""
33697   else
33698     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33699     result=$?
33700     if test $result = 0; then
33701       ac_path_to_link=""
33702     else
33703       ac_path_to_link=" -L$ac_find_libraries"
33704     fi
33705   fi
33706
33707             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33708         else
33709                                                 save_CFLAGS=$CFLAGS
33710             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33711             save_LIBS="$LIBS"
33712             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33713
33714             cat >conftest.$ac_ext <<_ACEOF
33715 /* confdefs.h.  */
33716 _ACEOF
33717 cat confdefs.h >>conftest.$ac_ext
33718 cat >>conftest.$ac_ext <<_ACEOF
33719 /* end confdefs.h.  */
33720
33721                     #include <Xm/Xm.h>
33722
33723 int
33724 main ()
33725 {
33726
33727                     int version;
33728                     version = xmUseVersion;
33729
33730   ;
33731   return 0;
33732 }
33733 _ACEOF
33734 rm -f conftest.$ac_objext conftest$ac_exeext
33735 if { (ac_try="$ac_link"
33736 case "(($ac_try" in
33737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738   *) ac_try_echo=$ac_try;;
33739 esac
33740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741   (eval "$ac_link") 2>conftest.er1
33742   ac_status=$?
33743   grep -v '^ *+' conftest.er1 >conftest.err
33744   rm -f conftest.er1
33745   cat conftest.err >&5
33746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747   (exit $ac_status); } && {
33748          test -z "$ac_c_werror_flag" ||
33749          test ! -s conftest.err
33750        } && test -s conftest$ac_exeext &&
33751        $as_test_x conftest$ac_exeext; then
33752
33753                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33754 echo "${ECHO_T}found in default search path" >&6; }
33755                     COMPILED_X_PROGRAM=1
33756
33757 else
33758   echo "$as_me: failed program was:" >&5
33759 sed 's/^/| /' conftest.$ac_ext >&5
33760
33761
33762                     { echo "$as_me:$LINENO: result: no" >&5
33763 echo "${ECHO_T}no" >&6; }
33764                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33765 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33766    { (exit 1); exit 1; }; }
33767
33768
33769 fi
33770
33771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33772       conftest$ac_exeext conftest.$ac_ext
33773
33774             CFLAGS=$save_CFLAGS
33775             LIBS="$save_LIBS"
33776         fi
33777
33778         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33779 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33780         libp_link=""
33781         libsm_ice_link=""
33782         libs_found=0
33783         for libp in "" " -lXp"; do
33784             if test "$libs_found" = 0; then
33785                 for libsm_ice in "" " -lSM -lICE"; do
33786                     if test "$libs_found" = 0; then
33787                         save_LIBS="$LIBS"
33788                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33789                         save_CFLAGS=$CFLAGS
33790                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33791
33792                         cat >conftest.$ac_ext <<_ACEOF
33793 /* confdefs.h.  */
33794 _ACEOF
33795 cat confdefs.h >>conftest.$ac_ext
33796 cat >>conftest.$ac_ext <<_ACEOF
33797 /* end confdefs.h.  */
33798
33799                                 #include <Xm/Xm.h>
33800                                 #include <Xm/List.h>
33801
33802 int
33803 main ()
33804 {
33805
33806                                 XmString string = NULL;
33807                                 Widget w = NULL;
33808                                 int position = 0;
33809                                 XmListAddItem(w, string, position);
33810
33811   ;
33812   return 0;
33813 }
33814 _ACEOF
33815 rm -f conftest.$ac_objext conftest$ac_exeext
33816 if { (ac_try="$ac_link"
33817 case "(($ac_try" in
33818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33819   *) ac_try_echo=$ac_try;;
33820 esac
33821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33822   (eval "$ac_link") 2>conftest.er1
33823   ac_status=$?
33824   grep -v '^ *+' conftest.er1 >conftest.err
33825   rm -f conftest.er1
33826   cat conftest.err >&5
33827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828   (exit $ac_status); } && {
33829          test -z "$ac_c_werror_flag" ||
33830          test ! -s conftest.err
33831        } && test -s conftest$ac_exeext &&
33832        $as_test_x conftest$ac_exeext; then
33833
33834                                 libp_link="$libp"
33835                                 libsm_ice_link="$libsm_ice"
33836                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33837 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33838                                 libs_found=1
33839
33840 else
33841   echo "$as_me: failed program was:" >&5
33842 sed 's/^/| /' conftest.$ac_ext >&5
33843
33844
33845
33846 fi
33847
33848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33849       conftest$ac_exeext conftest.$ac_ext
33850
33851                         LIBS="$save_LIBS"
33852                         CFLAGS=$save_CFLAGS
33853                     fi
33854                 done
33855             fi
33856         done
33857
33858         if test "$libs_found" = 0; then
33859             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33860 echo "${ECHO_T}can't find the right libraries" >&6; }
33861             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33862 echo "$as_me: error: can't link a simple motif program" >&2;}
33863    { (exit 1); exit 1; }; }
33864         fi
33865
33866                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33867 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33868 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33869   echo $ECHO_N "(cached) $ECHO_C" >&6
33870 else
33871   ac_check_lib_save_LIBS=$LIBS
33872 LIBS="-lSgm  $LIBS"
33873 cat >conftest.$ac_ext <<_ACEOF
33874 /* confdefs.h.  */
33875 _ACEOF
33876 cat confdefs.h >>conftest.$ac_ext
33877 cat >>conftest.$ac_ext <<_ACEOF
33878 /* end confdefs.h.  */
33879
33880 /* Override any GCC internal prototype to avoid an error.
33881    Use char because int might match the return type of a GCC
33882    builtin and then its argument prototype would still apply.  */
33883 #ifdef __cplusplus
33884 extern "C"
33885 #endif
33886 char SgCreateList ();
33887 int
33888 main ()
33889 {
33890 return SgCreateList ();
33891   ;
33892   return 0;
33893 }
33894 _ACEOF
33895 rm -f conftest.$ac_objext conftest$ac_exeext
33896 if { (ac_try="$ac_link"
33897 case "(($ac_try" in
33898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899   *) ac_try_echo=$ac_try;;
33900 esac
33901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902   (eval "$ac_link") 2>conftest.er1
33903   ac_status=$?
33904   grep -v '^ *+' conftest.er1 >conftest.err
33905   rm -f conftest.er1
33906   cat conftest.err >&5
33907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33908   (exit $ac_status); } && {
33909          test -z "$ac_c_werror_flag" ||
33910          test ! -s conftest.err
33911        } && test -s conftest$ac_exeext &&
33912        $as_test_x conftest$ac_exeext; then
33913   ac_cv_lib_Sgm_SgCreateList=yes
33914 else
33915   echo "$as_me: failed program was:" >&5
33916 sed 's/^/| /' conftest.$ac_ext >&5
33917
33918         ac_cv_lib_Sgm_SgCreateList=no
33919 fi
33920
33921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33922       conftest$ac_exeext conftest.$ac_ext
33923 LIBS=$ac_check_lib_save_LIBS
33924 fi
33925 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
33926 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
33927 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
33928   libsgm_link=" -lSgm"
33929 fi
33930
33931
33932         save_CFLAGS=$CFLAGS
33933         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33934
33935         { echo "$as_me:$LINENO: checking for Motif 2" >&5
33936 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
33937 if test "${wx_cv_lib_motif2+set}" = set; then
33938   echo $ECHO_N "(cached) $ECHO_C" >&6
33939 else
33940   cat >conftest.$ac_ext <<_ACEOF
33941 /* confdefs.h.  */
33942 _ACEOF
33943 cat confdefs.h >>conftest.$ac_ext
33944 cat >>conftest.$ac_ext <<_ACEOF
33945 /* end confdefs.h.  */
33946
33947                             #include <Xm/Xm.h>
33948
33949 int
33950 main ()
33951 {
33952
33953                             #if XmVersion < 2000
33954                             Not Motif 2
33955                             #endif
33956
33957   ;
33958   return 0;
33959 }
33960 _ACEOF
33961 rm -f conftest.$ac_objext
33962 if { (ac_try="$ac_compile"
33963 case "(($ac_try" in
33964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33965   *) ac_try_echo=$ac_try;;
33966 esac
33967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33968   (eval "$ac_compile") 2>conftest.er1
33969   ac_status=$?
33970   grep -v '^ *+' conftest.er1 >conftest.err
33971   rm -f conftest.er1
33972   cat conftest.err >&5
33973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974   (exit $ac_status); } && {
33975          test -z "$ac_c_werror_flag" ||
33976          test ! -s conftest.err
33977        } && test -s conftest.$ac_objext; then
33978   wx_cv_lib_motif2="yes"
33979 else
33980   echo "$as_me: failed program was:" >&5
33981 sed 's/^/| /' conftest.$ac_ext >&5
33982
33983         wx_cv_lib_motif2="no"
33984 fi
33985
33986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33987 fi
33988 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
33989 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
33990         if test "$wx_cv_lib_motif2" = "yes"; then
33991             cat >>confdefs.h <<\_ACEOF
33992 #define __WXMOTIF20__ 1
33993 _ACEOF
33994
33995         else
33996             cat >>confdefs.h <<\_ACEOF
33997 #define __WXMOTIF20__ 0
33998 _ACEOF
33999
34000         fi
34001
34002         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34003 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34004 if test "${wx_cv_lib_lesstif+set}" = set; then
34005   echo $ECHO_N "(cached) $ECHO_C" >&6
34006 else
34007   cat >conftest.$ac_ext <<_ACEOF
34008 /* confdefs.h.  */
34009 _ACEOF
34010 cat confdefs.h >>conftest.$ac_ext
34011 cat >>conftest.$ac_ext <<_ACEOF
34012 /* end confdefs.h.  */
34013
34014                             #include <Xm/Xm.h>
34015
34016 int
34017 main ()
34018 {
34019
34020                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34021                             Not Lesstif
34022                             #endif
34023
34024   ;
34025   return 0;
34026 }
34027 _ACEOF
34028 rm -f conftest.$ac_objext
34029 if { (ac_try="$ac_compile"
34030 case "(($ac_try" in
34031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34032   *) ac_try_echo=$ac_try;;
34033 esac
34034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34035   (eval "$ac_compile") 2>conftest.er1
34036   ac_status=$?
34037   grep -v '^ *+' conftest.er1 >conftest.err
34038   rm -f conftest.er1
34039   cat conftest.err >&5
34040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041   (exit $ac_status); } && {
34042          test -z "$ac_c_werror_flag" ||
34043          test ! -s conftest.err
34044        } && test -s conftest.$ac_objext; then
34045   wx_cv_lib_lesstif="yes"
34046 else
34047   echo "$as_me: failed program was:" >&5
34048 sed 's/^/| /' conftest.$ac_ext >&5
34049
34050         wx_cv_lib_lesstif="no"
34051 fi
34052
34053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34054
34055 fi
34056 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34057 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34058         if test "$wx_cv_lib_lesstif" = "yes"; then
34059             cat >>confdefs.h <<\_ACEOF
34060 #define __WXLESSTIF__ 1
34061 _ACEOF
34062
34063         else
34064             cat >>confdefs.h <<\_ACEOF
34065 #define __WXLESSTIF__ 0
34066 _ACEOF
34067
34068         fi
34069
34070         CFLAGS=$save_CFLAGS
34071
34072         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34073         TOOLKIT=MOTIF
34074         GUIDIST=MOTIF_DIST
34075     fi
34076
34077         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34078                 if test "$wxUSE_LIBXPM" = "sys"; then
34079             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34080 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34081
34082   ac_find_libraries=
34083   for ac_dir in $SEARCH_LIB
34084   do
34085     for ac_extension in a so sl dylib dll.a; do
34086       if test -f "$ac_dir/libXpm.$ac_extension"; then
34087         ac_find_libraries=$ac_dir
34088         break 2
34089       fi
34090     done
34091   done
34092
34093             if test "$ac_find_libraries" != "" ; then
34094
34095     if test "$ac_find_libraries" = "default location"; then
34096     ac_path_to_link=""
34097   else
34098     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34099     result=$?
34100     if test $result = 0; then
34101       ac_path_to_link=""
34102     else
34103       ac_path_to_link=" -L$ac_find_libraries"
34104     fi
34105   fi
34106
34107                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34108                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34109 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34110
34111                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34112 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34113 if test "${wx_cv_x11_xpm_h+set}" = set; then
34114   echo $ECHO_N "(cached) $ECHO_C" >&6
34115 else
34116
34117                         save_CFLAGS=$CFLAGS
34118                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34119
34120                         cat >conftest.$ac_ext <<_ACEOF
34121 /* confdefs.h.  */
34122 _ACEOF
34123 cat confdefs.h >>conftest.$ac_ext
34124 cat >>conftest.$ac_ext <<_ACEOF
34125 /* end confdefs.h.  */
34126
34127                                 #include <X11/xpm.h>
34128
34129 int
34130 main ()
34131 {
34132
34133                                 int version;
34134                                 version = XpmLibraryVersion();
34135
34136   ;
34137   return 0;
34138 }
34139 _ACEOF
34140 rm -f conftest.$ac_objext
34141 if { (ac_try="$ac_compile"
34142 case "(($ac_try" in
34143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34144   *) ac_try_echo=$ac_try;;
34145 esac
34146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34147   (eval "$ac_compile") 2>conftest.er1
34148   ac_status=$?
34149   grep -v '^ *+' conftest.er1 >conftest.err
34150   rm -f conftest.er1
34151   cat conftest.err >&5
34152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153   (exit $ac_status); } && {
34154          test -z "$ac_c_werror_flag" ||
34155          test ! -s conftest.err
34156        } && test -s conftest.$ac_objext; then
34157   wx_cv_x11_xpm_h=yes
34158 else
34159   echo "$as_me: failed program was:" >&5
34160 sed 's/^/| /' conftest.$ac_ext >&5
34161
34162         wx_cv_x11_xpm_h=no
34163
34164 fi
34165
34166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34167
34168                         CFLAGS=$save_CFLAGS
34169
34170
34171 fi
34172 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34173 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34174
34175                 if test $wx_cv_x11_xpm_h = "yes"; then
34176                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34177                     cat >>confdefs.h <<\_ACEOF
34178 #define wxHAVE_LIB_XPM 1
34179 _ACEOF
34180
34181                 else
34182                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34183 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34184                 fi
34185             fi
34186
34187         fi
34188
34189                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34190 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34191 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34192   echo $ECHO_N "(cached) $ECHO_C" >&6
34193 else
34194   ac_check_lib_save_LIBS=$LIBS
34195 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34196 cat >conftest.$ac_ext <<_ACEOF
34197 /* confdefs.h.  */
34198 _ACEOF
34199 cat confdefs.h >>conftest.$ac_ext
34200 cat >>conftest.$ac_ext <<_ACEOF
34201 /* end confdefs.h.  */
34202
34203 /* Override any GCC internal prototype to avoid an error.
34204    Use char because int might match the return type of a GCC
34205    builtin and then its argument prototype would still apply.  */
34206 #ifdef __cplusplus
34207 extern "C"
34208 #endif
34209 char XShapeQueryExtension ();
34210 int
34211 main ()
34212 {
34213 return XShapeQueryExtension ();
34214   ;
34215   return 0;
34216 }
34217 _ACEOF
34218 rm -f conftest.$ac_objext conftest$ac_exeext
34219 if { (ac_try="$ac_link"
34220 case "(($ac_try" in
34221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34222   *) ac_try_echo=$ac_try;;
34223 esac
34224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34225   (eval "$ac_link") 2>conftest.er1
34226   ac_status=$?
34227   grep -v '^ *+' conftest.er1 >conftest.err
34228   rm -f conftest.er1
34229   cat conftest.err >&5
34230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231   (exit $ac_status); } && {
34232          test -z "$ac_c_werror_flag" ||
34233          test ! -s conftest.err
34234        } && test -s conftest$ac_exeext &&
34235        $as_test_x conftest$ac_exeext; then
34236   ac_cv_lib_Xext_XShapeQueryExtension=yes
34237 else
34238   echo "$as_me: failed program was:" >&5
34239 sed 's/^/| /' conftest.$ac_ext >&5
34240
34241         ac_cv_lib_Xext_XShapeQueryExtension=no
34242 fi
34243
34244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34245       conftest$ac_exeext conftest.$ac_ext
34246 LIBS=$ac_check_lib_save_LIBS
34247 fi
34248 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34249 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34250 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34251
34252                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34253                       wxHAVE_XEXT_LIB=1
34254
34255 fi
34256
34257
34258         if test "$wxHAVE_XEXT_LIB" = 1; then
34259             save_CFLAGS="$CFLAGS"
34260             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34261
34262             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34263 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34264             cat >conftest.$ac_ext <<_ACEOF
34265 /* confdefs.h.  */
34266 _ACEOF
34267 cat confdefs.h >>conftest.$ac_ext
34268 cat >>conftest.$ac_ext <<_ACEOF
34269 /* end confdefs.h.  */
34270
34271                             #include <X11/Xlib.h>
34272                             #include <X11/extensions/shape.h>
34273
34274 int
34275 main ()
34276 {
34277
34278                             int dummy1, dummy2;
34279                             XShapeQueryExtension((Display*)NULL,
34280                                                  (int*)NULL, (int*)NULL);
34281
34282   ;
34283   return 0;
34284 }
34285 _ACEOF
34286 rm -f conftest.$ac_objext
34287 if { (ac_try="$ac_compile"
34288 case "(($ac_try" in
34289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34290   *) ac_try_echo=$ac_try;;
34291 esac
34292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34293   (eval "$ac_compile") 2>conftest.er1
34294   ac_status=$?
34295   grep -v '^ *+' conftest.er1 >conftest.err
34296   rm -f conftest.er1
34297   cat conftest.err >&5
34298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34299   (exit $ac_status); } && {
34300          test -z "$ac_c_werror_flag" ||
34301          test ! -s conftest.err
34302        } && test -s conftest.$ac_objext; then
34303
34304                             cat >>confdefs.h <<\_ACEOF
34305 #define HAVE_XSHAPE 1
34306 _ACEOF
34307
34308                             { echo "$as_me:$LINENO: result: found" >&5
34309 echo "${ECHO_T}found" >&6; }
34310
34311 else
34312   echo "$as_me: failed program was:" >&5
34313 sed 's/^/| /' conftest.$ac_ext >&5
34314
34315
34316                             { echo "$as_me:$LINENO: result: not found" >&5
34317 echo "${ECHO_T}not found" >&6; }
34318
34319 fi
34320
34321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34322             CFLAGS="$save_CFLAGS"
34323
34324         fi
34325     fi
34326
34327     if test "$wxUSE_OSX_CARBON" = 1; then
34328         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34329 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34330         if test "$GCC" = yes; then
34331             { echo "$as_me:$LINENO: result: gcc" >&5
34332 echo "${ECHO_T}gcc" >&6; }
34333             CPPFLAGS_PASCAL="-fpascal-strings"
34334         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34335             { echo "$as_me:$LINENO: result: xlc" >&5
34336 echo "${ECHO_T}xlc" >&6; }
34337             CPPFLAGS_PASCAL="-qmacpstr"
34338         else
34339             { echo "$as_me:$LINENO: result: none" >&5
34340 echo "${ECHO_T}none" >&6; }
34341         fi
34342
34343         if test "x$wxUSE_UNIX" = "xyes"; then
34344             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34345         else
34346                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
34347         fi
34348
34349         TOOLKIT=OSX_CARBON
34350                 GUIDIST=OSX_CARBON_DIST
34351                         WXBASEPORT="_carbon"
34352
34353                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34354     fi
34355
34356     if test "$wxUSE_OSX_COCOA" = 1; then
34357         TOOLKIT=OSX_COCOA
34358         GUIDIST=OSX_COCOA_DIST
34359
34360                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34361     fi
34362
34363     if test "$wxUSE_OSX_IPHONE" = 1; then
34364         TOOLKIT=OSX_IPHONE
34365     fi
34366
34367     if test "$wxUSE_OLD_COCOA" = 1; then
34368         TOOLKIT=COCOA
34369         GUIDIST=COCOA_DIST
34370     fi
34371
34372     if test "$wxUSE_PM" = 1; then
34373         TOOLKIT=PM
34374         GUIDIST=PM_DIST
34375         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34376 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34377 if test "${wx_cv_spbcdata+set}" = set; then
34378   echo $ECHO_N "(cached) $ECHO_C" >&6
34379 else
34380
34381                 cat >conftest.$ac_ext <<_ACEOF
34382 /* confdefs.h.  */
34383 _ACEOF
34384 cat confdefs.h >>conftest.$ac_ext
34385 cat >>conftest.$ac_ext <<_ACEOF
34386 /* end confdefs.h.  */
34387
34388                         #define INCL_PM
34389                         #include <os2.h>
34390
34391 int
34392 main ()
34393 {
34394
34395                         SPBCDATA test;
34396
34397   ;
34398   return 0;
34399 }
34400 _ACEOF
34401 rm -f conftest.$ac_objext
34402 if { (ac_try="$ac_compile"
34403 case "(($ac_try" in
34404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34405   *) ac_try_echo=$ac_try;;
34406 esac
34407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34408   (eval "$ac_compile") 2>conftest.er1
34409   ac_status=$?
34410   grep -v '^ *+' conftest.er1 >conftest.err
34411   rm -f conftest.er1
34412   cat conftest.err >&5
34413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34414   (exit $ac_status); } && {
34415          test -z "$ac_c_werror_flag" ||
34416          test ! -s conftest.err
34417        } && test -s conftest.$ac_objext; then
34418   wx_cv_spbcdata=yes
34419 else
34420   echo "$as_me: failed program was:" >&5
34421 sed 's/^/| /' conftest.$ac_ext >&5
34422
34423         wx_cv_spbcdata=no
34424
34425 fi
34426
34427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34428
34429
34430 fi
34431 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34432 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34433
34434         if test $wx_cv_spbcdata = "yes"; then
34435             cat >>confdefs.h <<\_ACEOF
34436 #define HAVE_SPBCDATA 1
34437 _ACEOF
34438
34439         fi
34440     fi
34441
34442         if test "$TOOLKIT" = "PM" ; then
34443         TOOLKIT_DIR="os2"
34444     else
34445         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
34446     fi
34447
34448     if test "$wxUSE_UNIVERSAL" = "yes"; then
34449         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34450         WIDGET_SET=univ
34451     fi
34452
34453         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34454     DISTDIR="wx\$(TOOLKIT)"
34455 else
34456     USE_GUI=0
34457
34458             TOOLKIT_DIR="base"
34459
34460         if test "$USE_WIN32" = 1 ; then
34461                         TOOLKIT="MSW"
34462     fi
34463
34464         GUIDIST="BASE_DIST"
34465     DISTDIR="wxBase"
34466 fi
34467
34468
34469
34470 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34471     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
34472         wxUSE_UNICODE_UTF8=yes
34473     elif test "$USE_OS2" = 1 ; then
34474                                 wxUSE_UNICODE_UTF8=yes
34475     else
34476         wxUSE_UNICODE_UTF8=no
34477     fi
34478 fi
34479
34480
34481 if test "$wxUSE_GUI" = "yes"; then
34482     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34483
34484 for ac_header in X11/Xlib.h
34485 do
34486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34490   echo $ECHO_N "(cached) $ECHO_C" >&6
34491 else
34492   cat >conftest.$ac_ext <<_ACEOF
34493 /* confdefs.h.  */
34494 _ACEOF
34495 cat confdefs.h >>conftest.$ac_ext
34496 cat >>conftest.$ac_ext <<_ACEOF
34497 /* end confdefs.h.  */
34498
34499
34500 #include <$ac_header>
34501 _ACEOF
34502 rm -f conftest.$ac_objext
34503 if { (ac_try="$ac_compile"
34504 case "(($ac_try" in
34505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34506   *) ac_try_echo=$ac_try;;
34507 esac
34508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34509   (eval "$ac_compile") 2>conftest.er1
34510   ac_status=$?
34511   grep -v '^ *+' conftest.er1 >conftest.err
34512   rm -f conftest.er1
34513   cat conftest.err >&5
34514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515   (exit $ac_status); } && {
34516          test -z "$ac_c_werror_flag" ||
34517          test ! -s conftest.err
34518        } && test -s conftest.$ac_objext; then
34519   eval "$as_ac_Header=yes"
34520 else
34521   echo "$as_me: failed program was:" >&5
34522 sed 's/^/| /' conftest.$ac_ext >&5
34523
34524         eval "$as_ac_Header=no"
34525 fi
34526
34527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34528 fi
34529 ac_res=`eval echo '${'$as_ac_Header'}'`
34530                { echo "$as_me:$LINENO: result: $ac_res" >&5
34531 echo "${ECHO_T}$ac_res" >&6; }
34532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34533   cat >>confdefs.h <<_ACEOF
34534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34535 _ACEOF
34536
34537 fi
34538
34539 done
34540
34541
34542 for ac_header in X11/XKBlib.h
34543 do
34544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34548   echo $ECHO_N "(cached) $ECHO_C" >&6
34549 else
34550   cat >conftest.$ac_ext <<_ACEOF
34551 /* confdefs.h.  */
34552 _ACEOF
34553 cat confdefs.h >>conftest.$ac_ext
34554 cat >>conftest.$ac_ext <<_ACEOF
34555 /* end confdefs.h.  */
34556
34557                           #if HAVE_X11_XLIB_H
34558                             #include <X11/Xlib.h>
34559                           #endif
34560
34561
34562 #include <$ac_header>
34563 _ACEOF
34564 rm -f conftest.$ac_objext
34565 if { (ac_try="$ac_compile"
34566 case "(($ac_try" in
34567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34568   *) ac_try_echo=$ac_try;;
34569 esac
34570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34571   (eval "$ac_compile") 2>conftest.er1
34572   ac_status=$?
34573   grep -v '^ *+' conftest.er1 >conftest.err
34574   rm -f conftest.er1
34575   cat conftest.err >&5
34576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34577   (exit $ac_status); } && {
34578          test -z "$ac_c_werror_flag" ||
34579          test ! -s conftest.err
34580        } && test -s conftest.$ac_objext; then
34581   eval "$as_ac_Header=yes"
34582 else
34583   echo "$as_me: failed program was:" >&5
34584 sed 's/^/| /' conftest.$ac_ext >&5
34585
34586         eval "$as_ac_Header=no"
34587 fi
34588
34589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34590 fi
34591 ac_res=`eval echo '${'$as_ac_Header'}'`
34592                { echo "$as_me:$LINENO: result: $ac_res" >&5
34593 echo "${ECHO_T}$ac_res" >&6; }
34594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34595   cat >>confdefs.h <<_ACEOF
34596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34597 _ACEOF
34598
34599 fi
34600
34601 done
34602
34603     fi
34604 fi
34605
34606
34607
34608 USE_XINERAMA=0
34609 if test "$wxUSE_DISPLAY" = "yes"; then
34610         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
34611         { echo "$as_me:$LINENO: checking for Xinerama" >&5
34612 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34613
34614   ac_find_libraries=
34615   for ac_dir in $SEARCH_LIB
34616   do
34617     for ac_extension in a so sl dylib dll.a; do
34618       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34619         ac_find_libraries=$ac_dir
34620         break 2
34621       fi
34622     done
34623   done
34624
34625         if test "$ac_find_libraries" != "" ; then
34626
34627     if test "$ac_find_libraries" = "default location"; then
34628     ac_path_to_link=""
34629   else
34630     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34631     result=$?
34632     if test $result = 0; then
34633       ac_path_to_link=""
34634     else
34635       ac_path_to_link=" -L$ac_find_libraries"
34636     fi
34637   fi
34638
34639             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34640                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34641             fi
34642             USE_XINERAMA=1
34643             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
34644             { echo "$as_me:$LINENO: result: yes" >&5
34645 echo "${ECHO_T}yes" >&6; }
34646         else
34647             { echo "$as_me:$LINENO: result: no" >&5
34648 echo "${ECHO_T}no" >&6; }
34649             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
34650 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
34651             wxUSE_DISPLAY="no"
34652         fi
34653     elif test "$wxUSE_MSW" = 1; then
34654                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
34655 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
34656 if test "${ac_cv_header_ddraw_h+set}" = set; then
34657   echo $ECHO_N "(cached) $ECHO_C" >&6
34658 else
34659   cat >conftest.$ac_ext <<_ACEOF
34660 /* confdefs.h.  */
34661 _ACEOF
34662 cat confdefs.h >>conftest.$ac_ext
34663 cat >>conftest.$ac_ext <<_ACEOF
34664 /* end confdefs.h.  */
34665 #include <windows.h>
34666
34667 #include <ddraw.h>
34668 _ACEOF
34669 rm -f conftest.$ac_objext
34670 if { (ac_try="$ac_compile"
34671 case "(($ac_try" in
34672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34673   *) ac_try_echo=$ac_try;;
34674 esac
34675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34676   (eval "$ac_compile") 2>conftest.er1
34677   ac_status=$?
34678   grep -v '^ *+' conftest.er1 >conftest.err
34679   rm -f conftest.er1
34680   cat conftest.err >&5
34681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682   (exit $ac_status); } && {
34683          test -z "$ac_c_werror_flag" ||
34684          test ! -s conftest.err
34685        } && test -s conftest.$ac_objext; then
34686   ac_cv_header_ddraw_h=yes
34687 else
34688   echo "$as_me: failed program was:" >&5
34689 sed 's/^/| /' conftest.$ac_ext >&5
34690
34691         ac_cv_header_ddraw_h=no
34692 fi
34693
34694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34695 fi
34696 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
34697 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
34698
34699
34700     fi
34701 fi
34702
34703 if test "$wxUSE_DISPLAY" = "yes"; then
34704         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
34705         { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
34706 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
34707
34708   ac_find_libraries=
34709   for ac_dir in $SEARCH_LIB
34710   do
34711     for ac_extension in a so sl dylib dll.a; do
34712       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
34713         ac_find_libraries=$ac_dir
34714         break 2
34715       fi
34716     done
34717   done
34718
34719         if test "$ac_find_libraries" != "" ; then
34720             { echo "$as_me:$LINENO: result: yes" >&5
34721 echo "${ECHO_T}yes" >&6; }
34722
34723 for ac_header in X11/extensions/xf86vmode.h
34724 do
34725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34729   echo $ECHO_N "(cached) $ECHO_C" >&6
34730 else
34731   cat >conftest.$ac_ext <<_ACEOF
34732 /* confdefs.h.  */
34733 _ACEOF
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h.  */
34737
34738                                   #if HAVE_X11_XLIB_H
34739                                     #include <X11/Xlib.h>
34740                                   #endif
34741
34742
34743 #include <$ac_header>
34744 _ACEOF
34745 rm -f conftest.$ac_objext
34746 if { (ac_try="$ac_compile"
34747 case "(($ac_try" in
34748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34749   *) ac_try_echo=$ac_try;;
34750 esac
34751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34752   (eval "$ac_compile") 2>conftest.er1
34753   ac_status=$?
34754   grep -v '^ *+' conftest.er1 >conftest.err
34755   rm -f conftest.er1
34756   cat conftest.err >&5
34757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758   (exit $ac_status); } && {
34759          test -z "$ac_c_werror_flag" ||
34760          test ! -s conftest.err
34761        } && test -s conftest.$ac_objext; then
34762   eval "$as_ac_Header=yes"
34763 else
34764   echo "$as_me: failed program was:" >&5
34765 sed 's/^/| /' conftest.$ac_ext >&5
34766
34767         eval "$as_ac_Header=no"
34768 fi
34769
34770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34771 fi
34772 ac_res=`eval echo '${'$as_ac_Header'}'`
34773                { echo "$as_me:$LINENO: result: $ac_res" >&5
34774 echo "${ECHO_T}$ac_res" >&6; }
34775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34776   cat >>confdefs.h <<_ACEOF
34777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34778 _ACEOF
34779
34780                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
34781
34782 fi
34783
34784 done
34785
34786         else
34787             { echo "$as_me:$LINENO: result: no" >&5
34788 echo "${ECHO_T}no" >&6; }
34789         fi
34790     fi
34791 fi
34792
34793 if test "$wxUSE_DETECT_SM" = "yes"; then
34794     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
34795         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
34796 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
34797
34798   ac_find_libraries=
34799   for ac_dir in $SEARCH_LIB
34800   do
34801     for ac_extension in a so sl dylib dll.a; do
34802       if test -f "$ac_dir/libSM.$ac_extension"; then
34803         ac_find_libraries=$ac_dir
34804         break 2
34805       fi
34806     done
34807   done
34808
34809         if test "$ac_find_libraries" != "" ; then
34810
34811     if test "$ac_find_libraries" = "default location"; then
34812     ac_path_to_link=""
34813   else
34814     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34815     result=$?
34816     if test $result = 0; then
34817       ac_path_to_link=""
34818     else
34819       ac_path_to_link=" -L$ac_find_libraries"
34820     fi
34821   fi
34822
34823             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34824                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34825             fi
34826             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
34827             { echo "$as_me:$LINENO: result: yes" >&5
34828 echo "${ECHO_T}yes" >&6; }
34829         else
34830             { echo "$as_me:$LINENO: result: no" >&5
34831 echo "${ECHO_T}no" >&6; }
34832             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
34833 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
34834             wxUSE_DETECT_SM="no"
34835         fi
34836     else
34837         wxUSE_DETECT_SM="no"
34838     fi
34839 fi
34840
34841
34842
34843 USE_OPENGL=0
34844 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
34845
34846
34847     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
34848         OPENGL_LIBS="-framework OpenGL -framework AGL"
34849     elif test "$wxUSE_MSW" = 1; then
34850         OPENGL_LIBS="-lopengl32 -lglu32"
34851     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
34852
34853                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
34854 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
34855
34856 ac_find_includes=
34857 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include
34858   do
34859     if test -f "$ac_dir/GL/gl.h"; then
34860       ac_find_includes=$ac_dir
34861       break
34862     fi
34863   done
34864
34865         if test "$ac_find_includes" != "" ; then
34866             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34867 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34868
34869     if test "x$ac_find_includes" = "x/usr/include"; then
34870     ac_path_to_include=""
34871   else
34872     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
34873     result=$?
34874     if test $result = 0; then
34875       ac_path_to_include=""
34876     else
34877       ac_path_to_include=" -I$ac_find_includes"
34878     fi
34879   fi
34880
34881             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
34882         else
34883             { echo "$as_me:$LINENO: result: not found" >&5
34884 echo "${ECHO_T}not found" >&6; }
34885         fi
34886
34887         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
34888 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
34889 if test "${ac_cv_header_GL_gl_h+set}" = set; then
34890   echo $ECHO_N "(cached) $ECHO_C" >&6
34891 else
34892   cat >conftest.$ac_ext <<_ACEOF
34893 /* confdefs.h.  */
34894 _ACEOF
34895 cat confdefs.h >>conftest.$ac_ext
34896 cat >>conftest.$ac_ext <<_ACEOF
34897 /* end confdefs.h.  */
34898
34899
34900 #include <GL/gl.h>
34901 _ACEOF
34902 rm -f conftest.$ac_objext
34903 if { (ac_try="$ac_compile"
34904 case "(($ac_try" in
34905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34906   *) ac_try_echo=$ac_try;;
34907 esac
34908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34909   (eval "$ac_compile") 2>conftest.er1
34910   ac_status=$?
34911   grep -v '^ *+' conftest.er1 >conftest.err
34912   rm -f conftest.er1
34913   cat conftest.err >&5
34914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34915   (exit $ac_status); } && {
34916          test -z "$ac_c_werror_flag" ||
34917          test ! -s conftest.err
34918        } && test -s conftest.$ac_objext; then
34919   ac_cv_header_GL_gl_h=yes
34920 else
34921   echo "$as_me: failed program was:" >&5
34922 sed 's/^/| /' conftest.$ac_ext >&5
34923
34924         ac_cv_header_GL_gl_h=no
34925 fi
34926
34927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34928 fi
34929 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
34930 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
34931 if test $ac_cv_header_GL_gl_h = yes; then
34932
34933             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
34934 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
34935 if test "${ac_cv_header_GL_glu_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/glu.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_glu_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_glu_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_glu_h" >&5
34976 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
34977 if test $ac_cv_header_GL_glu_h = yes; then
34978
34979                 found_gl=0
34980
34981                 { echo "$as_me:$LINENO: checking for -lGL" >&5
34982 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
34983
34984   ac_find_libraries=
34985   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib
34986   do
34987     for ac_extension in a so sl dylib dll.a; do
34988       if test -f "$ac_dir/libGL.$ac_extension"; then
34989         ac_find_libraries=$ac_dir
34990         break 2
34991       fi
34992     done
34993   done
34994
34995                 if test "$ac_find_libraries" != "" ; then
34996                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34997 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34998
34999
35000     if test "$ac_find_libraries" = "default location"; then
35001     ac_path_to_link=""
35002   else
35003     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35004     result=$?
35005     if test $result = 0; then
35006       ac_path_to_link=""
35007     else
35008       ac_path_to_link=" -L$ac_find_libraries"
35009     fi
35010   fi
35011
35012                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
35013                         LDFLAGS_GL="$ac_path_to_link"
35014                     fi
35015
35016                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
35017 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
35018
35019   ac_find_libraries=
35020   for ac_dir in $SEARCH_LIB
35021   do
35022     for ac_extension in a so sl dylib dll.a; do
35023       if test -f "$ac_dir/libGLU.$ac_extension"; then
35024         ac_find_libraries=$ac_dir
35025         break 2
35026       fi
35027     done
35028   done
35029
35030                     if test "$ac_find_libraries" != "" ; then
35031
35032     if test "$ac_find_libraries" = "default location"; then
35033     ac_path_to_link=""
35034   else
35035     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35036     result=$?
35037     if test $result = 0; then
35038       ac_path_to_link=""
35039     else
35040       ac_path_to_link=" -L$ac_find_libraries"
35041     fi
35042   fi
35043
35044                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
35045                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
35046                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
35047                         fi
35048
35049                         found_gl=1
35050                         OPENGL_LIBS="-lGL -lGLU"
35051                         { echo "$as_me:$LINENO: result: yes" >&5
35052 echo "${ECHO_T}yes" >&6; }
35053                     else
35054                         { echo "$as_me:$LINENO: result: no" >&5
35055 echo "${ECHO_T}no" >&6; }
35056                     fi
35057                 else
35058                     { echo "$as_me:$LINENO: result: no" >&5
35059 echo "${ECHO_T}no" >&6; }
35060                 fi
35061
35062                 if test "$found_gl" != 1; then
35063                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
35064 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
35065
35066   ac_find_libraries=
35067   for ac_dir in $SEARCH_LIB
35068   do
35069     for ac_extension in a so sl dylib dll.a; do
35070       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
35071         ac_find_libraries=$ac_dir
35072         break 2
35073       fi
35074     done
35075   done
35076
35077                     if test "$ac_find_libraries" != "" ; then
35078
35079     if test "$ac_find_libraries" = "default location"; then
35080     ac_path_to_link=""
35081   else
35082     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35083     result=$?
35084     if test $result = 0; then
35085       ac_path_to_link=""
35086     else
35087       ac_path_to_link=" -L$ac_find_libraries"
35088     fi
35089   fi
35090
35091                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
35092                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
35093                         { echo "$as_me:$LINENO: result: yes" >&5
35094 echo "${ECHO_T}yes" >&6; }
35095                     else
35096                         { echo "$as_me:$LINENO: result: no" >&5
35097 echo "${ECHO_T}no" >&6; }
35098                     fi
35099                 fi
35100
35101 fi
35102
35103
35104
35105 fi
35106
35107
35108
35109         if test "x$OPENGL_LIBS" = "x"; then
35110             if test "$wxUSE_OPENGL" = "yes"; then
35111                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
35112 echo "$as_me: error: OpenGL libraries not available" >&2;}
35113    { (exit 1); exit 1; }; }
35114             else
35115                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
35116 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
35117                 wxUSE_OPENGL=no
35118                 USE_OPENGL=0
35119             fi
35120         fi
35121     else
35122         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35123 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35124         wxUSE_OPENGL="no"
35125     fi
35126
35127     if test "$wxUSE_OPENGL" = "auto"; then
35128                                 wxUSE_OPENGL=yes
35129     fi
35130
35131     if test "$wxUSE_OPENGL" = "yes"; then
35132         USE_OPENGL=1
35133         cat >>confdefs.h <<\_ACEOF
35134 #define wxUSE_OPENGL 1
35135 _ACEOF
35136
35137         cat >>confdefs.h <<\_ACEOF
35138 #define wxUSE_GLCANVAS 1
35139 _ACEOF
35140
35141         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
35142     fi
35143 fi
35144
35145
35146 if test -n "$TOOLKIT" ; then
35147     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
35148 fi
35149
35150
35151
35152 if test "$wxUSE_SHARED" = "yes"; then
35153     case "${host}" in
35154       *-pc-msdosdjgpp )
35155                 wxUSE_SHARED=no
35156         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
35157 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
35158       ;;
35159     esac
35160 fi
35161
35162 if test "$wxUSE_SHARED" = "yes"; then
35163
35164
35165     case "${host}" in
35166         *-*-cygwin* | *-*-mingw* )
35167                                                                                                 wx_cv_version_script=no
35168             ;;
35169
35170         *)
35171             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
35172 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
35173 if test "${wx_cv_version_script+set}" = set; then
35174   echo $ECHO_N "(cached) $ECHO_C" >&6
35175 else
35176
35177                 echo "VER_1 { *; };" >conftest.sym
35178                 echo "int main() { return 0; }" >conftest.cpp
35179
35180                 if { ac_try='
35181                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35182                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
35183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35184   (eval $ac_try) 2>&5
35185   ac_status=$?
35186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187   (exit $ac_status); }; } ; then
35188                   if test -s conftest.stderr ; then
35189                       wx_cv_version_script=no
35190                   else
35191                       wx_cv_version_script=yes
35192                   fi
35193                 else
35194                   wx_cv_version_script=no
35195                 fi
35196
35197                                                                                                                                                                                                 if test $wx_cv_version_script = yes
35198                 then
35199                   echo "struct B { virtual ~B() { } }; \
35200                         struct D : public B { }; \
35201                         void F() { D d; }" > conftest.cpp
35202
35203                   if { ac_try='
35204                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35205                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
35206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35207   (eval $ac_try) 2>&5
35208   ac_status=$?
35209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35210   (exit $ac_status); }; } &&
35211                      { ac_try='
35212                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35213                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
35214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35215   (eval $ac_try) 2>&5
35216   ac_status=$?
35217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35218   (exit $ac_status); }; }
35219                   then
35220                     if { ac_try='
35221                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35222                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
35223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35224   (eval $ac_try) 2>&5
35225   ac_status=$?
35226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227   (exit $ac_status); }; }
35228                     then
35229                       wx_cv_version_script=yes
35230                     else
35231                       wx_cv_version_script=no
35232                     fi
35233                   fi
35234                 fi
35235
35236                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
35237                 rm -f conftest1.output conftest2.output conftest3.output
35238
35239 fi
35240 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
35241 echo "${ECHO_T}$wx_cv_version_script" >&6; }
35242
35243             if test $wx_cv_version_script = yes ; then
35244                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
35245             fi
35246             ;;
35247     esac
35248
35249
35250             if test "$wxUSE_VISIBILITY" != "no"; then
35251
35252
35253   if test -n "$GCC"; then
35254     CFLAGS_VISIBILITY="-fvisibility=hidden"
35255     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
35256     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
35257 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
35258     if test "${wx_cv_cc_visibility+set}" = set; then
35259   echo $ECHO_N "(cached) $ECHO_C" >&6
35260 else
35261
35262       wx_save_CXXFLAGS="$CXXFLAGS"
35263       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35264       ac_ext=cpp
35265 ac_cpp='$CXXCPP $CPPFLAGS'
35266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35269
35270       cat >conftest.$ac_ext <<_ACEOF
35271 /* confdefs.h.  */
35272 _ACEOF
35273 cat confdefs.h >>conftest.$ac_ext
35274 cat >>conftest.$ac_ext <<_ACEOF
35275 /* end confdefs.h.  */
35276
35277          /* we need gcc >= 4.0, older versions with visibility support
35278             didn't have class visibility: */
35279          #if defined(__GNUC__) && __GNUC__ < 4
35280          error this gcc is too old;
35281          #endif
35282
35283          /* visibility only makes sense for ELF shared libs: */
35284          #if !defined(__ELF__) && !defined(__APPLE__)
35285          error this platform has no visibility;
35286          #endif
35287
35288          /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */
35289          #if defined(__clang__)
35290          clang compiler is still broken w.r.t. visibility;
35291          #endif
35292
35293          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
35294          extern __attribute__((__visibility__("default"))) int exportedvar;
35295          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
35296          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
35297          class __attribute__((__visibility__("default"))) Foo {
35298            Foo() {}
35299          };
35300
35301 int
35302 main ()
35303 {
35304
35305   ;
35306   return 0;
35307 }
35308 _ACEOF
35309 rm -f conftest.$ac_objext
35310 if { (ac_try="$ac_compile"
35311 case "(($ac_try" in
35312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35313   *) ac_try_echo=$ac_try;;
35314 esac
35315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35316   (eval "$ac_compile") 2>conftest.er1
35317   ac_status=$?
35318   grep -v '^ *+' conftest.er1 >conftest.err
35319   rm -f conftest.er1
35320   cat conftest.err >&5
35321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322   (exit $ac_status); } && {
35323          test -z "$ac_cxx_werror_flag" ||
35324          test ! -s conftest.err
35325        } && test -s conftest.$ac_objext; then
35326   wx_cv_cc_visibility=yes
35327 else
35328   echo "$as_me: failed program was:" >&5
35329 sed 's/^/| /' conftest.$ac_ext >&5
35330
35331         wx_cv_cc_visibility=no
35332 fi
35333
35334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35335       ac_ext=c
35336 ac_cpp='$CPP $CPPFLAGS'
35337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35340
35341       CXXFLAGS="$wx_save_CXXFLAGS"
35342 fi
35343
35344     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
35345 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
35346     if test $wx_cv_cc_visibility = yes; then
35347                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
35348 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
35349       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
35350   echo $ECHO_N "(cached) $ECHO_C" >&6
35351 else
35352
35353         wx_save_CXXFLAGS="$CXXFLAGS"
35354         wx_save_LDFLAGS="$LDFLAGS"
35355         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35356         LDFLAGS="$LDFLAGS -shared -fPIC"
35357         ac_ext=cpp
35358 ac_cpp='$CXXCPP $CPPFLAGS'
35359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35362
35363         cat >conftest.$ac_ext <<_ACEOF
35364 /* confdefs.h.  */
35365 _ACEOF
35366 cat confdefs.h >>conftest.$ac_ext
35367 cat >>conftest.$ac_ext <<_ACEOF
35368 /* end confdefs.h.  */
35369
35370             #include <string>
35371
35372 int
35373 main ()
35374 {
35375
35376             std::string s("hello");
35377             return s.length();
35378
35379   ;
35380   return 0;
35381 }
35382 _ACEOF
35383 rm -f conftest.$ac_objext conftest$ac_exeext
35384 if { (ac_try="$ac_link"
35385 case "(($ac_try" in
35386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35387   *) ac_try_echo=$ac_try;;
35388 esac
35389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35390   (eval "$ac_link") 2>conftest.er1
35391   ac_status=$?
35392   grep -v '^ *+' conftest.er1 >conftest.err
35393   rm -f conftest.er1
35394   cat conftest.err >&5
35395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396   (exit $ac_status); } && {
35397          test -z "$ac_cxx_werror_flag" ||
35398          test ! -s conftest.err
35399        } && test -s conftest$ac_exeext &&
35400        $as_test_x conftest$ac_exeext; then
35401   wx_cv_cc_broken_libstdcxx_visibility=no
35402 else
35403   echo "$as_me: failed program was:" >&5
35404 sed 's/^/| /' conftest.$ac_ext >&5
35405
35406         wx_cv_cc_broken_libstdcxx_visibility=yes
35407 fi
35408
35409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35410       conftest$ac_exeext conftest.$ac_ext
35411         ac_ext=c
35412 ac_cpp='$CPP $CPPFLAGS'
35413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35416
35417         CXXFLAGS="$wx_save_CXXFLAGS"
35418         LDFLAGS="$wx_save_LDFLAGS"
35419 fi
35420
35421       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
35422 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
35423
35424       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35425         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
35426 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
35427         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
35428   echo $ECHO_N "(cached) $ECHO_C" >&6
35429 else
35430
35431           ac_ext=cpp
35432 ac_cpp='$CXXCPP $CPPFLAGS'
35433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35436
35437           cat >conftest.$ac_ext <<_ACEOF
35438 /* confdefs.h.  */
35439 _ACEOF
35440 cat confdefs.h >>conftest.$ac_ext
35441 cat >>conftest.$ac_ext <<_ACEOF
35442 /* end confdefs.h.  */
35443
35444               #pragma GCC visibility push(default)
35445               #include <string>
35446               #pragma GCC visibility pop
35447
35448 int
35449 main ()
35450 {
35451
35452               std::string s("hello");
35453               return s.length();
35454
35455   ;
35456   return 0;
35457 }
35458 _ACEOF
35459 rm -f conftest.$ac_objext conftest$ac_exeext
35460 if { (ac_try="$ac_link"
35461 case "(($ac_try" in
35462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35463   *) ac_try_echo=$ac_try;;
35464 esac
35465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35466   (eval "$ac_link") 2>conftest.er1
35467   ac_status=$?
35468   grep -v '^ *+' conftest.er1 >conftest.err
35469   rm -f conftest.er1
35470   cat conftest.err >&5
35471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35472   (exit $ac_status); } && {
35473          test -z "$ac_cxx_werror_flag" ||
35474          test ! -s conftest.err
35475        } && test -s conftest$ac_exeext &&
35476        $as_test_x conftest$ac_exeext; then
35477   wx_cv_cc_visibility_workaround=no
35478 else
35479   echo "$as_me: failed program was:" >&5
35480 sed 's/^/| /' conftest.$ac_ext >&5
35481
35482         wx_cv_cc_visibility_workaround=yes
35483 fi
35484
35485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35486       conftest$ac_exeext conftest.$ac_ext
35487           ac_ext=c
35488 ac_cpp='$CPP $CPPFLAGS'
35489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35492
35493
35494 fi
35495
35496         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
35497 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
35498
35499         if test $wx_cv_cc_visibility_workaround = no; then
35500                     wx_cv_cc_visibility=no
35501         fi
35502       fi
35503     fi
35504
35505     if test $wx_cv_cc_visibility = yes; then
35506       cat >>confdefs.h <<\_ACEOF
35507 #define HAVE_VISIBILITY 1
35508 _ACEOF
35509
35510       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35511         cat >>confdefs.h <<\_ACEOF
35512 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
35513 _ACEOF
35514
35515       fi
35516     else
35517       CFLAGS_VISIBILITY=""
35518       CXXFLAGS_VISIBILITY=""
35519     fi
35520
35521
35522   fi
35523
35524     fi
35525
35526         if test "x$SUNCXX" = xyes; then
35527         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
35528         WXCONFIG_RPATH="-R\$libdir"
35529     else
35530     case "${host}" in
35531       *-*-linux* | *-*-gnu* )
35532         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35533         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35534         ;;
35535
35536       *-*-solaris2* )
35537
35538                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
35539
35540                         saveLdflags="$LDFLAGS"
35541         LDFLAGS="$saveLdflags -Wl,-rpath,/"
35542         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
35543 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
35544         cat >conftest.$ac_ext <<_ACEOF
35545 /* confdefs.h.  */
35546 _ACEOF
35547 cat confdefs.h >>conftest.$ac_ext
35548 cat >>conftest.$ac_ext <<_ACEOF
35549 /* end confdefs.h.  */
35550
35551 int
35552 main ()
35553 {
35554
35555   ;
35556   return 0;
35557 }
35558 _ACEOF
35559 rm -f conftest.$ac_objext conftest$ac_exeext
35560 if { (ac_try="$ac_link"
35561 case "(($ac_try" in
35562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35563   *) ac_try_echo=$ac_try;;
35564 esac
35565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35566   (eval "$ac_link") 2>conftest.er1
35567   ac_status=$?
35568   grep -v '^ *+' conftest.er1 >conftest.err
35569   rm -f conftest.er1
35570   cat conftest.err >&5
35571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572   (exit $ac_status); } && {
35573          test -z "$ac_c_werror_flag" ||
35574          test ! -s conftest.err
35575        } && test -s conftest$ac_exeext &&
35576        $as_test_x conftest$ac_exeext; then
35577
35578                 { echo "$as_me:$LINENO: result: yes" >&5
35579 echo "${ECHO_T}yes" >&6; }
35580                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35581                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35582
35583 else
35584   echo "$as_me: failed program was:" >&5
35585 sed 's/^/| /' conftest.$ac_ext >&5
35586
35587
35588                 { echo "$as_me:$LINENO: result: no" >&5
35589 echo "${ECHO_T}no" >&6; }
35590                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
35591 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
35592                 LDFLAGS="$saveLdflags -Wl,-R,/"
35593                 cat >conftest.$ac_ext <<_ACEOF
35594 /* confdefs.h.  */
35595 _ACEOF
35596 cat confdefs.h >>conftest.$ac_ext
35597 cat >>conftest.$ac_ext <<_ACEOF
35598 /* end confdefs.h.  */
35599
35600 int
35601 main ()
35602 {
35603
35604   ;
35605   return 0;
35606 }
35607 _ACEOF
35608 rm -f conftest.$ac_objext conftest$ac_exeext
35609 if { (ac_try="$ac_link"
35610 case "(($ac_try" in
35611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35612   *) ac_try_echo=$ac_try;;
35613 esac
35614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35615   (eval "$ac_link") 2>conftest.er1
35616   ac_status=$?
35617   grep -v '^ *+' conftest.er1 >conftest.err
35618   rm -f conftest.er1
35619   cat conftest.err >&5
35620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35621   (exit $ac_status); } && {
35622          test -z "$ac_c_werror_flag" ||
35623          test ! -s conftest.err
35624        } && test -s conftest$ac_exeext &&
35625        $as_test_x conftest$ac_exeext; then
35626
35627                         { echo "$as_me:$LINENO: result: yes" >&5
35628 echo "${ECHO_T}yes" >&6; }
35629                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
35630                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
35631
35632 else
35633   echo "$as_me: failed program was:" >&5
35634 sed 's/^/| /' conftest.$ac_ext >&5
35635
35636
35637                         { echo "$as_me:$LINENO: result: no" >&5
35638 echo "${ECHO_T}no" >&6; }
35639
35640 fi
35641
35642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35643       conftest$ac_exeext conftest.$ac_ext
35644
35645 fi
35646
35647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35648       conftest$ac_exeext conftest.$ac_ext
35649         LDFLAGS="$saveLdflags"
35650       ;;
35651
35652       *-*-darwin* )
35653         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
35654         if test "$install_name_tool" -a -x "$install_name_tool"; then
35655             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
35656             cat <<EOF >change-install-names
35657 #!/bin/sh
35658 libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
35659 for i in \${libnames} ; do
35660     ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i}
35661     for dep in \${libnames} ; do
35662         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i}
35663     done
35664 done
35665 EOF
35666             chmod +x change-install-names
35667             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}"
35668         fi
35669
35670                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
35671       ;;
35672
35673       *-*-cygwin* | *-*-mingw32* )
35674         ;;
35675
35676       *-*-hpux* )
35677         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
35678         WXCONFIG_RPATH="-Wl,+b,\$libdir"
35679         ;;
35680
35681     esac
35682     fi
35683
35684             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
35685
35686     if test $wxUSE_RPATH = "no"; then
35687         SAMPLES_RPATH_FLAG=''
35688         DYLIB_PATH_POSTLINK=''
35689         WXCONFIG_RPATH=''
35690     fi
35691
35692     SHARED=1
35693
35694 else
35695
35696     config_linkage_component="-static"
35697     SHARED=0
35698
35699 fi
35700
35701
35702 UNICODE=0
35703 lib_unicode_suffix=
35704 WX_CHARTYPE="ansi"
35705 if test "$wxUSE_UNICODE" = "yes"; then
35706     lib_unicode_suffix=u
35707     WX_CHARTYPE="unicode"
35708     UNICODE=1
35709 fi
35710
35711 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
35712 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
35713
35714 DEBUG_INFO=0
35715 if test "$wxUSE_DEBUG_INFO" = "yes"; then
35716     DEBUG_INFO=1
35717 fi
35718
35719 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
35720
35721 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
35722
35723 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
35724
35725
35726 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
35727     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35728 else
35729     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35730 fi
35731 if test "${TOOLKIT_DIR}" = "os2"; then
35732     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35733 else
35734     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35735 fi
35736
35737
35738
35739 if test "$wxUSE_OLD_COCOA" = 1; then
35740
35741     ac_ext=c
35742 ac_cpp='$CPP $CPPFLAGS'
35743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35746
35747 ac_ext=m
35748
35749     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
35750 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
35751     cat >conftest.$ac_ext <<_ACEOF
35752 /* confdefs.h.  */
35753 _ACEOF
35754 cat confdefs.h >>conftest.$ac_ext
35755 cat >>conftest.$ac_ext <<_ACEOF
35756 /* end confdefs.h.  */
35757 #include <AppKit/NSEvent.h>
35758 #include <CoreFoundation/CoreFoundation.h>
35759
35760 int
35761 main ()
35762 {
35763
35764   ;
35765   return 0;
35766 }
35767 _ACEOF
35768 rm -f conftest.$ac_objext
35769 if { (ac_try="$ac_compile"
35770 case "(($ac_try" in
35771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35772   *) ac_try_echo=$ac_try;;
35773 esac
35774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35775   (eval "$ac_compile") 2>conftest.er1
35776   ac_status=$?
35777   grep -v '^ *+' conftest.er1 >conftest.err
35778   rm -f conftest.er1
35779   cat conftest.err >&5
35780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781   (exit $ac_status); } && {
35782          test -z "$ac_c_werror_flag" ||
35783          test ! -s conftest.err
35784        } && test -s conftest.$ac_objext; then
35785   { echo "$as_me:$LINENO: result: no" >&5
35786 echo "${ECHO_T}no" >&6; }
35787 else
35788   echo "$as_me: failed program was:" >&5
35789 sed 's/^/| /' conftest.$ac_ext >&5
35790
35791         { echo "$as_me:$LINENO: result: yes" >&5
35792 echo "${ECHO_T}yes" >&6; }
35793         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
35794 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
35795         cat >conftest.$ac_ext <<_ACEOF
35796 /* confdefs.h.  */
35797 _ACEOF
35798 cat confdefs.h >>conftest.$ac_ext
35799 cat >>conftest.$ac_ext <<_ACEOF
35800 /* end confdefs.h.  */
35801 #define __Point__ 1
35802 #include <AppKit/NSEvent.h>
35803 #include <CoreFoundation/CoreFoundation.h>
35804
35805 int
35806 main ()
35807 {
35808
35809   ;
35810   return 0;
35811 }
35812 _ACEOF
35813 rm -f conftest.$ac_objext
35814 if { (ac_try="$ac_compile"
35815 case "(($ac_try" in
35816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35817   *) ac_try_echo=$ac_try;;
35818 esac
35819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35820   (eval "$ac_compile") 2>conftest.er1
35821   ac_status=$?
35822   grep -v '^ *+' conftest.er1 >conftest.err
35823   rm -f conftest.er1
35824   cat conftest.err >&5
35825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35826   (exit $ac_status); } && {
35827          test -z "$ac_c_werror_flag" ||
35828          test ! -s conftest.err
35829        } && test -s conftest.$ac_objext; then
35830   { echo "$as_me:$LINENO: result: yes" >&5
35831 echo "${ECHO_T}yes" >&6; }
35832             cat >>confdefs.h <<\_ACEOF
35833 #define __Point__ 1
35834 _ACEOF
35835
35836
35837 else
35838   echo "$as_me: failed program was:" >&5
35839 sed 's/^/| /' conftest.$ac_ext >&5
35840
35841         { { echo "$as_me:$LINENO: error: no
35842 See \`config.log' for more details." >&5
35843 echo "$as_me: error: no
35844 See \`config.log' for more details." >&2;}
35845    { (exit 1); exit 1; }; }
35846
35847 fi
35848
35849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35850
35851 fi
35852
35853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35854     ac_ext=c
35855 ac_cpp='$CPP $CPPFLAGS'
35856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35859
35860 fi
35861
35862
35863 { echo "$as_me:$LINENO: checking for mode_t" >&5
35864 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
35865 if test "${ac_cv_type_mode_t+set}" = set; then
35866   echo $ECHO_N "(cached) $ECHO_C" >&6
35867 else
35868   cat >conftest.$ac_ext <<_ACEOF
35869 /* confdefs.h.  */
35870 _ACEOF
35871 cat confdefs.h >>conftest.$ac_ext
35872 cat >>conftest.$ac_ext <<_ACEOF
35873 /* end confdefs.h.  */
35874 $ac_includes_default
35875 typedef mode_t ac__type_new_;
35876 int
35877 main ()
35878 {
35879 if ((ac__type_new_ *) 0)
35880   return 0;
35881 if (sizeof (ac__type_new_))
35882   return 0;
35883   ;
35884   return 0;
35885 }
35886 _ACEOF
35887 rm -f conftest.$ac_objext
35888 if { (ac_try="$ac_compile"
35889 case "(($ac_try" in
35890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35891   *) ac_try_echo=$ac_try;;
35892 esac
35893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35894   (eval "$ac_compile") 2>conftest.er1
35895   ac_status=$?
35896   grep -v '^ *+' conftest.er1 >conftest.err
35897   rm -f conftest.er1
35898   cat conftest.err >&5
35899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900   (exit $ac_status); } && {
35901          test -z "$ac_c_werror_flag" ||
35902          test ! -s conftest.err
35903        } && test -s conftest.$ac_objext; then
35904   ac_cv_type_mode_t=yes
35905 else
35906   echo "$as_me: failed program was:" >&5
35907 sed 's/^/| /' conftest.$ac_ext >&5
35908
35909         ac_cv_type_mode_t=no
35910 fi
35911
35912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35913 fi
35914 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
35915 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
35916 if test $ac_cv_type_mode_t = yes; then
35917   :
35918 else
35919
35920 cat >>confdefs.h <<_ACEOF
35921 #define mode_t int
35922 _ACEOF
35923
35924 fi
35925
35926 { echo "$as_me:$LINENO: checking for off_t" >&5
35927 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
35928 if test "${ac_cv_type_off_t+set}" = set; then
35929   echo $ECHO_N "(cached) $ECHO_C" >&6
35930 else
35931   cat >conftest.$ac_ext <<_ACEOF
35932 /* confdefs.h.  */
35933 _ACEOF
35934 cat confdefs.h >>conftest.$ac_ext
35935 cat >>conftest.$ac_ext <<_ACEOF
35936 /* end confdefs.h.  */
35937 $ac_includes_default
35938 typedef off_t ac__type_new_;
35939 int
35940 main ()
35941 {
35942 if ((ac__type_new_ *) 0)
35943   return 0;
35944 if (sizeof (ac__type_new_))
35945   return 0;
35946   ;
35947   return 0;
35948 }
35949 _ACEOF
35950 rm -f conftest.$ac_objext
35951 if { (ac_try="$ac_compile"
35952 case "(($ac_try" in
35953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35954   *) ac_try_echo=$ac_try;;
35955 esac
35956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35957   (eval "$ac_compile") 2>conftest.er1
35958   ac_status=$?
35959   grep -v '^ *+' conftest.er1 >conftest.err
35960   rm -f conftest.er1
35961   cat conftest.err >&5
35962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963   (exit $ac_status); } && {
35964          test -z "$ac_c_werror_flag" ||
35965          test ! -s conftest.err
35966        } && test -s conftest.$ac_objext; then
35967   ac_cv_type_off_t=yes
35968 else
35969   echo "$as_me: failed program was:" >&5
35970 sed 's/^/| /' conftest.$ac_ext >&5
35971
35972         ac_cv_type_off_t=no
35973 fi
35974
35975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35976 fi
35977 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35978 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
35979 if test $ac_cv_type_off_t = yes; then
35980   :
35981 else
35982
35983 cat >>confdefs.h <<_ACEOF
35984 #define off_t long int
35985 _ACEOF
35986
35987 fi
35988
35989 { echo "$as_me:$LINENO: checking for pid_t" >&5
35990 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
35991 if test "${ac_cv_type_pid_t+set}" = set; then
35992   echo $ECHO_N "(cached) $ECHO_C" >&6
35993 else
35994   cat >conftest.$ac_ext <<_ACEOF
35995 /* confdefs.h.  */
35996 _ACEOF
35997 cat confdefs.h >>conftest.$ac_ext
35998 cat >>conftest.$ac_ext <<_ACEOF
35999 /* end confdefs.h.  */
36000 $ac_includes_default
36001 typedef pid_t ac__type_new_;
36002 int
36003 main ()
36004 {
36005 if ((ac__type_new_ *) 0)
36006   return 0;
36007 if (sizeof (ac__type_new_))
36008   return 0;
36009   ;
36010   return 0;
36011 }
36012 _ACEOF
36013 rm -f conftest.$ac_objext
36014 if { (ac_try="$ac_compile"
36015 case "(($ac_try" in
36016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36017   *) ac_try_echo=$ac_try;;
36018 esac
36019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36020   (eval "$ac_compile") 2>conftest.er1
36021   ac_status=$?
36022   grep -v '^ *+' conftest.er1 >conftest.err
36023   rm -f conftest.er1
36024   cat conftest.err >&5
36025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026   (exit $ac_status); } && {
36027          test -z "$ac_c_werror_flag" ||
36028          test ! -s conftest.err
36029        } && test -s conftest.$ac_objext; then
36030   ac_cv_type_pid_t=yes
36031 else
36032   echo "$as_me: failed program was:" >&5
36033 sed 's/^/| /' conftest.$ac_ext >&5
36034
36035         ac_cv_type_pid_t=no
36036 fi
36037
36038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36039 fi
36040 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
36041 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
36042 if test $ac_cv_type_pid_t = yes; then
36043   :
36044 else
36045
36046 cat >>confdefs.h <<_ACEOF
36047 #define pid_t int
36048 _ACEOF
36049
36050 fi
36051
36052 { echo "$as_me:$LINENO: checking for size_t" >&5
36053 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
36054 if test "${ac_cv_type_size_t+set}" = set; then
36055   echo $ECHO_N "(cached) $ECHO_C" >&6
36056 else
36057   cat >conftest.$ac_ext <<_ACEOF
36058 /* confdefs.h.  */
36059 _ACEOF
36060 cat confdefs.h >>conftest.$ac_ext
36061 cat >>conftest.$ac_ext <<_ACEOF
36062 /* end confdefs.h.  */
36063 $ac_includes_default
36064 typedef size_t ac__type_new_;
36065 int
36066 main ()
36067 {
36068 if ((ac__type_new_ *) 0)
36069   return 0;
36070 if (sizeof (ac__type_new_))
36071   return 0;
36072   ;
36073   return 0;
36074 }
36075 _ACEOF
36076 rm -f conftest.$ac_objext
36077 if { (ac_try="$ac_compile"
36078 case "(($ac_try" in
36079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36080   *) ac_try_echo=$ac_try;;
36081 esac
36082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36083   (eval "$ac_compile") 2>conftest.er1
36084   ac_status=$?
36085   grep -v '^ *+' conftest.er1 >conftest.err
36086   rm -f conftest.er1
36087   cat conftest.err >&5
36088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089   (exit $ac_status); } && {
36090          test -z "$ac_c_werror_flag" ||
36091          test ! -s conftest.err
36092        } && test -s conftest.$ac_objext; then
36093   ac_cv_type_size_t=yes
36094 else
36095   echo "$as_me: failed program was:" >&5
36096 sed 's/^/| /' conftest.$ac_ext >&5
36097
36098         ac_cv_type_size_t=no
36099 fi
36100
36101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36102 fi
36103 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
36104 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
36105 if test $ac_cv_type_size_t = yes; then
36106   :
36107 else
36108
36109 cat >>confdefs.h <<_ACEOF
36110 #define size_t unsigned int
36111 _ACEOF
36112
36113 fi
36114
36115
36116 { echo "$as_me:$LINENO: checking for ssize_t" >&5
36117 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
36118 if test "${ac_cv_type_ssize_t+set}" = set; then
36119   echo $ECHO_N "(cached) $ECHO_C" >&6
36120 else
36121   cat >conftest.$ac_ext <<_ACEOF
36122 /* confdefs.h.  */
36123 _ACEOF
36124 cat confdefs.h >>conftest.$ac_ext
36125 cat >>conftest.$ac_ext <<_ACEOF
36126 /* end confdefs.h.  */
36127 $ac_includes_default
36128 typedef ssize_t ac__type_new_;
36129 int
36130 main ()
36131 {
36132 if ((ac__type_new_ *) 0)
36133   return 0;
36134 if (sizeof (ac__type_new_))
36135   return 0;
36136   ;
36137   return 0;
36138 }
36139 _ACEOF
36140 rm -f conftest.$ac_objext
36141 if { (ac_try="$ac_compile"
36142 case "(($ac_try" in
36143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36144   *) ac_try_echo=$ac_try;;
36145 esac
36146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36147   (eval "$ac_compile") 2>conftest.er1
36148   ac_status=$?
36149   grep -v '^ *+' conftest.er1 >conftest.err
36150   rm -f conftest.er1
36151   cat conftest.err >&5
36152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153   (exit $ac_status); } && {
36154          test -z "$ac_c_werror_flag" ||
36155          test ! -s conftest.err
36156        } && test -s conftest.$ac_objext; then
36157   ac_cv_type_ssize_t=yes
36158 else
36159   echo "$as_me: failed program was:" >&5
36160 sed 's/^/| /' conftest.$ac_ext >&5
36161
36162         ac_cv_type_ssize_t=no
36163 fi
36164
36165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36166 fi
36167 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36168 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
36169 if test $ac_cv_type_ssize_t = yes; then
36170
36171 cat >>confdefs.h <<_ACEOF
36172 #define HAVE_SSIZE_T 1
36173 _ACEOF
36174
36175
36176 fi
36177
36178
36179 ac_ext=cpp
36180 ac_cpp='$CXXCPP $CPPFLAGS'
36181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36184  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
36185 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
36186 if test "${wx_cv_size_t_is_uint+set}" = set; then
36187   echo $ECHO_N "(cached) $ECHO_C" >&6
36188 else
36189
36190                             cat >conftest.$ac_ext <<_ACEOF
36191 /* confdefs.h.  */
36192 _ACEOF
36193 cat confdefs.h >>conftest.$ac_ext
36194 cat >>conftest.$ac_ext <<_ACEOF
36195 /* end confdefs.h.  */
36196 #include <stddef.h>
36197 int
36198 main ()
36199 {
36200
36201             return 0; }
36202
36203             struct Foo { void foo(size_t); void foo(unsigned int); };
36204
36205             int bar() {
36206
36207   ;
36208   return 0;
36209 }
36210 _ACEOF
36211 rm -f conftest.$ac_objext
36212 if { (ac_try="$ac_compile"
36213 case "(($ac_try" in
36214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36215   *) ac_try_echo=$ac_try;;
36216 esac
36217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36218   (eval "$ac_compile") 2>conftest.er1
36219   ac_status=$?
36220   grep -v '^ *+' conftest.er1 >conftest.err
36221   rm -f conftest.er1
36222   cat conftest.err >&5
36223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36224   (exit $ac_status); } && {
36225          test -z "$ac_cxx_werror_flag" ||
36226          test ! -s conftest.err
36227        } && test -s conftest.$ac_objext; then
36228   wx_cv_size_t_is_uint=no
36229 else
36230   echo "$as_me: failed program was:" >&5
36231 sed 's/^/| /' conftest.$ac_ext >&5
36232
36233         wx_cv_size_t_is_uint=yes
36234
36235 fi
36236
36237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36238
36239
36240 fi
36241 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
36242 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
36243
36244 if test "$wx_cv_size_t_is_uint" = "yes"; then
36245     cat >>confdefs.h <<\_ACEOF
36246 #define wxSIZE_T_IS_UINT 1
36247 _ACEOF
36248
36249 else
36250     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
36251 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
36252 if test "${wx_cv_size_t_is_ulong+set}" = set; then
36253   echo $ECHO_N "(cached) $ECHO_C" >&6
36254 else
36255   cat >conftest.$ac_ext <<_ACEOF
36256 /* confdefs.h.  */
36257 _ACEOF
36258 cat confdefs.h >>conftest.$ac_ext
36259 cat >>conftest.$ac_ext <<_ACEOF
36260 /* end confdefs.h.  */
36261 #include <stddef.h>
36262 int
36263 main ()
36264 {
36265
36266                 return 0; }
36267
36268                 struct Foo { void foo(size_t); void foo(unsigned long); };
36269
36270                 int bar() {
36271
36272   ;
36273   return 0;
36274 }
36275 _ACEOF
36276 rm -f conftest.$ac_objext
36277 if { (ac_try="$ac_compile"
36278 case "(($ac_try" in
36279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36280   *) ac_try_echo=$ac_try;;
36281 esac
36282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36283   (eval "$ac_compile") 2>conftest.er1
36284   ac_status=$?
36285   grep -v '^ *+' conftest.er1 >conftest.err
36286   rm -f conftest.er1
36287   cat conftest.err >&5
36288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289   (exit $ac_status); } && {
36290          test -z "$ac_cxx_werror_flag" ||
36291          test ! -s conftest.err
36292        } && test -s conftest.$ac_objext; then
36293   wx_cv_size_t_is_ulong=no
36294 else
36295   echo "$as_me: failed program was:" >&5
36296 sed 's/^/| /' conftest.$ac_ext >&5
36297
36298         wx_cv_size_t_is_ulong=yes
36299
36300 fi
36301
36302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36303
36304 fi
36305 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
36306 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
36307
36308     if test "$wx_cv_size_t_is_ulong" = "yes"; then
36309         cat >>confdefs.h <<\_ACEOF
36310 #define wxSIZE_T_IS_ULONG 1
36311 _ACEOF
36312
36313     fi
36314 fi
36315
36316 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
36317 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
36318 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
36319   echo $ECHO_N "(cached) $ECHO_C" >&6
36320 else
36321   cat >conftest.$ac_ext <<_ACEOF
36322 /* confdefs.h.  */
36323 _ACEOF
36324 cat confdefs.h >>conftest.$ac_ext
36325 cat >>conftest.$ac_ext <<_ACEOF
36326 /* end confdefs.h.  */
36327 #include <wchar.h>
36328 int
36329 main ()
36330 {
36331
36332             return 0; }
36333
36334             struct Foo { void foo(wchar_t);
36335                          void foo(unsigned short);
36336                          void foo(unsigned int);
36337                          void foo(unsigned long); };
36338
36339             int bar() {
36340
36341   ;
36342   return 0;
36343 }
36344 _ACEOF
36345 rm -f conftest.$ac_objext
36346 if { (ac_try="$ac_compile"
36347 case "(($ac_try" in
36348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36349   *) ac_try_echo=$ac_try;;
36350 esac
36351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36352   (eval "$ac_compile") 2>conftest.er1
36353   ac_status=$?
36354   grep -v '^ *+' conftest.er1 >conftest.err
36355   rm -f conftest.er1
36356   cat conftest.err >&5
36357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36358   (exit $ac_status); } && {
36359          test -z "$ac_cxx_werror_flag" ||
36360          test ! -s conftest.err
36361        } && test -s conftest.$ac_objext; then
36362   wx_cv_wchar_t_is_separate_type=yes
36363 else
36364   echo "$as_me: failed program was:" >&5
36365 sed 's/^/| /' conftest.$ac_ext >&5
36366
36367         wx_cv_wchar_t_is_separate_type=no
36368
36369 fi
36370
36371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36372
36373 fi
36374 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
36375 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
36376
36377 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
36378     cat >>confdefs.h <<\_ACEOF
36379 #define wxWCHAR_T_IS_REAL_TYPE 1
36380 _ACEOF
36381
36382 else
36383     cat >>confdefs.h <<\_ACEOF
36384 #define wxWCHAR_T_IS_REAL_TYPE 0
36385 _ACEOF
36386
36387 fi
36388
36389 ac_ext=c
36390 ac_cpp='$CPP $CPPFLAGS'
36391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36394
36395
36396 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
36397 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
36398 if test "${wx_cv_struct_pw_gecos+set}" = set; then
36399   echo $ECHO_N "(cached) $ECHO_C" >&6
36400 else
36401
36402         cat >conftest.$ac_ext <<_ACEOF
36403 /* confdefs.h.  */
36404 _ACEOF
36405 cat confdefs.h >>conftest.$ac_ext
36406 cat >>conftest.$ac_ext <<_ACEOF
36407 /* end confdefs.h.  */
36408 #include <pwd.h>
36409 int
36410 main ()
36411 {
36412
36413                 char *p;
36414                 struct passwd *pw;
36415                 p = pw->pw_gecos;
36416
36417   ;
36418   return 0;
36419 }
36420 _ACEOF
36421 rm -f conftest.$ac_objext
36422 if { (ac_try="$ac_compile"
36423 case "(($ac_try" in
36424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36425   *) ac_try_echo=$ac_try;;
36426 esac
36427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36428   (eval "$ac_compile") 2>conftest.er1
36429   ac_status=$?
36430   grep -v '^ *+' conftest.er1 >conftest.err
36431   rm -f conftest.er1
36432   cat conftest.err >&5
36433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434   (exit $ac_status); } && {
36435          test -z "$ac_c_werror_flag" ||
36436          test ! -s conftest.err
36437        } && test -s conftest.$ac_objext; then
36438
36439                 wx_cv_struct_pw_gecos=yes
36440
36441 else
36442   echo "$as_me: failed program was:" >&5
36443 sed 's/^/| /' conftest.$ac_ext >&5
36444
36445
36446                 wx_cv_struct_pw_gecos=no
36447
36448
36449 fi
36450
36451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36452
36453
36454 fi
36455 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
36456 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
36457
36458 if test "$wx_cv_struct_pw_gecos" = "yes"; then
36459     cat >>confdefs.h <<\_ACEOF
36460 #define HAVE_PW_GECOS 1
36461 _ACEOF
36462
36463 fi
36464
36465
36466 WCSLEN_FOUND=0
36467 WCHAR_LINK=
36468
36469 for ac_func in wcslen
36470 do
36471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36475   echo $ECHO_N "(cached) $ECHO_C" >&6
36476 else
36477   cat >conftest.$ac_ext <<_ACEOF
36478 /* confdefs.h.  */
36479 _ACEOF
36480 cat confdefs.h >>conftest.$ac_ext
36481 cat >>conftest.$ac_ext <<_ACEOF
36482 /* end confdefs.h.  */
36483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36485 #define $ac_func innocuous_$ac_func
36486
36487 /* System header to define __stub macros and hopefully few prototypes,
36488     which can conflict with char $ac_func (); below.
36489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36490     <limits.h> exists even on freestanding compilers.  */
36491
36492 #ifdef __STDC__
36493 # include <limits.h>
36494 #else
36495 # include <assert.h>
36496 #endif
36497
36498 #undef $ac_func
36499
36500 /* Override any GCC internal prototype to avoid an error.
36501    Use char because int might match the return type of a GCC
36502    builtin and then its argument prototype would still apply.  */
36503 #ifdef __cplusplus
36504 extern "C"
36505 #endif
36506 char $ac_func ();
36507 /* The GNU C library defines this for functions which it implements
36508     to always fail with ENOSYS.  Some functions are actually named
36509     something starting with __ and the normal name is an alias.  */
36510 #if defined __stub_$ac_func || defined __stub___$ac_func
36511 choke me
36512 #endif
36513
36514 int
36515 main ()
36516 {
36517 return $ac_func ();
36518   ;
36519   return 0;
36520 }
36521 _ACEOF
36522 rm -f conftest.$ac_objext conftest$ac_exeext
36523 if { (ac_try="$ac_link"
36524 case "(($ac_try" in
36525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36526   *) ac_try_echo=$ac_try;;
36527 esac
36528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36529   (eval "$ac_link") 2>conftest.er1
36530   ac_status=$?
36531   grep -v '^ *+' conftest.er1 >conftest.err
36532   rm -f conftest.er1
36533   cat conftest.err >&5
36534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36535   (exit $ac_status); } && {
36536          test -z "$ac_c_werror_flag" ||
36537          test ! -s conftest.err
36538        } && test -s conftest$ac_exeext &&
36539        $as_test_x conftest$ac_exeext; then
36540   eval "$as_ac_var=yes"
36541 else
36542   echo "$as_me: failed program was:" >&5
36543 sed 's/^/| /' conftest.$ac_ext >&5
36544
36545         eval "$as_ac_var=no"
36546 fi
36547
36548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36549       conftest$ac_exeext conftest.$ac_ext
36550 fi
36551 ac_res=`eval echo '${'$as_ac_var'}'`
36552                { echo "$as_me:$LINENO: result: $ac_res" >&5
36553 echo "${ECHO_T}$ac_res" >&6; }
36554 if test `eval echo '${'$as_ac_var'}'` = yes; then
36555   cat >>confdefs.h <<_ACEOF
36556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36557 _ACEOF
36558  WCSLEN_FOUND=1
36559 fi
36560 done
36561
36562
36563 if test "$WCSLEN_FOUND" = 0; then
36564     if test "$TOOLKIT" = "MSW"; then
36565         { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
36566 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
36567 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
36568   echo $ECHO_N "(cached) $ECHO_C" >&6
36569 else
36570   ac_check_lib_save_LIBS=$LIBS
36571 LIBS="-lmsvcrt  $LIBS"
36572 cat >conftest.$ac_ext <<_ACEOF
36573 /* confdefs.h.  */
36574 _ACEOF
36575 cat confdefs.h >>conftest.$ac_ext
36576 cat >>conftest.$ac_ext <<_ACEOF
36577 /* end confdefs.h.  */
36578
36579 /* Override any GCC internal prototype to avoid an error.
36580    Use char because int might match the return type of a GCC
36581    builtin and then its argument prototype would still apply.  */
36582 #ifdef __cplusplus
36583 extern "C"
36584 #endif
36585 char wcslen ();
36586 int
36587 main ()
36588 {
36589 return wcslen ();
36590   ;
36591   return 0;
36592 }
36593 _ACEOF
36594 rm -f conftest.$ac_objext conftest$ac_exeext
36595 if { (ac_try="$ac_link"
36596 case "(($ac_try" in
36597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36598   *) ac_try_echo=$ac_try;;
36599 esac
36600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36601   (eval "$ac_link") 2>conftest.er1
36602   ac_status=$?
36603   grep -v '^ *+' conftest.er1 >conftest.err
36604   rm -f conftest.er1
36605   cat conftest.err >&5
36606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36607   (exit $ac_status); } && {
36608          test -z "$ac_c_werror_flag" ||
36609          test ! -s conftest.err
36610        } && test -s conftest$ac_exeext &&
36611        $as_test_x conftest$ac_exeext; then
36612   ac_cv_lib_msvcrt_wcslen=yes
36613 else
36614   echo "$as_me: failed program was:" >&5
36615 sed 's/^/| /' conftest.$ac_ext >&5
36616
36617         ac_cv_lib_msvcrt_wcslen=no
36618 fi
36619
36620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36621       conftest$ac_exeext conftest.$ac_ext
36622 LIBS=$ac_check_lib_save_LIBS
36623 fi
36624 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
36625 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
36626 if test $ac_cv_lib_msvcrt_wcslen = yes; then
36627   WCHAR_OK=1
36628 fi
36629
36630     else
36631         { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
36632 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
36633 if test "${ac_cv_lib_w_wcslen+set}" = set; then
36634   echo $ECHO_N "(cached) $ECHO_C" >&6
36635 else
36636   ac_check_lib_save_LIBS=$LIBS
36637 LIBS="-lw  $LIBS"
36638 cat >conftest.$ac_ext <<_ACEOF
36639 /* confdefs.h.  */
36640 _ACEOF
36641 cat confdefs.h >>conftest.$ac_ext
36642 cat >>conftest.$ac_ext <<_ACEOF
36643 /* end confdefs.h.  */
36644
36645 /* Override any GCC internal prototype to avoid an error.
36646    Use char because int might match the return type of a GCC
36647    builtin and then its argument prototype would still apply.  */
36648 #ifdef __cplusplus
36649 extern "C"
36650 #endif
36651 char wcslen ();
36652 int
36653 main ()
36654 {
36655 return wcslen ();
36656   ;
36657   return 0;
36658 }
36659 _ACEOF
36660 rm -f conftest.$ac_objext conftest$ac_exeext
36661 if { (ac_try="$ac_link"
36662 case "(($ac_try" in
36663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36664   *) ac_try_echo=$ac_try;;
36665 esac
36666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36667   (eval "$ac_link") 2>conftest.er1
36668   ac_status=$?
36669   grep -v '^ *+' conftest.er1 >conftest.err
36670   rm -f conftest.er1
36671   cat conftest.err >&5
36672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36673   (exit $ac_status); } && {
36674          test -z "$ac_c_werror_flag" ||
36675          test ! -s conftest.err
36676        } && test -s conftest$ac_exeext &&
36677        $as_test_x conftest$ac_exeext; then
36678   ac_cv_lib_w_wcslen=yes
36679 else
36680   echo "$as_me: failed program was:" >&5
36681 sed 's/^/| /' conftest.$ac_ext >&5
36682
36683         ac_cv_lib_w_wcslen=no
36684 fi
36685
36686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36687       conftest$ac_exeext conftest.$ac_ext
36688 LIBS=$ac_check_lib_save_LIBS
36689 fi
36690 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
36691 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
36692 if test $ac_cv_lib_w_wcslen = yes; then
36693
36694                         WCHAR_LINK=" -lw"
36695                         WCSLEN_FOUND=1
36696
36697 fi
36698
36699     fi
36700 fi
36701
36702 if test "$WCSLEN_FOUND" = 1; then
36703     cat >>confdefs.h <<\_ACEOF
36704 #define HAVE_WCSLEN 1
36705 _ACEOF
36706
36707 fi
36708
36709
36710
36711
36712
36713
36714
36715 for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
36716 do
36717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36721   echo $ECHO_N "(cached) $ECHO_C" >&6
36722 else
36723   cat >conftest.$ac_ext <<_ACEOF
36724 /* confdefs.h.  */
36725 _ACEOF
36726 cat confdefs.h >>conftest.$ac_ext
36727 cat >>conftest.$ac_ext <<_ACEOF
36728 /* end confdefs.h.  */
36729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36731 #define $ac_func innocuous_$ac_func
36732
36733 /* System header to define __stub macros and hopefully few prototypes,
36734     which can conflict with char $ac_func (); below.
36735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36736     <limits.h> exists even on freestanding compilers.  */
36737
36738 #ifdef __STDC__
36739 # include <limits.h>
36740 #else
36741 # include <assert.h>
36742 #endif
36743
36744 #undef $ac_func
36745
36746 /* Override any GCC internal prototype to avoid an error.
36747    Use char because int might match the return type of a GCC
36748    builtin and then its argument prototype would still apply.  */
36749 #ifdef __cplusplus
36750 extern "C"
36751 #endif
36752 char $ac_func ();
36753 /* The GNU C library defines this for functions which it implements
36754     to always fail with ENOSYS.  Some functions are actually named
36755     something starting with __ and the normal name is an alias.  */
36756 #if defined __stub_$ac_func || defined __stub___$ac_func
36757 choke me
36758 #endif
36759
36760 int
36761 main ()
36762 {
36763 return $ac_func ();
36764   ;
36765   return 0;
36766 }
36767 _ACEOF
36768 rm -f conftest.$ac_objext conftest$ac_exeext
36769 if { (ac_try="$ac_link"
36770 case "(($ac_try" in
36771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36772   *) ac_try_echo=$ac_try;;
36773 esac
36774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36775   (eval "$ac_link") 2>conftest.er1
36776   ac_status=$?
36777   grep -v '^ *+' conftest.er1 >conftest.err
36778   rm -f conftest.er1
36779   cat conftest.err >&5
36780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36781   (exit $ac_status); } && {
36782          test -z "$ac_c_werror_flag" ||
36783          test ! -s conftest.err
36784        } && test -s conftest$ac_exeext &&
36785        $as_test_x conftest$ac_exeext; then
36786   eval "$as_ac_var=yes"
36787 else
36788   echo "$as_me: failed program was:" >&5
36789 sed 's/^/| /' conftest.$ac_ext >&5
36790
36791         eval "$as_ac_var=no"
36792 fi
36793
36794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36795       conftest$ac_exeext conftest.$ac_ext
36796 fi
36797 ac_res=`eval echo '${'$as_ac_var'}'`
36798                { echo "$as_me:$LINENO: result: $ac_res" >&5
36799 echo "${ECHO_T}$ac_res" >&6; }
36800 if test `eval echo '${'$as_ac_var'}'` = yes; then
36801   cat >>confdefs.h <<_ACEOF
36802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36803 _ACEOF
36804
36805 fi
36806 done
36807
36808
36809 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
36810     CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
36811 fi
36812
36813 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
36814 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
36815 if test "${ac_cv_type_mbstate_t+set}" = set; then
36816   echo $ECHO_N "(cached) $ECHO_C" >&6
36817 else
36818   cat >conftest.$ac_ext <<_ACEOF
36819 /* confdefs.h.  */
36820 _ACEOF
36821 cat confdefs.h >>conftest.$ac_ext
36822 cat >>conftest.$ac_ext <<_ACEOF
36823 /* end confdefs.h.  */
36824 #include <wchar.h>
36825
36826 typedef mbstate_t ac__type_new_;
36827 int
36828 main ()
36829 {
36830 if ((ac__type_new_ *) 0)
36831   return 0;
36832 if (sizeof (ac__type_new_))
36833   return 0;
36834   ;
36835   return 0;
36836 }
36837 _ACEOF
36838 rm -f conftest.$ac_objext
36839 if { (ac_try="$ac_compile"
36840 case "(($ac_try" in
36841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36842   *) ac_try_echo=$ac_try;;
36843 esac
36844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36845   (eval "$ac_compile") 2>conftest.er1
36846   ac_status=$?
36847   grep -v '^ *+' conftest.er1 >conftest.err
36848   rm -f conftest.er1
36849   cat conftest.err >&5
36850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36851   (exit $ac_status); } && {
36852          test -z "$ac_c_werror_flag" ||
36853          test ! -s conftest.err
36854        } && test -s conftest.$ac_objext; then
36855   ac_cv_type_mbstate_t=yes
36856 else
36857   echo "$as_me: failed program was:" >&5
36858 sed 's/^/| /' conftest.$ac_ext >&5
36859
36860         ac_cv_type_mbstate_t=no
36861 fi
36862
36863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36864 fi
36865 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
36866 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
36867 if test $ac_cv_type_mbstate_t = yes; then
36868
36869 cat >>confdefs.h <<_ACEOF
36870 #define HAVE_MBSTATE_T 1
36871 _ACEOF
36872
36873
36874 for ac_func in wcsrtombs
36875 do
36876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36880   echo $ECHO_N "(cached) $ECHO_C" >&6
36881 else
36882   cat >conftest.$ac_ext <<_ACEOF
36883 /* confdefs.h.  */
36884 _ACEOF
36885 cat confdefs.h >>conftest.$ac_ext
36886 cat >>conftest.$ac_ext <<_ACEOF
36887 /* end confdefs.h.  */
36888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36890 #define $ac_func innocuous_$ac_func
36891
36892 /* System header to define __stub macros and hopefully few prototypes,
36893     which can conflict with char $ac_func (); below.
36894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36895     <limits.h> exists even on freestanding compilers.  */
36896
36897 #ifdef __STDC__
36898 # include <limits.h>
36899 #else
36900 # include <assert.h>
36901 #endif
36902
36903 #undef $ac_func
36904
36905 /* Override any GCC internal prototype to avoid an error.
36906    Use char because int might match the return type of a GCC
36907    builtin and then its argument prototype would still apply.  */
36908 #ifdef __cplusplus
36909 extern "C"
36910 #endif
36911 char $ac_func ();
36912 /* The GNU C library defines this for functions which it implements
36913     to always fail with ENOSYS.  Some functions are actually named
36914     something starting with __ and the normal name is an alias.  */
36915 #if defined __stub_$ac_func || defined __stub___$ac_func
36916 choke me
36917 #endif
36918
36919 int
36920 main ()
36921 {
36922 return $ac_func ();
36923   ;
36924   return 0;
36925 }
36926 _ACEOF
36927 rm -f conftest.$ac_objext conftest$ac_exeext
36928 if { (ac_try="$ac_link"
36929 case "(($ac_try" in
36930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36931   *) ac_try_echo=$ac_try;;
36932 esac
36933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36934   (eval "$ac_link") 2>conftest.er1
36935   ac_status=$?
36936   grep -v '^ *+' conftest.er1 >conftest.err
36937   rm -f conftest.er1
36938   cat conftest.err >&5
36939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36940   (exit $ac_status); } && {
36941          test -z "$ac_c_werror_flag" ||
36942          test ! -s conftest.err
36943        } && test -s conftest$ac_exeext &&
36944        $as_test_x conftest$ac_exeext; then
36945   eval "$as_ac_var=yes"
36946 else
36947   echo "$as_me: failed program was:" >&5
36948 sed 's/^/| /' conftest.$ac_ext >&5
36949
36950         eval "$as_ac_var=no"
36951 fi
36952
36953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36954       conftest$ac_exeext conftest.$ac_ext
36955 fi
36956 ac_res=`eval echo '${'$as_ac_var'}'`
36957                { echo "$as_me:$LINENO: result: $ac_res" >&5
36958 echo "${ECHO_T}$ac_res" >&6; }
36959 if test `eval echo '${'$as_ac_var'}'` = yes; then
36960   cat >>confdefs.h <<_ACEOF
36961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36962 _ACEOF
36963
36964 fi
36965 done
36966
36967 fi
36968
36969
36970
36971
36972
36973 for ac_func in snprintf vsnprintf vsscanf
36974 do
36975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36979   echo $ECHO_N "(cached) $ECHO_C" >&6
36980 else
36981   cat >conftest.$ac_ext <<_ACEOF
36982 /* confdefs.h.  */
36983 _ACEOF
36984 cat confdefs.h >>conftest.$ac_ext
36985 cat >>conftest.$ac_ext <<_ACEOF
36986 /* end confdefs.h.  */
36987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36989 #define $ac_func innocuous_$ac_func
36990
36991 /* System header to define __stub macros and hopefully few prototypes,
36992     which can conflict with char $ac_func (); below.
36993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36994     <limits.h> exists even on freestanding compilers.  */
36995
36996 #ifdef __STDC__
36997 # include <limits.h>
36998 #else
36999 # include <assert.h>
37000 #endif
37001
37002 #undef $ac_func
37003
37004 /* Override any GCC internal prototype to avoid an error.
37005    Use char because int might match the return type of a GCC
37006    builtin and then its argument prototype would still apply.  */
37007 #ifdef __cplusplus
37008 extern "C"
37009 #endif
37010 char $ac_func ();
37011 /* The GNU C library defines this for functions which it implements
37012     to always fail with ENOSYS.  Some functions are actually named
37013     something starting with __ and the normal name is an alias.  */
37014 #if defined __stub_$ac_func || defined __stub___$ac_func
37015 choke me
37016 #endif
37017
37018 int
37019 main ()
37020 {
37021 return $ac_func ();
37022   ;
37023   return 0;
37024 }
37025 _ACEOF
37026 rm -f conftest.$ac_objext conftest$ac_exeext
37027 if { (ac_try="$ac_link"
37028 case "(($ac_try" in
37029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37030   *) ac_try_echo=$ac_try;;
37031 esac
37032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37033   (eval "$ac_link") 2>conftest.er1
37034   ac_status=$?
37035   grep -v '^ *+' conftest.er1 >conftest.err
37036   rm -f conftest.er1
37037   cat conftest.err >&5
37038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37039   (exit $ac_status); } && {
37040          test -z "$ac_c_werror_flag" ||
37041          test ! -s conftest.err
37042        } && test -s conftest$ac_exeext &&
37043        $as_test_x conftest$ac_exeext; then
37044   eval "$as_ac_var=yes"
37045 else
37046   echo "$as_me: failed program was:" >&5
37047 sed 's/^/| /' conftest.$ac_ext >&5
37048
37049         eval "$as_ac_var=no"
37050 fi
37051
37052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37053       conftest$ac_exeext conftest.$ac_ext
37054 fi
37055 ac_res=`eval echo '${'$as_ac_var'}'`
37056                { echo "$as_me:$LINENO: result: $ac_res" >&5
37057 echo "${ECHO_T}$ac_res" >&6; }
37058 if test `eval echo '${'$as_ac_var'}'` = yes; then
37059   cat >>confdefs.h <<_ACEOF
37060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37061 _ACEOF
37062
37063 fi
37064 done
37065
37066
37067 ac_ext=cpp
37068 ac_cpp='$CXXCPP $CPPFLAGS'
37069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37072
37073 if test "$ac_cv_func_vsnprintf" = "yes"; then
37074         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
37075 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
37076 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
37077   echo $ECHO_N "(cached) $ECHO_C" >&6
37078 else
37079
37080                                                             cat >conftest.$ac_ext <<_ACEOF
37081 /* confdefs.h.  */
37082 _ACEOF
37083 cat confdefs.h >>conftest.$ac_ext
37084 cat >>conftest.$ac_ext <<_ACEOF
37085 /* end confdefs.h.  */
37086
37087                     #include <stdio.h>
37088                     #include <stdarg.h>
37089                     #ifdef __MSL__
37090                     #if __MSL__ >= 0x6000
37091                     namespace std {}
37092                     using namespace std;
37093                     #endif
37094                     #endif
37095
37096 int
37097 main ()
37098 {
37099
37100                     char *buf;
37101                     va_list ap;
37102                     vsnprintf(buf, 10u, "%s", ap);
37103
37104   ;
37105   return 0;
37106 }
37107 _ACEOF
37108 rm -f conftest.$ac_objext
37109 if { (ac_try="$ac_compile"
37110 case "(($ac_try" in
37111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37112   *) ac_try_echo=$ac_try;;
37113 esac
37114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37115   (eval "$ac_compile") 2>conftest.er1
37116   ac_status=$?
37117   grep -v '^ *+' conftest.er1 >conftest.err
37118   rm -f conftest.er1
37119   cat conftest.err >&5
37120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37121   (exit $ac_status); } && {
37122          test -z "$ac_cxx_werror_flag" ||
37123          test ! -s conftest.err
37124        } && test -s conftest.$ac_objext; then
37125   wx_cv_func_vsnprintf_decl=yes
37126 else
37127   echo "$as_me: failed program was:" >&5
37128 sed 's/^/| /' conftest.$ac_ext >&5
37129
37130         wx_cv_func_vsnprintf_decl=no
37131
37132 fi
37133
37134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37135
37136
37137 fi
37138 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
37139 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
37140
37141     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
37142         cat >>confdefs.h <<\_ACEOF
37143 #define HAVE_VSNPRINTF_DECL 1
37144 _ACEOF
37145
37146
37147                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
37148 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
37149 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
37150   echo $ECHO_N "(cached) $ECHO_C" >&6
37151 else
37152
37153                 cat >conftest.$ac_ext <<_ACEOF
37154 /* confdefs.h.  */
37155 _ACEOF
37156 cat confdefs.h >>conftest.$ac_ext
37157 cat >>conftest.$ac_ext <<_ACEOF
37158 /* end confdefs.h.  */
37159
37160                         #include <stdio.h>
37161                         #include <stdarg.h>
37162                         #ifdef __MSL__
37163                         #if __MSL__ >= 0x6000
37164                         namespace std {}
37165                         using namespace std;
37166                         #endif
37167                         #endif
37168
37169 int
37170 main ()
37171 {
37172
37173                         char *buf;
37174                         va_list ap;
37175                         const char *fmt = "%s";
37176                         vsnprintf(buf, 10u, fmt, ap);
37177
37178   ;
37179   return 0;
37180 }
37181 _ACEOF
37182 rm -f conftest.$ac_objext
37183 if { (ac_try="$ac_compile"
37184 case "(($ac_try" in
37185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37186   *) ac_try_echo=$ac_try;;
37187 esac
37188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37189   (eval "$ac_compile") 2>conftest.er1
37190   ac_status=$?
37191   grep -v '^ *+' conftest.er1 >conftest.err
37192   rm -f conftest.er1
37193   cat conftest.err >&5
37194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37195   (exit $ac_status); } && {
37196          test -z "$ac_cxx_werror_flag" ||
37197          test ! -s conftest.err
37198        } && test -s conftest.$ac_objext; then
37199   wx_cv_func_broken_vsnprintf_decl=no
37200 else
37201   echo "$as_me: failed program was:" >&5
37202 sed 's/^/| /' conftest.$ac_ext >&5
37203
37204         wx_cv_func_broken_vsnprintf_decl=yes
37205
37206 fi
37207
37208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37209
37210
37211 fi
37212 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
37213 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
37214
37215         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
37216             cat >>confdefs.h <<\_ACEOF
37217 #define HAVE_BROKEN_VSNPRINTF_DECL 1
37218 _ACEOF
37219
37220         fi
37221     fi
37222 fi
37223
37224 if test "$ac_cv_func_snprintf" = "yes"; then
37225     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
37226 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
37227 if test "${wx_cv_func_snprintf_decl+set}" = set; then
37228   echo $ECHO_N "(cached) $ECHO_C" >&6
37229 else
37230
37231             cat >conftest.$ac_ext <<_ACEOF
37232 /* confdefs.h.  */
37233 _ACEOF
37234 cat confdefs.h >>conftest.$ac_ext
37235 cat >>conftest.$ac_ext <<_ACEOF
37236 /* end confdefs.h.  */
37237
37238                     #include <stdio.h>
37239                     #include <stdarg.h>
37240                     #ifdef __MSL__
37241                     #if __MSL__ >= 0x6000
37242                     namespace std {}
37243                     using namespace std;
37244                     #endif
37245                     #endif
37246
37247 int
37248 main ()
37249 {
37250
37251                     char *buf;
37252                     snprintf(buf, 10u, "%s", "wx");
37253
37254   ;
37255   return 0;
37256 }
37257 _ACEOF
37258 rm -f conftest.$ac_objext
37259 if { (ac_try="$ac_compile"
37260 case "(($ac_try" in
37261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37262   *) ac_try_echo=$ac_try;;
37263 esac
37264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37265   (eval "$ac_compile") 2>conftest.er1
37266   ac_status=$?
37267   grep -v '^ *+' conftest.er1 >conftest.err
37268   rm -f conftest.er1
37269   cat conftest.err >&5
37270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37271   (exit $ac_status); } && {
37272          test -z "$ac_cxx_werror_flag" ||
37273          test ! -s conftest.err
37274        } && test -s conftest.$ac_objext; then
37275   wx_cv_func_snprintf_decl=yes
37276 else
37277   echo "$as_me: failed program was:" >&5
37278 sed 's/^/| /' conftest.$ac_ext >&5
37279
37280         wx_cv_func_snprintf_decl=no
37281
37282 fi
37283
37284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37285
37286
37287 fi
37288 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
37289 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
37290
37291     if test "$wx_cv_func_snprintf_decl" = "yes"; then
37292         cat >>confdefs.h <<\_ACEOF
37293 #define HAVE_SNPRINTF_DECL 1
37294 _ACEOF
37295
37296     fi
37297
37298     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
37299
37300                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
37301 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
37302 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
37303   echo $ECHO_N "(cached) $ECHO_C" >&6
37304 else
37305
37306                 if test "$cross_compiling" = yes; then
37307
37308                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
37309 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
37310 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
37311 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
37312                         wx_cv_func_snprintf_pos_params=no
37313
37314
37315 else
37316   cat >conftest.$ac_ext <<_ACEOF
37317 /* confdefs.h.  */
37318 _ACEOF
37319 cat confdefs.h >>conftest.$ac_ext
37320 cat >>conftest.$ac_ext <<_ACEOF
37321 /* end confdefs.h.  */
37322
37323                         #include <stdio.h>
37324
37325                         int main (void)
37326                         {
37327                             char buffer[128];
37328                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
37329                             if (strcmp ("2 3 1", buffer) == 0)
37330                                 exit (0);
37331                             exit (1);
37332                         }
37333
37334 _ACEOF
37335 rm -f conftest$ac_exeext
37336 if { (ac_try="$ac_link"
37337 case "(($ac_try" in
37338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37339   *) ac_try_echo=$ac_try;;
37340 esac
37341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37342   (eval "$ac_link") 2>&5
37343   ac_status=$?
37344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37346   { (case "(($ac_try" in
37347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37348   *) ac_try_echo=$ac_try;;
37349 esac
37350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37351   (eval "$ac_try") 2>&5
37352   ac_status=$?
37353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37354   (exit $ac_status); }; }; then
37355   wx_cv_func_snprintf_pos_params=no
37356 else
37357   echo "$as_me: program exited with status $ac_status" >&5
37358 echo "$as_me: failed program was:" >&5
37359 sed 's/^/| /' conftest.$ac_ext >&5
37360
37361 ( exit $ac_status )
37362 wx_cv_func_snprintf_pos_params=yes
37363 fi
37364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37365 fi
37366
37367
37368
37369
37370 fi
37371 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
37372 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
37373
37374         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
37375             cat >>confdefs.h <<\_ACEOF
37376 #define HAVE_UNIX98_PRINTF 1
37377 _ACEOF
37378
37379         fi
37380     fi
37381 fi
37382
37383 if test "$ac_cv_func_vsscanf" = "yes"; then
37384     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
37385 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
37386 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
37387   echo $ECHO_N "(cached) $ECHO_C" >&6
37388 else
37389
37390             cat >conftest.$ac_ext <<_ACEOF
37391 /* confdefs.h.  */
37392 _ACEOF
37393 cat confdefs.h >>conftest.$ac_ext
37394 cat >>conftest.$ac_ext <<_ACEOF
37395 /* end confdefs.h.  */
37396
37397                     #include <stdio.h>
37398                     #include <stdarg.h>
37399                     #ifdef __MSL__
37400                     #if __MSL__ >= 0x6000
37401                     namespace std {}
37402                     using namespace std;
37403                     #endif
37404                     #endif
37405
37406 int
37407 main ()
37408 {
37409
37410                     char *buf;
37411                     va_list args;
37412                     vsscanf(buf, "%s", args);
37413
37414   ;
37415   return 0;
37416 }
37417 _ACEOF
37418 rm -f conftest.$ac_objext
37419 if { (ac_try="$ac_compile"
37420 case "(($ac_try" in
37421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37422   *) ac_try_echo=$ac_try;;
37423 esac
37424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37425   (eval "$ac_compile") 2>conftest.er1
37426   ac_status=$?
37427   grep -v '^ *+' conftest.er1 >conftest.err
37428   rm -f conftest.er1
37429   cat conftest.err >&5
37430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37431   (exit $ac_status); } && {
37432          test -z "$ac_cxx_werror_flag" ||
37433          test ! -s conftest.err
37434        } && test -s conftest.$ac_objext; then
37435   wx_cv_func_vsscanf_decl=yes
37436 else
37437   echo "$as_me: failed program was:" >&5
37438 sed 's/^/| /' conftest.$ac_ext >&5
37439
37440         wx_cv_func_vsscanf_decl=no
37441
37442 fi
37443
37444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37445
37446
37447 fi
37448 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
37449 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
37450
37451     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
37452         cat >>confdefs.h <<\_ACEOF
37453 #define HAVE_VSSCANF_DECL 1
37454 _ACEOF
37455
37456     fi
37457 fi
37458 ac_ext=c
37459 ac_cpp='$CPP $CPPFLAGS'
37460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37463
37464
37465 if test "$wxUSE_UNICODE" = yes; then
37466
37467             wchar_headers="#include <stdio.h>
37468 #include <wchar.h>"
37469     case "${host}" in
37470         *-*-solaris2* )
37471
37472 for ac_header in widec.h
37473 do
37474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37478   echo $ECHO_N "(cached) $ECHO_C" >&6
37479 else
37480   cat >conftest.$ac_ext <<_ACEOF
37481 /* confdefs.h.  */
37482 _ACEOF
37483 cat confdefs.h >>conftest.$ac_ext
37484 cat >>conftest.$ac_ext <<_ACEOF
37485 /* end confdefs.h.  */
37486 $ac_includes_default
37487
37488 #include <$ac_header>
37489 _ACEOF
37490 rm -f conftest.$ac_objext
37491 if { (ac_try="$ac_compile"
37492 case "(($ac_try" in
37493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37494   *) ac_try_echo=$ac_try;;
37495 esac
37496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37497   (eval "$ac_compile") 2>conftest.er1
37498   ac_status=$?
37499   grep -v '^ *+' conftest.er1 >conftest.err
37500   rm -f conftest.er1
37501   cat conftest.err >&5
37502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37503   (exit $ac_status); } && {
37504          test -z "$ac_c_werror_flag" ||
37505          test ! -s conftest.err
37506        } && test -s conftest.$ac_objext; then
37507   eval "$as_ac_Header=yes"
37508 else
37509   echo "$as_me: failed program was:" >&5
37510 sed 's/^/| /' conftest.$ac_ext >&5
37511
37512         eval "$as_ac_Header=no"
37513 fi
37514
37515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37516 fi
37517 ac_res=`eval echo '${'$as_ac_Header'}'`
37518                { echo "$as_me:$LINENO: result: $ac_res" >&5
37519 echo "${ECHO_T}$ac_res" >&6; }
37520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37521   cat >>confdefs.h <<_ACEOF
37522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37523 _ACEOF
37524
37525 fi
37526
37527 done
37528
37529             if test "$ac_cv_header_widec_h" = "yes"; then
37530                 wchar_headers="$wchar_headers
37531 #include <widec.h>"
37532             fi
37533     esac
37534
37535
37536   for wx_func in putws fputws wprintf vswprintf vswscanf
37537   do
37538     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37539 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37540 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37541   echo $ECHO_N "(cached) $ECHO_C" >&6
37542 else
37543
37544         cat >conftest.$ac_ext <<_ACEOF
37545
37546             /* confdefs.h.  */
37547 _ACEOF
37548 cat confdefs.h >>conftest.$ac_ext
37549 cat >>conftest.$ac_ext <<_ACEOF
37550 /* end confdefs.h.  */
37551
37552                 $wchar_headers
37553                 $ac_includes_default
37554
37555 int
37556 main ()
37557 {
37558
37559                 #ifndef $wx_func
37560                   &$wx_func;
37561                 #endif
37562
37563
37564   ;
37565   return 0;
37566 }
37567
37568 _ACEOF
37569 rm -f conftest.$ac_objext conftest$ac_exeext
37570 if { (ac_try="$ac_link"
37571 case "(($ac_try" in
37572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37573   *) ac_try_echo=$ac_try;;
37574 esac
37575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37576   (eval "$ac_link") 2>conftest.er1
37577   ac_status=$?
37578   grep -v '^ *+' conftest.er1 >conftest.err
37579   rm -f conftest.er1
37580   cat conftest.err >&5
37581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37582   (exit $ac_status); } && {
37583          test -z "$ac_c_werror_flag" ||
37584          test ! -s conftest.err
37585        } && test -s conftest$ac_exeext &&
37586        $as_test_x conftest$ac_exeext; then
37587   eval wx_cv_func_$wx_func=yes
37588 else
37589   echo "$as_me: failed program was:" >&5
37590 sed 's/^/| /' conftest.$ac_ext >&5
37591
37592         eval wx_cv_func_$wx_func=no
37593 fi
37594
37595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37596       conftest$ac_exeext conftest.$ac_ext
37597
37598 fi
37599 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37600                { echo "$as_me:$LINENO: result: $ac_res" >&5
37601 echo "${ECHO_T}$ac_res" >&6; }
37602
37603     if eval test \$wx_cv_func_$wx_func = yes
37604     then
37605       cat >>confdefs.h <<_ACEOF
37606 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37607 _ACEOF
37608
37609
37610     else
37611       :
37612
37613     fi
37614   done
37615
37616
37617                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
37618 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
37619     cat >conftest.$ac_ext <<_ACEOF
37620 /* confdefs.h.  */
37621 _ACEOF
37622 cat confdefs.h >>conftest.$ac_ext
37623 cat >>conftest.$ac_ext <<_ACEOF
37624 /* end confdefs.h.  */
37625 #include <wchar.h>
37626 int
37627 main ()
37628 {
37629 &_vsnwprintf;
37630   ;
37631   return 0;
37632 }
37633 _ACEOF
37634 rm -f conftest.$ac_objext
37635 if { (ac_try="$ac_compile"
37636 case "(($ac_try" in
37637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37638   *) ac_try_echo=$ac_try;;
37639 esac
37640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37641   (eval "$ac_compile") 2>conftest.er1
37642   ac_status=$?
37643   grep -v '^ *+' conftest.er1 >conftest.err
37644   rm -f conftest.er1
37645   cat conftest.err >&5
37646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647   (exit $ac_status); } && {
37648          test -z "$ac_c_werror_flag" ||
37649          test ! -s conftest.err
37650        } && test -s conftest.$ac_objext; then
37651   { echo "$as_me:$LINENO: result: yes" >&5
37652 echo "${ECHO_T}yes" >&6; }
37653                     cat >>confdefs.h <<\_ACEOF
37654 #define HAVE__VSNWPRINTF 1
37655 _ACEOF
37656
37657 else
37658   echo "$as_me: failed program was:" >&5
37659 sed 's/^/| /' conftest.$ac_ext >&5
37660
37661         { echo "$as_me:$LINENO: result: no" >&5
37662 echo "${ECHO_T}no" >&6; }
37663 fi
37664
37665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
37666 fi
37667
37668 if test "$wxUSE_FILE" = "yes"; then
37669
37670   for wx_func in fsync
37671   do
37672     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37673 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37674 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37675   echo $ECHO_N "(cached) $ECHO_C" >&6
37676 else
37677
37678         cat >conftest.$ac_ext <<_ACEOF
37679
37680             /* confdefs.h.  */
37681 _ACEOF
37682 cat confdefs.h >>conftest.$ac_ext
37683 cat >>conftest.$ac_ext <<_ACEOF
37684 /* end confdefs.h.  */
37685
37686
37687                 $ac_includes_default
37688
37689 int
37690 main ()
37691 {
37692
37693                 #ifndef $wx_func
37694                   &$wx_func;
37695                 #endif
37696
37697
37698   ;
37699   return 0;
37700 }
37701
37702 _ACEOF
37703 rm -f conftest.$ac_objext conftest$ac_exeext
37704 if { (ac_try="$ac_link"
37705 case "(($ac_try" in
37706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37707   *) ac_try_echo=$ac_try;;
37708 esac
37709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37710   (eval "$ac_link") 2>conftest.er1
37711   ac_status=$?
37712   grep -v '^ *+' conftest.er1 >conftest.err
37713   rm -f conftest.er1
37714   cat conftest.err >&5
37715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716   (exit $ac_status); } && {
37717          test -z "$ac_c_werror_flag" ||
37718          test ! -s conftest.err
37719        } && test -s conftest$ac_exeext &&
37720        $as_test_x conftest$ac_exeext; then
37721   eval wx_cv_func_$wx_func=yes
37722 else
37723   echo "$as_me: failed program was:" >&5
37724 sed 's/^/| /' conftest.$ac_ext >&5
37725
37726         eval wx_cv_func_$wx_func=no
37727 fi
37728
37729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37730       conftest$ac_exeext conftest.$ac_ext
37731
37732 fi
37733 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37734                { echo "$as_me:$LINENO: result: $ac_res" >&5
37735 echo "${ECHO_T}$ac_res" >&6; }
37736
37737     if eval test \$wx_cv_func_$wx_func = yes
37738     then
37739       cat >>confdefs.h <<_ACEOF
37740 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37741 _ACEOF
37742
37743
37744     else
37745       :
37746
37747     fi
37748   done
37749
37750 fi
37751
37752 ac_ext=cpp
37753 ac_cpp='$CXXCPP $CPPFLAGS'
37754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37757
37758
37759   for wx_func in round
37760   do
37761     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37762 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37763 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37764   echo $ECHO_N "(cached) $ECHO_C" >&6
37765 else
37766
37767         cat >conftest.$ac_ext <<_ACEOF
37768
37769             /* confdefs.h.  */
37770 _ACEOF
37771 cat confdefs.h >>conftest.$ac_ext
37772 cat >>conftest.$ac_ext <<_ACEOF
37773 /* end confdefs.h.  */
37774
37775                 #include <math.h>
37776                 $ac_includes_default
37777
37778 int
37779 main ()
37780 {
37781
37782                 #ifndef $wx_func
37783                   &$wx_func;
37784                 #endif
37785
37786
37787   ;
37788   return 0;
37789 }
37790
37791 _ACEOF
37792 rm -f conftest.$ac_objext conftest$ac_exeext
37793 if { (ac_try="$ac_link"
37794 case "(($ac_try" in
37795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37796   *) ac_try_echo=$ac_try;;
37797 esac
37798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37799   (eval "$ac_link") 2>conftest.er1
37800   ac_status=$?
37801   grep -v '^ *+' conftest.er1 >conftest.err
37802   rm -f conftest.er1
37803   cat conftest.err >&5
37804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37805   (exit $ac_status); } && {
37806          test -z "$ac_cxx_werror_flag" ||
37807          test ! -s conftest.err
37808        } && test -s conftest$ac_exeext &&
37809        $as_test_x conftest$ac_exeext; then
37810   eval wx_cv_func_$wx_func=yes
37811 else
37812   echo "$as_me: failed program was:" >&5
37813 sed 's/^/| /' conftest.$ac_ext >&5
37814
37815         eval wx_cv_func_$wx_func=no
37816 fi
37817
37818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37819       conftest$ac_exeext conftest.$ac_ext
37820
37821 fi
37822 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37823                { echo "$as_me:$LINENO: result: $ac_res" >&5
37824 echo "${ECHO_T}$ac_res" >&6; }
37825
37826     if eval test \$wx_cv_func_$wx_func = yes
37827     then
37828       cat >>confdefs.h <<_ACEOF
37829 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37830 _ACEOF
37831
37832
37833     else
37834       :
37835
37836     fi
37837   done
37838
37839 ac_ext=c
37840 ac_cpp='$CPP $CPPFLAGS'
37841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37844
37845
37846 if test "$TOOLKIT" != "MSW"; then
37847
37848 if test "$wxUSE_LIBICONV" != "no" ; then
37849
37850
37851
37852 # Check whether --with-libiconv-prefix was given.
37853 if test "${with_libiconv_prefix+set}" = set; then
37854   withval=$with_libiconv_prefix;
37855     for dir in `echo "$withval" | tr : ' '`; do
37856       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
37857       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
37858     done
37859
37860 fi
37861
37862
37863   { echo "$as_me:$LINENO: checking for iconv" >&5
37864 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
37865 if test "${am_cv_func_iconv+set}" = set; then
37866   echo $ECHO_N "(cached) $ECHO_C" >&6
37867 else
37868
37869     am_cv_func_iconv="no, consider installing GNU libiconv"
37870     am_cv_lib_iconv=no
37871     cat >conftest.$ac_ext <<_ACEOF
37872 /* confdefs.h.  */
37873 _ACEOF
37874 cat confdefs.h >>conftest.$ac_ext
37875 cat >>conftest.$ac_ext <<_ACEOF
37876 /* end confdefs.h.  */
37877 #include <stdlib.h>
37878 #include <iconv.h>
37879 int
37880 main ()
37881 {
37882 iconv_t cd = iconv_open("","");
37883        iconv(cd,NULL,NULL,NULL,NULL);
37884        iconv_close(cd);
37885   ;
37886   return 0;
37887 }
37888 _ACEOF
37889 rm -f conftest.$ac_objext conftest$ac_exeext
37890 if { (ac_try="$ac_link"
37891 case "(($ac_try" in
37892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37893   *) ac_try_echo=$ac_try;;
37894 esac
37895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37896   (eval "$ac_link") 2>conftest.er1
37897   ac_status=$?
37898   grep -v '^ *+' conftest.er1 >conftest.err
37899   rm -f conftest.er1
37900   cat conftest.err >&5
37901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37902   (exit $ac_status); } && {
37903          test -z "$ac_c_werror_flag" ||
37904          test ! -s conftest.err
37905        } && test -s conftest$ac_exeext &&
37906        $as_test_x conftest$ac_exeext; then
37907   am_cv_func_iconv=yes
37908 else
37909   echo "$as_me: failed program was:" >&5
37910 sed 's/^/| /' conftest.$ac_ext >&5
37911
37912
37913 fi
37914
37915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37916       conftest$ac_exeext conftest.$ac_ext
37917     if test "$am_cv_func_iconv" != yes; then
37918       am_save_LIBS="$LIBS"
37919       LIBS="$LIBS -liconv"
37920       cat >conftest.$ac_ext <<_ACEOF
37921 /* confdefs.h.  */
37922 _ACEOF
37923 cat confdefs.h >>conftest.$ac_ext
37924 cat >>conftest.$ac_ext <<_ACEOF
37925 /* end confdefs.h.  */
37926 #include <stdlib.h>
37927 #include <iconv.h>
37928 int
37929 main ()
37930 {
37931 iconv_t cd = iconv_open("","");
37932          iconv(cd,NULL,NULL,NULL,NULL);
37933          iconv_close(cd);
37934   ;
37935   return 0;
37936 }
37937 _ACEOF
37938 rm -f conftest.$ac_objext conftest$ac_exeext
37939 if { (ac_try="$ac_link"
37940 case "(($ac_try" in
37941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37942   *) ac_try_echo=$ac_try;;
37943 esac
37944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37945   (eval "$ac_link") 2>conftest.er1
37946   ac_status=$?
37947   grep -v '^ *+' conftest.er1 >conftest.err
37948   rm -f conftest.er1
37949   cat conftest.err >&5
37950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37951   (exit $ac_status); } && {
37952          test -z "$ac_c_werror_flag" ||
37953          test ! -s conftest.err
37954        } && test -s conftest$ac_exeext &&
37955        $as_test_x conftest$ac_exeext; then
37956   am_cv_lib_iconv=yes
37957         am_cv_func_iconv=yes
37958 else
37959   echo "$as_me: failed program was:" >&5
37960 sed 's/^/| /' conftest.$ac_ext >&5
37961
37962
37963 fi
37964
37965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37966       conftest$ac_exeext conftest.$ac_ext
37967       LIBS="$am_save_LIBS"
37968     fi
37969
37970 fi
37971 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
37972 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
37973   if test "$am_cv_func_iconv" = yes; then
37974
37975 cat >>confdefs.h <<\_ACEOF
37976 #define HAVE_ICONV 1
37977 _ACEOF
37978
37979     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
37980 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
37981 if test "${wx_cv_func_iconv_const+set}" = set; then
37982   echo $ECHO_N "(cached) $ECHO_C" >&6
37983 else
37984   cat >conftest.$ac_ext <<_ACEOF
37985 /* confdefs.h.  */
37986 _ACEOF
37987 cat confdefs.h >>conftest.$ac_ext
37988 cat >>conftest.$ac_ext <<_ACEOF
37989 /* end confdefs.h.  */
37990
37991 #include <stdlib.h>
37992 #include <iconv.h>
37993 extern
37994 #ifdef __cplusplus
37995 "C"
37996 #endif
37997 #if defined(__STDC__) || defined(__cplusplus)
37998 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
37999 #else
38000 size_t iconv();
38001 #endif
38002
38003 int
38004 main ()
38005 {
38006
38007   ;
38008   return 0;
38009 }
38010 _ACEOF
38011 rm -f conftest.$ac_objext
38012 if { (ac_try="$ac_compile"
38013 case "(($ac_try" in
38014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38015   *) ac_try_echo=$ac_try;;
38016 esac
38017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38018   (eval "$ac_compile") 2>conftest.er1
38019   ac_status=$?
38020   grep -v '^ *+' conftest.er1 >conftest.err
38021   rm -f conftest.er1
38022   cat conftest.err >&5
38023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38024   (exit $ac_status); } && {
38025          test -z "$ac_c_werror_flag" ||
38026          test ! -s conftest.err
38027        } && test -s conftest.$ac_objext; then
38028   wx_cv_func_iconv_const="no"
38029 else
38030   echo "$as_me: failed program was:" >&5
38031 sed 's/^/| /' conftest.$ac_ext >&5
38032
38033         wx_cv_func_iconv_const="yes"
38034
38035 fi
38036
38037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38038
38039 fi
38040 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
38041 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
38042
38043     iconv_const=
38044     if test "x$wx_cv_func_iconv_const" = "xyes"; then
38045         iconv_const="const"
38046     fi
38047
38048
38049 cat >>confdefs.h <<_ACEOF
38050 #define ICONV_CONST $iconv_const
38051 _ACEOF
38052
38053   fi
38054   LIBICONV=
38055   if test "$am_cv_lib_iconv" = yes; then
38056     LIBICONV="-liconv"
38057   fi
38058
38059
38060     LIBS="$LIBICONV $LIBS"
38061 fi
38062
38063 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38064
38065 for ac_func in sigaction
38066 do
38067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38071   echo $ECHO_N "(cached) $ECHO_C" >&6
38072 else
38073   cat >conftest.$ac_ext <<_ACEOF
38074 /* confdefs.h.  */
38075 _ACEOF
38076 cat confdefs.h >>conftest.$ac_ext
38077 cat >>conftest.$ac_ext <<_ACEOF
38078 /* end confdefs.h.  */
38079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38081 #define $ac_func innocuous_$ac_func
38082
38083 /* System header to define __stub macros and hopefully few prototypes,
38084     which can conflict with char $ac_func (); below.
38085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38086     <limits.h> exists even on freestanding compilers.  */
38087
38088 #ifdef __STDC__
38089 # include <limits.h>
38090 #else
38091 # include <assert.h>
38092 #endif
38093
38094 #undef $ac_func
38095
38096 /* Override any GCC internal prototype to avoid an error.
38097    Use char because int might match the return type of a GCC
38098    builtin and then its argument prototype would still apply.  */
38099 #ifdef __cplusplus
38100 extern "C"
38101 #endif
38102 char $ac_func ();
38103 /* The GNU C library defines this for functions which it implements
38104     to always fail with ENOSYS.  Some functions are actually named
38105     something starting with __ and the normal name is an alias.  */
38106 #if defined __stub_$ac_func || defined __stub___$ac_func
38107 choke me
38108 #endif
38109
38110 int
38111 main ()
38112 {
38113 return $ac_func ();
38114   ;
38115   return 0;
38116 }
38117 _ACEOF
38118 rm -f conftest.$ac_objext conftest$ac_exeext
38119 if { (ac_try="$ac_link"
38120 case "(($ac_try" in
38121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38122   *) ac_try_echo=$ac_try;;
38123 esac
38124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38125   (eval "$ac_link") 2>conftest.er1
38126   ac_status=$?
38127   grep -v '^ *+' conftest.er1 >conftest.err
38128   rm -f conftest.er1
38129   cat conftest.err >&5
38130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38131   (exit $ac_status); } && {
38132          test -z "$ac_c_werror_flag" ||
38133          test ! -s conftest.err
38134        } && test -s conftest$ac_exeext &&
38135        $as_test_x conftest$ac_exeext; then
38136   eval "$as_ac_var=yes"
38137 else
38138   echo "$as_me: failed program was:" >&5
38139 sed 's/^/| /' conftest.$ac_ext >&5
38140
38141         eval "$as_ac_var=no"
38142 fi
38143
38144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38145       conftest$ac_exeext conftest.$ac_ext
38146 fi
38147 ac_res=`eval echo '${'$as_ac_var'}'`
38148                { echo "$as_me:$LINENO: result: $ac_res" >&5
38149 echo "${ECHO_T}$ac_res" >&6; }
38150 if test `eval echo '${'$as_ac_var'}'` = yes; then
38151   cat >>confdefs.h <<_ACEOF
38152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38153 _ACEOF
38154
38155 fi
38156 done
38157
38158
38159     if test "$ac_cv_func_sigaction" = "no"; then
38160         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
38161 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
38162         wxUSE_ON_FATAL_EXCEPTION=no
38163     fi
38164
38165     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38166       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
38167 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
38168 if test "${wx_cv_type_sa_handler+set}" = set; then
38169   echo $ECHO_N "(cached) $ECHO_C" >&6
38170 else
38171
38172                 ac_ext=cpp
38173 ac_cpp='$CXXCPP $CPPFLAGS'
38174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38177
38178         cat >conftest.$ac_ext <<_ACEOF
38179 /* confdefs.h.  */
38180 _ACEOF
38181 cat confdefs.h >>conftest.$ac_ext
38182 cat >>conftest.$ac_ext <<_ACEOF
38183 /* end confdefs.h.  */
38184 #include <signal.h>
38185 int
38186 main ()
38187 {
38188
38189                         extern void testSigHandler(int);
38190
38191                         struct sigaction sa;
38192                         sa.sa_handler = testSigHandler;
38193
38194   ;
38195   return 0;
38196 }
38197 _ACEOF
38198 rm -f conftest.$ac_objext
38199 if { (ac_try="$ac_compile"
38200 case "(($ac_try" in
38201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38202   *) ac_try_echo=$ac_try;;
38203 esac
38204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38205   (eval "$ac_compile") 2>conftest.er1
38206   ac_status=$?
38207   grep -v '^ *+' conftest.er1 >conftest.err
38208   rm -f conftest.er1
38209   cat conftest.err >&5
38210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211   (exit $ac_status); } && {
38212          test -z "$ac_cxx_werror_flag" ||
38213          test ! -s conftest.err
38214        } && test -s conftest.$ac_objext; then
38215
38216                         wx_cv_type_sa_handler=int
38217
38218 else
38219   echo "$as_me: failed program was:" >&5
38220 sed 's/^/| /' conftest.$ac_ext >&5
38221
38222
38223                         wx_cv_type_sa_handler=void
38224
38225 fi
38226
38227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38228         ac_ext=c
38229 ac_cpp='$CPP $CPPFLAGS'
38230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38233
38234
38235 fi
38236 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
38237 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
38238
38239       cat >>confdefs.h <<_ACEOF
38240 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
38241 _ACEOF
38242
38243     fi
38244 fi
38245
38246 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38247     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
38248 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
38249 if test "${wx_cv_func_backtrace+set}" = set; then
38250   echo $ECHO_N "(cached) $ECHO_C" >&6
38251 else
38252
38253             ac_ext=cpp
38254 ac_cpp='$CXXCPP $CPPFLAGS'
38255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38258
38259             cat >conftest.$ac_ext <<_ACEOF
38260 /* confdefs.h.  */
38261 _ACEOF
38262 cat confdefs.h >>conftest.$ac_ext
38263 cat >>conftest.$ac_ext <<_ACEOF
38264 /* end confdefs.h.  */
38265 #include <execinfo.h>
38266 int
38267 main ()
38268 {
38269
38270                     void *trace[1];
38271                     char **messages;
38272
38273                     backtrace(trace, 1);
38274                     messages = backtrace_symbols(trace, 1);
38275
38276   ;
38277   return 0;
38278 }
38279 _ACEOF
38280 rm -f conftest.$ac_objext
38281 if { (ac_try="$ac_compile"
38282 case "(($ac_try" in
38283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38284   *) ac_try_echo=$ac_try;;
38285 esac
38286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38287   (eval "$ac_compile") 2>conftest.er1
38288   ac_status=$?
38289   grep -v '^ *+' conftest.er1 >conftest.err
38290   rm -f conftest.er1
38291   cat conftest.err >&5
38292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38293   (exit $ac_status); } && {
38294          test -z "$ac_cxx_werror_flag" ||
38295          test ! -s conftest.err
38296        } && test -s conftest.$ac_objext; then
38297   wx_cv_func_backtrace=yes
38298 else
38299   echo "$as_me: failed program was:" >&5
38300 sed 's/^/| /' conftest.$ac_ext >&5
38301
38302         wx_cv_func_backtrace=no
38303
38304 fi
38305
38306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38307             ac_ext=c
38308 ac_cpp='$CPP $CPPFLAGS'
38309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38312
38313
38314
38315 fi
38316 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
38317 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
38318
38319
38320     if test "$wx_cv_func_backtrace" = "no"; then
38321         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
38322 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
38323         wxUSE_STACKWALKER=no
38324     else
38325         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
38326 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
38327 if test "${wx_cv_func_cxa_demangle+set}" = set; then
38328   echo $ECHO_N "(cached) $ECHO_C" >&6
38329 else
38330
38331                 ac_ext=cpp
38332 ac_cpp='$CXXCPP $CPPFLAGS'
38333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38336
38337                 cat >conftest.$ac_ext <<_ACEOF
38338 /* confdefs.h.  */
38339 _ACEOF
38340 cat confdefs.h >>conftest.$ac_ext
38341 cat >>conftest.$ac_ext <<_ACEOF
38342 /* end confdefs.h.  */
38343 #include <cxxabi.h>
38344 int
38345 main ()
38346 {
38347
38348                         int rc;
38349                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
38350
38351   ;
38352   return 0;
38353 }
38354 _ACEOF
38355 rm -f conftest.$ac_objext conftest$ac_exeext
38356 if { (ac_try="$ac_link"
38357 case "(($ac_try" in
38358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38359   *) ac_try_echo=$ac_try;;
38360 esac
38361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38362   (eval "$ac_link") 2>conftest.er1
38363   ac_status=$?
38364   grep -v '^ *+' conftest.er1 >conftest.err
38365   rm -f conftest.er1
38366   cat conftest.err >&5
38367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368   (exit $ac_status); } && {
38369          test -z "$ac_cxx_werror_flag" ||
38370          test ! -s conftest.err
38371        } && test -s conftest$ac_exeext &&
38372        $as_test_x conftest$ac_exeext; then
38373   wx_cv_func_cxa_demangle=yes
38374 else
38375   echo "$as_me: failed program was:" >&5
38376 sed 's/^/| /' conftest.$ac_ext >&5
38377
38378         wx_cv_func_cxa_demangle=no
38379
38380 fi
38381
38382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38383       conftest$ac_exeext conftest.$ac_ext
38384                 ac_ext=c
38385 ac_cpp='$CPP $CPPFLAGS'
38386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38389
38390
38391
38392 fi
38393 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
38394 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
38395
38396         if test "$wx_cv_func_cxa_demangle" = "yes"; then
38397             cat >>confdefs.h <<\_ACEOF
38398 #define HAVE_CXA_DEMANGLE 1
38399 _ACEOF
38400
38401         fi
38402     fi
38403 fi
38404
38405 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
38406     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
38407 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
38408     wxUSE_STACKWALKER=no
38409 fi
38410
38411
38412
38413
38414 for ac_func in mkstemp mktemp
38415 do
38416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38420   echo $ECHO_N "(cached) $ECHO_C" >&6
38421 else
38422   cat >conftest.$ac_ext <<_ACEOF
38423 /* confdefs.h.  */
38424 _ACEOF
38425 cat confdefs.h >>conftest.$ac_ext
38426 cat >>conftest.$ac_ext <<_ACEOF
38427 /* end confdefs.h.  */
38428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38430 #define $ac_func innocuous_$ac_func
38431
38432 /* System header to define __stub macros and hopefully few prototypes,
38433     which can conflict with char $ac_func (); below.
38434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38435     <limits.h> exists even on freestanding compilers.  */
38436
38437 #ifdef __STDC__
38438 # include <limits.h>
38439 #else
38440 # include <assert.h>
38441 #endif
38442
38443 #undef $ac_func
38444
38445 /* Override any GCC internal prototype to avoid an error.
38446    Use char because int might match the return type of a GCC
38447    builtin and then its argument prototype would still apply.  */
38448 #ifdef __cplusplus
38449 extern "C"
38450 #endif
38451 char $ac_func ();
38452 /* The GNU C library defines this for functions which it implements
38453     to always fail with ENOSYS.  Some functions are actually named
38454     something starting with __ and the normal name is an alias.  */
38455 #if defined __stub_$ac_func || defined __stub___$ac_func
38456 choke me
38457 #endif
38458
38459 int
38460 main ()
38461 {
38462 return $ac_func ();
38463   ;
38464   return 0;
38465 }
38466 _ACEOF
38467 rm -f conftest.$ac_objext conftest$ac_exeext
38468 if { (ac_try="$ac_link"
38469 case "(($ac_try" in
38470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38471   *) ac_try_echo=$ac_try;;
38472 esac
38473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38474   (eval "$ac_link") 2>conftest.er1
38475   ac_status=$?
38476   grep -v '^ *+' conftest.er1 >conftest.err
38477   rm -f conftest.er1
38478   cat conftest.err >&5
38479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480   (exit $ac_status); } && {
38481          test -z "$ac_c_werror_flag" ||
38482          test ! -s conftest.err
38483        } && test -s conftest$ac_exeext &&
38484        $as_test_x conftest$ac_exeext; then
38485   eval "$as_ac_var=yes"
38486 else
38487   echo "$as_me: failed program was:" >&5
38488 sed 's/^/| /' conftest.$ac_ext >&5
38489
38490         eval "$as_ac_var=no"
38491 fi
38492
38493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38494       conftest$ac_exeext conftest.$ac_ext
38495 fi
38496 ac_res=`eval echo '${'$as_ac_var'}'`
38497                { echo "$as_me:$LINENO: result: $ac_res" >&5
38498 echo "${ECHO_T}$ac_res" >&6; }
38499 if test `eval echo '${'$as_ac_var'}'` = yes; then
38500   cat >>confdefs.h <<_ACEOF
38501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38502 _ACEOF
38503  break
38504 fi
38505 done
38506
38507
38508 { echo "$as_me:$LINENO: checking for statfs" >&5
38509 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
38510 if test "${wx_cv_func_statfs+set}" = set; then
38511   echo $ECHO_N "(cached) $ECHO_C" >&6
38512 else
38513   cat >conftest.$ac_ext <<_ACEOF
38514 /* confdefs.h.  */
38515 _ACEOF
38516 cat confdefs.h >>conftest.$ac_ext
38517 cat >>conftest.$ac_ext <<_ACEOF
38518 /* end confdefs.h.  */
38519
38520              #if defined(__BSD__)
38521              #include <sys/param.h>
38522              #include <sys/mount.h>
38523              #else
38524              #include <sys/vfs.h>
38525              #endif
38526
38527 int
38528 main ()
38529 {
38530
38531              long l;
38532              struct statfs fs;
38533              statfs("/", &fs);
38534              l = fs.f_bsize;
38535              l += fs.f_blocks;
38536              l += fs.f_bavail;
38537
38538   ;
38539   return 0;
38540 }
38541 _ACEOF
38542 rm -f conftest.$ac_objext
38543 if { (ac_try="$ac_compile"
38544 case "(($ac_try" in
38545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38546   *) ac_try_echo=$ac_try;;
38547 esac
38548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38549   (eval "$ac_compile") 2>conftest.er1
38550   ac_status=$?
38551   grep -v '^ *+' conftest.er1 >conftest.err
38552   rm -f conftest.er1
38553   cat conftest.err >&5
38554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38555   (exit $ac_status); } && {
38556          test -z "$ac_c_werror_flag" ||
38557          test ! -s conftest.err
38558        } && test -s conftest.$ac_objext; then
38559   wx_cv_func_statfs=yes
38560 else
38561   echo "$as_me: failed program was:" >&5
38562 sed 's/^/| /' conftest.$ac_ext >&5
38563
38564         wx_cv_func_statfs=no
38565
38566 fi
38567
38568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38569
38570 fi
38571 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
38572 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
38573
38574 if test "$wx_cv_func_statfs" = "yes"; then
38575         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
38576 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
38577 if test "${wx_cv_func_statfs_decl+set}" = set; then
38578   echo $ECHO_N "(cached) $ECHO_C" >&6
38579 else
38580   ac_ext=cpp
38581 ac_cpp='$CXXCPP $CPPFLAGS'
38582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38585
38586         cat >conftest.$ac_ext <<_ACEOF
38587 /* confdefs.h.  */
38588 _ACEOF
38589 cat confdefs.h >>conftest.$ac_ext
38590 cat >>conftest.$ac_ext <<_ACEOF
38591 /* end confdefs.h.  */
38592
38593                  #if defined(__BSD__)
38594                  #include <sys/param.h>
38595                  #include <sys/mount.h>
38596                  #else
38597                  #include <sys/vfs.h>
38598                  #endif
38599
38600 int
38601 main ()
38602 {
38603
38604                 struct statfs fs;
38605                 statfs("", &fs);
38606
38607   ;
38608   return 0;
38609 }
38610 _ACEOF
38611 rm -f conftest.$ac_objext
38612 if { (ac_try="$ac_compile"
38613 case "(($ac_try" in
38614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38615   *) ac_try_echo=$ac_try;;
38616 esac
38617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38618   (eval "$ac_compile") 2>conftest.er1
38619   ac_status=$?
38620   grep -v '^ *+' conftest.er1 >conftest.err
38621   rm -f conftest.er1
38622   cat conftest.err >&5
38623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624   (exit $ac_status); } && {
38625          test -z "$ac_cxx_werror_flag" ||
38626          test ! -s conftest.err
38627        } && test -s conftest.$ac_objext; then
38628   wx_cv_func_statfs_decl=yes
38629 else
38630   echo "$as_me: failed program was:" >&5
38631 sed 's/^/| /' conftest.$ac_ext >&5
38632
38633         wx_cv_func_statfs_decl=no
38634
38635 fi
38636
38637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38638         ac_ext=c
38639 ac_cpp='$CPP $CPPFLAGS'
38640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38643
38644
38645 fi
38646 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
38647 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
38648
38649     if test "$wx_cv_func_statfs_decl" = "yes"; then
38650         cat >>confdefs.h <<\_ACEOF
38651 #define HAVE_STATFS_DECL 1
38652 _ACEOF
38653
38654     fi
38655
38656     wx_cv_type_statvfs_t="struct statfs"
38657     cat >>confdefs.h <<\_ACEOF
38658 #define HAVE_STATFS 1
38659 _ACEOF
38660
38661 else
38662     { echo "$as_me:$LINENO: checking for statvfs" >&5
38663 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
38664 if test "${wx_cv_func_statvfs+set}" = set; then
38665   echo $ECHO_N "(cached) $ECHO_C" >&6
38666 else
38667   cat >conftest.$ac_ext <<_ACEOF
38668 /* confdefs.h.  */
38669 _ACEOF
38670 cat confdefs.h >>conftest.$ac_ext
38671 cat >>conftest.$ac_ext <<_ACEOF
38672 /* end confdefs.h.  */
38673
38674                 #include <stddef.h>
38675                 #include <sys/statvfs.h>
38676
38677 int
38678 main ()
38679 {
38680
38681                 statvfs("/", NULL);
38682
38683   ;
38684   return 0;
38685 }
38686 _ACEOF
38687 rm -f conftest.$ac_objext
38688 if { (ac_try="$ac_compile"
38689 case "(($ac_try" in
38690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38691   *) ac_try_echo=$ac_try;;
38692 esac
38693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38694   (eval "$ac_compile") 2>conftest.er1
38695   ac_status=$?
38696   grep -v '^ *+' conftest.er1 >conftest.err
38697   rm -f conftest.er1
38698   cat conftest.err >&5
38699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700   (exit $ac_status); } && {
38701          test -z "$ac_c_werror_flag" ||
38702          test ! -s conftest.err
38703        } && test -s conftest.$ac_objext; then
38704   wx_cv_func_statvfs=yes
38705 else
38706   echo "$as_me: failed program was:" >&5
38707 sed 's/^/| /' conftest.$ac_ext >&5
38708
38709         wx_cv_func_statvfs=no
38710
38711 fi
38712
38713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38714
38715 fi
38716 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
38717 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
38718
38719     if test "$wx_cv_func_statvfs" = "yes"; then
38720                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
38721 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
38722 if test "${wx_cv_type_statvfs_t+set}" = set; then
38723   echo $ECHO_N "(cached) $ECHO_C" >&6
38724 else
38725   ac_ext=cpp
38726 ac_cpp='$CXXCPP $CPPFLAGS'
38727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38730
38731             cat >conftest.$ac_ext <<_ACEOF
38732 /* confdefs.h.  */
38733 _ACEOF
38734 cat confdefs.h >>conftest.$ac_ext
38735 cat >>conftest.$ac_ext <<_ACEOF
38736 /* end confdefs.h.  */
38737
38738                     #include <sys/statvfs.h>
38739
38740 int
38741 main ()
38742 {
38743
38744                     long l;
38745                     statvfs_t fs;
38746                     statvfs("/", &fs);
38747                     l = fs.f_bsize;
38748                     l += fs.f_blocks;
38749                     l += fs.f_bavail;
38750
38751   ;
38752   return 0;
38753 }
38754 _ACEOF
38755 rm -f conftest.$ac_objext
38756 if { (ac_try="$ac_compile"
38757 case "(($ac_try" in
38758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38759   *) ac_try_echo=$ac_try;;
38760 esac
38761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38762   (eval "$ac_compile") 2>conftest.er1
38763   ac_status=$?
38764   grep -v '^ *+' conftest.er1 >conftest.err
38765   rm -f conftest.er1
38766   cat conftest.err >&5
38767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38768   (exit $ac_status); } && {
38769          test -z "$ac_cxx_werror_flag" ||
38770          test ! -s conftest.err
38771        } && test -s conftest.$ac_objext; then
38772   wx_cv_type_statvfs_t=statvfs_t
38773 else
38774   echo "$as_me: failed program was:" >&5
38775 sed 's/^/| /' conftest.$ac_ext >&5
38776
38777
38778                     cat >conftest.$ac_ext <<_ACEOF
38779 /* confdefs.h.  */
38780 _ACEOF
38781 cat confdefs.h >>conftest.$ac_ext
38782 cat >>conftest.$ac_ext <<_ACEOF
38783 /* end confdefs.h.  */
38784
38785                             #include <sys/statvfs.h>
38786
38787 int
38788 main ()
38789 {
38790
38791                             long l;
38792                             struct statvfs fs;
38793                             statvfs("/", &fs);
38794                             l = fs.f_bsize;
38795                             l += fs.f_blocks;
38796                             l += fs.f_bavail;
38797
38798   ;
38799   return 0;
38800 }
38801 _ACEOF
38802 rm -f conftest.$ac_objext
38803 if { (ac_try="$ac_compile"
38804 case "(($ac_try" in
38805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38806   *) ac_try_echo=$ac_try;;
38807 esac
38808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38809   (eval "$ac_compile") 2>conftest.er1
38810   ac_status=$?
38811   grep -v '^ *+' conftest.er1 >conftest.err
38812   rm -f conftest.er1
38813   cat conftest.err >&5
38814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38815   (exit $ac_status); } && {
38816          test -z "$ac_cxx_werror_flag" ||
38817          test ! -s conftest.err
38818        } && test -s conftest.$ac_objext; then
38819   wx_cv_type_statvfs_t="struct statvfs"
38820 else
38821   echo "$as_me: failed program was:" >&5
38822 sed 's/^/| /' conftest.$ac_ext >&5
38823
38824         wx_cv_type_statvfs_t="unknown"
38825
38826 fi
38827
38828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38829
38830
38831 fi
38832
38833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38834             ac_ext=c
38835 ac_cpp='$CPP $CPPFLAGS'
38836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38839
38840
38841 fi
38842 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
38843 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
38844
38845         if test "$wx_cv_type_statvfs_t" != "unknown"; then
38846             cat >>confdefs.h <<\_ACEOF
38847 #define HAVE_STATVFS 1
38848 _ACEOF
38849
38850         fi
38851     else
38852                 wx_cv_type_statvfs_t="unknown"
38853     fi
38854 fi
38855
38856 if test "$wx_cv_type_statvfs_t" != "unknown"; then
38857     cat >>confdefs.h <<_ACEOF
38858 #define WX_STATFS_T $wx_cv_type_statvfs_t
38859 _ACEOF
38860
38861 else
38862     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
38863 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
38864 fi
38865
38866 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38867
38868
38869 for ac_func in fcntl flock
38870 do
38871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38875   echo $ECHO_N "(cached) $ECHO_C" >&6
38876 else
38877   cat >conftest.$ac_ext <<_ACEOF
38878 /* confdefs.h.  */
38879 _ACEOF
38880 cat confdefs.h >>conftest.$ac_ext
38881 cat >>conftest.$ac_ext <<_ACEOF
38882 /* end confdefs.h.  */
38883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38885 #define $ac_func innocuous_$ac_func
38886
38887 /* System header to define __stub macros and hopefully few prototypes,
38888     which can conflict with char $ac_func (); below.
38889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38890     <limits.h> exists even on freestanding compilers.  */
38891
38892 #ifdef __STDC__
38893 # include <limits.h>
38894 #else
38895 # include <assert.h>
38896 #endif
38897
38898 #undef $ac_func
38899
38900 /* Override any GCC internal prototype to avoid an error.
38901    Use char because int might match the return type of a GCC
38902    builtin and then its argument prototype would still apply.  */
38903 #ifdef __cplusplus
38904 extern "C"
38905 #endif
38906 char $ac_func ();
38907 /* The GNU C library defines this for functions which it implements
38908     to always fail with ENOSYS.  Some functions are actually named
38909     something starting with __ and the normal name is an alias.  */
38910 #if defined __stub_$ac_func || defined __stub___$ac_func
38911 choke me
38912 #endif
38913
38914 int
38915 main ()
38916 {
38917 return $ac_func ();
38918   ;
38919   return 0;
38920 }
38921 _ACEOF
38922 rm -f conftest.$ac_objext conftest$ac_exeext
38923 if { (ac_try="$ac_link"
38924 case "(($ac_try" in
38925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38926   *) ac_try_echo=$ac_try;;
38927 esac
38928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38929   (eval "$ac_link") 2>conftest.er1
38930   ac_status=$?
38931   grep -v '^ *+' conftest.er1 >conftest.err
38932   rm -f conftest.er1
38933   cat conftest.err >&5
38934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38935   (exit $ac_status); } && {
38936          test -z "$ac_c_werror_flag" ||
38937          test ! -s conftest.err
38938        } && test -s conftest$ac_exeext &&
38939        $as_test_x conftest$ac_exeext; then
38940   eval "$as_ac_var=yes"
38941 else
38942   echo "$as_me: failed program was:" >&5
38943 sed 's/^/| /' conftest.$ac_ext >&5
38944
38945         eval "$as_ac_var=no"
38946 fi
38947
38948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38949       conftest$ac_exeext conftest.$ac_ext
38950 fi
38951 ac_res=`eval echo '${'$as_ac_var'}'`
38952                { echo "$as_me:$LINENO: result: $ac_res" >&5
38953 echo "${ECHO_T}$ac_res" >&6; }
38954 if test `eval echo '${'$as_ac_var'}'` = yes; then
38955   cat >>confdefs.h <<_ACEOF
38956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38957 _ACEOF
38958  break
38959 fi
38960 done
38961
38962
38963     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
38964         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
38965 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
38966         wxUSE_SNGLINST_CHECKER=no
38967     fi
38968 fi
38969
38970
38971
38972 for ac_func in setenv putenv
38973 do
38974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38978   echo $ECHO_N "(cached) $ECHO_C" >&6
38979 else
38980   cat >conftest.$ac_ext <<_ACEOF
38981 /* confdefs.h.  */
38982 _ACEOF
38983 cat confdefs.h >>conftest.$ac_ext
38984 cat >>conftest.$ac_ext <<_ACEOF
38985 /* end confdefs.h.  */
38986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38988 #define $ac_func innocuous_$ac_func
38989
38990 /* System header to define __stub macros and hopefully few prototypes,
38991     which can conflict with char $ac_func (); below.
38992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38993     <limits.h> exists even on freestanding compilers.  */
38994
38995 #ifdef __STDC__
38996 # include <limits.h>
38997 #else
38998 # include <assert.h>
38999 #endif
39000
39001 #undef $ac_func
39002
39003 /* Override any GCC internal prototype to avoid an error.
39004    Use char because int might match the return type of a GCC
39005    builtin and then its argument prototype would still apply.  */
39006 #ifdef __cplusplus
39007 extern "C"
39008 #endif
39009 char $ac_func ();
39010 /* The GNU C library defines this for functions which it implements
39011     to always fail with ENOSYS.  Some functions are actually named
39012     something starting with __ and the normal name is an alias.  */
39013 #if defined __stub_$ac_func || defined __stub___$ac_func
39014 choke me
39015 #endif
39016
39017 int
39018 main ()
39019 {
39020 return $ac_func ();
39021   ;
39022   return 0;
39023 }
39024 _ACEOF
39025 rm -f conftest.$ac_objext conftest$ac_exeext
39026 if { (ac_try="$ac_link"
39027 case "(($ac_try" in
39028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39029   *) ac_try_echo=$ac_try;;
39030 esac
39031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39032   (eval "$ac_link") 2>conftest.er1
39033   ac_status=$?
39034   grep -v '^ *+' conftest.er1 >conftest.err
39035   rm -f conftest.er1
39036   cat conftest.err >&5
39037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39038   (exit $ac_status); } && {
39039          test -z "$ac_c_werror_flag" ||
39040          test ! -s conftest.err
39041        } && test -s conftest$ac_exeext &&
39042        $as_test_x conftest$ac_exeext; then
39043   eval "$as_ac_var=yes"
39044 else
39045   echo "$as_me: failed program was:" >&5
39046 sed 's/^/| /' conftest.$ac_ext >&5
39047
39048         eval "$as_ac_var=no"
39049 fi
39050
39051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39052       conftest$ac_exeext conftest.$ac_ext
39053 fi
39054 ac_res=`eval echo '${'$as_ac_var'}'`
39055                { echo "$as_me:$LINENO: result: $ac_res" >&5
39056 echo "${ECHO_T}$ac_res" >&6; }
39057 if test `eval echo '${'$as_ac_var'}'` = yes; then
39058   cat >>confdefs.h <<_ACEOF
39059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39060 _ACEOF
39061  break
39062 fi
39063 done
39064
39065 if test "$ac_cv_func_setenv" = "yes"; then
39066
39067 for ac_func in unsetenv
39068 do
39069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39073   echo $ECHO_N "(cached) $ECHO_C" >&6
39074 else
39075   cat >conftest.$ac_ext <<_ACEOF
39076 /* confdefs.h.  */
39077 _ACEOF
39078 cat confdefs.h >>conftest.$ac_ext
39079 cat >>conftest.$ac_ext <<_ACEOF
39080 /* end confdefs.h.  */
39081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39083 #define $ac_func innocuous_$ac_func
39084
39085 /* System header to define __stub macros and hopefully few prototypes,
39086     which can conflict with char $ac_func (); below.
39087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39088     <limits.h> exists even on freestanding compilers.  */
39089
39090 #ifdef __STDC__
39091 # include <limits.h>
39092 #else
39093 # include <assert.h>
39094 #endif
39095
39096 #undef $ac_func
39097
39098 /* Override any GCC internal prototype to avoid an error.
39099    Use char because int might match the return type of a GCC
39100    builtin and then its argument prototype would still apply.  */
39101 #ifdef __cplusplus
39102 extern "C"
39103 #endif
39104 char $ac_func ();
39105 /* The GNU C library defines this for functions which it implements
39106     to always fail with ENOSYS.  Some functions are actually named
39107     something starting with __ and the normal name is an alias.  */
39108 #if defined __stub_$ac_func || defined __stub___$ac_func
39109 choke me
39110 #endif
39111
39112 int
39113 main ()
39114 {
39115 return $ac_func ();
39116   ;
39117   return 0;
39118 }
39119 _ACEOF
39120 rm -f conftest.$ac_objext conftest$ac_exeext
39121 if { (ac_try="$ac_link"
39122 case "(($ac_try" in
39123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39124   *) ac_try_echo=$ac_try;;
39125 esac
39126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39127   (eval "$ac_link") 2>conftest.er1
39128   ac_status=$?
39129   grep -v '^ *+' conftest.er1 >conftest.err
39130   rm -f conftest.er1
39131   cat conftest.err >&5
39132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39133   (exit $ac_status); } && {
39134          test -z "$ac_c_werror_flag" ||
39135          test ! -s conftest.err
39136        } && test -s conftest$ac_exeext &&
39137        $as_test_x conftest$ac_exeext; then
39138   eval "$as_ac_var=yes"
39139 else
39140   echo "$as_me: failed program was:" >&5
39141 sed 's/^/| /' conftest.$ac_ext >&5
39142
39143         eval "$as_ac_var=no"
39144 fi
39145
39146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39147       conftest$ac_exeext conftest.$ac_ext
39148 fi
39149 ac_res=`eval echo '${'$as_ac_var'}'`
39150                { echo "$as_me:$LINENO: result: $ac_res" >&5
39151 echo "${ECHO_T}$ac_res" >&6; }
39152 if test `eval echo '${'$as_ac_var'}'` = yes; then
39153   cat >>confdefs.h <<_ACEOF
39154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39155 _ACEOF
39156
39157 fi
39158 done
39159
39160 fi
39161
39162 HAVE_SOME_SLEEP_FUNC=0
39163 if test "$USE_BEOS" = 1; then
39164             cat >>confdefs.h <<\_ACEOF
39165 #define HAVE_SLEEP 1
39166 _ACEOF
39167
39168     HAVE_SOME_SLEEP_FUNC=1
39169 fi
39170
39171 if test "$USE_DARWIN" = 1; then
39172             cat >>confdefs.h <<\_ACEOF
39173 #define HAVE_USLEEP 1
39174 _ACEOF
39175
39176     HAVE_SOME_SLEEP_FUNC=1
39177 fi
39178
39179 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
39180         POSIX4_LINK=
39181
39182 for ac_func in nanosleep
39183 do
39184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39188   echo $ECHO_N "(cached) $ECHO_C" >&6
39189 else
39190   cat >conftest.$ac_ext <<_ACEOF
39191 /* confdefs.h.  */
39192 _ACEOF
39193 cat confdefs.h >>conftest.$ac_ext
39194 cat >>conftest.$ac_ext <<_ACEOF
39195 /* end confdefs.h.  */
39196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39198 #define $ac_func innocuous_$ac_func
39199
39200 /* System header to define __stub macros and hopefully few prototypes,
39201     which can conflict with char $ac_func (); below.
39202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39203     <limits.h> exists even on freestanding compilers.  */
39204
39205 #ifdef __STDC__
39206 # include <limits.h>
39207 #else
39208 # include <assert.h>
39209 #endif
39210
39211 #undef $ac_func
39212
39213 /* Override any GCC internal prototype to avoid an error.
39214    Use char because int might match the return type of a GCC
39215    builtin and then its argument prototype would still apply.  */
39216 #ifdef __cplusplus
39217 extern "C"
39218 #endif
39219 char $ac_func ();
39220 /* The GNU C library defines this for functions which it implements
39221     to always fail with ENOSYS.  Some functions are actually named
39222     something starting with __ and the normal name is an alias.  */
39223 #if defined __stub_$ac_func || defined __stub___$ac_func
39224 choke me
39225 #endif
39226
39227 int
39228 main ()
39229 {
39230 return $ac_func ();
39231   ;
39232   return 0;
39233 }
39234 _ACEOF
39235 rm -f conftest.$ac_objext conftest$ac_exeext
39236 if { (ac_try="$ac_link"
39237 case "(($ac_try" in
39238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39239   *) ac_try_echo=$ac_try;;
39240 esac
39241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39242   (eval "$ac_link") 2>conftest.er1
39243   ac_status=$?
39244   grep -v '^ *+' conftest.er1 >conftest.err
39245   rm -f conftest.er1
39246   cat conftest.err >&5
39247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39248   (exit $ac_status); } && {
39249          test -z "$ac_c_werror_flag" ||
39250          test ! -s conftest.err
39251        } && test -s conftest$ac_exeext &&
39252        $as_test_x conftest$ac_exeext; then
39253   eval "$as_ac_var=yes"
39254 else
39255   echo "$as_me: failed program was:" >&5
39256 sed 's/^/| /' conftest.$ac_ext >&5
39257
39258         eval "$as_ac_var=no"
39259 fi
39260
39261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39262       conftest$ac_exeext conftest.$ac_ext
39263 fi
39264 ac_res=`eval echo '${'$as_ac_var'}'`
39265                { echo "$as_me:$LINENO: result: $ac_res" >&5
39266 echo "${ECHO_T}$ac_res" >&6; }
39267 if test `eval echo '${'$as_ac_var'}'` = yes; then
39268   cat >>confdefs.h <<_ACEOF
39269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39270 _ACEOF
39271  cat >>confdefs.h <<\_ACEOF
39272 #define HAVE_NANOSLEEP 1
39273 _ACEOF
39274
39275 else
39276
39277             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
39278 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
39279 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
39280   echo $ECHO_N "(cached) $ECHO_C" >&6
39281 else
39282   ac_check_lib_save_LIBS=$LIBS
39283 LIBS="-lposix4  $LIBS"
39284 cat >conftest.$ac_ext <<_ACEOF
39285 /* confdefs.h.  */
39286 _ACEOF
39287 cat confdefs.h >>conftest.$ac_ext
39288 cat >>conftest.$ac_ext <<_ACEOF
39289 /* end confdefs.h.  */
39290
39291 /* Override any GCC internal prototype to avoid an error.
39292    Use char because int might match the return type of a GCC
39293    builtin and then its argument prototype would still apply.  */
39294 #ifdef __cplusplus
39295 extern "C"
39296 #endif
39297 char nanosleep ();
39298 int
39299 main ()
39300 {
39301 return nanosleep ();
39302   ;
39303   return 0;
39304 }
39305 _ACEOF
39306 rm -f conftest.$ac_objext conftest$ac_exeext
39307 if { (ac_try="$ac_link"
39308 case "(($ac_try" in
39309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39310   *) ac_try_echo=$ac_try;;
39311 esac
39312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39313   (eval "$ac_link") 2>conftest.er1
39314   ac_status=$?
39315   grep -v '^ *+' conftest.er1 >conftest.err
39316   rm -f conftest.er1
39317   cat conftest.err >&5
39318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39319   (exit $ac_status); } && {
39320          test -z "$ac_c_werror_flag" ||
39321          test ! -s conftest.err
39322        } && test -s conftest$ac_exeext &&
39323        $as_test_x conftest$ac_exeext; then
39324   ac_cv_lib_posix4_nanosleep=yes
39325 else
39326   echo "$as_me: failed program was:" >&5
39327 sed 's/^/| /' conftest.$ac_ext >&5
39328
39329         ac_cv_lib_posix4_nanosleep=no
39330 fi
39331
39332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39333       conftest$ac_exeext conftest.$ac_ext
39334 LIBS=$ac_check_lib_save_LIBS
39335 fi
39336 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
39337 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
39338 if test $ac_cv_lib_posix4_nanosleep = yes; then
39339
39340                     cat >>confdefs.h <<\_ACEOF
39341 #define HAVE_NANOSLEEP 1
39342 _ACEOF
39343
39344                     POSIX4_LINK=" -lposix4"
39345
39346 else
39347
39348
39349   for wx_func in usleep
39350   do
39351     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39352 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39353 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39354   echo $ECHO_N "(cached) $ECHO_C" >&6
39355 else
39356
39357         cat >conftest.$ac_ext <<_ACEOF
39358
39359             /* confdefs.h.  */
39360 _ACEOF
39361 cat confdefs.h >>conftest.$ac_ext
39362 cat >>conftest.$ac_ext <<_ACEOF
39363 /* end confdefs.h.  */
39364
39365
39366                 $ac_includes_default
39367
39368 int
39369 main ()
39370 {
39371
39372                 #ifndef $wx_func
39373                   &$wx_func;
39374                 #endif
39375
39376
39377   ;
39378   return 0;
39379 }
39380
39381 _ACEOF
39382 rm -f conftest.$ac_objext conftest$ac_exeext
39383 if { (ac_try="$ac_link"
39384 case "(($ac_try" in
39385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39386   *) ac_try_echo=$ac_try;;
39387 esac
39388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39389   (eval "$ac_link") 2>conftest.er1
39390   ac_status=$?
39391   grep -v '^ *+' conftest.er1 >conftest.err
39392   rm -f conftest.er1
39393   cat conftest.err >&5
39394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39395   (exit $ac_status); } && {
39396          test -z "$ac_c_werror_flag" ||
39397          test ! -s conftest.err
39398        } && test -s conftest$ac_exeext &&
39399        $as_test_x conftest$ac_exeext; then
39400   eval wx_cv_func_$wx_func=yes
39401 else
39402   echo "$as_me: failed program was:" >&5
39403 sed 's/^/| /' conftest.$ac_ext >&5
39404
39405         eval wx_cv_func_$wx_func=no
39406 fi
39407
39408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39409       conftest$ac_exeext conftest.$ac_ext
39410
39411 fi
39412 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39413                { echo "$as_me:$LINENO: result: $ac_res" >&5
39414 echo "${ECHO_T}$ac_res" >&6; }
39415
39416     if eval test \$wx_cv_func_$wx_func = yes
39417     then
39418       cat >>confdefs.h <<_ACEOF
39419 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39420 _ACEOF
39421
39422
39423     else
39424       :
39425       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
39426 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
39427
39428     fi
39429   done
39430
39431
39432
39433 fi
39434
39435
39436
39437 fi
39438 done
39439
39440 fi
39441
39442
39443   for wx_func in uname
39444   do
39445     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39446 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39447 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39448   echo $ECHO_N "(cached) $ECHO_C" >&6
39449 else
39450
39451         cat >conftest.$ac_ext <<_ACEOF
39452
39453             /* confdefs.h.  */
39454 _ACEOF
39455 cat confdefs.h >>conftest.$ac_ext
39456 cat >>conftest.$ac_ext <<_ACEOF
39457 /* end confdefs.h.  */
39458
39459                 #include <sys/utsname.h>
39460                 $ac_includes_default
39461
39462 int
39463 main ()
39464 {
39465
39466                 #ifndef $wx_func
39467                   &$wx_func;
39468                 #endif
39469
39470
39471   ;
39472   return 0;
39473 }
39474
39475 _ACEOF
39476 rm -f conftest.$ac_objext conftest$ac_exeext
39477 if { (ac_try="$ac_link"
39478 case "(($ac_try" in
39479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39480   *) ac_try_echo=$ac_try;;
39481 esac
39482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39483   (eval "$ac_link") 2>conftest.er1
39484   ac_status=$?
39485   grep -v '^ *+' conftest.er1 >conftest.err
39486   rm -f conftest.er1
39487   cat conftest.err >&5
39488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39489   (exit $ac_status); } && {
39490          test -z "$ac_c_werror_flag" ||
39491          test ! -s conftest.err
39492        } && test -s conftest$ac_exeext &&
39493        $as_test_x conftest$ac_exeext; then
39494   eval wx_cv_func_$wx_func=yes
39495 else
39496   echo "$as_me: failed program was:" >&5
39497 sed 's/^/| /' conftest.$ac_ext >&5
39498
39499         eval wx_cv_func_$wx_func=no
39500 fi
39501
39502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39503       conftest$ac_exeext conftest.$ac_ext
39504
39505 fi
39506 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39507                { echo "$as_me:$LINENO: result: $ac_res" >&5
39508 echo "${ECHO_T}$ac_res" >&6; }
39509
39510     if eval test \$wx_cv_func_$wx_func = yes
39511     then
39512       cat >>confdefs.h <<_ACEOF
39513 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39514 _ACEOF
39515
39516
39517     else
39518       :
39519
39520     fi
39521   done
39522
39523 if test "$wx_cv_func_uname" != yes; then
39524
39525   for wx_func in gethostname
39526   do
39527     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39528 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39529 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39530   echo $ECHO_N "(cached) $ECHO_C" >&6
39531 else
39532
39533         cat >conftest.$ac_ext <<_ACEOF
39534
39535             /* confdefs.h.  */
39536 _ACEOF
39537 cat confdefs.h >>conftest.$ac_ext
39538 cat >>conftest.$ac_ext <<_ACEOF
39539 /* end confdefs.h.  */
39540
39541
39542                 $ac_includes_default
39543
39544 int
39545 main ()
39546 {
39547
39548                 #ifndef $wx_func
39549                   &$wx_func;
39550                 #endif
39551
39552
39553   ;
39554   return 0;
39555 }
39556
39557 _ACEOF
39558 rm -f conftest.$ac_objext conftest$ac_exeext
39559 if { (ac_try="$ac_link"
39560 case "(($ac_try" in
39561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39562   *) ac_try_echo=$ac_try;;
39563 esac
39564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39565   (eval "$ac_link") 2>conftest.er1
39566   ac_status=$?
39567   grep -v '^ *+' conftest.er1 >conftest.err
39568   rm -f conftest.er1
39569   cat conftest.err >&5
39570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39571   (exit $ac_status); } && {
39572          test -z "$ac_c_werror_flag" ||
39573          test ! -s conftest.err
39574        } && test -s conftest$ac_exeext &&
39575        $as_test_x conftest$ac_exeext; then
39576   eval wx_cv_func_$wx_func=yes
39577 else
39578   echo "$as_me: failed program was:" >&5
39579 sed 's/^/| /' conftest.$ac_ext >&5
39580
39581         eval wx_cv_func_$wx_func=no
39582 fi
39583
39584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39585       conftest$ac_exeext conftest.$ac_ext
39586
39587 fi
39588 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39589                { echo "$as_me:$LINENO: result: $ac_res" >&5
39590 echo "${ECHO_T}$ac_res" >&6; }
39591
39592     if eval test \$wx_cv_func_$wx_func = yes
39593     then
39594       cat >>confdefs.h <<_ACEOF
39595 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39596 _ACEOF
39597
39598
39599     else
39600       :
39601
39602     fi
39603   done
39604
39605 fi
39606
39607
39608   for wx_func in strtok_r
39609   do
39610     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39611 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39612 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39613   echo $ECHO_N "(cached) $ECHO_C" >&6
39614 else
39615
39616         cat >conftest.$ac_ext <<_ACEOF
39617
39618             /* confdefs.h.  */
39619 _ACEOF
39620 cat confdefs.h >>conftest.$ac_ext
39621 cat >>conftest.$ac_ext <<_ACEOF
39622 /* end confdefs.h.  */
39623
39624                 #define _REENTRANT
39625                 $ac_includes_default
39626
39627 int
39628 main ()
39629 {
39630
39631                 #ifndef $wx_func
39632                   &$wx_func;
39633                 #endif
39634
39635
39636   ;
39637   return 0;
39638 }
39639
39640 _ACEOF
39641 rm -f conftest.$ac_objext conftest$ac_exeext
39642 if { (ac_try="$ac_link"
39643 case "(($ac_try" in
39644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39645   *) ac_try_echo=$ac_try;;
39646 esac
39647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39648   (eval "$ac_link") 2>conftest.er1
39649   ac_status=$?
39650   grep -v '^ *+' conftest.er1 >conftest.err
39651   rm -f conftest.er1
39652   cat conftest.err >&5
39653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39654   (exit $ac_status); } && {
39655          test -z "$ac_c_werror_flag" ||
39656          test ! -s conftest.err
39657        } && test -s conftest$ac_exeext &&
39658        $as_test_x conftest$ac_exeext; then
39659   eval wx_cv_func_$wx_func=yes
39660 else
39661   echo "$as_me: failed program was:" >&5
39662 sed 's/^/| /' conftest.$ac_ext >&5
39663
39664         eval wx_cv_func_$wx_func=no
39665 fi
39666
39667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39668       conftest$ac_exeext conftest.$ac_ext
39669
39670 fi
39671 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39672                { echo "$as_me:$LINENO: result: $ac_res" >&5
39673 echo "${ECHO_T}$ac_res" >&6; }
39674
39675     if eval test \$wx_cv_func_$wx_func = yes
39676     then
39677       cat >>confdefs.h <<_ACEOF
39678 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39679 _ACEOF
39680
39681
39682     else
39683       :
39684
39685     fi
39686   done
39687
39688
39689 INET_LINK=
39690
39691 for ac_func in inet_addr
39692 do
39693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39697   echo $ECHO_N "(cached) $ECHO_C" >&6
39698 else
39699   cat >conftest.$ac_ext <<_ACEOF
39700 /* confdefs.h.  */
39701 _ACEOF
39702 cat confdefs.h >>conftest.$ac_ext
39703 cat >>conftest.$ac_ext <<_ACEOF
39704 /* end confdefs.h.  */
39705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39707 #define $ac_func innocuous_$ac_func
39708
39709 /* System header to define __stub macros and hopefully few prototypes,
39710     which can conflict with char $ac_func (); below.
39711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39712     <limits.h> exists even on freestanding compilers.  */
39713
39714 #ifdef __STDC__
39715 # include <limits.h>
39716 #else
39717 # include <assert.h>
39718 #endif
39719
39720 #undef $ac_func
39721
39722 /* Override any GCC internal prototype to avoid an error.
39723    Use char because int might match the return type of a GCC
39724    builtin and then its argument prototype would still apply.  */
39725 #ifdef __cplusplus
39726 extern "C"
39727 #endif
39728 char $ac_func ();
39729 /* The GNU C library defines this for functions which it implements
39730     to always fail with ENOSYS.  Some functions are actually named
39731     something starting with __ and the normal name is an alias.  */
39732 #if defined __stub_$ac_func || defined __stub___$ac_func
39733 choke me
39734 #endif
39735
39736 int
39737 main ()
39738 {
39739 return $ac_func ();
39740   ;
39741   return 0;
39742 }
39743 _ACEOF
39744 rm -f conftest.$ac_objext conftest$ac_exeext
39745 if { (ac_try="$ac_link"
39746 case "(($ac_try" in
39747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39748   *) ac_try_echo=$ac_try;;
39749 esac
39750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39751   (eval "$ac_link") 2>conftest.er1
39752   ac_status=$?
39753   grep -v '^ *+' conftest.er1 >conftest.err
39754   rm -f conftest.er1
39755   cat conftest.err >&5
39756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39757   (exit $ac_status); } && {
39758          test -z "$ac_c_werror_flag" ||
39759          test ! -s conftest.err
39760        } && test -s conftest$ac_exeext &&
39761        $as_test_x conftest$ac_exeext; then
39762   eval "$as_ac_var=yes"
39763 else
39764   echo "$as_me: failed program was:" >&5
39765 sed 's/^/| /' conftest.$ac_ext >&5
39766
39767         eval "$as_ac_var=no"
39768 fi
39769
39770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39771       conftest$ac_exeext conftest.$ac_ext
39772 fi
39773 ac_res=`eval echo '${'$as_ac_var'}'`
39774                { echo "$as_me:$LINENO: result: $ac_res" >&5
39775 echo "${ECHO_T}$ac_res" >&6; }
39776 if test `eval echo '${'$as_ac_var'}'` = yes; then
39777   cat >>confdefs.h <<_ACEOF
39778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39779 _ACEOF
39780  cat >>confdefs.h <<\_ACEOF
39781 #define HAVE_INET_ADDR 1
39782 _ACEOF
39783
39784 else
39785
39786         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
39787 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
39788 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
39789   echo $ECHO_N "(cached) $ECHO_C" >&6
39790 else
39791   ac_check_lib_save_LIBS=$LIBS
39792 LIBS="-lnsl  $LIBS"
39793 cat >conftest.$ac_ext <<_ACEOF
39794 /* confdefs.h.  */
39795 _ACEOF
39796 cat confdefs.h >>conftest.$ac_ext
39797 cat >>conftest.$ac_ext <<_ACEOF
39798 /* end confdefs.h.  */
39799
39800 /* Override any GCC internal prototype to avoid an error.
39801    Use char because int might match the return type of a GCC
39802    builtin and then its argument prototype would still apply.  */
39803 #ifdef __cplusplus
39804 extern "C"
39805 #endif
39806 char inet_addr ();
39807 int
39808 main ()
39809 {
39810 return inet_addr ();
39811   ;
39812   return 0;
39813 }
39814 _ACEOF
39815 rm -f conftest.$ac_objext conftest$ac_exeext
39816 if { (ac_try="$ac_link"
39817 case "(($ac_try" in
39818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39819   *) ac_try_echo=$ac_try;;
39820 esac
39821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39822   (eval "$ac_link") 2>conftest.er1
39823   ac_status=$?
39824   grep -v '^ *+' conftest.er1 >conftest.err
39825   rm -f conftest.er1
39826   cat conftest.err >&5
39827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828   (exit $ac_status); } && {
39829          test -z "$ac_c_werror_flag" ||
39830          test ! -s conftest.err
39831        } && test -s conftest$ac_exeext &&
39832        $as_test_x conftest$ac_exeext; then
39833   ac_cv_lib_nsl_inet_addr=yes
39834 else
39835   echo "$as_me: failed program was:" >&5
39836 sed 's/^/| /' conftest.$ac_ext >&5
39837
39838         ac_cv_lib_nsl_inet_addr=no
39839 fi
39840
39841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39842       conftest$ac_exeext conftest.$ac_ext
39843 LIBS=$ac_check_lib_save_LIBS
39844 fi
39845 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
39846 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
39847 if test $ac_cv_lib_nsl_inet_addr = yes; then
39848   INET_LINK="nsl"
39849 else
39850
39851                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
39852 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
39853 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
39854   echo $ECHO_N "(cached) $ECHO_C" >&6
39855 else
39856   ac_check_lib_save_LIBS=$LIBS
39857 LIBS="-lresolv  $LIBS"
39858 cat >conftest.$ac_ext <<_ACEOF
39859 /* confdefs.h.  */
39860 _ACEOF
39861 cat confdefs.h >>conftest.$ac_ext
39862 cat >>conftest.$ac_ext <<_ACEOF
39863 /* end confdefs.h.  */
39864
39865 /* Override any GCC internal prototype to avoid an error.
39866    Use char because int might match the return type of a GCC
39867    builtin and then its argument prototype would still apply.  */
39868 #ifdef __cplusplus
39869 extern "C"
39870 #endif
39871 char inet_addr ();
39872 int
39873 main ()
39874 {
39875 return inet_addr ();
39876   ;
39877   return 0;
39878 }
39879 _ACEOF
39880 rm -f conftest.$ac_objext conftest$ac_exeext
39881 if { (ac_try="$ac_link"
39882 case "(($ac_try" in
39883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39884   *) ac_try_echo=$ac_try;;
39885 esac
39886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39887   (eval "$ac_link") 2>conftest.er1
39888   ac_status=$?
39889   grep -v '^ *+' conftest.er1 >conftest.err
39890   rm -f conftest.er1
39891   cat conftest.err >&5
39892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39893   (exit $ac_status); } && {
39894          test -z "$ac_c_werror_flag" ||
39895          test ! -s conftest.err
39896        } && test -s conftest$ac_exeext &&
39897        $as_test_x conftest$ac_exeext; then
39898   ac_cv_lib_resolv_inet_addr=yes
39899 else
39900   echo "$as_me: failed program was:" >&5
39901 sed 's/^/| /' conftest.$ac_ext >&5
39902
39903         ac_cv_lib_resolv_inet_addr=no
39904 fi
39905
39906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39907       conftest$ac_exeext conftest.$ac_ext
39908 LIBS=$ac_check_lib_save_LIBS
39909 fi
39910 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
39911 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
39912 if test $ac_cv_lib_resolv_inet_addr = yes; then
39913   INET_LINK="resolv"
39914 else
39915
39916                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
39917 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
39918 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
39919   echo $ECHO_N "(cached) $ECHO_C" >&6
39920 else
39921   ac_check_lib_save_LIBS=$LIBS
39922 LIBS="-lsocket  $LIBS"
39923 cat >conftest.$ac_ext <<_ACEOF
39924 /* confdefs.h.  */
39925 _ACEOF
39926 cat confdefs.h >>conftest.$ac_ext
39927 cat >>conftest.$ac_ext <<_ACEOF
39928 /* end confdefs.h.  */
39929
39930 /* Override any GCC internal prototype to avoid an error.
39931    Use char because int might match the return type of a GCC
39932    builtin and then its argument prototype would still apply.  */
39933 #ifdef __cplusplus
39934 extern "C"
39935 #endif
39936 char inet_addr ();
39937 int
39938 main ()
39939 {
39940 return inet_addr ();
39941   ;
39942   return 0;
39943 }
39944 _ACEOF
39945 rm -f conftest.$ac_objext conftest$ac_exeext
39946 if { (ac_try="$ac_link"
39947 case "(($ac_try" in
39948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39949   *) ac_try_echo=$ac_try;;
39950 esac
39951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39952   (eval "$ac_link") 2>conftest.er1
39953   ac_status=$?
39954   grep -v '^ *+' conftest.er1 >conftest.err
39955   rm -f conftest.er1
39956   cat conftest.err >&5
39957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39958   (exit $ac_status); } && {
39959          test -z "$ac_c_werror_flag" ||
39960          test ! -s conftest.err
39961        } && test -s conftest$ac_exeext &&
39962        $as_test_x conftest$ac_exeext; then
39963   ac_cv_lib_socket_inet_addr=yes
39964 else
39965   echo "$as_me: failed program was:" >&5
39966 sed 's/^/| /' conftest.$ac_ext >&5
39967
39968         ac_cv_lib_socket_inet_addr=no
39969 fi
39970
39971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39972       conftest$ac_exeext conftest.$ac_ext
39973 LIBS=$ac_check_lib_save_LIBS
39974 fi
39975 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
39976 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
39977 if test $ac_cv_lib_socket_inet_addr = yes; then
39978   INET_LINK="socket"
39979
39980 fi
39981
39982
39983
39984 fi
39985
39986
39987
39988 fi
39989
39990
39991
39992 fi
39993 done
39994
39995
39996
39997 for ac_func in inet_aton
39998 do
39999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40003   echo $ECHO_N "(cached) $ECHO_C" >&6
40004 else
40005   cat >conftest.$ac_ext <<_ACEOF
40006 /* confdefs.h.  */
40007 _ACEOF
40008 cat confdefs.h >>conftest.$ac_ext
40009 cat >>conftest.$ac_ext <<_ACEOF
40010 /* end confdefs.h.  */
40011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40013 #define $ac_func innocuous_$ac_func
40014
40015 /* System header to define __stub macros and hopefully few prototypes,
40016     which can conflict with char $ac_func (); below.
40017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40018     <limits.h> exists even on freestanding compilers.  */
40019
40020 #ifdef __STDC__
40021 # include <limits.h>
40022 #else
40023 # include <assert.h>
40024 #endif
40025
40026 #undef $ac_func
40027
40028 /* Override any GCC internal prototype to avoid an error.
40029    Use char because int might match the return type of a GCC
40030    builtin and then its argument prototype would still apply.  */
40031 #ifdef __cplusplus
40032 extern "C"
40033 #endif
40034 char $ac_func ();
40035 /* The GNU C library defines this for functions which it implements
40036     to always fail with ENOSYS.  Some functions are actually named
40037     something starting with __ and the normal name is an alias.  */
40038 #if defined __stub_$ac_func || defined __stub___$ac_func
40039 choke me
40040 #endif
40041
40042 int
40043 main ()
40044 {
40045 return $ac_func ();
40046   ;
40047   return 0;
40048 }
40049 _ACEOF
40050 rm -f conftest.$ac_objext conftest$ac_exeext
40051 if { (ac_try="$ac_link"
40052 case "(($ac_try" in
40053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40054   *) ac_try_echo=$ac_try;;
40055 esac
40056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40057   (eval "$ac_link") 2>conftest.er1
40058   ac_status=$?
40059   grep -v '^ *+' conftest.er1 >conftest.err
40060   rm -f conftest.er1
40061   cat conftest.err >&5
40062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40063   (exit $ac_status); } && {
40064          test -z "$ac_c_werror_flag" ||
40065          test ! -s conftest.err
40066        } && test -s conftest$ac_exeext &&
40067        $as_test_x conftest$ac_exeext; then
40068   eval "$as_ac_var=yes"
40069 else
40070   echo "$as_me: failed program was:" >&5
40071 sed 's/^/| /' conftest.$ac_ext >&5
40072
40073         eval "$as_ac_var=no"
40074 fi
40075
40076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40077       conftest$ac_exeext conftest.$ac_ext
40078 fi
40079 ac_res=`eval echo '${'$as_ac_var'}'`
40080                { echo "$as_me:$LINENO: result: $ac_res" >&5
40081 echo "${ECHO_T}$ac_res" >&6; }
40082 if test `eval echo '${'$as_ac_var'}'` = yes; then
40083   cat >>confdefs.h <<_ACEOF
40084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40085 _ACEOF
40086  cat >>confdefs.h <<\_ACEOF
40087 #define HAVE_INET_ATON 1
40088 _ACEOF
40089
40090 else
40091
40092                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
40093 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
40094 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
40095 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
40096   echo $ECHO_N "(cached) $ECHO_C" >&6
40097 else
40098   ac_check_lib_save_LIBS=$LIBS
40099 LIBS="-l$INET_LINK  $LIBS"
40100 cat >conftest.$ac_ext <<_ACEOF
40101 /* confdefs.h.  */
40102 _ACEOF
40103 cat confdefs.h >>conftest.$ac_ext
40104 cat >>conftest.$ac_ext <<_ACEOF
40105 /* end confdefs.h.  */
40106
40107 /* Override any GCC internal prototype to avoid an error.
40108    Use char because int might match the return type of a GCC
40109    builtin and then its argument prototype would still apply.  */
40110 #ifdef __cplusplus
40111 extern "C"
40112 #endif
40113 char inet_aton ();
40114 int
40115 main ()
40116 {
40117 return inet_aton ();
40118   ;
40119   return 0;
40120 }
40121 _ACEOF
40122 rm -f conftest.$ac_objext conftest$ac_exeext
40123 if { (ac_try="$ac_link"
40124 case "(($ac_try" in
40125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40126   *) ac_try_echo=$ac_try;;
40127 esac
40128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40129   (eval "$ac_link") 2>conftest.er1
40130   ac_status=$?
40131   grep -v '^ *+' conftest.er1 >conftest.err
40132   rm -f conftest.er1
40133   cat conftest.err >&5
40134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40135   (exit $ac_status); } && {
40136          test -z "$ac_c_werror_flag" ||
40137          test ! -s conftest.err
40138        } && test -s conftest$ac_exeext &&
40139        $as_test_x conftest$ac_exeext; then
40140   eval "$as_ac_Lib=yes"
40141 else
40142   echo "$as_me: failed program was:" >&5
40143 sed 's/^/| /' conftest.$ac_ext >&5
40144
40145         eval "$as_ac_Lib=no"
40146 fi
40147
40148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40149       conftest$ac_exeext conftest.$ac_ext
40150 LIBS=$ac_check_lib_save_LIBS
40151 fi
40152 ac_res=`eval echo '${'$as_ac_Lib'}'`
40153                { echo "$as_me:$LINENO: result: $ac_res" >&5
40154 echo "${ECHO_T}$ac_res" >&6; }
40155 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
40156   cat >>confdefs.h <<\_ACEOF
40157 #define HAVE_INET_ATON 1
40158 _ACEOF
40159
40160 fi
40161
40162
40163 fi
40164 done
40165
40166
40167 if test "x$INET_LINK" != "x"; then
40168     cat >>confdefs.h <<\_ACEOF
40169 #define HAVE_INET_ADDR 1
40170 _ACEOF
40171
40172     INET_LINK=" -l$INET_LINK"
40173 fi
40174
40175
40176   for wx_func in fdopen
40177   do
40178     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40179 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40180 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40181   echo $ECHO_N "(cached) $ECHO_C" >&6
40182 else
40183
40184         cat >conftest.$ac_ext <<_ACEOF
40185
40186             /* confdefs.h.  */
40187 _ACEOF
40188 cat confdefs.h >>conftest.$ac_ext
40189 cat >>conftest.$ac_ext <<_ACEOF
40190 /* end confdefs.h.  */
40191
40192
40193                 $ac_includes_default
40194
40195 int
40196 main ()
40197 {
40198
40199                 #ifndef $wx_func
40200                   &$wx_func;
40201                 #endif
40202
40203
40204   ;
40205   return 0;
40206 }
40207
40208 _ACEOF
40209 rm -f conftest.$ac_objext conftest$ac_exeext
40210 if { (ac_try="$ac_link"
40211 case "(($ac_try" in
40212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40213   *) ac_try_echo=$ac_try;;
40214 esac
40215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40216   (eval "$ac_link") 2>conftest.er1
40217   ac_status=$?
40218   grep -v '^ *+' conftest.er1 >conftest.err
40219   rm -f conftest.er1
40220   cat conftest.err >&5
40221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40222   (exit $ac_status); } && {
40223          test -z "$ac_c_werror_flag" ||
40224          test ! -s conftest.err
40225        } && test -s conftest$ac_exeext &&
40226        $as_test_x conftest$ac_exeext; then
40227   eval wx_cv_func_$wx_func=yes
40228 else
40229   echo "$as_me: failed program was:" >&5
40230 sed 's/^/| /' conftest.$ac_ext >&5
40231
40232         eval wx_cv_func_$wx_func=no
40233 fi
40234
40235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40236       conftest$ac_exeext conftest.$ac_ext
40237
40238 fi
40239 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40240                { echo "$as_me:$LINENO: result: $ac_res" >&5
40241 echo "${ECHO_T}$ac_res" >&6; }
40242
40243     if eval test \$wx_cv_func_$wx_func = yes
40244     then
40245       cat >>confdefs.h <<_ACEOF
40246 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40247 _ACEOF
40248
40249
40250     else
40251       :
40252
40253     fi
40254   done
40255
40256
40257 if test "$wxUSE_TARSTREAM" = "yes"; then
40258
40259   for wx_func in sysconf
40260   do
40261     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40262 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40263 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40264   echo $ECHO_N "(cached) $ECHO_C" >&6
40265 else
40266
40267         cat >conftest.$ac_ext <<_ACEOF
40268
40269             /* confdefs.h.  */
40270 _ACEOF
40271 cat confdefs.h >>conftest.$ac_ext
40272 cat >>conftest.$ac_ext <<_ACEOF
40273 /* end confdefs.h.  */
40274
40275
40276                 $ac_includes_default
40277
40278 int
40279 main ()
40280 {
40281
40282                 #ifndef $wx_func
40283                   &$wx_func;
40284                 #endif
40285
40286
40287   ;
40288   return 0;
40289 }
40290
40291 _ACEOF
40292 rm -f conftest.$ac_objext conftest$ac_exeext
40293 if { (ac_try="$ac_link"
40294 case "(($ac_try" in
40295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40296   *) ac_try_echo=$ac_try;;
40297 esac
40298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40299   (eval "$ac_link") 2>conftest.er1
40300   ac_status=$?
40301   grep -v '^ *+' conftest.er1 >conftest.err
40302   rm -f conftest.er1
40303   cat conftest.err >&5
40304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40305   (exit $ac_status); } && {
40306          test -z "$ac_c_werror_flag" ||
40307          test ! -s conftest.err
40308        } && test -s conftest$ac_exeext &&
40309        $as_test_x conftest$ac_exeext; then
40310   eval wx_cv_func_$wx_func=yes
40311 else
40312   echo "$as_me: failed program was:" >&5
40313 sed 's/^/| /' conftest.$ac_ext >&5
40314
40315         eval wx_cv_func_$wx_func=no
40316 fi
40317
40318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40319       conftest$ac_exeext conftest.$ac_ext
40320
40321 fi
40322 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40323                { echo "$as_me:$LINENO: result: $ac_res" >&5
40324 echo "${ECHO_T}$ac_res" >&6; }
40325
40326     if eval test \$wx_cv_func_$wx_func = yes
40327     then
40328       cat >>confdefs.h <<_ACEOF
40329 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40330 _ACEOF
40331
40332
40333     else
40334       :
40335
40336     fi
40337   done
40338
40339
40340
40341   for wx_func in getpwuid_r
40342   do
40343     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40344 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40345 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40346   echo $ECHO_N "(cached) $ECHO_C" >&6
40347 else
40348
40349         cat >conftest.$ac_ext <<_ACEOF
40350
40351             /* confdefs.h.  */
40352 _ACEOF
40353 cat confdefs.h >>conftest.$ac_ext
40354 cat >>conftest.$ac_ext <<_ACEOF
40355 /* end confdefs.h.  */
40356
40357
40358                     #define _REENTRANT
40359                     #include <pwd.h>
40360
40361                 $ac_includes_default
40362
40363 int
40364 main ()
40365 {
40366
40367                 #ifndef $wx_func
40368                   &$wx_func;
40369                 #endif
40370
40371                     struct passwd pw, *ppw;
40372                     char buf[1024];
40373                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
40374
40375
40376   ;
40377   return 0;
40378 }
40379
40380 _ACEOF
40381 rm -f conftest.$ac_objext conftest$ac_exeext
40382 if { (ac_try="$ac_link"
40383 case "(($ac_try" in
40384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40385   *) ac_try_echo=$ac_try;;
40386 esac
40387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40388   (eval "$ac_link") 2>conftest.er1
40389   ac_status=$?
40390   grep -v '^ *+' conftest.er1 >conftest.err
40391   rm -f conftest.er1
40392   cat conftest.err >&5
40393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40394   (exit $ac_status); } && {
40395          test -z "$ac_c_werror_flag" ||
40396          test ! -s conftest.err
40397        } && test -s conftest$ac_exeext &&
40398        $as_test_x conftest$ac_exeext; then
40399   eval wx_cv_func_$wx_func=yes
40400 else
40401   echo "$as_me: failed program was:" >&5
40402 sed 's/^/| /' conftest.$ac_ext >&5
40403
40404         eval wx_cv_func_$wx_func=no
40405 fi
40406
40407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40408       conftest$ac_exeext conftest.$ac_ext
40409
40410 fi
40411 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40412                { echo "$as_me:$LINENO: result: $ac_res" >&5
40413 echo "${ECHO_T}$ac_res" >&6; }
40414
40415     if eval test \$wx_cv_func_$wx_func = yes
40416     then
40417       cat >>confdefs.h <<_ACEOF
40418 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40419 _ACEOF
40420
40421
40422     else
40423       :
40424
40425     fi
40426   done
40427
40428
40429
40430   for wx_func in getgrgid_r
40431   do
40432     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40433 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40434 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40435   echo $ECHO_N "(cached) $ECHO_C" >&6
40436 else
40437
40438         cat >conftest.$ac_ext <<_ACEOF
40439
40440             /* confdefs.h.  */
40441 _ACEOF
40442 cat confdefs.h >>conftest.$ac_ext
40443 cat >>conftest.$ac_ext <<_ACEOF
40444 /* end confdefs.h.  */
40445
40446
40447                     #define _REENTRANT
40448                     #include <grp.h>
40449
40450                 $ac_includes_default
40451
40452 int
40453 main ()
40454 {
40455
40456                 #ifndef $wx_func
40457                   &$wx_func;
40458                 #endif
40459
40460                     struct group grp, *pgrp;
40461                     char buf[1024];
40462                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
40463
40464
40465   ;
40466   return 0;
40467 }
40468
40469 _ACEOF
40470 rm -f conftest.$ac_objext conftest$ac_exeext
40471 if { (ac_try="$ac_link"
40472 case "(($ac_try" in
40473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40474   *) ac_try_echo=$ac_try;;
40475 esac
40476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40477   (eval "$ac_link") 2>conftest.er1
40478   ac_status=$?
40479   grep -v '^ *+' conftest.er1 >conftest.err
40480   rm -f conftest.er1
40481   cat conftest.err >&5
40482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40483   (exit $ac_status); } && {
40484          test -z "$ac_c_werror_flag" ||
40485          test ! -s conftest.err
40486        } && test -s conftest$ac_exeext &&
40487        $as_test_x conftest$ac_exeext; then
40488   eval wx_cv_func_$wx_func=yes
40489 else
40490   echo "$as_me: failed program was:" >&5
40491 sed 's/^/| /' conftest.$ac_ext >&5
40492
40493         eval wx_cv_func_$wx_func=no
40494 fi
40495
40496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40497       conftest$ac_exeext conftest.$ac_ext
40498
40499 fi
40500 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40501                { echo "$as_me:$LINENO: result: $ac_res" >&5
40502 echo "${ECHO_T}$ac_res" >&6; }
40503
40504     if eval test \$wx_cv_func_$wx_func = yes
40505     then
40506       cat >>confdefs.h <<_ACEOF
40507 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40508 _ACEOF
40509
40510
40511     else
40512       :
40513
40514     fi
40515   done
40516
40517 fi
40518
40519 fi
40520
40521
40522
40523 cat >confcache <<\_ACEOF
40524 # This file is a shell script that caches the results of configure
40525 # tests run on this system so they can be shared between configure
40526 # scripts and configure runs, see configure's option --config-cache.
40527 # It is not useful on other systems.  If it contains results you don't
40528 # want to keep, you may remove or edit it.
40529 #
40530 # config.status only pays attention to the cache file if you give it
40531 # the --recheck option to rerun configure.
40532 #
40533 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40535 # following values.
40536
40537 _ACEOF
40538
40539 # The following way of writing the cache mishandles newlines in values,
40540 # but we know of no workaround that is simple, portable, and efficient.
40541 # So, we kill variables containing newlines.
40542 # Ultrix sh set writes to stderr and can't be redirected directly,
40543 # and sets the high bit in the cache file unless we assign to the vars.
40544 (
40545   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40546     eval ac_val=\$$ac_var
40547     case $ac_val in #(
40548     *${as_nl}*)
40549       case $ac_var in #(
40550       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
40551 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
40552       esac
40553       case $ac_var in #(
40554       _ | IFS | as_nl) ;; #(
40555       *) $as_unset $ac_var ;;
40556       esac ;;
40557     esac
40558   done
40559
40560   (set) 2>&1 |
40561     case $as_nl`(ac_space=' '; set) 2>&1` in #(
40562     *${as_nl}ac_space=\ *)
40563       # `set' does not quote correctly, so add quotes (double-quote
40564       # substitution turns \\\\ into \\, and sed turns \\ into \).
40565       sed -n \
40566         "s/'/'\\\\''/g;
40567           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40568       ;; #(
40569     *)
40570       # `set' quotes correctly as required by POSIX, so do not add quotes.
40571       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40572       ;;
40573     esac |
40574     sort
40575 ) |
40576   sed '
40577      /^ac_cv_env_/b end
40578      t clear
40579      :clear
40580      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40581      t end
40582      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40583      :end' >>confcache
40584 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40585   if test -w "$cache_file"; then
40586     test "x$cache_file" != "x/dev/null" &&
40587       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
40588 echo "$as_me: updating cache $cache_file" >&6;}
40589     cat confcache >$cache_file
40590   else
40591     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
40592 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40593   fi
40594 fi
40595 rm -f confcache
40596
40597
40598 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40599
40600
40601     THREADS_LINK=
40602     THREADS_CFLAGS=
40603
40604     if test "$wxUSE_THREADS" = "yes" ; then
40605         if test "$USE_BEOS" = 1; then
40606             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
40607 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
40608             wxUSE_THREADS="no"
40609         fi
40610     fi
40611
40612     if test "$wxUSE_THREADS" = "yes" ; then
40613
40614
40615                                 THREAD_OPTS="-pthread"
40616         if test "x$SUNCXX" = xyes; then
40617             THREAD_OPTS="-mt lthread $THREAD_OPTS"
40618         fi
40619
40620         case "${host}" in
40621           *-*-solaris2* | *-*-sunos4* )
40622                 if test "x$GCC" = "xyes"; then
40623                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
40624                 fi
40625                 ;;
40626           *-*-freebsd*)
40627                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
40628                 ;;
40629           *-*-darwin* | *-*-cygwin* )
40630                                                 THREAD_OPTS=""
40631                 ;;
40632           *-*-aix*)
40633                                 THREAD_OPTS="pthreads"
40634                 ;;
40635           *-hp-hpux* )
40636                 if test "x$GCC" = "xyes"; then
40637                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
40638                         THREAD_OPTS=""
40639                 else
40640                                                             THREAD_OPTS="-mt"
40641                 fi
40642                 ;;
40643
40644           *-*-irix* )
40645                                                                 if test "x$GCC" = "xyes"; then
40646                     THREAD_OPTS=""
40647                 fi
40648                 ;;
40649
40650           *-*-qnx*)
40651                                                 THREAD_OPTS=""
40652                 ;;
40653
40654           *-*-*UnixWare*)
40655                                 if test "x$GCC" != "xyes"; then
40656                     THREAD_OPTS="-Ethread"
40657                 fi
40658                 ;;
40659         esac
40660
40661         case "${host}" in
40662             *-*-qnx*)
40663                                                                 THREAD_OPTS="none pthread"
40664                 ;;
40665
40666             *)
40667                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
40668                 ;;
40669         esac
40670
40671                 THREADS_OK=no
40672         for flag in $THREAD_OPTS; do
40673             case $flag in
40674                 none)
40675                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
40676 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
40677                     ;;
40678
40679                 -*)
40680                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
40681 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
40682                     THREADS_CFLAGS="$flag"
40683                     ;;
40684
40685                 *)
40686                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
40687 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
40688                     THREADS_LINK="-l$flag"
40689                     ;;
40690               esac
40691
40692               save_LIBS="$LIBS"
40693               save_CFLAGS="$CFLAGS"
40694               LIBS="$THREADS_LINK $LIBS"
40695               CFLAGS="$THREADS_CFLAGS $CFLAGS"
40696
40697               cat >conftest.$ac_ext <<_ACEOF
40698 /* confdefs.h.  */
40699 _ACEOF
40700 cat confdefs.h >>conftest.$ac_ext
40701 cat >>conftest.$ac_ext <<_ACEOF
40702 /* end confdefs.h.  */
40703 #include <pthread.h>
40704 int
40705 main ()
40706 {
40707 pthread_create(0,0,0,0);
40708   ;
40709   return 0;
40710 }
40711 _ACEOF
40712 rm -f conftest.$ac_objext conftest$ac_exeext
40713 if { (ac_try="$ac_link"
40714 case "(($ac_try" in
40715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40716   *) ac_try_echo=$ac_try;;
40717 esac
40718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40719   (eval "$ac_link") 2>conftest.er1
40720   ac_status=$?
40721   grep -v '^ *+' conftest.er1 >conftest.err
40722   rm -f conftest.er1
40723   cat conftest.err >&5
40724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40725   (exit $ac_status); } && {
40726          test -z "$ac_c_werror_flag" ||
40727          test ! -s conftest.err
40728        } && test -s conftest$ac_exeext &&
40729        $as_test_x conftest$ac_exeext; then
40730   THREADS_OK=yes
40731 else
40732   echo "$as_me: failed program was:" >&5
40733 sed 's/^/| /' conftest.$ac_ext >&5
40734
40735
40736 fi
40737
40738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40739       conftest$ac_exeext conftest.$ac_ext
40740
40741               LIBS="$save_LIBS"
40742               CFLAGS="$save_CFLAGS"
40743
40744               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
40745 echo "${ECHO_T}$THREADS_OK" >&6; }
40746               if test "x$THREADS_OK" = "xyes"; then
40747                       break;
40748               fi
40749
40750               THREADS_LINK=""
40751               THREADS_CFLAGS=""
40752       done
40753
40754       if test "x$THREADS_OK" != "xyes"; then
40755           wxUSE_THREADS=no
40756           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
40757 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
40758       else
40759                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
40760           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
40761           LIBS="$THREADS_LINK $LIBS"
40762
40763           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
40764 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
40765           flag=no
40766           case "${host}" in
40767             *-aix*)
40768                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
40769                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
40770                 flag="-D_THREAD_SAFE"
40771                 ;;
40772             *-freebsd*)
40773                 flag="-D_THREAD_SAFE"
40774                 ;;
40775             *-hp-hpux* )
40776                 flag="-D_REENTRANT"
40777                 if test "x$GCC" != "xyes"; then
40778                                         flag="$flag -D_RWSTD_MULTI_THREAD"
40779                 fi
40780                 ;;
40781             *solaris* | alpha*-osf*)
40782                 flag="-D_REENTRANT"
40783                 ;;
40784           esac
40785           { echo "$as_me:$LINENO: result: ${flag}" >&5
40786 echo "${ECHO_T}${flag}" >&6; }
40787           if test "x$flag" != xno; then
40788               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
40789           fi
40790
40791                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
40792       fi
40793     fi
40794
40795         if test "$wxUSE_THREADS" = "yes" ; then
40796
40797 for ac_func in thr_setconcurrency
40798 do
40799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40803   echo $ECHO_N "(cached) $ECHO_C" >&6
40804 else
40805   cat >conftest.$ac_ext <<_ACEOF
40806 /* confdefs.h.  */
40807 _ACEOF
40808 cat confdefs.h >>conftest.$ac_ext
40809 cat >>conftest.$ac_ext <<_ACEOF
40810 /* end confdefs.h.  */
40811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40813 #define $ac_func innocuous_$ac_func
40814
40815 /* System header to define __stub macros and hopefully few prototypes,
40816     which can conflict with char $ac_func (); below.
40817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40818     <limits.h> exists even on freestanding compilers.  */
40819
40820 #ifdef __STDC__
40821 # include <limits.h>
40822 #else
40823 # include <assert.h>
40824 #endif
40825
40826 #undef $ac_func
40827
40828 /* Override any GCC internal prototype to avoid an error.
40829    Use char because int might match the return type of a GCC
40830    builtin and then its argument prototype would still apply.  */
40831 #ifdef __cplusplus
40832 extern "C"
40833 #endif
40834 char $ac_func ();
40835 /* The GNU C library defines this for functions which it implements
40836     to always fail with ENOSYS.  Some functions are actually named
40837     something starting with __ and the normal name is an alias.  */
40838 #if defined __stub_$ac_func || defined __stub___$ac_func
40839 choke me
40840 #endif
40841
40842 int
40843 main ()
40844 {
40845 return $ac_func ();
40846   ;
40847   return 0;
40848 }
40849 _ACEOF
40850 rm -f conftest.$ac_objext conftest$ac_exeext
40851 if { (ac_try="$ac_link"
40852 case "(($ac_try" in
40853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40854   *) ac_try_echo=$ac_try;;
40855 esac
40856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40857   (eval "$ac_link") 2>conftest.er1
40858   ac_status=$?
40859   grep -v '^ *+' conftest.er1 >conftest.err
40860   rm -f conftest.er1
40861   cat conftest.err >&5
40862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40863   (exit $ac_status); } && {
40864          test -z "$ac_c_werror_flag" ||
40865          test ! -s conftest.err
40866        } && test -s conftest$ac_exeext &&
40867        $as_test_x conftest$ac_exeext; then
40868   eval "$as_ac_var=yes"
40869 else
40870   echo "$as_me: failed program was:" >&5
40871 sed 's/^/| /' conftest.$ac_ext >&5
40872
40873         eval "$as_ac_var=no"
40874 fi
40875
40876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40877       conftest$ac_exeext conftest.$ac_ext
40878 fi
40879 ac_res=`eval echo '${'$as_ac_var'}'`
40880                { echo "$as_me:$LINENO: result: $ac_res" >&5
40881 echo "${ECHO_T}$ac_res" >&6; }
40882 if test `eval echo '${'$as_ac_var'}'` = yes; then
40883   cat >>confdefs.h <<_ACEOF
40884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40885 _ACEOF
40886
40887 fi
40888 done
40889
40890
40891                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
40892 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
40893 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
40894   echo $ECHO_N "(cached) $ECHO_C" >&6
40895 else
40896
40897                                 ac_ext=cpp
40898 ac_cpp='$CXXCPP $CPPFLAGS'
40899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40902
40903         cat >conftest.$ac_ext <<_ACEOF
40904 /* confdefs.h.  */
40905 _ACEOF
40906 cat confdefs.h >>conftest.$ac_ext
40907 cat >>conftest.$ac_ext <<_ACEOF
40908 /* end confdefs.h.  */
40909 #include <pthread.h>
40910                void ThreadCleanupFunc(void *p);
40911
40912 int
40913 main ()
40914 {
40915
40916                 void *p;
40917                 pthread_cleanup_push(ThreadCleanupFunc, p);
40918                 pthread_cleanup_pop(0);
40919
40920   ;
40921   return 0;
40922 }
40923 _ACEOF
40924 rm -f conftest.$ac_objext
40925 if { (ac_try="$ac_compile"
40926 case "(($ac_try" in
40927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40928   *) ac_try_echo=$ac_try;;
40929 esac
40930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40931   (eval "$ac_compile") 2>conftest.er1
40932   ac_status=$?
40933   grep -v '^ *+' conftest.er1 >conftest.err
40934   rm -f conftest.er1
40935   cat conftest.err >&5
40936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40937   (exit $ac_status); } && {
40938          test -z "$ac_cxx_werror_flag" ||
40939          test ! -s conftest.err
40940        } && test -s conftest.$ac_objext; then
40941
40942                wx_cv_func_pthread_cleanup=yes
40943
40944 else
40945   echo "$as_me: failed program was:" >&5
40946 sed 's/^/| /' conftest.$ac_ext >&5
40947
40948
40949                wx_cv_func_pthread_cleanup=no
40950
40951
40952 fi
40953
40954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40955         ac_ext=c
40956 ac_cpp='$CPP $CPPFLAGS'
40957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40960
40961
40962 fi
40963 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
40964 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
40965       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
40966         cat >>confdefs.h <<\_ACEOF
40967 #define wxHAVE_PTHREAD_CLEANUP 1
40968 _ACEOF
40969
40970       fi
40971
40972
40973 for ac_header in sched.h
40974 do
40975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40979   echo $ECHO_N "(cached) $ECHO_C" >&6
40980 else
40981   cat >conftest.$ac_ext <<_ACEOF
40982 /* confdefs.h.  */
40983 _ACEOF
40984 cat confdefs.h >>conftest.$ac_ext
40985 cat >>conftest.$ac_ext <<_ACEOF
40986 /* end confdefs.h.  */
40987 $ac_includes_default
40988
40989 #include <$ac_header>
40990 _ACEOF
40991 rm -f conftest.$ac_objext
40992 if { (ac_try="$ac_compile"
40993 case "(($ac_try" in
40994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40995   *) ac_try_echo=$ac_try;;
40996 esac
40997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40998   (eval "$ac_compile") 2>conftest.er1
40999   ac_status=$?
41000   grep -v '^ *+' conftest.er1 >conftest.err
41001   rm -f conftest.er1
41002   cat conftest.err >&5
41003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41004   (exit $ac_status); } && {
41005          test -z "$ac_c_werror_flag" ||
41006          test ! -s conftest.err
41007        } && test -s conftest.$ac_objext; then
41008   eval "$as_ac_Header=yes"
41009 else
41010   echo "$as_me: failed program was:" >&5
41011 sed 's/^/| /' conftest.$ac_ext >&5
41012
41013         eval "$as_ac_Header=no"
41014 fi
41015
41016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41017 fi
41018 ac_res=`eval echo '${'$as_ac_Header'}'`
41019                { echo "$as_me:$LINENO: result: $ac_res" >&5
41020 echo "${ECHO_T}$ac_res" >&6; }
41021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41022   cat >>confdefs.h <<_ACEOF
41023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41024 _ACEOF
41025
41026 fi
41027
41028 done
41029
41030       if test "$ac_cv_header_sched_h" = "yes"; then
41031           { echo "$as_me:$LINENO: checking for sched_yield" >&5
41032 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
41033 if test "${ac_cv_func_sched_yield+set}" = set; then
41034   echo $ECHO_N "(cached) $ECHO_C" >&6
41035 else
41036   cat >conftest.$ac_ext <<_ACEOF
41037 /* confdefs.h.  */
41038 _ACEOF
41039 cat confdefs.h >>conftest.$ac_ext
41040 cat >>conftest.$ac_ext <<_ACEOF
41041 /* end confdefs.h.  */
41042 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
41043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41044 #define sched_yield innocuous_sched_yield
41045
41046 /* System header to define __stub macros and hopefully few prototypes,
41047     which can conflict with char sched_yield (); below.
41048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41049     <limits.h> exists even on freestanding compilers.  */
41050
41051 #ifdef __STDC__
41052 # include <limits.h>
41053 #else
41054 # include <assert.h>
41055 #endif
41056
41057 #undef sched_yield
41058
41059 /* Override any GCC internal prototype to avoid an error.
41060    Use char because int might match the return type of a GCC
41061    builtin and then its argument prototype would still apply.  */
41062 #ifdef __cplusplus
41063 extern "C"
41064 #endif
41065 char sched_yield ();
41066 /* The GNU C library defines this for functions which it implements
41067     to always fail with ENOSYS.  Some functions are actually named
41068     something starting with __ and the normal name is an alias.  */
41069 #if defined __stub_sched_yield || defined __stub___sched_yield
41070 choke me
41071 #endif
41072
41073 int
41074 main ()
41075 {
41076 return sched_yield ();
41077   ;
41078   return 0;
41079 }
41080 _ACEOF
41081 rm -f conftest.$ac_objext conftest$ac_exeext
41082 if { (ac_try="$ac_link"
41083 case "(($ac_try" in
41084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41085   *) ac_try_echo=$ac_try;;
41086 esac
41087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41088   (eval "$ac_link") 2>conftest.er1
41089   ac_status=$?
41090   grep -v '^ *+' conftest.er1 >conftest.err
41091   rm -f conftest.er1
41092   cat conftest.err >&5
41093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41094   (exit $ac_status); } && {
41095          test -z "$ac_c_werror_flag" ||
41096          test ! -s conftest.err
41097        } && test -s conftest$ac_exeext &&
41098        $as_test_x conftest$ac_exeext; then
41099   ac_cv_func_sched_yield=yes
41100 else
41101   echo "$as_me: failed program was:" >&5
41102 sed 's/^/| /' conftest.$ac_ext >&5
41103
41104         ac_cv_func_sched_yield=no
41105 fi
41106
41107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41108       conftest$ac_exeext conftest.$ac_ext
41109 fi
41110 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
41111 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
41112 if test $ac_cv_func_sched_yield = yes; then
41113   cat >>confdefs.h <<\_ACEOF
41114 #define HAVE_SCHED_YIELD 1
41115 _ACEOF
41116
41117 else
41118
41119                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
41120 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
41121 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
41122   echo $ECHO_N "(cached) $ECHO_C" >&6
41123 else
41124   ac_check_lib_save_LIBS=$LIBS
41125 LIBS="-lposix4  $LIBS"
41126 cat >conftest.$ac_ext <<_ACEOF
41127 /* confdefs.h.  */
41128 _ACEOF
41129 cat confdefs.h >>conftest.$ac_ext
41130 cat >>conftest.$ac_ext <<_ACEOF
41131 /* end confdefs.h.  */
41132
41133 /* Override any GCC internal prototype to avoid an error.
41134    Use char because int might match the return type of a GCC
41135    builtin and then its argument prototype would still apply.  */
41136 #ifdef __cplusplus
41137 extern "C"
41138 #endif
41139 char sched_yield ();
41140 int
41141 main ()
41142 {
41143 return sched_yield ();
41144   ;
41145   return 0;
41146 }
41147 _ACEOF
41148 rm -f conftest.$ac_objext conftest$ac_exeext
41149 if { (ac_try="$ac_link"
41150 case "(($ac_try" in
41151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41152   *) ac_try_echo=$ac_try;;
41153 esac
41154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41155   (eval "$ac_link") 2>conftest.er1
41156   ac_status=$?
41157   grep -v '^ *+' conftest.er1 >conftest.err
41158   rm -f conftest.er1
41159   cat conftest.err >&5
41160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41161   (exit $ac_status); } && {
41162          test -z "$ac_c_werror_flag" ||
41163          test ! -s conftest.err
41164        } && test -s conftest$ac_exeext &&
41165        $as_test_x conftest$ac_exeext; then
41166   ac_cv_lib_posix4_sched_yield=yes
41167 else
41168   echo "$as_me: failed program was:" >&5
41169 sed 's/^/| /' conftest.$ac_ext >&5
41170
41171         ac_cv_lib_posix4_sched_yield=no
41172 fi
41173
41174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41175       conftest$ac_exeext conftest.$ac_ext
41176 LIBS=$ac_check_lib_save_LIBS
41177 fi
41178 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
41179 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
41180 if test $ac_cv_lib_posix4_sched_yield = yes; then
41181   cat >>confdefs.h <<\_ACEOF
41182 #define HAVE_SCHED_YIELD 1
41183 _ACEOF
41184  POSIX4_LINK=" -lposix4"
41185 else
41186   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
41187 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
41188
41189 fi
41190
41191
41192
41193 fi
41194
41195       fi
41196
41197                                           HAVE_PRIOR_FUNCS=0
41198       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
41199 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
41200 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
41201   echo $ECHO_N "(cached) $ECHO_C" >&6
41202 else
41203   cat >conftest.$ac_ext <<_ACEOF
41204 /* confdefs.h.  */
41205 _ACEOF
41206 cat confdefs.h >>conftest.$ac_ext
41207 cat >>conftest.$ac_ext <<_ACEOF
41208 /* end confdefs.h.  */
41209 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
41210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41211 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
41212
41213 /* System header to define __stub macros and hopefully few prototypes,
41214     which can conflict with char pthread_attr_getschedpolicy (); below.
41215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41216     <limits.h> exists even on freestanding compilers.  */
41217
41218 #ifdef __STDC__
41219 # include <limits.h>
41220 #else
41221 # include <assert.h>
41222 #endif
41223
41224 #undef pthread_attr_getschedpolicy
41225
41226 /* Override any GCC internal prototype to avoid an error.
41227    Use char because int might match the return type of a GCC
41228    builtin and then its argument prototype would still apply.  */
41229 #ifdef __cplusplus
41230 extern "C"
41231 #endif
41232 char pthread_attr_getschedpolicy ();
41233 /* The GNU C library defines this for functions which it implements
41234     to always fail with ENOSYS.  Some functions are actually named
41235     something starting with __ and the normal name is an alias.  */
41236 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
41237 choke me
41238 #endif
41239
41240 int
41241 main ()
41242 {
41243 return pthread_attr_getschedpolicy ();
41244   ;
41245   return 0;
41246 }
41247 _ACEOF
41248 rm -f conftest.$ac_objext conftest$ac_exeext
41249 if { (ac_try="$ac_link"
41250 case "(($ac_try" in
41251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41252   *) ac_try_echo=$ac_try;;
41253 esac
41254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41255   (eval "$ac_link") 2>conftest.er1
41256   ac_status=$?
41257   grep -v '^ *+' conftest.er1 >conftest.err
41258   rm -f conftest.er1
41259   cat conftest.err >&5
41260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41261   (exit $ac_status); } && {
41262          test -z "$ac_c_werror_flag" ||
41263          test ! -s conftest.err
41264        } && test -s conftest$ac_exeext &&
41265        $as_test_x conftest$ac_exeext; then
41266   ac_cv_func_pthread_attr_getschedpolicy=yes
41267 else
41268   echo "$as_me: failed program was:" >&5
41269 sed 's/^/| /' conftest.$ac_ext >&5
41270
41271         ac_cv_func_pthread_attr_getschedpolicy=no
41272 fi
41273
41274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41275       conftest$ac_exeext conftest.$ac_ext
41276 fi
41277 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
41278 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
41279 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
41280   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
41281 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
41282 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
41283   echo $ECHO_N "(cached) $ECHO_C" >&6
41284 else
41285   cat >conftest.$ac_ext <<_ACEOF
41286 /* confdefs.h.  */
41287 _ACEOF
41288 cat confdefs.h >>conftest.$ac_ext
41289 cat >>conftest.$ac_ext <<_ACEOF
41290 /* end confdefs.h.  */
41291 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
41292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41293 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
41294
41295 /* System header to define __stub macros and hopefully few prototypes,
41296     which can conflict with char pthread_attr_setschedparam (); below.
41297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41298     <limits.h> exists even on freestanding compilers.  */
41299
41300 #ifdef __STDC__
41301 # include <limits.h>
41302 #else
41303 # include <assert.h>
41304 #endif
41305
41306 #undef pthread_attr_setschedparam
41307
41308 /* Override any GCC internal prototype to avoid an error.
41309    Use char because int might match the return type of a GCC
41310    builtin and then its argument prototype would still apply.  */
41311 #ifdef __cplusplus
41312 extern "C"
41313 #endif
41314 char pthread_attr_setschedparam ();
41315 /* The GNU C library defines this for functions which it implements
41316     to always fail with ENOSYS.  Some functions are actually named
41317     something starting with __ and the normal name is an alias.  */
41318 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
41319 choke me
41320 #endif
41321
41322 int
41323 main ()
41324 {
41325 return pthread_attr_setschedparam ();
41326   ;
41327   return 0;
41328 }
41329 _ACEOF
41330 rm -f conftest.$ac_objext conftest$ac_exeext
41331 if { (ac_try="$ac_link"
41332 case "(($ac_try" in
41333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41334   *) ac_try_echo=$ac_try;;
41335 esac
41336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41337   (eval "$ac_link") 2>conftest.er1
41338   ac_status=$?
41339   grep -v '^ *+' conftest.er1 >conftest.err
41340   rm -f conftest.er1
41341   cat conftest.err >&5
41342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41343   (exit $ac_status); } && {
41344          test -z "$ac_c_werror_flag" ||
41345          test ! -s conftest.err
41346        } && test -s conftest$ac_exeext &&
41347        $as_test_x conftest$ac_exeext; then
41348   ac_cv_func_pthread_attr_setschedparam=yes
41349 else
41350   echo "$as_me: failed program was:" >&5
41351 sed 's/^/| /' conftest.$ac_ext >&5
41352
41353         ac_cv_func_pthread_attr_setschedparam=no
41354 fi
41355
41356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41357       conftest$ac_exeext conftest.$ac_ext
41358 fi
41359 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41360 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
41361 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41362   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41363 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
41364 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41365   echo $ECHO_N "(cached) $ECHO_C" >&6
41366 else
41367   cat >conftest.$ac_ext <<_ACEOF
41368 /* confdefs.h.  */
41369 _ACEOF
41370 cat confdefs.h >>conftest.$ac_ext
41371 cat >>conftest.$ac_ext <<_ACEOF
41372 /* end confdefs.h.  */
41373 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41375 #define sched_get_priority_max innocuous_sched_get_priority_max
41376
41377 /* System header to define __stub macros and hopefully few prototypes,
41378     which can conflict with char sched_get_priority_max (); below.
41379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41380     <limits.h> exists even on freestanding compilers.  */
41381
41382 #ifdef __STDC__
41383 # include <limits.h>
41384 #else
41385 # include <assert.h>
41386 #endif
41387
41388 #undef sched_get_priority_max
41389
41390 /* Override any GCC internal prototype to avoid an error.
41391    Use char because int might match the return type of a GCC
41392    builtin and then its argument prototype would still apply.  */
41393 #ifdef __cplusplus
41394 extern "C"
41395 #endif
41396 char sched_get_priority_max ();
41397 /* The GNU C library defines this for functions which it implements
41398     to always fail with ENOSYS.  Some functions are actually named
41399     something starting with __ and the normal name is an alias.  */
41400 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
41401 choke me
41402 #endif
41403
41404 int
41405 main ()
41406 {
41407 return sched_get_priority_max ();
41408   ;
41409   return 0;
41410 }
41411 _ACEOF
41412 rm -f conftest.$ac_objext conftest$ac_exeext
41413 if { (ac_try="$ac_link"
41414 case "(($ac_try" in
41415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41416   *) ac_try_echo=$ac_try;;
41417 esac
41418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41419   (eval "$ac_link") 2>conftest.er1
41420   ac_status=$?
41421   grep -v '^ *+' conftest.er1 >conftest.err
41422   rm -f conftest.er1
41423   cat conftest.err >&5
41424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41425   (exit $ac_status); } && {
41426          test -z "$ac_c_werror_flag" ||
41427          test ! -s conftest.err
41428        } && test -s conftest$ac_exeext &&
41429        $as_test_x conftest$ac_exeext; then
41430   ac_cv_func_sched_get_priority_max=yes
41431 else
41432   echo "$as_me: failed program was:" >&5
41433 sed 's/^/| /' conftest.$ac_ext >&5
41434
41435         ac_cv_func_sched_get_priority_max=no
41436 fi
41437
41438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41439       conftest$ac_exeext conftest.$ac_ext
41440 fi
41441 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
41442 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
41443 if test $ac_cv_func_sched_get_priority_max = yes; then
41444   HAVE_PRIOR_FUNCS=1
41445 else
41446   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
41447 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
41448 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
41449   echo $ECHO_N "(cached) $ECHO_C" >&6
41450 else
41451   ac_check_lib_save_LIBS=$LIBS
41452 LIBS="-lposix4  $LIBS"
41453 cat >conftest.$ac_ext <<_ACEOF
41454 /* confdefs.h.  */
41455 _ACEOF
41456 cat confdefs.h >>conftest.$ac_ext
41457 cat >>conftest.$ac_ext <<_ACEOF
41458 /* end confdefs.h.  */
41459
41460 /* Override any GCC internal prototype to avoid an error.
41461    Use char because int might match the return type of a GCC
41462    builtin and then its argument prototype would still apply.  */
41463 #ifdef __cplusplus
41464 extern "C"
41465 #endif
41466 char sched_get_priority_max ();
41467 int
41468 main ()
41469 {
41470 return sched_get_priority_max ();
41471   ;
41472   return 0;
41473 }
41474 _ACEOF
41475 rm -f conftest.$ac_objext conftest$ac_exeext
41476 if { (ac_try="$ac_link"
41477 case "(($ac_try" in
41478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41479   *) ac_try_echo=$ac_try;;
41480 esac
41481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41482   (eval "$ac_link") 2>conftest.er1
41483   ac_status=$?
41484   grep -v '^ *+' conftest.er1 >conftest.err
41485   rm -f conftest.er1
41486   cat conftest.err >&5
41487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41488   (exit $ac_status); } && {
41489          test -z "$ac_c_werror_flag" ||
41490          test ! -s conftest.err
41491        } && test -s conftest$ac_exeext &&
41492        $as_test_x conftest$ac_exeext; then
41493   ac_cv_lib_posix4_sched_get_priority_max=yes
41494 else
41495   echo "$as_me: failed program was:" >&5
41496 sed 's/^/| /' conftest.$ac_ext >&5
41497
41498         ac_cv_lib_posix4_sched_get_priority_max=no
41499 fi
41500
41501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41502       conftest$ac_exeext conftest.$ac_ext
41503 LIBS=$ac_check_lib_save_LIBS
41504 fi
41505 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
41506 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
41507 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
41508
41509                                 HAVE_PRIOR_FUNCS=1
41510                                 POSIX4_LINK=" -lposix4"
41511
41512 fi
41513
41514
41515 fi
41516
41517
41518 fi
41519
41520
41521 fi
41522
41523
41524       if test "$HAVE_PRIOR_FUNCS" = 1; then
41525         cat >>confdefs.h <<\_ACEOF
41526 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
41527 _ACEOF
41528
41529       else
41530         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
41531 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
41532       fi
41533
41534       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
41535 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
41536 if test "${ac_cv_func_pthread_cancel+set}" = set; then
41537   echo $ECHO_N "(cached) $ECHO_C" >&6
41538 else
41539   cat >conftest.$ac_ext <<_ACEOF
41540 /* confdefs.h.  */
41541 _ACEOF
41542 cat confdefs.h >>conftest.$ac_ext
41543 cat >>conftest.$ac_ext <<_ACEOF
41544 /* end confdefs.h.  */
41545 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
41546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41547 #define pthread_cancel innocuous_pthread_cancel
41548
41549 /* System header to define __stub macros and hopefully few prototypes,
41550     which can conflict with char pthread_cancel (); below.
41551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41552     <limits.h> exists even on freestanding compilers.  */
41553
41554 #ifdef __STDC__
41555 # include <limits.h>
41556 #else
41557 # include <assert.h>
41558 #endif
41559
41560 #undef pthread_cancel
41561
41562 /* Override any GCC internal prototype to avoid an error.
41563    Use char because int might match the return type of a GCC
41564    builtin and then its argument prototype would still apply.  */
41565 #ifdef __cplusplus
41566 extern "C"
41567 #endif
41568 char pthread_cancel ();
41569 /* The GNU C library defines this for functions which it implements
41570     to always fail with ENOSYS.  Some functions are actually named
41571     something starting with __ and the normal name is an alias.  */
41572 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
41573 choke me
41574 #endif
41575
41576 int
41577 main ()
41578 {
41579 return pthread_cancel ();
41580   ;
41581   return 0;
41582 }
41583 _ACEOF
41584 rm -f conftest.$ac_objext conftest$ac_exeext
41585 if { (ac_try="$ac_link"
41586 case "(($ac_try" in
41587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41588   *) ac_try_echo=$ac_try;;
41589 esac
41590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41591   (eval "$ac_link") 2>conftest.er1
41592   ac_status=$?
41593   grep -v '^ *+' conftest.er1 >conftest.err
41594   rm -f conftest.er1
41595   cat conftest.err >&5
41596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41597   (exit $ac_status); } && {
41598          test -z "$ac_c_werror_flag" ||
41599          test ! -s conftest.err
41600        } && test -s conftest$ac_exeext &&
41601        $as_test_x conftest$ac_exeext; then
41602   ac_cv_func_pthread_cancel=yes
41603 else
41604   echo "$as_me: failed program was:" >&5
41605 sed 's/^/| /' conftest.$ac_ext >&5
41606
41607         ac_cv_func_pthread_cancel=no
41608 fi
41609
41610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41611       conftest$ac_exeext conftest.$ac_ext
41612 fi
41613 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
41614 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
41615 if test $ac_cv_func_pthread_cancel = yes; then
41616   cat >>confdefs.h <<\_ACEOF
41617 #define HAVE_PTHREAD_CANCEL 1
41618 _ACEOF
41619
41620 else
41621   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
41622 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
41623 fi
41624
41625
41626       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
41627 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
41628 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
41629   echo $ECHO_N "(cached) $ECHO_C" >&6
41630 else
41631   cat >conftest.$ac_ext <<_ACEOF
41632 /* confdefs.h.  */
41633 _ACEOF
41634 cat confdefs.h >>conftest.$ac_ext
41635 cat >>conftest.$ac_ext <<_ACEOF
41636 /* end confdefs.h.  */
41637 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
41638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41639 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
41640
41641 /* System header to define __stub macros and hopefully few prototypes,
41642     which can conflict with char pthread_mutex_timedlock (); below.
41643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41644     <limits.h> exists even on freestanding compilers.  */
41645
41646 #ifdef __STDC__
41647 # include <limits.h>
41648 #else
41649 # include <assert.h>
41650 #endif
41651
41652 #undef pthread_mutex_timedlock
41653
41654 /* Override any GCC internal prototype to avoid an error.
41655    Use char because int might match the return type of a GCC
41656    builtin and then its argument prototype would still apply.  */
41657 #ifdef __cplusplus
41658 extern "C"
41659 #endif
41660 char pthread_mutex_timedlock ();
41661 /* The GNU C library defines this for functions which it implements
41662     to always fail with ENOSYS.  Some functions are actually named
41663     something starting with __ and the normal name is an alias.  */
41664 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
41665 choke me
41666 #endif
41667
41668 int
41669 main ()
41670 {
41671 return pthread_mutex_timedlock ();
41672   ;
41673   return 0;
41674 }
41675 _ACEOF
41676 rm -f conftest.$ac_objext conftest$ac_exeext
41677 if { (ac_try="$ac_link"
41678 case "(($ac_try" in
41679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41680   *) ac_try_echo=$ac_try;;
41681 esac
41682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41683   (eval "$ac_link") 2>conftest.er1
41684   ac_status=$?
41685   grep -v '^ *+' conftest.er1 >conftest.err
41686   rm -f conftest.er1
41687   cat conftest.err >&5
41688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41689   (exit $ac_status); } && {
41690          test -z "$ac_c_werror_flag" ||
41691          test ! -s conftest.err
41692        } && test -s conftest$ac_exeext &&
41693        $as_test_x conftest$ac_exeext; then
41694   ac_cv_func_pthread_mutex_timedlock=yes
41695 else
41696   echo "$as_me: failed program was:" >&5
41697 sed 's/^/| /' conftest.$ac_ext >&5
41698
41699         ac_cv_func_pthread_mutex_timedlock=no
41700 fi
41701
41702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41703       conftest$ac_exeext conftest.$ac_ext
41704 fi
41705 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
41706 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
41707 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
41708   cat >>confdefs.h <<\_ACEOF
41709 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
41710 _ACEOF
41711
41712 else
41713   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
41714 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
41715 fi
41716
41717
41718       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
41719 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
41720 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
41721   echo $ECHO_N "(cached) $ECHO_C" >&6
41722 else
41723   cat >conftest.$ac_ext <<_ACEOF
41724 /* confdefs.h.  */
41725 _ACEOF
41726 cat confdefs.h >>conftest.$ac_ext
41727 cat >>conftest.$ac_ext <<_ACEOF
41728 /* end confdefs.h.  */
41729 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
41730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41731 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
41732
41733 /* System header to define __stub macros and hopefully few prototypes,
41734     which can conflict with char pthread_attr_setstacksize (); below.
41735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41736     <limits.h> exists even on freestanding compilers.  */
41737
41738 #ifdef __STDC__
41739 # include <limits.h>
41740 #else
41741 # include <assert.h>
41742 #endif
41743
41744 #undef pthread_attr_setstacksize
41745
41746 /* Override any GCC internal prototype to avoid an error.
41747    Use char because int might match the return type of a GCC
41748    builtin and then its argument prototype would still apply.  */
41749 #ifdef __cplusplus
41750 extern "C"
41751 #endif
41752 char pthread_attr_setstacksize ();
41753 /* The GNU C library defines this for functions which it implements
41754     to always fail with ENOSYS.  Some functions are actually named
41755     something starting with __ and the normal name is an alias.  */
41756 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
41757 choke me
41758 #endif
41759
41760 int
41761 main ()
41762 {
41763 return pthread_attr_setstacksize ();
41764   ;
41765   return 0;
41766 }
41767 _ACEOF
41768 rm -f conftest.$ac_objext conftest$ac_exeext
41769 if { (ac_try="$ac_link"
41770 case "(($ac_try" in
41771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41772   *) ac_try_echo=$ac_try;;
41773 esac
41774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41775   (eval "$ac_link") 2>conftest.er1
41776   ac_status=$?
41777   grep -v '^ *+' conftest.er1 >conftest.err
41778   rm -f conftest.er1
41779   cat conftest.err >&5
41780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41781   (exit $ac_status); } && {
41782          test -z "$ac_c_werror_flag" ||
41783          test ! -s conftest.err
41784        } && test -s conftest$ac_exeext &&
41785        $as_test_x conftest$ac_exeext; then
41786   ac_cv_func_pthread_attr_setstacksize=yes
41787 else
41788   echo "$as_me: failed program was:" >&5
41789 sed 's/^/| /' conftest.$ac_ext >&5
41790
41791         ac_cv_func_pthread_attr_setstacksize=no
41792 fi
41793
41794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41795       conftest$ac_exeext conftest.$ac_ext
41796 fi
41797 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
41798 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
41799 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
41800   cat >>confdefs.h <<\_ACEOF
41801 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
41802 _ACEOF
41803
41804 fi
41805
41806
41807
41808       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
41809 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
41810 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
41811   echo $ECHO_N "(cached) $ECHO_C" >&6
41812 else
41813
41814         cat >conftest.$ac_ext <<_ACEOF
41815 /* confdefs.h.  */
41816 _ACEOF
41817 cat confdefs.h >>conftest.$ac_ext
41818 cat >>conftest.$ac_ext <<_ACEOF
41819 /* end confdefs.h.  */
41820 #include <pthread.h>
41821 int
41822 main ()
41823 {
41824
41825                pthread_mutexattr_t attr;
41826                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41827
41828   ;
41829   return 0;
41830 }
41831 _ACEOF
41832 rm -f conftest.$ac_objext
41833 if { (ac_try="$ac_compile"
41834 case "(($ac_try" in
41835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41836   *) ac_try_echo=$ac_try;;
41837 esac
41838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41839   (eval "$ac_compile") 2>conftest.er1
41840   ac_status=$?
41841   grep -v '^ *+' conftest.er1 >conftest.err
41842   rm -f conftest.er1
41843   cat conftest.err >&5
41844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41845   (exit $ac_status); } && {
41846          test -z "$ac_c_werror_flag" ||
41847          test ! -s conftest.err
41848        } && test -s conftest.$ac_objext; then
41849   wx_cv_type_pthread_mutexattr_t=yes
41850 else
41851   echo "$as_me: failed program was:" >&5
41852 sed 's/^/| /' conftest.$ac_ext >&5
41853
41854         wx_cv_type_pthread_mutexattr_t=no
41855
41856 fi
41857
41858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41859
41860 fi
41861 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
41862 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
41863
41864       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
41865         cat >>confdefs.h <<\_ACEOF
41866 #define HAVE_PTHREAD_MUTEXATTR_T 1
41867 _ACEOF
41868
41869
41870                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
41871 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
41872 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
41873   echo $ECHO_N "(cached) $ECHO_C" >&6
41874 else
41875
41876                        cat >conftest.$ac_ext <<_ACEOF
41877 /* confdefs.h.  */
41878 _ACEOF
41879 cat confdefs.h >>conftest.$ac_ext
41880 cat >>conftest.$ac_ext <<_ACEOF
41881 /* end confdefs.h.  */
41882 #include <pthread.h>
41883 int
41884 main ()
41885 {
41886
41887                                pthread_mutexattr_t attr;
41888                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41889
41890   ;
41891   return 0;
41892 }
41893 _ACEOF
41894 rm -f conftest.$ac_objext
41895 if { (ac_try="$ac_compile"
41896 case "(($ac_try" in
41897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41898   *) ac_try_echo=$ac_try;;
41899 esac
41900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41901   (eval "$ac_compile") 2>conftest.er1
41902   ac_status=$?
41903   grep -v '^ *+' conftest.er1 >conftest.err
41904   rm -f conftest.er1
41905   cat conftest.err >&5
41906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41907   (exit $ac_status); } && {
41908          test -z "$ac_c_werror_flag" ||
41909          test ! -s conftest.err
41910        } && test -s conftest.$ac_objext; then
41911   wx_cv_func_pthread_mutexattr_settype_decl=yes
41912 else
41913   echo "$as_me: failed program was:" >&5
41914 sed 's/^/| /' conftest.$ac_ext >&5
41915
41916         wx_cv_func_pthread_mutexattr_settype_decl=no
41917
41918 fi
41919
41920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41921
41922 fi
41923 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
41924 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
41925         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
41926             cat >>confdefs.h <<\_ACEOF
41927 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
41928 _ACEOF
41929
41930         fi
41931       else
41932                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
41933 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
41934 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
41935   echo $ECHO_N "(cached) $ECHO_C" >&6
41936 else
41937
41938             cat >conftest.$ac_ext <<_ACEOF
41939 /* confdefs.h.  */
41940 _ACEOF
41941 cat confdefs.h >>conftest.$ac_ext
41942 cat >>conftest.$ac_ext <<_ACEOF
41943 /* end confdefs.h.  */
41944 #include <pthread.h>
41945 int
41946 main ()
41947 {
41948
41949                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
41950
41951   ;
41952   return 0;
41953 }
41954 _ACEOF
41955 rm -f conftest.$ac_objext
41956 if { (ac_try="$ac_compile"
41957 case "(($ac_try" in
41958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41959   *) ac_try_echo=$ac_try;;
41960 esac
41961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41962   (eval "$ac_compile") 2>conftest.er1
41963   ac_status=$?
41964   grep -v '^ *+' conftest.er1 >conftest.err
41965   rm -f conftest.er1
41966   cat conftest.err >&5
41967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41968   (exit $ac_status); } && {
41969          test -z "$ac_c_werror_flag" ||
41970          test ! -s conftest.err
41971        } && test -s conftest.$ac_objext; then
41972
41973                     wx_cv_type_pthread_rec_mutex_init=yes
41974
41975 else
41976   echo "$as_me: failed program was:" >&5
41977 sed 's/^/| /' conftest.$ac_ext >&5
41978
41979
41980                     wx_cv_type_pthread_rec_mutex_init=no
41981
41982
41983 fi
41984
41985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41986
41987 fi
41988 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
41989 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
41990         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
41991           cat >>confdefs.h <<\_ACEOF
41992 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
41993 _ACEOF
41994
41995         else
41996                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
41997 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
41998         fi
41999       fi
42000
42001       if test "$wxUSE_COMPILER_TLS" = "auto"; then
42002           if test "$USE_NETBSD" = 1; then
42003               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
42004 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
42005               wxUSE_COMPILER_TLS=no
42006           else
42007               wxUSE_COMPILER_TLS=yes
42008           fi
42009       fi
42010
42011       if test "$wxUSE_COMPILER_TLS" = "yes"; then
42012                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
42013 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
42014 if test "${wx_cv_cc___thread+set}" = set; then
42015   echo $ECHO_N "(cached) $ECHO_C" >&6
42016 else
42017
42018                   cat >conftest.$ac_ext <<_ACEOF
42019 /* confdefs.h.  */
42020 _ACEOF
42021 cat confdefs.h >>conftest.$ac_ext
42022 cat >>conftest.$ac_ext <<_ACEOF
42023 /* end confdefs.h.  */
42024 #include <pthread.h>
42025 int
42026 main ()
42027 {
42028
42029                           static __thread int n = 0;
42030                           static __thread int *p = 0;
42031
42032   ;
42033   return 0;
42034 }
42035 _ACEOF
42036 rm -f conftest.$ac_objext
42037 if { (ac_try="$ac_compile"
42038 case "(($ac_try" in
42039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42040   *) ac_try_echo=$ac_try;;
42041 esac
42042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42043   (eval "$ac_compile") 2>conftest.er1
42044   ac_status=$?
42045   grep -v '^ *+' conftest.er1 >conftest.err
42046   rm -f conftest.er1
42047   cat conftest.err >&5
42048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049   (exit $ac_status); } && {
42050          test -z "$ac_c_werror_flag" ||
42051          test ! -s conftest.err
42052        } && test -s conftest.$ac_objext; then
42053   wx_cv_cc___thread=yes
42054 else
42055   echo "$as_me: failed program was:" >&5
42056 sed 's/^/| /' conftest.$ac_ext >&5
42057
42058         wx_cv_cc___thread=no
42059
42060 fi
42061
42062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42063
42064
42065 fi
42066 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
42067 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
42068
42069           if test "$wx_cv_cc___thread" = "yes"; then
42070
42071   GXX_VERSION=""
42072
42073
42074
42075   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
42076 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
42077
42078   if  test "x$GCC" = "xyes" ; then
42079
42080     if  test -z "" ; then
42081
42082       ax_gcc_option_test="int main()
42083 {
42084         return 0;
42085 }"
42086
42087 else
42088
42089       ax_gcc_option_test=""
42090
42091 fi
42092
42093
42094     # Dump the test program to file
42095     cat <<EOF > conftest.c
42096 $ax_gcc_option_test
42097 EOF
42098
42099     # Dump back the file to the log, useful for debugging purposes
42100     { ac_try='cat conftest.c 1>&5'
42101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42102   (eval $ac_try) 2>&5
42103   ac_status=$?
42104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42105   (exit $ac_status); }; }
42106
42107     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
42108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42109   (eval $ac_try) 2>&5
42110   ac_status=$?
42111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42112   (exit $ac_status); }; } ; then
42113
42114                 { echo "$as_me:$LINENO: result: yes" >&5
42115 echo "${ECHO_T}yes" >&6; }
42116
42117     ax_gcc_version_option=yes
42118
42119
42120 else
42121
42122                 { echo "$as_me:$LINENO: result: no" >&5
42123 echo "${ECHO_T}no" >&6; }
42124
42125     ax_gcc_version_option=no
42126
42127
42128 fi
42129
42130
42131 else
42132
42133     { echo "$as_me:$LINENO: result: no gcc available" >&5
42134 echo "${ECHO_T}no gcc available" >&6; }
42135
42136 fi
42137
42138
42139   if test "x$GXX" = "xyes"; then
42140
42141     if test "x$ax_gxx_version_option" != "no"; then
42142
42143       { echo "$as_me:$LINENO: checking gxx version" >&5
42144 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
42145 if test "${ax_cv_gxx_version+set}" = set; then
42146   echo $ECHO_N "(cached) $ECHO_C" >&6
42147 else
42148
42149         ax_cv_gxx_version="`$CXX -dumpversion`"
42150         if test "x$ax_cv_gxx_version" = "x"; then
42151
42152           ax_cv_gxx_version=""
42153
42154 fi
42155
42156
42157 fi
42158 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
42159 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
42160       GXX_VERSION=$ax_cv_gxx_version
42161
42162 fi
42163
42164
42165 fi
42166
42167
42168
42169               if test -n "$ax_cv_gxx_version"; then
42170                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
42171 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
42172                   case "$ax_cv_gxx_version" in
42173                     1.* | 2.* | 3.* )
42174                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
42175 echo "${ECHO_T}no, it's broken" >&6; }
42176                         wx_cv_cc___thread=no
42177                         ;;
42178                     *)
42179                         { echo "$as_me:$LINENO: result: yes, it works" >&5
42180 echo "${ECHO_T}yes, it works" >&6; }
42181                         ;;
42182                   esac
42183               fi
42184           fi
42185
42186           if test "$wx_cv_cc___thread" = "yes"; then
42187             cat >>confdefs.h <<\_ACEOF
42188 #define HAVE___THREAD_KEYWORD 1
42189 _ACEOF
42190
42191           fi
42192         fi
42193     fi
42194
42195 else
42196     if test "$wxUSE_THREADS" = "yes" ; then
42197       case "${host}" in
42198         x86_64-*-mingw32* )
42199         ;;
42200         *-*-mingw32* )
42201                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
42202 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
42203 if test "${wx_cv_cflags_mthread+set}" = set; then
42204   echo $ECHO_N "(cached) $ECHO_C" >&6
42205 else
42206
42207                     CFLAGS_OLD="$CFLAGS"
42208                     CFLAGS="-mthreads $CFLAGS"
42209                     cat >conftest.$ac_ext <<_ACEOF
42210 /* confdefs.h.  */
42211 _ACEOF
42212 cat confdefs.h >>conftest.$ac_ext
42213 cat >>conftest.$ac_ext <<_ACEOF
42214 /* end confdefs.h.  */
42215
42216 int
42217 main ()
42218 {
42219
42220   ;
42221   return 0;
42222 }
42223 _ACEOF
42224 rm -f conftest.$ac_objext
42225 if { (ac_try="$ac_compile"
42226 case "(($ac_try" in
42227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42228   *) ac_try_echo=$ac_try;;
42229 esac
42230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42231   (eval "$ac_compile") 2>conftest.er1
42232   ac_status=$?
42233   grep -v '^ *+' conftest.er1 >conftest.err
42234   rm -f conftest.er1
42235   cat conftest.err >&5
42236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42237   (exit $ac_status); } && {
42238          test -z "$ac_c_werror_flag" ||
42239          test ! -s conftest.err
42240        } && test -s conftest.$ac_objext; then
42241   wx_cv_cflags_mthread=yes
42242 else
42243   echo "$as_me: failed program was:" >&5
42244 sed 's/^/| /' conftest.$ac_ext >&5
42245
42246         wx_cv_cflags_mthread=no
42247
42248 fi
42249
42250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42251
42252
42253 fi
42254 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
42255 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
42256
42257             if test "$wx_cv_cflags_mthread" = "yes"; then
42258                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
42259                 LDFLAGS="$LDFLAGS -mthreads"
42260             else
42261                                 CFLAGS="$CFLAGS_OLD"
42262             fi
42263         ;;
42264         *-pc-os2*emx )
42265             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
42266             LDFLAGS="$LDFLAGS -Zmt"
42267         ;;
42268       esac
42269     fi
42270 fi
42271
42272 { echo "$as_me:$LINENO: checking for localtime_r" >&5
42273 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
42274 if test "${ac_cv_func_localtime_r+set}" = set; then
42275   echo $ECHO_N "(cached) $ECHO_C" >&6
42276 else
42277   cat >conftest.$ac_ext <<_ACEOF
42278 /* confdefs.h.  */
42279 _ACEOF
42280 cat confdefs.h >>conftest.$ac_ext
42281 cat >>conftest.$ac_ext <<_ACEOF
42282 /* end confdefs.h.  */
42283 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
42284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42285 #define localtime_r innocuous_localtime_r
42286
42287 /* System header to define __stub macros and hopefully few prototypes,
42288     which can conflict with char localtime_r (); below.
42289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42290     <limits.h> exists even on freestanding compilers.  */
42291
42292 #ifdef __STDC__
42293 # include <limits.h>
42294 #else
42295 # include <assert.h>
42296 #endif
42297
42298 #undef localtime_r
42299
42300 /* Override any GCC internal prototype to avoid an error.
42301    Use char because int might match the return type of a GCC
42302    builtin and then its argument prototype would still apply.  */
42303 #ifdef __cplusplus
42304 extern "C"
42305 #endif
42306 char localtime_r ();
42307 /* The GNU C library defines this for functions which it implements
42308     to always fail with ENOSYS.  Some functions are actually named
42309     something starting with __ and the normal name is an alias.  */
42310 #if defined __stub_localtime_r || defined __stub___localtime_r
42311 choke me
42312 #endif
42313
42314 int
42315 main ()
42316 {
42317 return localtime_r ();
42318   ;
42319   return 0;
42320 }
42321 _ACEOF
42322 rm -f conftest.$ac_objext conftest$ac_exeext
42323 if { (ac_try="$ac_link"
42324 case "(($ac_try" in
42325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42326   *) ac_try_echo=$ac_try;;
42327 esac
42328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42329   (eval "$ac_link") 2>conftest.er1
42330   ac_status=$?
42331   grep -v '^ *+' conftest.er1 >conftest.err
42332   rm -f conftest.er1
42333   cat conftest.err >&5
42334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42335   (exit $ac_status); } && {
42336          test -z "$ac_c_werror_flag" ||
42337          test ! -s conftest.err
42338        } && test -s conftest$ac_exeext &&
42339        $as_test_x conftest$ac_exeext; then
42340   ac_cv_func_localtime_r=yes
42341 else
42342   echo "$as_me: failed program was:" >&5
42343 sed 's/^/| /' conftest.$ac_ext >&5
42344
42345         ac_cv_func_localtime_r=no
42346 fi
42347
42348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42349       conftest$ac_exeext conftest.$ac_ext
42350 fi
42351 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42352 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42353 if test $ac_cv_func_localtime_r = yes; then
42354    cat >>confdefs.h <<\_ACEOF
42355 #define HAVE_LOCALTIME_R 1
42356 _ACEOF
42357
42358 fi
42359
42360 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42361 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42362 if test "${ac_cv_func_gmtime_r+set}" = set; then
42363   echo $ECHO_N "(cached) $ECHO_C" >&6
42364 else
42365   cat >conftest.$ac_ext <<_ACEOF
42366 /* confdefs.h.  */
42367 _ACEOF
42368 cat confdefs.h >>conftest.$ac_ext
42369 cat >>conftest.$ac_ext <<_ACEOF
42370 /* end confdefs.h.  */
42371 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42373 #define gmtime_r innocuous_gmtime_r
42374
42375 /* System header to define __stub macros and hopefully few prototypes,
42376     which can conflict with char gmtime_r (); below.
42377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42378     <limits.h> exists even on freestanding compilers.  */
42379
42380 #ifdef __STDC__
42381 # include <limits.h>
42382 #else
42383 # include <assert.h>
42384 #endif
42385
42386 #undef gmtime_r
42387
42388 /* Override any GCC internal prototype to avoid an error.
42389    Use char because int might match the return type of a GCC
42390    builtin and then its argument prototype would still apply.  */
42391 #ifdef __cplusplus
42392 extern "C"
42393 #endif
42394 char gmtime_r ();
42395 /* The GNU C library defines this for functions which it implements
42396     to always fail with ENOSYS.  Some functions are actually named
42397     something starting with __ and the normal name is an alias.  */
42398 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42399 choke me
42400 #endif
42401
42402 int
42403 main ()
42404 {
42405 return gmtime_r ();
42406   ;
42407   return 0;
42408 }
42409 _ACEOF
42410 rm -f conftest.$ac_objext conftest$ac_exeext
42411 if { (ac_try="$ac_link"
42412 case "(($ac_try" in
42413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42414   *) ac_try_echo=$ac_try;;
42415 esac
42416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42417   (eval "$ac_link") 2>conftest.er1
42418   ac_status=$?
42419   grep -v '^ *+' conftest.er1 >conftest.err
42420   rm -f conftest.er1
42421   cat conftest.err >&5
42422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42423   (exit $ac_status); } && {
42424          test -z "$ac_c_werror_flag" ||
42425          test ! -s conftest.err
42426        } && test -s conftest$ac_exeext &&
42427        $as_test_x conftest$ac_exeext; then
42428   ac_cv_func_gmtime_r=yes
42429 else
42430   echo "$as_me: failed program was:" >&5
42431 sed 's/^/| /' conftest.$ac_ext >&5
42432
42433         ac_cv_func_gmtime_r=no
42434 fi
42435
42436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42437       conftest$ac_exeext conftest.$ac_ext
42438 fi
42439 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42440 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42441 if test $ac_cv_func_gmtime_r = yes; then
42442    cat >>confdefs.h <<\_ACEOF
42443 #define HAVE_GMTIME_R 1
42444 _ACEOF
42445
42446 fi
42447
42448
42449
42450
42451     ac_ext=c
42452 ac_cpp='$CPP $CPPFLAGS'
42453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42456
42457     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42458 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42459
42460     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42461   echo $ECHO_N "(cached) $ECHO_C" >&6
42462 else
42463
42464
42465 ################################################################
42466
42467 ac_cv_func_which_gethostbyname_r=unknown
42468
42469 #
42470 # ONE ARGUMENT (sanity check)
42471 #
42472
42473 # This should fail, as there is no variant of gethostbyname_r() that takes
42474 # a single argument. If it actually compiles, then we can assume that
42475 # netdb.h is not declaring the function, and the compiler is thereby
42476 # assuming an implicit prototype. In which case, we're out of luck.
42477 #
42478 cat >conftest.$ac_ext <<_ACEOF
42479 /* confdefs.h.  */
42480 _ACEOF
42481 cat confdefs.h >>conftest.$ac_ext
42482 cat >>conftest.$ac_ext <<_ACEOF
42483 /* end confdefs.h.  */
42484 #include <netdb.h>
42485 int
42486 main ()
42487 {
42488
42489             char *name = "www.gnu.org";
42490             (void)gethostbyname_r(name) /* ; */
42491
42492   ;
42493   return 0;
42494 }
42495 _ACEOF
42496 rm -f conftest.$ac_objext
42497 if { (ac_try="$ac_compile"
42498 case "(($ac_try" in
42499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42500   *) ac_try_echo=$ac_try;;
42501 esac
42502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42503   (eval "$ac_compile") 2>conftest.er1
42504   ac_status=$?
42505   grep -v '^ *+' conftest.er1 >conftest.err
42506   rm -f conftest.er1
42507   cat conftest.err >&5
42508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42509   (exit $ac_status); } && {
42510          test -z "$ac_c_werror_flag" ||
42511          test ! -s conftest.err
42512        } && test -s conftest.$ac_objext; then
42513   ac_cv_func_which_gethostbyname_r=no
42514 else
42515   echo "$as_me: failed program was:" >&5
42516 sed 's/^/| /' conftest.$ac_ext >&5
42517
42518
42519 fi
42520
42521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42522
42523 #
42524 # SIX ARGUMENTS
42525 # (e.g. Linux)
42526 #
42527
42528 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42529
42530 cat >conftest.$ac_ext <<_ACEOF
42531 /* confdefs.h.  */
42532 _ACEOF
42533 cat confdefs.h >>conftest.$ac_ext
42534 cat >>conftest.$ac_ext <<_ACEOF
42535 /* end confdefs.h.  */
42536 #include <netdb.h>
42537 int
42538 main ()
42539 {
42540
42541             char *name = "www.gnu.org";
42542             struct hostent ret, *retp;
42543             char buf[1024];
42544             int buflen = 1024;
42545             int my_h_errno;
42546             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42547
42548   ;
42549   return 0;
42550 }
42551 _ACEOF
42552 rm -f conftest.$ac_objext
42553 if { (ac_try="$ac_compile"
42554 case "(($ac_try" in
42555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42556   *) ac_try_echo=$ac_try;;
42557 esac
42558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42559   (eval "$ac_compile") 2>conftest.er1
42560   ac_status=$?
42561   grep -v '^ *+' conftest.er1 >conftest.err
42562   rm -f conftest.er1
42563   cat conftest.err >&5
42564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42565   (exit $ac_status); } && {
42566          test -z "$ac_c_werror_flag" ||
42567          test ! -s conftest.err
42568        } && test -s conftest.$ac_objext; then
42569   ac_cv_func_which_gethostbyname_r=six
42570 else
42571   echo "$as_me: failed program was:" >&5
42572 sed 's/^/| /' conftest.$ac_ext >&5
42573
42574
42575 fi
42576
42577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42578
42579 fi
42580
42581 #
42582 # FIVE ARGUMENTS
42583 # (e.g. Solaris)
42584 #
42585
42586 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42587
42588 cat >conftest.$ac_ext <<_ACEOF
42589 /* confdefs.h.  */
42590 _ACEOF
42591 cat confdefs.h >>conftest.$ac_ext
42592 cat >>conftest.$ac_ext <<_ACEOF
42593 /* end confdefs.h.  */
42594 #include <netdb.h>
42595 int
42596 main ()
42597 {
42598
42599             char *name = "www.gnu.org";
42600             struct hostent ret;
42601             char buf[1024];
42602             int buflen = 1024;
42603             int my_h_errno;
42604             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
42605
42606   ;
42607   return 0;
42608 }
42609 _ACEOF
42610 rm -f conftest.$ac_objext
42611 if { (ac_try="$ac_compile"
42612 case "(($ac_try" in
42613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42614   *) ac_try_echo=$ac_try;;
42615 esac
42616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42617   (eval "$ac_compile") 2>conftest.er1
42618   ac_status=$?
42619   grep -v '^ *+' conftest.er1 >conftest.err
42620   rm -f conftest.er1
42621   cat conftest.err >&5
42622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42623   (exit $ac_status); } && {
42624          test -z "$ac_c_werror_flag" ||
42625          test ! -s conftest.err
42626        } && test -s conftest.$ac_objext; then
42627   ac_cv_func_which_gethostbyname_r=five
42628 else
42629   echo "$as_me: failed program was:" >&5
42630 sed 's/^/| /' conftest.$ac_ext >&5
42631
42632
42633 fi
42634
42635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42636
42637 fi
42638
42639 #
42640 # THREE ARGUMENTS
42641 # (e.g. AIX, HP-UX, Tru64)
42642 #
42643
42644 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42645
42646 cat >conftest.$ac_ext <<_ACEOF
42647 /* confdefs.h.  */
42648 _ACEOF
42649 cat confdefs.h >>conftest.$ac_ext
42650 cat >>conftest.$ac_ext <<_ACEOF
42651 /* end confdefs.h.  */
42652 #include <netdb.h>
42653 int
42654 main ()
42655 {
42656
42657             char *name = "www.gnu.org";
42658             struct hostent ret;
42659             struct hostent_data data;
42660             (void)gethostbyname_r(name, &ret, &data) /* ; */
42661
42662   ;
42663   return 0;
42664 }
42665 _ACEOF
42666 rm -f conftest.$ac_objext
42667 if { (ac_try="$ac_compile"
42668 case "(($ac_try" in
42669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42670   *) ac_try_echo=$ac_try;;
42671 esac
42672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42673   (eval "$ac_compile") 2>conftest.er1
42674   ac_status=$?
42675   grep -v '^ *+' conftest.er1 >conftest.err
42676   rm -f conftest.er1
42677   cat conftest.err >&5
42678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42679   (exit $ac_status); } && {
42680          test -z "$ac_c_werror_flag" ||
42681          test ! -s conftest.err
42682        } && test -s conftest.$ac_objext; then
42683   ac_cv_func_which_gethostbyname_r=three
42684 else
42685   echo "$as_me: failed program was:" >&5
42686 sed 's/^/| /' conftest.$ac_ext >&5
42687
42688
42689 fi
42690
42691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42692
42693 fi
42694
42695 ################################################################
42696
42697
42698 fi
42699
42700 case "$ac_cv_func_which_gethostbyname_r" in
42701     three)
42702     { echo "$as_me:$LINENO: result: three" >&5
42703 echo "${ECHO_T}three" >&6; }
42704     cat >>confdefs.h <<\_ACEOF
42705 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
42706 _ACEOF
42707
42708     ;;
42709
42710     five)
42711     { echo "$as_me:$LINENO: result: five" >&5
42712 echo "${ECHO_T}five" >&6; }
42713     cat >>confdefs.h <<\_ACEOF
42714 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
42715 _ACEOF
42716
42717     ;;
42718
42719     six)
42720     { echo "$as_me:$LINENO: result: six" >&5
42721 echo "${ECHO_T}six" >&6; }
42722     cat >>confdefs.h <<\_ACEOF
42723 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
42724 _ACEOF
42725
42726     ;;
42727
42728     no)
42729     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
42730 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
42731     ;;
42732
42733     unknown)
42734     { echo "$as_me:$LINENO: result: can't tell" >&5
42735 echo "${ECHO_T}can't tell" >&6; }
42736     ;;
42737
42738     *)
42739     { { echo "$as_me:$LINENO: error: internal error" >&5
42740 echo "$as_me: error: internal error" >&2;}
42741    { (exit 1); exit 1; }; }
42742     ;;
42743 esac
42744
42745 ac_ext=c
42746 ac_cpp='$CPP $CPPFLAGS'
42747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42750
42751
42752
42753       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
42754               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
42755           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
42756 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
42757 if test "${ac_cv_func_gethostbyname+set}" = set; then
42758   echo $ECHO_N "(cached) $ECHO_C" >&6
42759 else
42760   cat >conftest.$ac_ext <<_ACEOF
42761 /* confdefs.h.  */
42762 _ACEOF
42763 cat confdefs.h >>conftest.$ac_ext
42764 cat >>conftest.$ac_ext <<_ACEOF
42765 /* end confdefs.h.  */
42766 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
42767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42768 #define gethostbyname innocuous_gethostbyname
42769
42770 /* System header to define __stub macros and hopefully few prototypes,
42771     which can conflict with char gethostbyname (); below.
42772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42773     <limits.h> exists even on freestanding compilers.  */
42774
42775 #ifdef __STDC__
42776 # include <limits.h>
42777 #else
42778 # include <assert.h>
42779 #endif
42780
42781 #undef gethostbyname
42782
42783 /* Override any GCC internal prototype to avoid an error.
42784    Use char because int might match the return type of a GCC
42785    builtin and then its argument prototype would still apply.  */
42786 #ifdef __cplusplus
42787 extern "C"
42788 #endif
42789 char gethostbyname ();
42790 /* The GNU C library defines this for functions which it implements
42791     to always fail with ENOSYS.  Some functions are actually named
42792     something starting with __ and the normal name is an alias.  */
42793 #if defined __stub_gethostbyname || defined __stub___gethostbyname
42794 choke me
42795 #endif
42796
42797 int
42798 main ()
42799 {
42800 return gethostbyname ();
42801   ;
42802   return 0;
42803 }
42804 _ACEOF
42805 rm -f conftest.$ac_objext conftest$ac_exeext
42806 if { (ac_try="$ac_link"
42807 case "(($ac_try" in
42808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42809   *) ac_try_echo=$ac_try;;
42810 esac
42811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42812   (eval "$ac_link") 2>conftest.er1
42813   ac_status=$?
42814   grep -v '^ *+' conftest.er1 >conftest.err
42815   rm -f conftest.er1
42816   cat conftest.err >&5
42817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42818   (exit $ac_status); } && {
42819          test -z "$ac_c_werror_flag" ||
42820          test ! -s conftest.err
42821        } && test -s conftest$ac_exeext &&
42822        $as_test_x conftest$ac_exeext; then
42823   ac_cv_func_gethostbyname=yes
42824 else
42825   echo "$as_me: failed program was:" >&5
42826 sed 's/^/| /' conftest.$ac_ext >&5
42827
42828         ac_cv_func_gethostbyname=no
42829 fi
42830
42831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42832       conftest$ac_exeext conftest.$ac_ext
42833 fi
42834 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
42835 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
42836 if test $ac_cv_func_gethostbyname = yes; then
42837    cat >>confdefs.h <<\_ACEOF
42838 #define HAVE_GETHOSTBYNAME 1
42839 _ACEOF
42840
42841 fi
42842
42843       fi
42844
42845 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
42846 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
42847 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
42848   echo $ECHO_N "(cached) $ECHO_C" >&6
42849 else
42850
42851                 ac_ext=cpp
42852 ac_cpp='$CXXCPP $CPPFLAGS'
42853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42856
42857
42858         cat >conftest.$ac_ext <<_ACEOF
42859 /* confdefs.h.  */
42860 _ACEOF
42861 cat confdefs.h >>conftest.$ac_ext
42862 cat >>conftest.$ac_ext <<_ACEOF
42863 /* end confdefs.h.  */
42864 #include <netdb.h>
42865 int
42866 main ()
42867 {
42868
42869                 char *name;
42870                 char *proto;
42871                 struct servent *se, *res;
42872                 char buffer[2048];
42873                 int buflen = 2048;
42874                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
42875
42876   ;
42877   return 0;
42878 }
42879 _ACEOF
42880 rm -f conftest.$ac_objext
42881 if { (ac_try="$ac_compile"
42882 case "(($ac_try" in
42883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42884   *) ac_try_echo=$ac_try;;
42885 esac
42886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42887   (eval "$ac_compile") 2>conftest.er1
42888   ac_status=$?
42889   grep -v '^ *+' conftest.er1 >conftest.err
42890   rm -f conftest.er1
42891   cat conftest.err >&5
42892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42893   (exit $ac_status); } && {
42894          test -z "$ac_cxx_werror_flag" ||
42895          test ! -s conftest.err
42896        } && test -s conftest.$ac_objext; then
42897   ac_cv_func_which_getservbyname_r=six
42898 else
42899   echo "$as_me: failed program was:" >&5
42900 sed 's/^/| /' conftest.$ac_ext >&5
42901
42902
42903                 cat >conftest.$ac_ext <<_ACEOF
42904 /* confdefs.h.  */
42905 _ACEOF
42906 cat confdefs.h >>conftest.$ac_ext
42907 cat >>conftest.$ac_ext <<_ACEOF
42908 /* end confdefs.h.  */
42909 #include <netdb.h>
42910 int
42911 main ()
42912 {
42913
42914                         char *name;
42915                         char *proto;
42916                         struct servent *se;
42917                         char buffer[2048];
42918                         int buflen = 2048;
42919                         (void) getservbyname_r(name, proto, se, buffer, buflen)
42920
42921   ;
42922   return 0;
42923 }
42924 _ACEOF
42925 rm -f conftest.$ac_objext
42926 if { (ac_try="$ac_compile"
42927 case "(($ac_try" in
42928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42929   *) ac_try_echo=$ac_try;;
42930 esac
42931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42932   (eval "$ac_compile") 2>conftest.er1
42933   ac_status=$?
42934   grep -v '^ *+' conftest.er1 >conftest.err
42935   rm -f conftest.er1
42936   cat conftest.err >&5
42937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42938   (exit $ac_status); } && {
42939          test -z "$ac_cxx_werror_flag" ||
42940          test ! -s conftest.err
42941        } && test -s conftest.$ac_objext; then
42942   ac_cv_func_which_getservbyname_r=five
42943 else
42944   echo "$as_me: failed program was:" >&5
42945 sed 's/^/| /' conftest.$ac_ext >&5
42946
42947
42948                         cat >conftest.$ac_ext <<_ACEOF
42949 /* confdefs.h.  */
42950 _ACEOF
42951 cat confdefs.h >>conftest.$ac_ext
42952 cat >>conftest.$ac_ext <<_ACEOF
42953 /* end confdefs.h.  */
42954 #include <netdb.h>
42955 int
42956 main ()
42957 {
42958
42959                                 char *name;
42960                                 char *proto;
42961                                 struct servent *se;
42962                                 struct servent_data data;
42963                                 (void) getservbyname_r(name, proto, se, &data);
42964
42965   ;
42966   return 0;
42967 }
42968 _ACEOF
42969 rm -f conftest.$ac_objext
42970 if { (ac_try="$ac_compile"
42971 case "(($ac_try" in
42972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42973   *) ac_try_echo=$ac_try;;
42974 esac
42975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42976   (eval "$ac_compile") 2>conftest.er1
42977   ac_status=$?
42978   grep -v '^ *+' conftest.er1 >conftest.err
42979   rm -f conftest.er1
42980   cat conftest.err >&5
42981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42982   (exit $ac_status); } && {
42983          test -z "$ac_cxx_werror_flag" ||
42984          test ! -s conftest.err
42985        } && test -s conftest.$ac_objext; then
42986   ac_cv_func_which_getservbyname_r=four
42987 else
42988   echo "$as_me: failed program was:" >&5
42989 sed 's/^/| /' conftest.$ac_ext >&5
42990
42991         ac_cv_func_which_getservbyname_r=no
42992
42993 fi
42994
42995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42996
42997
42998 fi
42999
43000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43001
43002
43003 fi
43004
43005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43006         ac_ext=c
43007 ac_cpp='$CPP $CPPFLAGS'
43008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43011
43012
43013
43014 fi
43015 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
43016 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
43017
43018 if test $ac_cv_func_which_getservbyname_r = six; then
43019   cat >>confdefs.h <<\_ACEOF
43020 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
43021 _ACEOF
43022
43023 elif test $ac_cv_func_which_getservbyname_r = five; then
43024   cat >>confdefs.h <<\_ACEOF
43025 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
43026 _ACEOF
43027
43028 elif test $ac_cv_func_which_getservbyname_r = four; then
43029   cat >>confdefs.h <<\_ACEOF
43030 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
43031 _ACEOF
43032
43033 fi
43034
43035
43036       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
43037               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
43038
43039 for ac_func in getservbyname
43040 do
43041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43045   echo $ECHO_N "(cached) $ECHO_C" >&6
43046 else
43047   cat >conftest.$ac_ext <<_ACEOF
43048 /* confdefs.h.  */
43049 _ACEOF
43050 cat confdefs.h >>conftest.$ac_ext
43051 cat >>conftest.$ac_ext <<_ACEOF
43052 /* end confdefs.h.  */
43053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43055 #define $ac_func innocuous_$ac_func
43056
43057 /* System header to define __stub macros and hopefully few prototypes,
43058     which can conflict with char $ac_func (); below.
43059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43060     <limits.h> exists even on freestanding compilers.  */
43061
43062 #ifdef __STDC__
43063 # include <limits.h>
43064 #else
43065 # include <assert.h>
43066 #endif
43067
43068 #undef $ac_func
43069
43070 /* Override any GCC internal prototype to avoid an error.
43071    Use char because int might match the return type of a GCC
43072    builtin and then its argument prototype would still apply.  */
43073 #ifdef __cplusplus
43074 extern "C"
43075 #endif
43076 char $ac_func ();
43077 /* The GNU C library defines this for functions which it implements
43078     to always fail with ENOSYS.  Some functions are actually named
43079     something starting with __ and the normal name is an alias.  */
43080 #if defined __stub_$ac_func || defined __stub___$ac_func
43081 choke me
43082 #endif
43083
43084 int
43085 main ()
43086 {
43087 return $ac_func ();
43088   ;
43089   return 0;
43090 }
43091 _ACEOF
43092 rm -f conftest.$ac_objext conftest$ac_exeext
43093 if { (ac_try="$ac_link"
43094 case "(($ac_try" in
43095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43096   *) ac_try_echo=$ac_try;;
43097 esac
43098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43099   (eval "$ac_link") 2>conftest.er1
43100   ac_status=$?
43101   grep -v '^ *+' conftest.er1 >conftest.err
43102   rm -f conftest.er1
43103   cat conftest.err >&5
43104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43105   (exit $ac_status); } && {
43106          test -z "$ac_c_werror_flag" ||
43107          test ! -s conftest.err
43108        } && test -s conftest$ac_exeext &&
43109        $as_test_x conftest$ac_exeext; then
43110   eval "$as_ac_var=yes"
43111 else
43112   echo "$as_me: failed program was:" >&5
43113 sed 's/^/| /' conftest.$ac_ext >&5
43114
43115         eval "$as_ac_var=no"
43116 fi
43117
43118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43119       conftest$ac_exeext conftest.$ac_ext
43120 fi
43121 ac_res=`eval echo '${'$as_ac_var'}'`
43122                { echo "$as_me:$LINENO: result: $ac_res" >&5
43123 echo "${ECHO_T}$ac_res" >&6; }
43124 if test `eval echo '${'$as_ac_var'}'` = yes; then
43125   cat >>confdefs.h <<_ACEOF
43126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43127 _ACEOF
43128   cat >>confdefs.h <<\_ACEOF
43129 #define HAVE_GETSERVBYNAME 1
43130 _ACEOF
43131
43132 fi
43133 done
43134
43135       fi
43136
43137 if test "$wxUSE_THREADS" = "yes"; then
43138   cat >>confdefs.h <<\_ACEOF
43139 #define wxUSE_THREADS 1
43140 _ACEOF
43141
43142
43143   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
43144 else
43145       if test "$wx_cv_func_strtok_r" = "yes"; then
43146     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
43147 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
43148     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
43149         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
43150         { echo "$as_me:$LINENO: result: yes" >&5
43151 echo "${ECHO_T}yes" >&6; }
43152     else
43153         { echo "$as_me:$LINENO: result: no" >&5
43154 echo "${ECHO_T}no" >&6; }
43155     fi
43156   fi
43157 fi
43158
43159 if test "$WXGTK2" = 1 ; then
43160   cat >>confdefs.h <<_ACEOF
43161 #define __WXGTK20__ $WXGTK2
43162 _ACEOF
43163
43164 fi
43165
43166 if test "$WXGTK127" = 1 ; then
43167   cat >>confdefs.h <<_ACEOF
43168 #define __WXGTK127__ $WXGTK127
43169 _ACEOF
43170
43171 fi
43172
43173 if test "$WXGPE" = 1 ; then
43174   cat >>confdefs.h <<_ACEOF
43175 #define __WXGPE__ $WXGPE
43176 _ACEOF
43177
43178 fi
43179
43180 DEBUG_CFLAGS=
43181 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
43182                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
43183 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
43184 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
43185     DEBUG_CFLAGS="-g"
43186 fi
43187
43188 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
43189     wxUSE_DEBUG_INFO=yes
43190     if test "$GCC" = yes; then
43191         DEBUG_CFLAGS="-ggdb"
43192     fi
43193 fi
43194
43195 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
43196     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
43197
43198     if test "$wxUSE_GTK" = 1 ; then
43199         if test "x$wxGTK_VERSION" = "x1" ; then
43200             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
43201         else
43202             CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS"
43203         fi
43204     fi
43205 fi
43206
43207 if test "$wxUSE_MEM_TRACING" = "yes" ; then
43208     cat >>confdefs.h <<\_ACEOF
43209 #define wxUSE_MEMORY_TRACING 1
43210 _ACEOF
43211
43212     cat >>confdefs.h <<\_ACEOF
43213 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
43214 _ACEOF
43215
43216     cat >>confdefs.h <<\_ACEOF
43217 #define wxUSE_DEBUG_NEW_ALWAYS 1
43218 _ACEOF
43219
43220     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
43221 fi
43222
43223 if test "$wxUSE_DMALLOC" = "yes" ; then
43224     DMALLOC_LIBS="-ldmallocthcxx"
43225 fi
43226
43227 PROFILE_FLAGS=
43228 if test "$wxUSE_PROFILE" = "yes" ; then
43229     PROFILE_FLAGS=" -pg"
43230 fi
43231
43232 if test "$GCC" = "yes" ; then
43233     if test "$wxUSE_NO_RTTI" = "yes" ; then
43234                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
43235     fi
43236     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43237         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
43238     fi
43239     if test "$wxUSE_PERMISSIVE" = "yes" ; then
43240         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
43241     fi
43242
43243                                                 case "${host}" in
43244       powerpc*-*-aix* )
43245         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
43246         ;;
43247       *-hppa* )
43248         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
43249         ;;
43250     esac
43251 fi
43252
43253 OPTIMISE_CFLAGS=
43254 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
43255                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
43256 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
43257 else
43258     if test "$wxUSE_OPTIMISE" = "no" ; then
43259         if test "$GCC" = yes ; then
43260                                     OPTIMISE_CFLAGS="-O0"
43261         fi
43262     else
43263         if test "$GCC" = yes ; then
43264             case "${host}" in
43265                 *-pc-os2_emx | *-pc-os2-emx )
43266                                                             OPTIMISE_CFLAGS="-O2"
43267                 ;;
43268                 *)
43269                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
43270                 ;;
43271             esac
43272         else
43273             OPTIMISE_CFLAGS="-O"
43274         fi
43275     fi
43276 fi
43277
43278
43279 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
43280     cat >>confdefs.h <<\_ACEOF
43281 #define WXWIN_COMPATIBILITY_2_6 1
43282 _ACEOF
43283
43284
43285     WXWIN_COMPATIBILITY_2_8="yes"
43286 fi
43287
43288 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43289     cat >>confdefs.h <<\_ACEOF
43290 #define WXWIN_COMPATIBILITY_2_8 1
43291 _ACEOF
43292
43293 fi
43294
43295
43296 if test "$wxUSE_GUI" = "yes"; then
43297     cat >>confdefs.h <<\_ACEOF
43298 #define wxUSE_GUI 1
43299 _ACEOF
43300
43301
43302                                             fi
43303
43304
43305 if test "$wxUSE_UNIX" = "yes"; then
43306   cat >>confdefs.h <<\_ACEOF
43307 #define wxUSE_UNIX 1
43308 _ACEOF
43309
43310 fi
43311
43312
43313 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43314
43315     HAVE_DL_FUNCS=0
43316     HAVE_SHL_FUNCS=0
43317     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43318         if test "$USE_DOS" = 1; then
43319             HAVE_DL_FUNCS=0
43320         else
43321
43322 for ac_func in dlopen
43323 do
43324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43328   echo $ECHO_N "(cached) $ECHO_C" >&6
43329 else
43330   cat >conftest.$ac_ext <<_ACEOF
43331 /* confdefs.h.  */
43332 _ACEOF
43333 cat confdefs.h >>conftest.$ac_ext
43334 cat >>conftest.$ac_ext <<_ACEOF
43335 /* end confdefs.h.  */
43336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43338 #define $ac_func innocuous_$ac_func
43339
43340 /* System header to define __stub macros and hopefully few prototypes,
43341     which can conflict with char $ac_func (); below.
43342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43343     <limits.h> exists even on freestanding compilers.  */
43344
43345 #ifdef __STDC__
43346 # include <limits.h>
43347 #else
43348 # include <assert.h>
43349 #endif
43350
43351 #undef $ac_func
43352
43353 /* Override any GCC internal prototype to avoid an error.
43354    Use char because int might match the return type of a GCC
43355    builtin and then its argument prototype would still apply.  */
43356 #ifdef __cplusplus
43357 extern "C"
43358 #endif
43359 char $ac_func ();
43360 /* The GNU C library defines this for functions which it implements
43361     to always fail with ENOSYS.  Some functions are actually named
43362     something starting with __ and the normal name is an alias.  */
43363 #if defined __stub_$ac_func || defined __stub___$ac_func
43364 choke me
43365 #endif
43366
43367 int
43368 main ()
43369 {
43370 return $ac_func ();
43371   ;
43372   return 0;
43373 }
43374 _ACEOF
43375 rm -f conftest.$ac_objext conftest$ac_exeext
43376 if { (ac_try="$ac_link"
43377 case "(($ac_try" in
43378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43379   *) ac_try_echo=$ac_try;;
43380 esac
43381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43382   (eval "$ac_link") 2>conftest.er1
43383   ac_status=$?
43384   grep -v '^ *+' conftest.er1 >conftest.err
43385   rm -f conftest.er1
43386   cat conftest.err >&5
43387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43388   (exit $ac_status); } && {
43389          test -z "$ac_c_werror_flag" ||
43390          test ! -s conftest.err
43391        } && test -s conftest$ac_exeext &&
43392        $as_test_x conftest$ac_exeext; then
43393   eval "$as_ac_var=yes"
43394 else
43395   echo "$as_me: failed program was:" >&5
43396 sed 's/^/| /' conftest.$ac_ext >&5
43397
43398         eval "$as_ac_var=no"
43399 fi
43400
43401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43402       conftest$ac_exeext conftest.$ac_ext
43403 fi
43404 ac_res=`eval echo '${'$as_ac_var'}'`
43405                { echo "$as_me:$LINENO: result: $ac_res" >&5
43406 echo "${ECHO_T}$ac_res" >&6; }
43407 if test `eval echo '${'$as_ac_var'}'` = yes; then
43408   cat >>confdefs.h <<_ACEOF
43409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43410 _ACEOF
43411
43412                 cat >>confdefs.h <<\_ACEOF
43413 #define HAVE_DLOPEN 1
43414 _ACEOF
43415
43416                 HAVE_DL_FUNCS=1
43417
43418 else
43419
43420                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43421 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43422 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43423   echo $ECHO_N "(cached) $ECHO_C" >&6
43424 else
43425   ac_check_lib_save_LIBS=$LIBS
43426 LIBS="-ldl  $LIBS"
43427 cat >conftest.$ac_ext <<_ACEOF
43428 /* confdefs.h.  */
43429 _ACEOF
43430 cat confdefs.h >>conftest.$ac_ext
43431 cat >>conftest.$ac_ext <<_ACEOF
43432 /* end confdefs.h.  */
43433
43434 /* Override any GCC internal prototype to avoid an error.
43435    Use char because int might match the return type of a GCC
43436    builtin and then its argument prototype would still apply.  */
43437 #ifdef __cplusplus
43438 extern "C"
43439 #endif
43440 char dlopen ();
43441 int
43442 main ()
43443 {
43444 return dlopen ();
43445   ;
43446   return 0;
43447 }
43448 _ACEOF
43449 rm -f conftest.$ac_objext conftest$ac_exeext
43450 if { (ac_try="$ac_link"
43451 case "(($ac_try" in
43452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43453   *) ac_try_echo=$ac_try;;
43454 esac
43455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43456   (eval "$ac_link") 2>conftest.er1
43457   ac_status=$?
43458   grep -v '^ *+' conftest.er1 >conftest.err
43459   rm -f conftest.er1
43460   cat conftest.err >&5
43461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43462   (exit $ac_status); } && {
43463          test -z "$ac_c_werror_flag" ||
43464          test ! -s conftest.err
43465        } && test -s conftest$ac_exeext &&
43466        $as_test_x conftest$ac_exeext; then
43467   ac_cv_lib_dl_dlopen=yes
43468 else
43469   echo "$as_me: failed program was:" >&5
43470 sed 's/^/| /' conftest.$ac_ext >&5
43471
43472         ac_cv_lib_dl_dlopen=no
43473 fi
43474
43475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43476       conftest$ac_exeext conftest.$ac_ext
43477 LIBS=$ac_check_lib_save_LIBS
43478 fi
43479 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43480 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43481 if test $ac_cv_lib_dl_dlopen = yes; then
43482
43483                                 cat >>confdefs.h <<\_ACEOF
43484 #define HAVE_DLOPEN 1
43485 _ACEOF
43486
43487                                 HAVE_DL_FUNCS=1
43488                                 DL_LINK=" -ldl$DL_LINK"
43489
43490 else
43491
43492
43493 for ac_func in shl_load
43494 do
43495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43499   echo $ECHO_N "(cached) $ECHO_C" >&6
43500 else
43501   cat >conftest.$ac_ext <<_ACEOF
43502 /* confdefs.h.  */
43503 _ACEOF
43504 cat confdefs.h >>conftest.$ac_ext
43505 cat >>conftest.$ac_ext <<_ACEOF
43506 /* end confdefs.h.  */
43507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43509 #define $ac_func innocuous_$ac_func
43510
43511 /* System header to define __stub macros and hopefully few prototypes,
43512     which can conflict with char $ac_func (); below.
43513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43514     <limits.h> exists even on freestanding compilers.  */
43515
43516 #ifdef __STDC__
43517 # include <limits.h>
43518 #else
43519 # include <assert.h>
43520 #endif
43521
43522 #undef $ac_func
43523
43524 /* Override any GCC internal prototype to avoid an error.
43525    Use char because int might match the return type of a GCC
43526    builtin and then its argument prototype would still apply.  */
43527 #ifdef __cplusplus
43528 extern "C"
43529 #endif
43530 char $ac_func ();
43531 /* The GNU C library defines this for functions which it implements
43532     to always fail with ENOSYS.  Some functions are actually named
43533     something starting with __ and the normal name is an alias.  */
43534 #if defined __stub_$ac_func || defined __stub___$ac_func
43535 choke me
43536 #endif
43537
43538 int
43539 main ()
43540 {
43541 return $ac_func ();
43542   ;
43543   return 0;
43544 }
43545 _ACEOF
43546 rm -f conftest.$ac_objext conftest$ac_exeext
43547 if { (ac_try="$ac_link"
43548 case "(($ac_try" in
43549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43550   *) ac_try_echo=$ac_try;;
43551 esac
43552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43553   (eval "$ac_link") 2>conftest.er1
43554   ac_status=$?
43555   grep -v '^ *+' conftest.er1 >conftest.err
43556   rm -f conftest.er1
43557   cat conftest.err >&5
43558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43559   (exit $ac_status); } && {
43560          test -z "$ac_c_werror_flag" ||
43561          test ! -s conftest.err
43562        } && test -s conftest$ac_exeext &&
43563        $as_test_x conftest$ac_exeext; then
43564   eval "$as_ac_var=yes"
43565 else
43566   echo "$as_me: failed program was:" >&5
43567 sed 's/^/| /' conftest.$ac_ext >&5
43568
43569         eval "$as_ac_var=no"
43570 fi
43571
43572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43573       conftest$ac_exeext conftest.$ac_ext
43574 fi
43575 ac_res=`eval echo '${'$as_ac_var'}'`
43576                { echo "$as_me:$LINENO: result: $ac_res" >&5
43577 echo "${ECHO_T}$ac_res" >&6; }
43578 if test `eval echo '${'$as_ac_var'}'` = yes; then
43579   cat >>confdefs.h <<_ACEOF
43580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43581 _ACEOF
43582
43583                                                 cat >>confdefs.h <<\_ACEOF
43584 #define HAVE_SHL_LOAD 1
43585 _ACEOF
43586
43587                                                 HAVE_SHL_FUNCS=1
43588
43589 else
43590
43591                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
43592 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
43593 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
43594   echo $ECHO_N "(cached) $ECHO_C" >&6
43595 else
43596   ac_check_lib_save_LIBS=$LIBS
43597 LIBS="-lshl_load  $LIBS"
43598 cat >conftest.$ac_ext <<_ACEOF
43599 /* confdefs.h.  */
43600 _ACEOF
43601 cat confdefs.h >>conftest.$ac_ext
43602 cat >>conftest.$ac_ext <<_ACEOF
43603 /* end confdefs.h.  */
43604
43605 /* Override any GCC internal prototype to avoid an error.
43606    Use char because int might match the return type of a GCC
43607    builtin and then its argument prototype would still apply.  */
43608 #ifdef __cplusplus
43609 extern "C"
43610 #endif
43611 char dld ();
43612 int
43613 main ()
43614 {
43615 return dld ();
43616   ;
43617   return 0;
43618 }
43619 _ACEOF
43620 rm -f conftest.$ac_objext conftest$ac_exeext
43621 if { (ac_try="$ac_link"
43622 case "(($ac_try" in
43623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43624   *) ac_try_echo=$ac_try;;
43625 esac
43626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43627   (eval "$ac_link") 2>conftest.er1
43628   ac_status=$?
43629   grep -v '^ *+' conftest.er1 >conftest.err
43630   rm -f conftest.er1
43631   cat conftest.err >&5
43632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43633   (exit $ac_status); } && {
43634          test -z "$ac_c_werror_flag" ||
43635          test ! -s conftest.err
43636        } && test -s conftest$ac_exeext &&
43637        $as_test_x conftest$ac_exeext; then
43638   ac_cv_lib_shl_load_dld=yes
43639 else
43640   echo "$as_me: failed program was:" >&5
43641 sed 's/^/| /' conftest.$ac_ext >&5
43642
43643         ac_cv_lib_shl_load_dld=no
43644 fi
43645
43646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43647       conftest$ac_exeext conftest.$ac_ext
43648 LIBS=$ac_check_lib_save_LIBS
43649 fi
43650 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
43651 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
43652 if test $ac_cv_lib_shl_load_dld = yes; then
43653
43654                                                                 HAVE_SHL_FUNCS=1
43655                                                                 DL_LINK=" -ldld$DL_LINK"
43656
43657 fi
43658
43659
43660 fi
43661 done
43662
43663
43664 fi
43665
43666
43667 fi
43668 done
43669
43670
43671                         if test "$HAVE_DL_FUNCS" = 1; then
43672
43673 for ac_func in dlerror
43674 do
43675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43676 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43679   echo $ECHO_N "(cached) $ECHO_C" >&6
43680 else
43681   cat >conftest.$ac_ext <<_ACEOF
43682 /* confdefs.h.  */
43683 _ACEOF
43684 cat confdefs.h >>conftest.$ac_ext
43685 cat >>conftest.$ac_ext <<_ACEOF
43686 /* end confdefs.h.  */
43687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43689 #define $ac_func innocuous_$ac_func
43690
43691 /* System header to define __stub macros and hopefully few prototypes,
43692     which can conflict with char $ac_func (); below.
43693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43694     <limits.h> exists even on freestanding compilers.  */
43695
43696 #ifdef __STDC__
43697 # include <limits.h>
43698 #else
43699 # include <assert.h>
43700 #endif
43701
43702 #undef $ac_func
43703
43704 /* Override any GCC internal prototype to avoid an error.
43705    Use char because int might match the return type of a GCC
43706    builtin and then its argument prototype would still apply.  */
43707 #ifdef __cplusplus
43708 extern "C"
43709 #endif
43710 char $ac_func ();
43711 /* The GNU C library defines this for functions which it implements
43712     to always fail with ENOSYS.  Some functions are actually named
43713     something starting with __ and the normal name is an alias.  */
43714 #if defined __stub_$ac_func || defined __stub___$ac_func
43715 choke me
43716 #endif
43717
43718 int
43719 main ()
43720 {
43721 return $ac_func ();
43722   ;
43723   return 0;
43724 }
43725 _ACEOF
43726 rm -f conftest.$ac_objext conftest$ac_exeext
43727 if { (ac_try="$ac_link"
43728 case "(($ac_try" in
43729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43730   *) ac_try_echo=$ac_try;;
43731 esac
43732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43733   (eval "$ac_link") 2>conftest.er1
43734   ac_status=$?
43735   grep -v '^ *+' conftest.er1 >conftest.err
43736   rm -f conftest.er1
43737   cat conftest.err >&5
43738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43739   (exit $ac_status); } && {
43740          test -z "$ac_c_werror_flag" ||
43741          test ! -s conftest.err
43742        } && test -s conftest$ac_exeext &&
43743        $as_test_x conftest$ac_exeext; then
43744   eval "$as_ac_var=yes"
43745 else
43746   echo "$as_me: failed program was:" >&5
43747 sed 's/^/| /' conftest.$ac_ext >&5
43748
43749         eval "$as_ac_var=no"
43750 fi
43751
43752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43753       conftest$ac_exeext conftest.$ac_ext
43754 fi
43755 ac_res=`eval echo '${'$as_ac_var'}'`
43756                { echo "$as_me:$LINENO: result: $ac_res" >&5
43757 echo "${ECHO_T}$ac_res" >&6; }
43758 if test `eval echo '${'$as_ac_var'}'` = yes; then
43759   cat >>confdefs.h <<_ACEOF
43760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43761 _ACEOF
43762  cat >>confdefs.h <<\_ACEOF
43763 #define HAVE_DLERROR 1
43764 _ACEOF
43765
43766 else
43767
43768                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
43769 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
43770 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
43771   echo $ECHO_N "(cached) $ECHO_C" >&6
43772 else
43773   ac_check_lib_save_LIBS=$LIBS
43774 LIBS="-ldl  $LIBS"
43775 cat >conftest.$ac_ext <<_ACEOF
43776 /* confdefs.h.  */
43777 _ACEOF
43778 cat confdefs.h >>conftest.$ac_ext
43779 cat >>conftest.$ac_ext <<_ACEOF
43780 /* end confdefs.h.  */
43781
43782 /* Override any GCC internal prototype to avoid an error.
43783    Use char because int might match the return type of a GCC
43784    builtin and then its argument prototype would still apply.  */
43785 #ifdef __cplusplus
43786 extern "C"
43787 #endif
43788 char dlerror ();
43789 int
43790 main ()
43791 {
43792 return dlerror ();
43793   ;
43794   return 0;
43795 }
43796 _ACEOF
43797 rm -f conftest.$ac_objext conftest$ac_exeext
43798 if { (ac_try="$ac_link"
43799 case "(($ac_try" in
43800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43801   *) ac_try_echo=$ac_try;;
43802 esac
43803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43804   (eval "$ac_link") 2>conftest.er1
43805   ac_status=$?
43806   grep -v '^ *+' conftest.er1 >conftest.err
43807   rm -f conftest.er1
43808   cat conftest.err >&5
43809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43810   (exit $ac_status); } && {
43811          test -z "$ac_c_werror_flag" ||
43812          test ! -s conftest.err
43813        } && test -s conftest$ac_exeext &&
43814        $as_test_x conftest$ac_exeext; then
43815   ac_cv_lib_dl_dlerror=yes
43816 else
43817   echo "$as_me: failed program was:" >&5
43818 sed 's/^/| /' conftest.$ac_ext >&5
43819
43820         ac_cv_lib_dl_dlerror=no
43821 fi
43822
43823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43824       conftest$ac_exeext conftest.$ac_ext
43825 LIBS=$ac_check_lib_save_LIBS
43826 fi
43827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
43828 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
43829 if test $ac_cv_lib_dl_dlerror = yes; then
43830   cat >>confdefs.h <<\_ACEOF
43831 #define HAVE_DLERROR 1
43832 _ACEOF
43833
43834 fi
43835
43836
43837
43838 fi
43839 done
43840
43841             fi
43842         fi
43843
43844                 if test "$USE_DARWIN" = 1; then
43845                         HAVE_DL_FUNCS=1
43846         fi
43847
43848         if test "$HAVE_DL_FUNCS" = 0; then
43849             if test "$HAVE_SHL_FUNCS" = 0; then
43850               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
43851                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
43852 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
43853                   wxUSE_DYNAMIC_LOADER=no
43854                   wxUSE_DYNLIB_CLASS=no
43855               else
43856                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
43857 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
43858               fi
43859             fi
43860         fi
43861     fi
43862 fi
43863
43864 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
43865     cat >>confdefs.h <<\_ACEOF
43866 #define wxUSE_DYNAMIC_LOADER 1
43867 _ACEOF
43868
43869 fi
43870 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43871     cat >>confdefs.h <<\_ACEOF
43872 #define wxUSE_DYNLIB_CLASS 1
43873 _ACEOF
43874
43875 fi
43876
43877
43878
43879 if test "$wxUSE_PLUGINS" = "yes" ; then
43880     if test "$wxUSE_SHARED" = "no" ; then
43881         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
43882 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
43883         wxUSE_PLUGINS=no
43884     fi
43885     if test "$wxUSE_MONOLITHIC" = "yes" ; then
43886         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
43887 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
43888         wxUSE_PLUGINS=no
43889     fi
43890     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
43891         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
43892 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
43893         wxUSE_PLUGINS=no
43894     fi
43895     if test "$wxUSE_PLUGINS" = "yes" ; then
43896         cat >>confdefs.h <<\_ACEOF
43897 #define wxUSE_PLUGINS 1
43898 _ACEOF
43899
43900     fi
43901 fi
43902
43903
43904 if test "$wxUSE_FSWATCHER" = "yes"; then
43905                 if test "$wxUSE_MSW" != "1"; then
43906         if test "$wxUSE_UNIX" = "yes"; then
43907
43908 for ac_header in sys/inotify.h
43909 do
43910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43914   echo $ECHO_N "(cached) $ECHO_C" >&6
43915 else
43916   cat >conftest.$ac_ext <<_ACEOF
43917 /* confdefs.h.  */
43918 _ACEOF
43919 cat confdefs.h >>conftest.$ac_ext
43920 cat >>conftest.$ac_ext <<_ACEOF
43921 /* end confdefs.h.  */
43922 $ac_includes_default
43923
43924 #include <$ac_header>
43925 _ACEOF
43926 rm -f conftest.$ac_objext
43927 if { (ac_try="$ac_compile"
43928 case "(($ac_try" in
43929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43930   *) ac_try_echo=$ac_try;;
43931 esac
43932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43933   (eval "$ac_compile") 2>conftest.er1
43934   ac_status=$?
43935   grep -v '^ *+' conftest.er1 >conftest.err
43936   rm -f conftest.er1
43937   cat conftest.err >&5
43938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43939   (exit $ac_status); } && {
43940          test -z "$ac_c_werror_flag" ||
43941          test ! -s conftest.err
43942        } && test -s conftest.$ac_objext; then
43943   eval "$as_ac_Header=yes"
43944 else
43945   echo "$as_me: failed program was:" >&5
43946 sed 's/^/| /' conftest.$ac_ext >&5
43947
43948         eval "$as_ac_Header=no"
43949 fi
43950
43951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43952 fi
43953 ac_res=`eval echo '${'$as_ac_Header'}'`
43954                { echo "$as_me:$LINENO: result: $ac_res" >&5
43955 echo "${ECHO_T}$ac_res" >&6; }
43956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43957   cat >>confdefs.h <<_ACEOF
43958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43959 _ACEOF
43960
43961 fi
43962
43963 done
43964
43965             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
43966                 cat >>confdefs.h <<\_ACEOF
43967 #define wxHAS_INOTIFY 1
43968 _ACEOF
43969
43970             else
43971
43972 for ac_header in sys/event.h
43973 do
43974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43978   echo $ECHO_N "(cached) $ECHO_C" >&6
43979 else
43980   cat >conftest.$ac_ext <<_ACEOF
43981 /* confdefs.h.  */
43982 _ACEOF
43983 cat confdefs.h >>conftest.$ac_ext
43984 cat >>conftest.$ac_ext <<_ACEOF
43985 /* end confdefs.h.  */
43986 $ac_includes_default
43987
43988 #include <$ac_header>
43989 _ACEOF
43990 rm -f conftest.$ac_objext
43991 if { (ac_try="$ac_compile"
43992 case "(($ac_try" in
43993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43994   *) ac_try_echo=$ac_try;;
43995 esac
43996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43997   (eval "$ac_compile") 2>conftest.er1
43998   ac_status=$?
43999   grep -v '^ *+' conftest.er1 >conftest.err
44000   rm -f conftest.er1
44001   cat conftest.err >&5
44002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44003   (exit $ac_status); } && {
44004          test -z "$ac_c_werror_flag" ||
44005          test ! -s conftest.err
44006        } && test -s conftest.$ac_objext; then
44007   eval "$as_ac_Header=yes"
44008 else
44009   echo "$as_me: failed program was:" >&5
44010 sed 's/^/| /' conftest.$ac_ext >&5
44011
44012         eval "$as_ac_Header=no"
44013 fi
44014
44015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44016 fi
44017 ac_res=`eval echo '${'$as_ac_Header'}'`
44018                { echo "$as_me:$LINENO: result: $ac_res" >&5
44019 echo "${ECHO_T}$ac_res" >&6; }
44020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44021   cat >>confdefs.h <<_ACEOF
44022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44023 _ACEOF
44024
44025 fi
44026
44027 done
44028
44029                 if test "$ac_cv_header_sys_event_h" = "yes"; then
44030                     cat >>confdefs.h <<\_ACEOF
44031 #define wxHAS_KQUEUE 1
44032 _ACEOF
44033
44034                 else
44035                     wxUSE_FSWATCHER=no
44036                 fi
44037             fi
44038         else
44039             wxUSE_FSWATCHER=no
44040         fi
44041     else
44042         if test "$wxUSE_THREADS" != "yes"; then
44043             { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&5
44044 echo "$as_me: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&2;}
44045             wxUSE_FSWATCHER=no
44046         fi
44047     fi
44048
44049     if test "$wxUSE_FSWATCHER" = "yes"; then
44050         cat >>confdefs.h <<\_ACEOF
44051 #define wxUSE_FSWATCHER 1
44052 _ACEOF
44053
44054         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
44055     else
44056         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
44057 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
44058     fi
44059 fi
44060
44061
44062 if test "$wxUSE_STL" = "yes"; then
44063   cat >>confdefs.h <<\_ACEOF
44064 #define wxUSE_STL 1
44065 _ACEOF
44066
44067 fi
44068
44069 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44070   cat >>confdefs.h <<\_ACEOF
44071 #define wxUSE_EXTENDED_RTTI 1
44072 _ACEOF
44073
44074 fi
44075
44076 if test "$wxUSE_ANY" = "yes"; then
44077     cat >>confdefs.h <<\_ACEOF
44078 #define wxUSE_ANY 1
44079 _ACEOF
44080
44081 fi
44082
44083 if test "$wxUSE_APPLE_IEEE" = "yes"; then
44084   cat >>confdefs.h <<\_ACEOF
44085 #define wxUSE_APPLE_IEEE 1
44086 _ACEOF
44087
44088 fi
44089
44090 if test "$wxUSE_TIMER" = "yes"; then
44091   cat >>confdefs.h <<\_ACEOF
44092 #define wxUSE_TIMER 1
44093 _ACEOF
44094
44095 fi
44096
44097 if test "$USE_UNIX" = 1 ; then
44098         if test "$wxUSE_MGL" != 1; then
44099                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44100 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
44101 if test "${ac_cv_header_sys_soundcard+set}" = set; then
44102   echo $ECHO_N "(cached) $ECHO_C" >&6
44103 else
44104
44105             cat >conftest.$ac_ext <<_ACEOF
44106 /* confdefs.h.  */
44107 _ACEOF
44108 cat confdefs.h >>conftest.$ac_ext
44109 cat >>conftest.$ac_ext <<_ACEOF
44110 /* end confdefs.h.  */
44111
44112                     #include <sys/ioctl.h>
44113                     #include <sys/soundcard.h>
44114
44115 int
44116 main ()
44117 {
44118
44119                     ioctl(0, SNDCTL_DSP_SPEED, 0);
44120
44121   ;
44122   return 0;
44123 }
44124 _ACEOF
44125 rm -f conftest.$ac_objext conftest$ac_exeext
44126 if { (ac_try="$ac_link"
44127 case "(($ac_try" in
44128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44129   *) ac_try_echo=$ac_try;;
44130 esac
44131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44132   (eval "$ac_link") 2>conftest.er1
44133   ac_status=$?
44134   grep -v '^ *+' conftest.er1 >conftest.err
44135   rm -f conftest.er1
44136   cat conftest.err >&5
44137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44138   (exit $ac_status); } && {
44139          test -z "$ac_c_werror_flag" ||
44140          test ! -s conftest.err
44141        } && test -s conftest$ac_exeext &&
44142        $as_test_x conftest$ac_exeext; then
44143   ac_cv_header_sys_soundcard=yes
44144 else
44145   echo "$as_me: failed program was:" >&5
44146 sed 's/^/| /' conftest.$ac_ext >&5
44147
44148
44149                     saveLibs="$LIBS"
44150                     LIBS="$saveLibs -lossaudio"
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                             LIBS="$saveLibs"
44196                             ac_cv_header_sys_soundcard=no
44197
44198
44199 fi
44200
44201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44202       conftest$ac_exeext conftest.$ac_ext
44203
44204
44205 fi
44206
44207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44208       conftest$ac_exeext conftest.$ac_ext
44209
44210 fi
44211 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44212 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
44213     fi
44214
44215     if test "$ac_cv_header_sys_soundcard" = "yes"; then
44216         cat >>confdefs.h <<\_ACEOF
44217 #define HAVE_SYS_SOUNDCARD_H 1
44218 _ACEOF
44219
44220     fi
44221 fi
44222
44223 WITH_PLUGIN_SDL=0
44224 if test "$wxUSE_SOUND" = "yes"; then
44225   if test "$USE_UNIX" = 1 ; then
44226     if test "$wxUSE_LIBSDL" != "no"; then
44227
44228 # Check whether --with-sdl-prefix was given.
44229 if test "${with_sdl_prefix+set}" = set; then
44230   withval=$with_sdl_prefix; sdl_prefix="$withval"
44231 else
44232   sdl_prefix=""
44233 fi
44234
44235
44236 # Check whether --with-sdl-exec-prefix was given.
44237 if test "${with_sdl_exec_prefix+set}" = set; then
44238   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
44239 else
44240   sdl_exec_prefix=""
44241 fi
44242
44243 # Check whether --enable-sdltest was given.
44244 if test "${enable_sdltest+set}" = set; then
44245   enableval=$enable_sdltest;
44246 else
44247   enable_sdltest=yes
44248 fi
44249
44250
44251   if test x$sdl_exec_prefix != x ; then
44252     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44253     if test x${SDL_CONFIG+set} != xset ; then
44254       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44255     fi
44256   fi
44257   if test x$sdl_prefix != x ; then
44258     sdl_args="$sdl_args --prefix=$sdl_prefix"
44259     if test x${SDL_CONFIG+set} != xset ; then
44260       SDL_CONFIG=$sdl_prefix/bin/sdl-config
44261     fi
44262   fi
44263
44264   if test "x$prefix" != xNONE; then
44265     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44266   fi
44267   # Extract the first word of "sdl-config", so it can be a program name with args.
44268 set dummy sdl-config; ac_word=$2
44269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44271 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44272   echo $ECHO_N "(cached) $ECHO_C" >&6
44273 else
44274   case $SDL_CONFIG in
44275   [\\/]* | ?:[\\/]*)
44276   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44277   ;;
44278   *)
44279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44280 for as_dir in $PATH
44281 do
44282   IFS=$as_save_IFS
44283   test -z "$as_dir" && as_dir=.
44284   for ac_exec_ext in '' $ac_executable_extensions; do
44285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44286     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44288     break 2
44289   fi
44290 done
44291 done
44292 IFS=$as_save_IFS
44293
44294   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44295   ;;
44296 esac
44297 fi
44298 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44299 if test -n "$SDL_CONFIG"; then
44300   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44301 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44302 else
44303   { echo "$as_me:$LINENO: result: no" >&5
44304 echo "${ECHO_T}no" >&6; }
44305 fi
44306
44307
44308   min_sdl_version=1.2.0
44309   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44310 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44311   no_sdl=""
44312   if test "$SDL_CONFIG" = "no" ; then
44313     no_sdl=yes
44314   else
44315     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44316     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44317
44318     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44319            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44320     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44321            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44322     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44323            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44324     if test "x$enable_sdltest" = "xyes" ; then
44325       ac_save_CFLAGS="$CFLAGS"
44326       ac_save_CXXFLAGS="$CXXFLAGS"
44327       ac_save_LIBS="$LIBS"
44328       CFLAGS="$CFLAGS $SDL_CFLAGS"
44329       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44330       LIBS="$LIBS $SDL_LIBS"
44331       rm -f conf.sdltest
44332       if test "$cross_compiling" = yes; then
44333   echo $ac_n "cross compiling; assumed OK... $ac_c"
44334 else
44335   cat >conftest.$ac_ext <<_ACEOF
44336 /* confdefs.h.  */
44337 _ACEOF
44338 cat confdefs.h >>conftest.$ac_ext
44339 cat >>conftest.$ac_ext <<_ACEOF
44340 /* end confdefs.h.  */
44341
44342 #include <stdio.h>
44343 #include <stdlib.h>
44344 #include <string.h>
44345 #include "SDL.h"
44346
44347 char*
44348 my_strdup (char *str)
44349 {
44350   char *new_str;
44351
44352   if (str)
44353     {
44354       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44355       strcpy (new_str, str);
44356     }
44357   else
44358     new_str = NULL;
44359
44360   return new_str;
44361 }
44362
44363 int main (int argc, char *argv[])
44364 {
44365   int major, minor, micro;
44366   char *tmp_version;
44367
44368   /* This hangs on some systems (?)
44369   system ("touch conf.sdltest");
44370   */
44371   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44372
44373   /* HP/UX 9 (%@#!) writes to sscanf strings */
44374   tmp_version = my_strdup("$min_sdl_version");
44375   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44376      printf("%s, bad version string\n", "$min_sdl_version");
44377      exit(1);
44378    }
44379
44380    if (($sdl_major_version > major) ||
44381       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44382       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44383     {
44384       return 0;
44385     }
44386   else
44387     {
44388       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44389       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44390       printf("*** best to upgrade to the required version.\n");
44391       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44392       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44393       printf("*** config.cache before re-running configure\n");
44394       return 1;
44395     }
44396 }
44397
44398
44399 _ACEOF
44400 rm -f conftest$ac_exeext
44401 if { (ac_try="$ac_link"
44402 case "(($ac_try" in
44403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44404   *) ac_try_echo=$ac_try;;
44405 esac
44406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44407   (eval "$ac_link") 2>&5
44408   ac_status=$?
44409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44410   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44411   { (case "(($ac_try" in
44412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44413   *) ac_try_echo=$ac_try;;
44414 esac
44415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44416   (eval "$ac_try") 2>&5
44417   ac_status=$?
44418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44419   (exit $ac_status); }; }; then
44420   :
44421 else
44422   echo "$as_me: program exited with status $ac_status" >&5
44423 echo "$as_me: failed program was:" >&5
44424 sed 's/^/| /' conftest.$ac_ext >&5
44425
44426 ( exit $ac_status )
44427 no_sdl=yes
44428 fi
44429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44430 fi
44431
44432
44433        CFLAGS="$ac_save_CFLAGS"
44434        CXXFLAGS="$ac_save_CXXFLAGS"
44435        LIBS="$ac_save_LIBS"
44436      fi
44437   fi
44438   if test "x$no_sdl" = x ; then
44439      { echo "$as_me:$LINENO: result: yes" >&5
44440 echo "${ECHO_T}yes" >&6; }
44441
44442                     EXTRALIBS_SDL="$SDL_LIBS"
44443                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44444                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44445                     cat >>confdefs.h <<\_ACEOF
44446 #define wxUSE_LIBSDL 1
44447 _ACEOF
44448
44449
44450   else
44451      { echo "$as_me:$LINENO: result: no" >&5
44452 echo "${ECHO_T}no" >&6; }
44453      if test "$SDL_CONFIG" = "no" ; then
44454        echo "*** The sdl-config script installed by SDL could not be found"
44455        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44456        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44457        echo "*** full path to sdl-config."
44458      else
44459        if test -f conf.sdltest ; then
44460         :
44461        else
44462           echo "*** Could not run SDL test program, checking why..."
44463           CFLAGS="$CFLAGS $SDL_CFLAGS"
44464           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44465           LIBS="$LIBS $SDL_LIBS"
44466           cat >conftest.$ac_ext <<_ACEOF
44467 /* confdefs.h.  */
44468 _ACEOF
44469 cat confdefs.h >>conftest.$ac_ext
44470 cat >>conftest.$ac_ext <<_ACEOF
44471 /* end confdefs.h.  */
44472
44473 #include <stdio.h>
44474 #include "SDL.h"
44475
44476 int main(int argc, char *argv[])
44477 { return 0; }
44478 #undef  main
44479 #define main K_and_R_C_main
44480
44481 int
44482 main ()
44483 {
44484  return 0;
44485   ;
44486   return 0;
44487 }
44488 _ACEOF
44489 rm -f conftest.$ac_objext conftest$ac_exeext
44490 if { (ac_try="$ac_link"
44491 case "(($ac_try" in
44492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44493   *) ac_try_echo=$ac_try;;
44494 esac
44495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44496   (eval "$ac_link") 2>conftest.er1
44497   ac_status=$?
44498   grep -v '^ *+' conftest.er1 >conftest.err
44499   rm -f conftest.er1
44500   cat conftest.err >&5
44501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44502   (exit $ac_status); } && {
44503          test -z "$ac_c_werror_flag" ||
44504          test ! -s conftest.err
44505        } && test -s conftest$ac_exeext &&
44506        $as_test_x conftest$ac_exeext; then
44507    echo "*** The test program compiled, but did not run. This usually means"
44508           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44509           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44510           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44511           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44512           echo "*** is required on your system"
44513           echo "***"
44514           echo "*** If you have an old version installed, it is best to remove it, although"
44515           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44516 else
44517   echo "$as_me: failed program was:" >&5
44518 sed 's/^/| /' conftest.$ac_ext >&5
44519
44520          echo "*** The test program failed to compile or link. See the file config.log for the"
44521           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44522           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44523           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44524 fi
44525
44526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44527       conftest$ac_exeext conftest.$ac_ext
44528           CFLAGS="$ac_save_CFLAGS"
44529           CXXFLAGS="$ac_save_CXXFLAGS"
44530           LIBS="$ac_save_LIBS"
44531        fi
44532      fi
44533      SDL_CFLAGS=""
44534      SDL_LIBS=""
44535      wxUSE_LIBSDL="no"
44536   fi
44537
44538
44539   rm -f conf.sdltest
44540
44541       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44542         WITH_PLUGIN_SDL=1
44543       fi
44544     fi
44545   else
44546         if test "$wxUSE_MGL" = 1; then
44547         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44548 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44549         wxUSE_SOUND="no"
44550     fi
44551   fi
44552 fi
44553
44554 if test "$wxUSE_SOUND" = "yes"; then
44555   cat >>confdefs.h <<\_ACEOF
44556 #define wxUSE_SOUND 1
44557 _ACEOF
44558
44559   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44560 fi
44561
44562 if test "$WXGTK2" = 1; then
44563
44564
44565 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44566         if test -n "$ac_tool_prefix"; then
44567   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44568 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44571 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44572   echo $ECHO_N "(cached) $ECHO_C" >&6
44573 else
44574   case $PKG_CONFIG in
44575   [\\/]* | ?:[\\/]*)
44576   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44577   ;;
44578   *)
44579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44580 for as_dir in $PATH
44581 do
44582   IFS=$as_save_IFS
44583   test -z "$as_dir" && as_dir=.
44584   for ac_exec_ext in '' $ac_executable_extensions; do
44585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44586     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44588     break 2
44589   fi
44590 done
44591 done
44592 IFS=$as_save_IFS
44593
44594   ;;
44595 esac
44596 fi
44597 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44598 if test -n "$PKG_CONFIG"; then
44599   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44600 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44601 else
44602   { echo "$as_me:$LINENO: result: no" >&5
44603 echo "${ECHO_T}no" >&6; }
44604 fi
44605
44606
44607 fi
44608 if test -z "$ac_cv_path_PKG_CONFIG"; then
44609   ac_pt_PKG_CONFIG=$PKG_CONFIG
44610   # Extract the first word of "pkg-config", so it can be a program name with args.
44611 set dummy pkg-config; ac_word=$2
44612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44614 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44615   echo $ECHO_N "(cached) $ECHO_C" >&6
44616 else
44617   case $ac_pt_PKG_CONFIG in
44618   [\\/]* | ?:[\\/]*)
44619   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44620   ;;
44621   *)
44622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44623 for as_dir in $PATH
44624 do
44625   IFS=$as_save_IFS
44626   test -z "$as_dir" && as_dir=.
44627   for ac_exec_ext in '' $ac_executable_extensions; do
44628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44629     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44631     break 2
44632   fi
44633 done
44634 done
44635 IFS=$as_save_IFS
44636
44637   ;;
44638 esac
44639 fi
44640 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44641 if test -n "$ac_pt_PKG_CONFIG"; then
44642   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44643 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44644 else
44645   { echo "$as_me:$LINENO: result: no" >&5
44646 echo "${ECHO_T}no" >&6; }
44647 fi
44648
44649   if test "x$ac_pt_PKG_CONFIG" = x; then
44650     PKG_CONFIG=""
44651   else
44652     case $cross_compiling:$ac_tool_warned in
44653 yes:)
44654 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44655 whose name does not start with the host triplet.  If you think this
44656 configuration is useful to you, please write to autoconf@gnu.org." >&5
44657 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44658 whose name does not start with the host triplet.  If you think this
44659 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44660 ac_tool_warned=yes ;;
44661 esac
44662     PKG_CONFIG=$ac_pt_PKG_CONFIG
44663   fi
44664 else
44665   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44666 fi
44667
44668 fi
44669 if test -n "$PKG_CONFIG"; then
44670         _pkg_min_version=0.9.0
44671         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44672 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44673         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44674                 { echo "$as_me:$LINENO: result: yes" >&5
44675 echo "${ECHO_T}yes" >&6; }
44676         else
44677                 { echo "$as_me:$LINENO: result: no" >&5
44678 echo "${ECHO_T}no" >&6; }
44679                 PKG_CONFIG=""
44680         fi
44681
44682 fi
44683
44684     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44685
44686         if test "$wxUSE_GTKPRINT" = "yes" ; then
44687
44688
44689 pkg_failed=no
44690 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
44691 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
44692
44693 if test -n "$PKG_CONFIG"; then
44694     if test -n "$GTKPRINT_CFLAGS"; then
44695         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
44696     else
44697         if test -n "$PKG_CONFIG" && \
44698     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44699   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44700   ac_status=$?
44701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44702   (exit $ac_status); }; then
44703   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44704 else
44705   pkg_failed=yes
44706 fi
44707     fi
44708 else
44709         pkg_failed=untried
44710 fi
44711 if test -n "$PKG_CONFIG"; then
44712     if test -n "$GTKPRINT_LIBS"; then
44713         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
44714     else
44715         if test -n "$PKG_CONFIG" && \
44716     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44717   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44718   ac_status=$?
44719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44720   (exit $ac_status); }; then
44721   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44722 else
44723   pkg_failed=yes
44724 fi
44725     fi
44726 else
44727         pkg_failed=untried
44728 fi
44729
44730
44731
44732 if test $pkg_failed = yes; then
44733
44734 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44735         _pkg_short_errors_supported=yes
44736 else
44737         _pkg_short_errors_supported=no
44738 fi
44739         if test $_pkg_short_errors_supported = yes; then
44740                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44741         else
44742                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44743         fi
44744         # Put the nasty error message in config.log where it belongs
44745         echo "$GTKPRINT_PKG_ERRORS" >&5
44746
44747
44748                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44749 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44750                         wxUSE_GTKPRINT="no"
44751
44752
44753 elif test $pkg_failed = untried; then
44754
44755                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44756 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44757                         wxUSE_GTKPRINT="no"
44758
44759
44760 else
44761         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
44762         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
44763         { echo "$as_me:$LINENO: result: yes" >&5
44764 echo "${ECHO_T}yes" >&6; }
44765
44766                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
44767                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
44768                         cat >>confdefs.h <<\_ACEOF
44769 #define wxUSE_GTKPRINT 1
44770 _ACEOF
44771
44772
44773 fi
44774         fi
44775
44776         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
44777
44778
44779 pkg_failed=no
44780 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
44781 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
44782
44783 if test -n "$PKG_CONFIG"; then
44784     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
44785         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
44786     else
44787         if test -n "$PKG_CONFIG" && \
44788     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44789   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44790   ac_status=$?
44791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44792   (exit $ac_status); }; then
44793   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44794 else
44795   pkg_failed=yes
44796 fi
44797     fi
44798 else
44799         pkg_failed=untried
44800 fi
44801 if test -n "$PKG_CONFIG"; then
44802     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
44803         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
44804     else
44805         if test -n "$PKG_CONFIG" && \
44806     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44807   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44808   ac_status=$?
44809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44810   (exit $ac_status); }; then
44811   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44812 else
44813   pkg_failed=yes
44814 fi
44815     fi
44816 else
44817         pkg_failed=untried
44818 fi
44819
44820
44821
44822 if test $pkg_failed = yes; then
44823
44824 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44825         _pkg_short_errors_supported=yes
44826 else
44827         _pkg_short_errors_supported=no
44828 fi
44829         if test $_pkg_short_errors_supported = yes; then
44830                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44831         else
44832                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44833         fi
44834         # Put the nasty error message in config.log where it belongs
44835         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
44836
44837
44838                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44839 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44840                         wxUSE_LIBGNOMEPRINT="no"
44841
44842
44843 elif test $pkg_failed = untried; then
44844
44845                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44846 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44847                         wxUSE_LIBGNOMEPRINT="no"
44848
44849
44850 else
44851         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
44852         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
44853         { echo "$as_me:$LINENO: result: yes" >&5
44854 echo "${ECHO_T}yes" >&6; }
44855
44856                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
44857                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
44858                         cat >>confdefs.h <<\_ACEOF
44859 #define wxUSE_LIBGNOMEPRINT 1
44860 _ACEOF
44861
44862
44863 fi
44864         fi
44865     fi
44866
44867     if test "$wxUSE_MIMETYPE" = "yes" ; then
44868         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
44869
44870
44871 pkg_failed=no
44872 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
44873 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
44874
44875 if test -n "$PKG_CONFIG"; then
44876     if test -n "$GNOMEVFS_CFLAGS"; then
44877         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
44878     else
44879         if test -n "$PKG_CONFIG" && \
44880     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44881   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44882   ac_status=$?
44883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44884   (exit $ac_status); }; then
44885   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44886 else
44887   pkg_failed=yes
44888 fi
44889     fi
44890 else
44891         pkg_failed=untried
44892 fi
44893 if test -n "$PKG_CONFIG"; then
44894     if test -n "$GNOMEVFS_LIBS"; then
44895         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
44896     else
44897         if test -n "$PKG_CONFIG" && \
44898     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44899   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44900   ac_status=$?
44901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44902   (exit $ac_status); }; then
44903   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44904 else
44905   pkg_failed=yes
44906 fi
44907     fi
44908 else
44909         pkg_failed=untried
44910 fi
44911
44912
44913
44914 if test $pkg_failed = yes; then
44915
44916 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44917         _pkg_short_errors_supported=yes
44918 else
44919         _pkg_short_errors_supported=no
44920 fi
44921         if test $_pkg_short_errors_supported = yes; then
44922                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44923         else
44924                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44925         fi
44926         # Put the nasty error message in config.log where it belongs
44927         echo "$GNOMEVFS_PKG_ERRORS" >&5
44928
44929
44930                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44931 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44932                         wxUSE_LIBGNOMEVFS="no"
44933
44934
44935 elif test $pkg_failed = untried; then
44936
44937                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44938 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44939                         wxUSE_LIBGNOMEVFS="no"
44940
44941
44942 else
44943         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
44944         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
44945         { echo "$as_me:$LINENO: result: yes" >&5
44946 echo "${ECHO_T}yes" >&6; }
44947
44948                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
44949                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
44950                         cat >>confdefs.h <<\_ACEOF
44951 #define wxUSE_LIBGNOMEVFS 1
44952 _ACEOF
44953
44954
44955 fi
44956         fi
44957     fi
44958
44959     if test "$wxUSE_LIBHILDON" = "yes" ; then
44960
44961 pkg_failed=no
44962 { echo "$as_me:$LINENO: checking for HILDON" >&5
44963 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
44964
44965 if test -n "$PKG_CONFIG"; then
44966     if test -n "$HILDON_CFLAGS"; then
44967         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
44968     else
44969         if test -n "$PKG_CONFIG" && \
44970     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44971   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44972   ac_status=$?
44973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44974   (exit $ac_status); }; then
44975   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
44976 else
44977   pkg_failed=yes
44978 fi
44979     fi
44980 else
44981         pkg_failed=untried
44982 fi
44983 if test -n "$PKG_CONFIG"; then
44984     if test -n "$HILDON_LIBS"; then
44985         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
44986     else
44987         if test -n "$PKG_CONFIG" && \
44988     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44989   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44990   ac_status=$?
44991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44992   (exit $ac_status); }; then
44993   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
44994 else
44995   pkg_failed=yes
44996 fi
44997     fi
44998 else
44999         pkg_failed=untried
45000 fi
45001
45002
45003
45004 if test $pkg_failed = yes; then
45005
45006 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45007         _pkg_short_errors_supported=yes
45008 else
45009         _pkg_short_errors_supported=no
45010 fi
45011         if test $_pkg_short_errors_supported = yes; then
45012                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45013         else
45014                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45015         fi
45016         # Put the nasty error message in config.log where it belongs
45017         echo "$HILDON_PKG_ERRORS" >&5
45018
45019
45020                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45021 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45022                         wxUSE_LIBHILDON="no"
45023                         ac_hildon_lgpl=0
45024
45025
45026 elif test $pkg_failed = untried; then
45027
45028                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45029 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45030                         wxUSE_LIBHILDON="no"
45031                         ac_hildon_lgpl=0
45032
45033
45034 else
45035         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45036         HILDON_LIBS=$pkg_cv_HILDON_LIBS
45037         { echo "$as_me:$LINENO: result: yes" >&5
45038 echo "${ECHO_T}yes" >&6; }
45039
45040                 EXTRALIBS_HILDON="$HILDON_LIBS"
45041                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
45042                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45043                 cat >>confdefs.h <<\_ACEOF
45044 #define wxUSE_LIBHILDON 1
45045 _ACEOF
45046
45047                 ac_hildon_lgpl=1
45048
45049 fi
45050
45051         if test "$ac_hildon_lgpl" = 0 ; then
45052
45053 pkg_failed=no
45054 { echo "$as_me:$LINENO: checking for HILDON2" >&5
45055 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
45056
45057 if test -n "$PKG_CONFIG"; then
45058     if test -n "$HILDON2_CFLAGS"; then
45059         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
45060     else
45061         if test -n "$PKG_CONFIG" && \
45062     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
45063   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
45064   ac_status=$?
45065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45066   (exit $ac_status); }; then
45067   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
45068 else
45069   pkg_failed=yes
45070 fi
45071     fi
45072 else
45073         pkg_failed=untried
45074 fi
45075 if test -n "$PKG_CONFIG"; then
45076     if test -n "$HILDON2_LIBS"; then
45077         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
45078     else
45079         if test -n "$PKG_CONFIG" && \
45080     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
45081   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
45082   ac_status=$?
45083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45084   (exit $ac_status); }; then
45085   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
45086 else
45087   pkg_failed=yes
45088 fi
45089     fi
45090 else
45091         pkg_failed=untried
45092 fi
45093
45094
45095
45096 if test $pkg_failed = yes; then
45097
45098 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45099         _pkg_short_errors_supported=yes
45100 else
45101         _pkg_short_errors_supported=no
45102 fi
45103         if test $_pkg_short_errors_supported = yes; then
45104                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
45105         else
45106                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
45107         fi
45108         # Put the nasty error message in config.log where it belongs
45109         echo "$HILDON2_PKG_ERRORS" >&5
45110
45111
45112                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
45113 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
45114                             wxUSE_LIBHILDON2="no"
45115
45116
45117 elif test $pkg_failed = untried; then
45118
45119                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
45120 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
45121                             wxUSE_LIBHILDON2="no"
45122
45123
45124 else
45125         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
45126         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
45127         { echo "$as_me:$LINENO: result: yes" >&5
45128 echo "${ECHO_T}yes" >&6; }
45129
45130                     EXTRALIBS_HILDON="$HILDON2_LIBS"
45131                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
45132                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
45133                     cat >>confdefs.h <<\_ACEOF
45134 #define wxUSE_LIBHILDON2 1
45135 _ACEOF
45136
45137
45138 fi
45139         fi
45140     fi
45141 fi
45142
45143 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45144   cat >>confdefs.h <<\_ACEOF
45145 #define wxUSE_CMDLINE_PARSER 1
45146 _ACEOF
45147
45148 fi
45149
45150 if test "$wxUSE_STOPWATCH" = "yes"; then
45151   cat >>confdefs.h <<\_ACEOF
45152 #define wxUSE_STOPWATCH 1
45153 _ACEOF
45154
45155 fi
45156
45157 if test "$wxUSE_DATETIME" = "yes"; then
45158   cat >>confdefs.h <<\_ACEOF
45159 #define wxUSE_DATETIME 1
45160 _ACEOF
45161
45162 fi
45163
45164 if test "$wxUSE_FILE" = "yes"; then
45165   cat >>confdefs.h <<\_ACEOF
45166 #define wxUSE_FILE 1
45167 _ACEOF
45168
45169 fi
45170
45171 if test "$wxUSE_FFILE" = "yes"; then
45172   cat >>confdefs.h <<\_ACEOF
45173 #define wxUSE_FFILE 1
45174 _ACEOF
45175
45176 fi
45177
45178 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45179   if test "$wxUSE_STREAMS" != yes; then
45180     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45181 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45182     wxUSE_ARCHIVE_STREAMS=no
45183   else
45184     cat >>confdefs.h <<\_ACEOF
45185 #define wxUSE_ARCHIVE_STREAMS 1
45186 _ACEOF
45187
45188   fi
45189 fi
45190
45191 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45192   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45193     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45194 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45195   elif test "$wxUSE_ZLIB" = "no"; then
45196     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45197 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45198   else
45199     cat >>confdefs.h <<\_ACEOF
45200 #define wxUSE_ZIPSTREAM 1
45201 _ACEOF
45202
45203   fi
45204 fi
45205
45206 if test "$wxUSE_TARSTREAM" = "yes"; then
45207   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45208     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45209 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45210   else
45211     cat >>confdefs.h <<\_ACEOF
45212 #define wxUSE_TARSTREAM 1
45213 _ACEOF
45214
45215   fi
45216 fi
45217
45218 if test "$wxUSE_FILE_HISTORY" = "yes"; then
45219   cat >>confdefs.h <<\_ACEOF
45220 #define wxUSE_FILE_HISTORY 1
45221 _ACEOF
45222
45223 fi
45224
45225 if test "$wxUSE_FILESYSTEM" = "yes"; then
45226   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45227     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45228 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45229     wxUSE_FILESYSTEM=no
45230   else
45231     cat >>confdefs.h <<\_ACEOF
45232 #define wxUSE_FILESYSTEM 1
45233 _ACEOF
45234
45235   fi
45236 fi
45237
45238 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45239   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45240     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45241 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45242   else
45243     cat >>confdefs.h <<\_ACEOF
45244 #define wxUSE_FS_ARCHIVE 1
45245 _ACEOF
45246
45247   fi
45248 fi
45249
45250 if test "$wxUSE_FS_ZIP" = "yes"; then
45251   if test "$wxUSE_FS_ARCHIVE" != yes; then
45252     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45253 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45254   else
45255     cat >>confdefs.h <<\_ACEOF
45256 #define wxUSE_FS_ZIP 1
45257 _ACEOF
45258
45259   fi
45260 fi
45261
45262 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45263   if test "$USE_UNIX" != 1; then
45264     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45265 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45266     wxUSE_ON_FATAL_EXCEPTION=no
45267   else
45268     cat >>confdefs.h <<\_ACEOF
45269 #define wxUSE_ON_FATAL_EXCEPTION 1
45270 _ACEOF
45271
45272   fi
45273 fi
45274
45275 if test "$wxUSE_STACKWALKER" = "yes"; then
45276     cat >>confdefs.h <<\_ACEOF
45277 #define wxUSE_STACKWALKER 1
45278 _ACEOF
45279
45280 fi
45281
45282 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45283     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
45284         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45285 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45286         wxUSE_DEBUGREPORT=no
45287     else
45288         cat >>confdefs.h <<\_ACEOF
45289 #define wxUSE_DEBUGREPORT 1
45290 _ACEOF
45291
45292         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45293             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45294         fi
45295     fi
45296 fi
45297
45298 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45299   cat >>confdefs.h <<\_ACEOF
45300 #define wxUSE_SNGLINST_CHECKER 1
45301 _ACEOF
45302
45303 fi
45304
45305 if test "$wxUSE_BUSYINFO" = "yes"; then
45306   cat >>confdefs.h <<\_ACEOF
45307 #define wxUSE_BUSYINFO 1
45308 _ACEOF
45309
45310 fi
45311
45312 if test "$wxUSE_HOTKEY" = "yes"; then
45313   if test "$wxUSE_MSW" != 1 -a "$wxUSE_OSX_COCOA" != 1 -a "$wxUSE_OSX_CARBON" != 1; then
45314     { echo "$as_me:$LINENO: WARNING: Hot keys not supported by the current toolkit, disabled" >&5
45315 echo "$as_me: WARNING: Hot keys not supported by the current toolkit, disabled" >&2;}
45316     wxUSE_HOTKEY=no
45317   fi
45318 elif test "$wxUSE_HOTKEY" = "auto"; then
45319   if test "$wxUSE_MSW" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OSX_CARBON" = 1; then
45320     wxUSE_HOTKEY=yes
45321   fi
45322 fi
45323 if test "$wxUSE_HOTKEY" = "yes"; then
45324   cat >>confdefs.h <<\_ACEOF
45325 #define wxUSE_HOTKEY 1
45326 _ACEOF
45327
45328 fi
45329
45330 if test "$wxUSE_STD_CONTAINERS" = "yes"; then
45331   cat >>confdefs.h <<\_ACEOF
45332 #define wxUSE_STD_CONTAINERS 1
45333 _ACEOF
45334
45335 fi
45336
45337 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45338   cat >>confdefs.h <<\_ACEOF
45339 #define wxUSE_STD_IOSTREAM 1
45340 _ACEOF
45341
45342 fi
45343
45344 if test "$wxUSE_STD_STRING" = "yes"; then
45345   cat >>confdefs.h <<\_ACEOF
45346 #define wxUSE_STD_STRING 1
45347 _ACEOF
45348
45349 fi
45350
45351 if test "$wxUSE_STD_STRING_CONV_IN_WXSTRING" = "yes"; then
45352   cat >>confdefs.h <<\_ACEOF
45353 #define wxUSE_STD_STRING_CONV_IN_WXSTRING 1
45354 _ACEOF
45355
45356 fi
45357
45358 if test "$wxUSE_STDPATHS" = "yes"; then
45359   cat >>confdefs.h <<\_ACEOF
45360 #define wxUSE_STDPATHS 1
45361 _ACEOF
45362
45363 fi
45364
45365 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45366     cat >>confdefs.h <<\_ACEOF
45367 #define wxUSE_TEXTBUFFER 1
45368 _ACEOF
45369
45370 fi
45371
45372 if test "$wxUSE_TEXTFILE" = "yes"; then
45373   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45374     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45375 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45376   else
45377     cat >>confdefs.h <<\_ACEOF
45378 #define wxUSE_TEXTFILE 1
45379 _ACEOF
45380
45381   fi
45382 fi
45383
45384 if test "$wxUSE_CONFIG" = "yes" ; then
45385   if test "$wxUSE_TEXTFILE" != "yes"; then
45386     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45387 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45388   else
45389     cat >>confdefs.h <<\_ACEOF
45390 #define wxUSE_CONFIG 1
45391 _ACEOF
45392
45393     cat >>confdefs.h <<\_ACEOF
45394 #define wxUSE_CONFIG_NATIVE 1
45395 _ACEOF
45396
45397     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45398   fi
45399 fi
45400
45401 if test "$wxUSE_INTL" = "yes" ; then
45402   if test "$wxUSE_FILE" != "yes"; then
45403     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45404 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45405   else
45406     cat >>confdefs.h <<\_ACEOF
45407 #define wxUSE_INTL 1
45408 _ACEOF
45409
45410     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45411     GUIDIST="$GUIDIST INTL_DIST"
45412   fi
45413 fi
45414
45415 if test "$wxUSE_XLOCALE" = "yes" ; then
45416     cat >>confdefs.h <<\_ACEOF
45417 #define wxUSE_XLOCALE 1
45418 _ACEOF
45419
45420     { echo "$as_me:$LINENO: checking for locale_t" >&5
45421 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
45422 if test "${ac_cv_type_locale_t+set}" = set; then
45423   echo $ECHO_N "(cached) $ECHO_C" >&6
45424 else
45425   cat >conftest.$ac_ext <<_ACEOF
45426 /* confdefs.h.  */
45427 _ACEOF
45428 cat confdefs.h >>conftest.$ac_ext
45429 cat >>conftest.$ac_ext <<_ACEOF
45430 /* end confdefs.h.  */
45431 #include <xlocale.h>
45432                     #include <locale.h>
45433
45434 typedef locale_t ac__type_new_;
45435 int
45436 main ()
45437 {
45438 if ((ac__type_new_ *) 0)
45439   return 0;
45440 if (sizeof (ac__type_new_))
45441   return 0;
45442   ;
45443   return 0;
45444 }
45445 _ACEOF
45446 rm -f conftest.$ac_objext
45447 if { (ac_try="$ac_compile"
45448 case "(($ac_try" in
45449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45450   *) ac_try_echo=$ac_try;;
45451 esac
45452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45453   (eval "$ac_compile") 2>conftest.er1
45454   ac_status=$?
45455   grep -v '^ *+' conftest.er1 >conftest.err
45456   rm -f conftest.er1
45457   cat conftest.err >&5
45458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45459   (exit $ac_status); } && {
45460          test -z "$ac_c_werror_flag" ||
45461          test ! -s conftest.err
45462        } && test -s conftest.$ac_objext; then
45463   ac_cv_type_locale_t=yes
45464 else
45465   echo "$as_me: failed program was:" >&5
45466 sed 's/^/| /' conftest.$ac_ext >&5
45467
45468         ac_cv_type_locale_t=no
45469 fi
45470
45471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45472 fi
45473 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
45474 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
45475 if test $ac_cv_type_locale_t = yes; then
45476
45477 cat >>confdefs.h <<_ACEOF
45478 #define HAVE_LOCALE_T 1
45479 _ACEOF
45480
45481
45482 fi
45483
45484 fi
45485
45486 if test "$wxUSE_LOG" = "yes"; then
45487   cat >>confdefs.h <<\_ACEOF
45488 #define wxUSE_LOG 1
45489 _ACEOF
45490
45491
45492     if test "$wxUSE_LOGGUI" = "yes"; then
45493       cat >>confdefs.h <<\_ACEOF
45494 #define wxUSE_LOGGUI 1
45495 _ACEOF
45496
45497     fi
45498
45499     if test "$wxUSE_LOGWINDOW" = "yes"; then
45500       cat >>confdefs.h <<\_ACEOF
45501 #define wxUSE_LOGWINDOW 1
45502 _ACEOF
45503
45504     fi
45505
45506     if test "$wxUSE_LOGDIALOG" = "yes"; then
45507       cat >>confdefs.h <<\_ACEOF
45508 #define wxUSE_LOG_DIALOG 1
45509 _ACEOF
45510
45511     fi
45512
45513         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45514 fi
45515
45516 if test "$wxUSE_LONGLONG" = "yes"; then
45517   cat >>confdefs.h <<\_ACEOF
45518 #define wxUSE_LONGLONG 1
45519 _ACEOF
45520
45521 fi
45522
45523 if test "$wxUSE_GEOMETRY" = "yes"; then
45524   cat >>confdefs.h <<\_ACEOF
45525 #define wxUSE_GEOMETRY 1
45526 _ACEOF
45527
45528 fi
45529
45530 if test "$wxUSE_BASE64" = "yes"; then
45531   cat >>confdefs.h <<\_ACEOF
45532 #define wxUSE_BASE64 1
45533 _ACEOF
45534
45535 fi
45536
45537 if test "$wxUSE_STREAMS" = "yes" ; then
45538   cat >>confdefs.h <<\_ACEOF
45539 #define wxUSE_STREAMS 1
45540 _ACEOF
45541
45542 fi
45543
45544 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45545   cat >>confdefs.h <<\_ACEOF
45546 #define wxUSE_PRINTF_POS_PARAMS 1
45547 _ACEOF
45548
45549 fi
45550
45551 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45552   cat >>confdefs.h <<\_ACEOF
45553 #define wxUSE_OBJC_UNIQUIFYING 1
45554 _ACEOF
45555
45556 fi
45557
45558
45559 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45560     cat >>confdefs.h <<\_ACEOF
45561 #define wxUSE_CONSOLE_EVENTLOOP 1
45562 _ACEOF
45563
45564
45565     if test "$wxUSE_UNIX" = "yes"; then
45566         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45567             cat >>confdefs.h <<\_ACEOF
45568 #define wxUSE_SELECT_DISPATCHER 1
45569 _ACEOF
45570
45571         fi
45572
45573         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45574
45575 for ac_header in sys/epoll.h
45576 do
45577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45581   echo $ECHO_N "(cached) $ECHO_C" >&6
45582 else
45583   cat >conftest.$ac_ext <<_ACEOF
45584 /* confdefs.h.  */
45585 _ACEOF
45586 cat confdefs.h >>conftest.$ac_ext
45587 cat >>conftest.$ac_ext <<_ACEOF
45588 /* end confdefs.h.  */
45589 $ac_includes_default
45590
45591 #include <$ac_header>
45592 _ACEOF
45593 rm -f conftest.$ac_objext
45594 if { (ac_try="$ac_compile"
45595 case "(($ac_try" in
45596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45597   *) ac_try_echo=$ac_try;;
45598 esac
45599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45600   (eval "$ac_compile") 2>conftest.er1
45601   ac_status=$?
45602   grep -v '^ *+' conftest.er1 >conftest.err
45603   rm -f conftest.er1
45604   cat conftest.err >&5
45605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45606   (exit $ac_status); } && {
45607          test -z "$ac_c_werror_flag" ||
45608          test ! -s conftest.err
45609        } && test -s conftest.$ac_objext; then
45610   eval "$as_ac_Header=yes"
45611 else
45612   echo "$as_me: failed program was:" >&5
45613 sed 's/^/| /' conftest.$ac_ext >&5
45614
45615         eval "$as_ac_Header=no"
45616 fi
45617
45618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45619 fi
45620 ac_res=`eval echo '${'$as_ac_Header'}'`
45621                { echo "$as_me:$LINENO: result: $ac_res" >&5
45622 echo "${ECHO_T}$ac_res" >&6; }
45623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45624   cat >>confdefs.h <<_ACEOF
45625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45626 _ACEOF
45627
45628 fi
45629
45630 done
45631
45632             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45633                 cat >>confdefs.h <<\_ACEOF
45634 #define wxUSE_EPOLL_DISPATCHER 1
45635 _ACEOF
45636
45637             else
45638                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45639 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45640             fi
45641         fi
45642     fi
45643 fi
45644
45645
45646
45647
45648 for ac_func in gettimeofday ftime
45649 do
45650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45654   echo $ECHO_N "(cached) $ECHO_C" >&6
45655 else
45656   cat >conftest.$ac_ext <<_ACEOF
45657 /* confdefs.h.  */
45658 _ACEOF
45659 cat confdefs.h >>conftest.$ac_ext
45660 cat >>conftest.$ac_ext <<_ACEOF
45661 /* end confdefs.h.  */
45662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45664 #define $ac_func innocuous_$ac_func
45665
45666 /* System header to define __stub macros and hopefully few prototypes,
45667     which can conflict with char $ac_func (); below.
45668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45669     <limits.h> exists even on freestanding compilers.  */
45670
45671 #ifdef __STDC__
45672 # include <limits.h>
45673 #else
45674 # include <assert.h>
45675 #endif
45676
45677 #undef $ac_func
45678
45679 /* Override any GCC internal prototype to avoid an error.
45680    Use char because int might match the return type of a GCC
45681    builtin and then its argument prototype would still apply.  */
45682 #ifdef __cplusplus
45683 extern "C"
45684 #endif
45685 char $ac_func ();
45686 /* The GNU C library defines this for functions which it implements
45687     to always fail with ENOSYS.  Some functions are actually named
45688     something starting with __ and the normal name is an alias.  */
45689 #if defined __stub_$ac_func || defined __stub___$ac_func
45690 choke me
45691 #endif
45692
45693 int
45694 main ()
45695 {
45696 return $ac_func ();
45697   ;
45698   return 0;
45699 }
45700 _ACEOF
45701 rm -f conftest.$ac_objext conftest$ac_exeext
45702 if { (ac_try="$ac_link"
45703 case "(($ac_try" in
45704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45705   *) ac_try_echo=$ac_try;;
45706 esac
45707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45708   (eval "$ac_link") 2>conftest.er1
45709   ac_status=$?
45710   grep -v '^ *+' conftest.er1 >conftest.err
45711   rm -f conftest.er1
45712   cat conftest.err >&5
45713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45714   (exit $ac_status); } && {
45715          test -z "$ac_c_werror_flag" ||
45716          test ! -s conftest.err
45717        } && test -s conftest$ac_exeext &&
45718        $as_test_x conftest$ac_exeext; then
45719   eval "$as_ac_var=yes"
45720 else
45721   echo "$as_me: failed program was:" >&5
45722 sed 's/^/| /' conftest.$ac_ext >&5
45723
45724         eval "$as_ac_var=no"
45725 fi
45726
45727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45728       conftest$ac_exeext conftest.$ac_ext
45729 fi
45730 ac_res=`eval echo '${'$as_ac_var'}'`
45731                { echo "$as_me:$LINENO: result: $ac_res" >&5
45732 echo "${ECHO_T}$ac_res" >&6; }
45733 if test `eval echo '${'$as_ac_var'}'` = yes; then
45734   cat >>confdefs.h <<_ACEOF
45735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45736 _ACEOF
45737  break
45738 fi
45739 done
45740
45741
45742 if test "$ac_cv_func_gettimeofday" = "yes"; then
45743     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45744 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45745 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45746   echo $ECHO_N "(cached) $ECHO_C" >&6
45747 else
45748
45749                 cat >conftest.$ac_ext <<_ACEOF
45750 /* confdefs.h.  */
45751 _ACEOF
45752 cat confdefs.h >>conftest.$ac_ext
45753 cat >>conftest.$ac_ext <<_ACEOF
45754 /* end confdefs.h.  */
45755
45756                 #include <sys/time.h>
45757                 #include <unistd.h>
45758
45759 int
45760 main ()
45761 {
45762
45763                 struct timeval tv;
45764                 gettimeofday(&tv, NULL);
45765
45766   ;
45767   return 0;
45768 }
45769 _ACEOF
45770 rm -f conftest.$ac_objext
45771 if { (ac_try="$ac_compile"
45772 case "(($ac_try" in
45773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45774   *) ac_try_echo=$ac_try;;
45775 esac
45776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45777   (eval "$ac_compile") 2>conftest.er1
45778   ac_status=$?
45779   grep -v '^ *+' conftest.er1 >conftest.err
45780   rm -f conftest.er1
45781   cat conftest.err >&5
45782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45783   (exit $ac_status); } && {
45784          test -z "$ac_c_werror_flag" ||
45785          test ! -s conftest.err
45786        } && test -s conftest.$ac_objext; then
45787   wx_cv_func_gettimeofday_has_2_args=yes
45788 else
45789   echo "$as_me: failed program was:" >&5
45790 sed 's/^/| /' conftest.$ac_ext >&5
45791
45792         cat >conftest.$ac_ext <<_ACEOF
45793 /* confdefs.h.  */
45794 _ACEOF
45795 cat confdefs.h >>conftest.$ac_ext
45796 cat >>conftest.$ac_ext <<_ACEOF
45797 /* end confdefs.h.  */
45798
45799                     #include <sys/time.h>
45800                     #include <unistd.h>
45801
45802 int
45803 main ()
45804 {
45805
45806                     struct timeval tv;
45807                     gettimeofday(&tv);
45808
45809   ;
45810   return 0;
45811 }
45812 _ACEOF
45813 rm -f conftest.$ac_objext
45814 if { (ac_try="$ac_compile"
45815 case "(($ac_try" in
45816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45817   *) ac_try_echo=$ac_try;;
45818 esac
45819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45820   (eval "$ac_compile") 2>conftest.er1
45821   ac_status=$?
45822   grep -v '^ *+' conftest.er1 >conftest.err
45823   rm -f conftest.er1
45824   cat conftest.err >&5
45825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45826   (exit $ac_status); } && {
45827          test -z "$ac_c_werror_flag" ||
45828          test ! -s conftest.err
45829        } && test -s conftest.$ac_objext; then
45830   wx_cv_func_gettimeofday_has_2_args=no
45831 else
45832   echo "$as_me: failed program was:" >&5
45833 sed 's/^/| /' conftest.$ac_ext >&5
45834
45835
45836                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45837 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45838                     wx_cv_func_gettimeofday_has_2_args=unknown
45839
45840
45841 fi
45842
45843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45844
45845 fi
45846
45847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45848
45849 fi
45850 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45851 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45852
45853     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45854         cat >>confdefs.h <<\_ACEOF
45855 #define WX_GETTIMEOFDAY_NO_TZ 1
45856 _ACEOF
45857
45858     fi
45859 fi
45860
45861 if test "$wxUSE_DATETIME" = "yes"; then
45862             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
45863 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
45864 if test "${wx_cv_var_timezone+set}" = set; then
45865   echo $ECHO_N "(cached) $ECHO_C" >&6
45866 else
45867
45868                         ac_ext=cpp
45869 ac_cpp='$CXXCPP $CPPFLAGS'
45870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45873
45874                         cat >conftest.$ac_ext <<_ACEOF
45875 /* confdefs.h.  */
45876 _ACEOF
45877 cat confdefs.h >>conftest.$ac_ext
45878 cat >>conftest.$ac_ext <<_ACEOF
45879 /* end confdefs.h.  */
45880
45881                                 #include <time.h>
45882
45883 int
45884 main ()
45885 {
45886
45887                                 int tz;
45888                                 tz = timezone;
45889
45890   ;
45891   return 0;
45892 }
45893 _ACEOF
45894 rm -f conftest.$ac_objext
45895 if { (ac_try="$ac_compile"
45896 case "(($ac_try" in
45897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45898   *) ac_try_echo=$ac_try;;
45899 esac
45900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45901   (eval "$ac_compile") 2>conftest.er1
45902   ac_status=$?
45903   grep -v '^ *+' conftest.er1 >conftest.err
45904   rm -f conftest.er1
45905   cat conftest.err >&5
45906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45907   (exit $ac_status); } && {
45908          test -z "$ac_cxx_werror_flag" ||
45909          test ! -s conftest.err
45910        } && test -s conftest.$ac_objext; then
45911
45912                                 wx_cv_var_timezone=timezone
45913
45914 else
45915   echo "$as_me: failed program was:" >&5
45916 sed 's/^/| /' conftest.$ac_ext >&5
45917
45918
45919                                 cat >conftest.$ac_ext <<_ACEOF
45920 /* confdefs.h.  */
45921 _ACEOF
45922 cat confdefs.h >>conftest.$ac_ext
45923 cat >>conftest.$ac_ext <<_ACEOF
45924 /* end confdefs.h.  */
45925
45926                                         #include <time.h>
45927
45928 int
45929 main ()
45930 {
45931
45932                                         int tz;
45933                                         tz = _timezone;
45934
45935   ;
45936   return 0;
45937 }
45938 _ACEOF
45939 rm -f conftest.$ac_objext
45940 if { (ac_try="$ac_compile"
45941 case "(($ac_try" in
45942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45943   *) ac_try_echo=$ac_try;;
45944 esac
45945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45946   (eval "$ac_compile") 2>conftest.er1
45947   ac_status=$?
45948   grep -v '^ *+' conftest.er1 >conftest.err
45949   rm -f conftest.er1
45950   cat conftest.err >&5
45951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45952   (exit $ac_status); } && {
45953          test -z "$ac_cxx_werror_flag" ||
45954          test ! -s conftest.err
45955        } && test -s conftest.$ac_objext; then
45956
45957                                         wx_cv_var_timezone=_timezone
45958
45959 else
45960   echo "$as_me: failed program was:" >&5
45961 sed 's/^/| /' conftest.$ac_ext >&5
45962
45963
45964                                         cat >conftest.$ac_ext <<_ACEOF
45965 /* confdefs.h.  */
45966 _ACEOF
45967 cat confdefs.h >>conftest.$ac_ext
45968 cat >>conftest.$ac_ext <<_ACEOF
45969 /* end confdefs.h.  */
45970
45971                                                 #include <time.h>
45972
45973 int
45974 main ()
45975 {
45976
45977                                                 int tz;
45978                                                 tz = __timezone;
45979
45980   ;
45981   return 0;
45982 }
45983 _ACEOF
45984 rm -f conftest.$ac_objext
45985 if { (ac_try="$ac_compile"
45986 case "(($ac_try" in
45987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45988   *) ac_try_echo=$ac_try;;
45989 esac
45990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45991   (eval "$ac_compile") 2>conftest.er1
45992   ac_status=$?
45993   grep -v '^ *+' conftest.er1 >conftest.err
45994   rm -f conftest.er1
45995   cat conftest.err >&5
45996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45997   (exit $ac_status); } && {
45998          test -z "$ac_cxx_werror_flag" ||
45999          test ! -s conftest.err
46000        } && test -s conftest.$ac_objext; then
46001
46002                                                 wx_cv_var_timezone=__timezone
46003
46004 else
46005   echo "$as_me: failed program was:" >&5
46006 sed 's/^/| /' conftest.$ac_ext >&5
46007
46008
46009                                                 if test "$USE_DOS" = 0 ; then
46010                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46011 echo "$as_me: WARNING: no timezone variable" >&2;}
46012                                                 fi
46013
46014
46015 fi
46016
46017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46018
46019
46020 fi
46021
46022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46023
46024
46025 fi
46026
46027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46028                         ac_ext=c
46029 ac_cpp='$CPP $CPPFLAGS'
46030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46033
46034
46035
46036 fi
46037 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
46038 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
46039
46040         if test "x$wx_cv_var_timezone" != x ; then
46041         cat >>confdefs.h <<_ACEOF
46042 #define WX_TIMEZONE $wx_cv_var_timezone
46043 _ACEOF
46044
46045     fi
46046
46047
46048 for ac_func in localtime
46049 do
46050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46054   echo $ECHO_N "(cached) $ECHO_C" >&6
46055 else
46056   cat >conftest.$ac_ext <<_ACEOF
46057 /* confdefs.h.  */
46058 _ACEOF
46059 cat confdefs.h >>conftest.$ac_ext
46060 cat >>conftest.$ac_ext <<_ACEOF
46061 /* end confdefs.h.  */
46062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46064 #define $ac_func innocuous_$ac_func
46065
46066 /* System header to define __stub macros and hopefully few prototypes,
46067     which can conflict with char $ac_func (); below.
46068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46069     <limits.h> exists even on freestanding compilers.  */
46070
46071 #ifdef __STDC__
46072 # include <limits.h>
46073 #else
46074 # include <assert.h>
46075 #endif
46076
46077 #undef $ac_func
46078
46079 /* Override any GCC internal prototype to avoid an error.
46080    Use char because int might match the return type of a GCC
46081    builtin and then its argument prototype would still apply.  */
46082 #ifdef __cplusplus
46083 extern "C"
46084 #endif
46085 char $ac_func ();
46086 /* The GNU C library defines this for functions which it implements
46087     to always fail with ENOSYS.  Some functions are actually named
46088     something starting with __ and the normal name is an alias.  */
46089 #if defined __stub_$ac_func || defined __stub___$ac_func
46090 choke me
46091 #endif
46092
46093 int
46094 main ()
46095 {
46096 return $ac_func ();
46097   ;
46098   return 0;
46099 }
46100 _ACEOF
46101 rm -f conftest.$ac_objext conftest$ac_exeext
46102 if { (ac_try="$ac_link"
46103 case "(($ac_try" in
46104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46105   *) ac_try_echo=$ac_try;;
46106 esac
46107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46108   (eval "$ac_link") 2>conftest.er1
46109   ac_status=$?
46110   grep -v '^ *+' conftest.er1 >conftest.err
46111   rm -f conftest.er1
46112   cat conftest.err >&5
46113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46114   (exit $ac_status); } && {
46115          test -z "$ac_c_werror_flag" ||
46116          test ! -s conftest.err
46117        } && test -s conftest$ac_exeext &&
46118        $as_test_x conftest$ac_exeext; then
46119   eval "$as_ac_var=yes"
46120 else
46121   echo "$as_me: failed program was:" >&5
46122 sed 's/^/| /' conftest.$ac_ext >&5
46123
46124         eval "$as_ac_var=no"
46125 fi
46126
46127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46128       conftest$ac_exeext conftest.$ac_ext
46129 fi
46130 ac_res=`eval echo '${'$as_ac_var'}'`
46131                { echo "$as_me:$LINENO: result: $ac_res" >&5
46132 echo "${ECHO_T}$ac_res" >&6; }
46133 if test `eval echo '${'$as_ac_var'}'` = yes; then
46134   cat >>confdefs.h <<_ACEOF
46135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46136 _ACEOF
46137
46138 fi
46139 done
46140
46141
46142     if test "$ac_cv_func_localtime" = "yes"; then
46143         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
46144 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
46145 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
46146   echo $ECHO_N "(cached) $ECHO_C" >&6
46147 else
46148
46149             cat >conftest.$ac_ext <<_ACEOF
46150 /* confdefs.h.  */
46151 _ACEOF
46152 cat confdefs.h >>conftest.$ac_ext
46153 cat >>conftest.$ac_ext <<_ACEOF
46154 /* end confdefs.h.  */
46155
46156                     #include <time.h>
46157
46158 int
46159 main ()
46160 {
46161
46162                     struct tm tm;
46163                     tm.tm_gmtoff++;
46164
46165   ;
46166   return 0;
46167 }
46168 _ACEOF
46169 rm -f conftest.$ac_objext
46170 if { (ac_try="$ac_compile"
46171 case "(($ac_try" in
46172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46173   *) ac_try_echo=$ac_try;;
46174 esac
46175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46176   (eval "$ac_compile") 2>conftest.er1
46177   ac_status=$?
46178   grep -v '^ *+' conftest.er1 >conftest.err
46179   rm -f conftest.er1
46180   cat conftest.err >&5
46181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46182   (exit $ac_status); } && {
46183          test -z "$ac_c_werror_flag" ||
46184          test ! -s conftest.err
46185        } && test -s conftest.$ac_objext; then
46186
46187                     wx_cv_struct_tm_has_gmtoff=yes
46188
46189 else
46190   echo "$as_me: failed program was:" >&5
46191 sed 's/^/| /' conftest.$ac_ext >&5
46192
46193         wx_cv_struct_tm_has_gmtoff=no
46194
46195 fi
46196
46197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46198
46199 fi
46200 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
46201 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
46202     fi
46203
46204     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46205         cat >>confdefs.h <<\_ACEOF
46206 #define WX_GMTOFF_IN_TM 1
46207 _ACEOF
46208
46209     fi
46210
46211     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46212 fi
46213
46214
46215 if test "$wxUSE_SOCKETS" = "yes"; then
46216     if test "$wxUSE_MGL" = 1; then
46217         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46218 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46219         wxUSE_SOCKETS="no"
46220     fi
46221 fi
46222
46223 if test "$wxUSE_SOCKETS" = "yes"; then
46224         if test "$TOOLKIT" != "MSW"; then
46225                 { echo "$as_me:$LINENO: checking for socket" >&5
46226 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
46227 if test "${ac_cv_func_socket+set}" = set; then
46228   echo $ECHO_N "(cached) $ECHO_C" >&6
46229 else
46230   cat >conftest.$ac_ext <<_ACEOF
46231 /* confdefs.h.  */
46232 _ACEOF
46233 cat confdefs.h >>conftest.$ac_ext
46234 cat >>conftest.$ac_ext <<_ACEOF
46235 /* end confdefs.h.  */
46236 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
46237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46238 #define socket innocuous_socket
46239
46240 /* System header to define __stub macros and hopefully few prototypes,
46241     which can conflict with char socket (); below.
46242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46243     <limits.h> exists even on freestanding compilers.  */
46244
46245 #ifdef __STDC__
46246 # include <limits.h>
46247 #else
46248 # include <assert.h>
46249 #endif
46250
46251 #undef socket
46252
46253 /* Override any GCC internal prototype to avoid an error.
46254    Use char because int might match the return type of a GCC
46255    builtin and then its argument prototype would still apply.  */
46256 #ifdef __cplusplus
46257 extern "C"
46258 #endif
46259 char socket ();
46260 /* The GNU C library defines this for functions which it implements
46261     to always fail with ENOSYS.  Some functions are actually named
46262     something starting with __ and the normal name is an alias.  */
46263 #if defined __stub_socket || defined __stub___socket
46264 choke me
46265 #endif
46266
46267 int
46268 main ()
46269 {
46270 return socket ();
46271   ;
46272   return 0;
46273 }
46274 _ACEOF
46275 rm -f conftest.$ac_objext conftest$ac_exeext
46276 if { (ac_try="$ac_link"
46277 case "(($ac_try" in
46278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46279   *) ac_try_echo=$ac_try;;
46280 esac
46281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46282   (eval "$ac_link") 2>conftest.er1
46283   ac_status=$?
46284   grep -v '^ *+' conftest.er1 >conftest.err
46285   rm -f conftest.er1
46286   cat conftest.err >&5
46287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46288   (exit $ac_status); } && {
46289          test -z "$ac_c_werror_flag" ||
46290          test ! -s conftest.err
46291        } && test -s conftest$ac_exeext &&
46292        $as_test_x conftest$ac_exeext; then
46293   ac_cv_func_socket=yes
46294 else
46295   echo "$as_me: failed program was:" >&5
46296 sed 's/^/| /' conftest.$ac_ext >&5
46297
46298         ac_cv_func_socket=no
46299 fi
46300
46301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46302       conftest$ac_exeext conftest.$ac_ext
46303 fi
46304 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46305 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46306 if test $ac_cv_func_socket = yes; then
46307   :
46308 else
46309
46310                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46311 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46312 if test "${ac_cv_lib_socket_socket+set}" = set; then
46313   echo $ECHO_N "(cached) $ECHO_C" >&6
46314 else
46315   ac_check_lib_save_LIBS=$LIBS
46316 LIBS="-lsocket  $LIBS"
46317 cat >conftest.$ac_ext <<_ACEOF
46318 /* confdefs.h.  */
46319 _ACEOF
46320 cat confdefs.h >>conftest.$ac_ext
46321 cat >>conftest.$ac_ext <<_ACEOF
46322 /* end confdefs.h.  */
46323
46324 /* Override any GCC internal prototype to avoid an error.
46325    Use char because int might match the return type of a GCC
46326    builtin and then its argument prototype would still apply.  */
46327 #ifdef __cplusplus
46328 extern "C"
46329 #endif
46330 char socket ();
46331 int
46332 main ()
46333 {
46334 return socket ();
46335   ;
46336   return 0;
46337 }
46338 _ACEOF
46339 rm -f conftest.$ac_objext conftest$ac_exeext
46340 if { (ac_try="$ac_link"
46341 case "(($ac_try" in
46342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46343   *) ac_try_echo=$ac_try;;
46344 esac
46345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46346   (eval "$ac_link") 2>conftest.er1
46347   ac_status=$?
46348   grep -v '^ *+' conftest.er1 >conftest.err
46349   rm -f conftest.er1
46350   cat conftest.err >&5
46351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46352   (exit $ac_status); } && {
46353          test -z "$ac_c_werror_flag" ||
46354          test ! -s conftest.err
46355        } && test -s conftest$ac_exeext &&
46356        $as_test_x conftest$ac_exeext; then
46357   ac_cv_lib_socket_socket=yes
46358 else
46359   echo "$as_me: failed program was:" >&5
46360 sed 's/^/| /' conftest.$ac_ext >&5
46361
46362         ac_cv_lib_socket_socket=no
46363 fi
46364
46365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46366       conftest$ac_exeext conftest.$ac_ext
46367 LIBS=$ac_check_lib_save_LIBS
46368 fi
46369 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46370 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46371 if test $ac_cv_lib_socket_socket = yes; then
46372   if test "$INET_LINK" != " -lsocket"; then
46373                         INET_LINK="$INET_LINK -lsocket"
46374                     fi
46375 else
46376
46377                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46378 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46379                         wxUSE_SOCKETS=no
46380
46381
46382 fi
46383
46384
46385
46386 fi
46387
46388     fi
46389 fi
46390
46391 if test "$wxUSE_SOCKETS" = "yes" ; then
46392                 if test "$TOOLKIT" != "MSW"; then
46393                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46394 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46395 if test "${wx_cv_type_getsockname3+set}" = set; then
46396   echo $ECHO_N "(cached) $ECHO_C" >&6
46397 else
46398
46399                 ac_ext=cpp
46400 ac_cpp='$CXXCPP $CPPFLAGS'
46401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46404
46405                 cat >conftest.$ac_ext <<_ACEOF
46406 /* confdefs.h.  */
46407 _ACEOF
46408 cat confdefs.h >>conftest.$ac_ext
46409 cat >>conftest.$ac_ext <<_ACEOF
46410 /* end confdefs.h.  */
46411
46412                         #include <sys/types.h>
46413                         #include <sys/socket.h>
46414
46415 int
46416 main ()
46417 {
46418
46419                         socklen_t len;
46420                         getsockname(0, 0, &len);
46421
46422   ;
46423   return 0;
46424 }
46425 _ACEOF
46426 rm -f conftest.$ac_objext
46427 if { (ac_try="$ac_compile"
46428 case "(($ac_try" in
46429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46430   *) ac_try_echo=$ac_try;;
46431 esac
46432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46433   (eval "$ac_compile") 2>conftest.er1
46434   ac_status=$?
46435   grep -v '^ *+' conftest.er1 >conftest.err
46436   rm -f conftest.er1
46437   cat conftest.err >&5
46438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46439   (exit $ac_status); } && {
46440          test -z "$ac_cxx_werror_flag" ||
46441          test ! -s conftest.err
46442        } && test -s conftest.$ac_objext; then
46443   wx_cv_type_getsockname3=socklen_t
46444 else
46445   echo "$as_me: failed program was:" >&5
46446 sed 's/^/| /' conftest.$ac_ext >&5
46447
46448
46449                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46450                         if test "$GCC" = yes ; then
46451                             CFLAGS="-Werror $CFLAGS"
46452                         fi
46453
46454                         cat >conftest.$ac_ext <<_ACEOF
46455 /* confdefs.h.  */
46456 _ACEOF
46457 cat confdefs.h >>conftest.$ac_ext
46458 cat >>conftest.$ac_ext <<_ACEOF
46459 /* end confdefs.h.  */
46460
46461                                 #include <sys/types.h>
46462                                 #include <sys/socket.h>
46463
46464 int
46465 main ()
46466 {
46467
46468                                 size_t len;
46469                                 getsockname(0, 0, &len);
46470
46471   ;
46472   return 0;
46473 }
46474 _ACEOF
46475 rm -f conftest.$ac_objext
46476 if { (ac_try="$ac_compile"
46477 case "(($ac_try" in
46478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46479   *) ac_try_echo=$ac_try;;
46480 esac
46481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46482   (eval "$ac_compile") 2>conftest.er1
46483   ac_status=$?
46484   grep -v '^ *+' conftest.er1 >conftest.err
46485   rm -f conftest.er1
46486   cat conftest.err >&5
46487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46488   (exit $ac_status); } && {
46489          test -z "$ac_cxx_werror_flag" ||
46490          test ! -s conftest.err
46491        } && test -s conftest.$ac_objext; then
46492   wx_cv_type_getsockname3=size_t
46493 else
46494   echo "$as_me: failed program was:" >&5
46495 sed 's/^/| /' conftest.$ac_ext >&5
46496
46497         cat >conftest.$ac_ext <<_ACEOF
46498 /* confdefs.h.  */
46499 _ACEOF
46500 cat confdefs.h >>conftest.$ac_ext
46501 cat >>conftest.$ac_ext <<_ACEOF
46502 /* end confdefs.h.  */
46503
46504                                     #include <sys/types.h>
46505                                     #include <sys/socket.h>
46506
46507 int
46508 main ()
46509 {
46510
46511                                     int len;
46512                                     getsockname(0, 0, &len);
46513
46514   ;
46515   return 0;
46516 }
46517 _ACEOF
46518 rm -f conftest.$ac_objext
46519 if { (ac_try="$ac_compile"
46520 case "(($ac_try" in
46521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46522   *) ac_try_echo=$ac_try;;
46523 esac
46524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46525   (eval "$ac_compile") 2>conftest.er1
46526   ac_status=$?
46527   grep -v '^ *+' conftest.er1 >conftest.err
46528   rm -f conftest.er1
46529   cat conftest.err >&5
46530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46531   (exit $ac_status); } && {
46532          test -z "$ac_cxx_werror_flag" ||
46533          test ! -s conftest.err
46534        } && test -s conftest.$ac_objext; then
46535   wx_cv_type_getsockname3=int
46536 else
46537   echo "$as_me: failed program was:" >&5
46538 sed 's/^/| /' conftest.$ac_ext >&5
46539
46540         wx_cv_type_getsockname3=unknown
46541
46542 fi
46543
46544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46545
46546 fi
46547
46548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46549
46550                         CFLAGS="$CFLAGS_OLD"
46551
46552
46553 fi
46554
46555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46556                 ac_ext=c
46557 ac_cpp='$CPP $CPPFLAGS'
46558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46561
46562
46563 fi
46564 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46565 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46566
46567         if test "$wx_cv_type_getsockname3" = "unknown"; then
46568             wxUSE_SOCKETS=no
46569             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46570 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46571         else
46572             cat >>confdefs.h <<_ACEOF
46573 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46574 _ACEOF
46575
46576         fi
46577                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46578 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46579 if test "${wx_cv_type_getsockopt5+set}" = set; then
46580   echo $ECHO_N "(cached) $ECHO_C" >&6
46581 else
46582
46583                                                                                                 ac_ext=cpp
46584 ac_cpp='$CXXCPP $CPPFLAGS'
46585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46588
46589                 cat >conftest.$ac_ext <<_ACEOF
46590 /* confdefs.h.  */
46591 _ACEOF
46592 cat confdefs.h >>conftest.$ac_ext
46593 cat >>conftest.$ac_ext <<_ACEOF
46594 /* end confdefs.h.  */
46595
46596                         #include <sys/types.h>
46597                         #include <sys/socket.h>
46598
46599 int
46600 main ()
46601 {
46602
46603                         socklen_t len;
46604                         getsockopt(0, 0, 0, 0, &len);
46605
46606   ;
46607   return 0;
46608 }
46609 _ACEOF
46610 rm -f conftest.$ac_objext
46611 if { (ac_try="$ac_compile"
46612 case "(($ac_try" in
46613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46614   *) ac_try_echo=$ac_try;;
46615 esac
46616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46617   (eval "$ac_compile") 2>conftest.er1
46618   ac_status=$?
46619   grep -v '^ *+' conftest.er1 >conftest.err
46620   rm -f conftest.er1
46621   cat conftest.err >&5
46622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46623   (exit $ac_status); } && {
46624          test -z "$ac_cxx_werror_flag" ||
46625          test ! -s conftest.err
46626        } && test -s conftest.$ac_objext; then
46627   wx_cv_type_getsockopt5=socklen_t
46628 else
46629   echo "$as_me: failed program was:" >&5
46630 sed 's/^/| /' conftest.$ac_ext >&5
46631
46632
46633                         cat >conftest.$ac_ext <<_ACEOF
46634 /* confdefs.h.  */
46635 _ACEOF
46636 cat confdefs.h >>conftest.$ac_ext
46637 cat >>conftest.$ac_ext <<_ACEOF
46638 /* end confdefs.h.  */
46639
46640                                 #include <sys/types.h>
46641                                 #include <sys/socket.h>
46642
46643 int
46644 main ()
46645 {
46646
46647                                 size_t len;
46648                                 getsockopt(0, 0, 0, 0, &len);
46649
46650   ;
46651   return 0;
46652 }
46653 _ACEOF
46654 rm -f conftest.$ac_objext
46655 if { (ac_try="$ac_compile"
46656 case "(($ac_try" in
46657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46658   *) ac_try_echo=$ac_try;;
46659 esac
46660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46661   (eval "$ac_compile") 2>conftest.er1
46662   ac_status=$?
46663   grep -v '^ *+' conftest.er1 >conftest.err
46664   rm -f conftest.er1
46665   cat conftest.err >&5
46666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46667   (exit $ac_status); } && {
46668          test -z "$ac_cxx_werror_flag" ||
46669          test ! -s conftest.err
46670        } && test -s conftest.$ac_objext; then
46671   wx_cv_type_getsockopt5=size_t
46672 else
46673   echo "$as_me: failed program was:" >&5
46674 sed 's/^/| /' conftest.$ac_ext >&5
46675
46676         cat >conftest.$ac_ext <<_ACEOF
46677 /* confdefs.h.  */
46678 _ACEOF
46679 cat confdefs.h >>conftest.$ac_ext
46680 cat >>conftest.$ac_ext <<_ACEOF
46681 /* end confdefs.h.  */
46682
46683                                     #include <sys/types.h>
46684                                     #include <sys/socket.h>
46685
46686 int
46687 main ()
46688 {
46689
46690                                     int len;
46691                                     getsockopt(0, 0, 0, 0, &len);
46692
46693   ;
46694   return 0;
46695 }
46696 _ACEOF
46697 rm -f conftest.$ac_objext
46698 if { (ac_try="$ac_compile"
46699 case "(($ac_try" in
46700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46701   *) ac_try_echo=$ac_try;;
46702 esac
46703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46704   (eval "$ac_compile") 2>conftest.er1
46705   ac_status=$?
46706   grep -v '^ *+' conftest.er1 >conftest.err
46707   rm -f conftest.er1
46708   cat conftest.err >&5
46709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46710   (exit $ac_status); } && {
46711          test -z "$ac_cxx_werror_flag" ||
46712          test ! -s conftest.err
46713        } && test -s conftest.$ac_objext; then
46714   wx_cv_type_getsockopt5=int
46715 else
46716   echo "$as_me: failed program was:" >&5
46717 sed 's/^/| /' conftest.$ac_ext >&5
46718
46719         wx_cv_type_getsockopt5=unknown
46720
46721 fi
46722
46723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46724
46725 fi
46726
46727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46728
46729
46730 fi
46731
46732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46733                 ac_ext=c
46734 ac_cpp='$CPP $CPPFLAGS'
46735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46738
46739
46740 fi
46741 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
46742 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
46743
46744         if test "$wx_cv_type_getsockopt5" = "unknown"; then
46745             wxUSE_SOCKETS=no
46746             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46747 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46748         else
46749             cat >>confdefs.h <<_ACEOF
46750 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
46751 _ACEOF
46752
46753         fi
46754     fi
46755 fi
46756
46757 if test "$wxUSE_SOCKETS" = "yes" ; then
46758     if test "$wxUSE_IPV6" = "yes"; then
46759         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
46760 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
46761 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
46762   echo $ECHO_N "(cached) $ECHO_C" >&6
46763 else
46764
46765                 cat >conftest.$ac_ext <<_ACEOF
46766 /* confdefs.h.  */
46767 _ACEOF
46768 cat confdefs.h >>conftest.$ac_ext
46769 cat >>conftest.$ac_ext <<_ACEOF
46770 /* end confdefs.h.  */
46771
46772                         #include <sys/types.h>
46773                         #include <sys/socket.h>
46774                         #include <netinet/in.h>
46775
46776 int
46777 main ()
46778 {
46779
46780                         struct sockaddr_in6 sa6;
46781
46782   ;
46783   return 0;
46784 }
46785 _ACEOF
46786 rm -f conftest.$ac_objext
46787 if { (ac_try="$ac_compile"
46788 case "(($ac_try" in
46789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46790   *) ac_try_echo=$ac_try;;
46791 esac
46792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46793   (eval "$ac_compile") 2>conftest.er1
46794   ac_status=$?
46795   grep -v '^ *+' conftest.er1 >conftest.err
46796   rm -f conftest.er1
46797   cat conftest.err >&5
46798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46799   (exit $ac_status); } && {
46800          test -z "$ac_c_werror_flag" ||
46801          test ! -s conftest.err
46802        } && test -s conftest.$ac_objext; then
46803   wx_cv_type_sockaddr_in6=yes
46804 else
46805   echo "$as_me: failed program was:" >&5
46806 sed 's/^/| /' conftest.$ac_ext >&5
46807
46808         wx_cv_type_sockaddr_in6=no
46809
46810 fi
46811
46812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46813
46814
46815 fi
46816 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
46817 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
46818
46819         if test "$wx_cv_type_sockaddr_in6"="yes"; then
46820             cat >>confdefs.h <<\_ACEOF
46821 #define wxUSE_IPV6 1
46822 _ACEOF
46823
46824         else
46825             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
46826 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
46827         fi
46828     fi
46829
46830     cat >>confdefs.h <<\_ACEOF
46831 #define wxUSE_SOCKETS 1
46832 _ACEOF
46833
46834     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46835 fi
46836
46837 if test "$wxUSE_PROTOCOL" = "yes"; then
46838     if test "$wxUSE_SOCKETS" != "yes"; then
46839         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
46840 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
46841         wxUSE_PROTOCOL=no
46842     fi
46843 fi
46844
46845 if test "$wxUSE_PROTOCOL" = "yes"; then
46846     cat >>confdefs.h <<\_ACEOF
46847 #define wxUSE_PROTOCOL 1
46848 _ACEOF
46849
46850
46851     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
46852         cat >>confdefs.h <<\_ACEOF
46853 #define wxUSE_PROTOCOL_HTTP 1
46854 _ACEOF
46855
46856     fi
46857     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
46858         cat >>confdefs.h <<\_ACEOF
46859 #define wxUSE_PROTOCOL_FTP 1
46860 _ACEOF
46861
46862     fi
46863     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
46864         cat >>confdefs.h <<\_ACEOF
46865 #define wxUSE_PROTOCOL_FILE 1
46866 _ACEOF
46867
46868     fi
46869 else
46870     if test "$wxUSE_FS_INET" = "yes"; then
46871         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
46872 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
46873         wxUSE_FS_INET="no"
46874     fi
46875 fi
46876
46877 if test "$wxUSE_URL" = "yes"; then
46878     if test "$wxUSE_PROTOCOL" != "yes"; then
46879         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
46880 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
46881         wxUSE_URL=no
46882     fi
46883     if test "$wxUSE_URL" = "yes"; then
46884         cat >>confdefs.h <<\_ACEOF
46885 #define wxUSE_URL 1
46886 _ACEOF
46887
46888     fi
46889 fi
46890
46891 if test "$wxUSE_VARIANT" = "yes"; then
46892     cat >>confdefs.h <<\_ACEOF
46893 #define wxUSE_VARIANT 1
46894 _ACEOF
46895
46896 fi
46897
46898 if test "$wxUSE_FS_INET" = "yes"; then
46899   cat >>confdefs.h <<\_ACEOF
46900 #define wxUSE_FS_INET 1
46901 _ACEOF
46902
46903 fi
46904
46905
46906 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
46907     wxUSE_JOYSTICK=no
46908
46909         if test "$TOOLKIT" = "MSW"; then
46910         wxUSE_JOYSTICK=yes
46911
46912         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
46913         if test "$USE_DARWIN" = 1; then
46914                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
46915 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
46916             ac_ext=cpp
46917 ac_cpp='$CXXCPP $CPPFLAGS'
46918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46921
46922             cat >conftest.$ac_ext <<_ACEOF
46923 /* confdefs.h.  */
46924 _ACEOF
46925 cat confdefs.h >>conftest.$ac_ext
46926 cat >>conftest.$ac_ext <<_ACEOF
46927 /* end confdefs.h.  */
46928  #include <IOKit/hid/IOHIDLib.h>
46929 int
46930 main ()
46931 {
46932  IOHIDQueueInterface *qi = NULL;
46933                               IOHIDCallbackFunction cb = NULL;
46934                               qi->setEventCallout(NULL, cb, NULL, NULL);
46935   ;
46936   return 0;
46937 }
46938 _ACEOF
46939 rm -f conftest.$ac_objext
46940 if { (ac_try="$ac_compile"
46941 case "(($ac_try" in
46942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46943   *) ac_try_echo=$ac_try;;
46944 esac
46945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46946   (eval "$ac_compile") 2>conftest.er1
46947   ac_status=$?
46948   grep -v '^ *+' conftest.er1 >conftest.err
46949   rm -f conftest.er1
46950   cat conftest.err >&5
46951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46952   (exit $ac_status); } && {
46953          test -z "$ac_cxx_werror_flag" ||
46954          test ! -s conftest.err
46955        } && test -s conftest.$ac_objext; then
46956    wxUSE_JOYSTICK=yes
46957
46958 else
46959   echo "$as_me: failed program was:" >&5
46960 sed 's/^/| /' conftest.$ac_ext >&5
46961
46962
46963 fi
46964
46965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46966             ac_ext=c
46967 ac_cpp='$CPP $CPPFLAGS'
46968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46971
46972             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
46973 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
46974         fi
46975
46976         else
46977                 if test "$wxUSE_MGL" != 1; then
46978
46979 for ac_header in linux/joystick.h
46980 do
46981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46985   echo $ECHO_N "(cached) $ECHO_C" >&6
46986 else
46987   cat >conftest.$ac_ext <<_ACEOF
46988 /* confdefs.h.  */
46989 _ACEOF
46990 cat confdefs.h >>conftest.$ac_ext
46991 cat >>conftest.$ac_ext <<_ACEOF
46992 /* end confdefs.h.  */
46993 $ac_includes_default
46994
46995 #include <$ac_header>
46996 _ACEOF
46997 rm -f conftest.$ac_objext
46998 if { (ac_try="$ac_compile"
46999 case "(($ac_try" in
47000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47001   *) ac_try_echo=$ac_try;;
47002 esac
47003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47004   (eval "$ac_compile") 2>conftest.er1
47005   ac_status=$?
47006   grep -v '^ *+' conftest.er1 >conftest.err
47007   rm -f conftest.er1
47008   cat conftest.err >&5
47009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47010   (exit $ac_status); } && {
47011          test -z "$ac_c_werror_flag" ||
47012          test ! -s conftest.err
47013        } && test -s conftest.$ac_objext; then
47014   eval "$as_ac_Header=yes"
47015 else
47016   echo "$as_me: failed program was:" >&5
47017 sed 's/^/| /' conftest.$ac_ext >&5
47018
47019         eval "$as_ac_Header=no"
47020 fi
47021
47022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47023 fi
47024 ac_res=`eval echo '${'$as_ac_Header'}'`
47025                { echo "$as_me:$LINENO: result: $ac_res" >&5
47026 echo "${ECHO_T}$ac_res" >&6; }
47027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47028   cat >>confdefs.h <<_ACEOF
47029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47030 _ACEOF
47031  wxUSE_JOYSTICK=yes
47032 fi
47033
47034 done
47035
47036         fi
47037     fi
47038
47039     if test "$wxUSE_JOYSTICK" = "yes"; then
47040         cat >>confdefs.h <<\_ACEOF
47041 #define wxUSE_JOYSTICK 1
47042 _ACEOF
47043
47044         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47045     else
47046         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47047 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
47048     fi
47049 fi
47050
47051
47052
47053 if test "$wxUSE_FONTENUM" = "yes" ; then
47054   cat >>confdefs.h <<\_ACEOF
47055 #define wxUSE_FONTENUM 1
47056 _ACEOF
47057
47058 fi
47059
47060 if test "$wxUSE_FONTMAP" = "yes" ; then
47061   cat >>confdefs.h <<\_ACEOF
47062 #define wxUSE_FONTMAP 1
47063 _ACEOF
47064
47065 fi
47066
47067 if test "$wxUSE_UNICODE" = "yes" ; then
47068   cat >>confdefs.h <<\_ACEOF
47069 #define wxUSE_UNICODE 1
47070 _ACEOF
47071
47072
47073   if test "$USE_WIN32" != 1; then
47074       wxUSE_UNICODE_MSLU=no
47075   fi
47076
47077   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47078         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47079 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47080 if test "${ac_cv_lib_unicows_main+set}" = set; then
47081   echo $ECHO_N "(cached) $ECHO_C" >&6
47082 else
47083   ac_check_lib_save_LIBS=$LIBS
47084 LIBS="-lunicows  $LIBS"
47085 cat >conftest.$ac_ext <<_ACEOF
47086 /* confdefs.h.  */
47087 _ACEOF
47088 cat confdefs.h >>conftest.$ac_ext
47089 cat >>conftest.$ac_ext <<_ACEOF
47090 /* end confdefs.h.  */
47091
47092
47093 int
47094 main ()
47095 {
47096 return main ();
47097   ;
47098   return 0;
47099 }
47100 _ACEOF
47101 rm -f conftest.$ac_objext conftest$ac_exeext
47102 if { (ac_try="$ac_link"
47103 case "(($ac_try" in
47104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47105   *) ac_try_echo=$ac_try;;
47106 esac
47107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47108   (eval "$ac_link") 2>conftest.er1
47109   ac_status=$?
47110   grep -v '^ *+' conftest.er1 >conftest.err
47111   rm -f conftest.er1
47112   cat conftest.err >&5
47113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47114   (exit $ac_status); } && {
47115          test -z "$ac_c_werror_flag" ||
47116          test ! -s conftest.err
47117        } && test -s conftest$ac_exeext &&
47118        $as_test_x conftest$ac_exeext; then
47119   ac_cv_lib_unicows_main=yes
47120 else
47121   echo "$as_me: failed program was:" >&5
47122 sed 's/^/| /' conftest.$ac_ext >&5
47123
47124         ac_cv_lib_unicows_main=no
47125 fi
47126
47127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47128       conftest$ac_exeext conftest.$ac_ext
47129 LIBS=$ac_check_lib_save_LIBS
47130 fi
47131 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47132 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
47133 if test $ac_cv_lib_unicows_main = yes; then
47134
47135                 cat >>confdefs.h <<\_ACEOF
47136 #define wxUSE_UNICODE_MSLU 1
47137 _ACEOF
47138
47139
47140 else
47141
47142                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47143                              Applications will only run on Windows NT/2000/XP!" >&5
47144 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47145                              Applications will only run on Windows NT/2000/XP!" >&2;}
47146                 wxUSE_UNICODE_MSLU=no
47147
47148 fi
47149
47150     fi
47151 fi
47152
47153 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47154     cat >>confdefs.h <<\_ACEOF
47155 #define wxUSE_UNICODE_UTF8 1
47156 _ACEOF
47157
47158
47159     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47160         cat >>confdefs.h <<\_ACEOF
47161 #define wxUSE_UTF8_LOCALE_ONLY 1
47162 _ACEOF
47163
47164     fi
47165 fi
47166
47167
47168 if test "$wxUSE_CONSTRAINTS" = "yes"; then
47169     cat >>confdefs.h <<\_ACEOF
47170 #define wxUSE_CONSTRAINTS 1
47171 _ACEOF
47172
47173     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47174 fi
47175
47176 if test "$wxUSE_MDI" = "yes"; then
47177     cat >>confdefs.h <<\_ACEOF
47178 #define wxUSE_MDI 1
47179 _ACEOF
47180
47181
47182     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47183         cat >>confdefs.h <<\_ACEOF
47184 #define wxUSE_MDI_ARCHITECTURE 1
47185 _ACEOF
47186
47187         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47188     fi
47189 fi
47190
47191 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47192     cat >>confdefs.h <<\_ACEOF
47193 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
47194 _ACEOF
47195
47196     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47197 fi
47198
47199 if test "$wxUSE_HELP" = "yes"; then
47200     cat >>confdefs.h <<\_ACEOF
47201 #define wxUSE_HELP 1
47202 _ACEOF
47203
47204     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47205
47206     if test "$wxUSE_MSW" = 1; then
47207       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47208         cat >>confdefs.h <<\_ACEOF
47209 #define wxUSE_MS_HTML_HELP 1
47210 _ACEOF
47211
47212       fi
47213     fi
47214
47215     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47216       if test "$wxUSE_HTML" = "yes"; then
47217         cat >>confdefs.h <<\_ACEOF
47218 #define wxUSE_WXHTML_HELP 1
47219 _ACEOF
47220
47221       else
47222         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47223 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47224         wxUSE_WXHTML_HELP=no
47225       fi
47226     fi
47227 fi
47228
47229 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47230     cat >>confdefs.h <<\_ACEOF
47231 #define wxUSE_PRINTING_ARCHITECTURE 1
47232 _ACEOF
47233
47234     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47235 fi
47236
47237 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47238   cat >>confdefs.h <<\_ACEOF
47239 #define wxUSE_POSTSCRIPT 1
47240 _ACEOF
47241
47242 fi
47243
47244 cat >>confdefs.h <<\_ACEOF
47245 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47246 _ACEOF
47247
47248
47249 if test "$wxUSE_SVG" = "yes"; then
47250     cat >>confdefs.h <<\_ACEOF
47251 #define wxUSE_SVG 1
47252 _ACEOF
47253
47254 fi
47255
47256
47257 if test "$wxUSE_METAFILE" = "yes"; then
47258     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47259         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47260 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47261         wxUSE_METAFILE=no
47262     fi
47263 elif test "$wxUSE_METAFILE" = "auto"; then
47264     if test "$wxUSE_MSW" = 1 -o "$wxUSE_MAC" = 1 -o "$wxUSE_PM" = 1; then
47265         wxUSE_METAFILE=yes
47266     fi
47267 fi
47268
47269 if test "$wxUSE_METAFILE" = "yes"; then
47270     cat >>confdefs.h <<\_ACEOF
47271 #define wxUSE_METAFILE 1
47272 _ACEOF
47273
47274     if test "$wxUSE_MSW" = 1; then
47275                 cat >>confdefs.h <<\_ACEOF
47276 #define wxUSE_ENH_METAFILE 1
47277 _ACEOF
47278
47279     fi
47280 fi
47281
47282
47283 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
47284                           -o "$wxUSE_CLIPBOARD"     = "yes" \
47285                           -o "$wxUSE_OLE"     = "yes" \
47286                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47287     { echo "$as_me:$LINENO: checking for ole2.h" >&5
47288 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
47289 if test "${ac_cv_header_ole2_h+set}" = set; then
47290   echo $ECHO_N "(cached) $ECHO_C" >&6
47291 else
47292   cat >conftest.$ac_ext <<_ACEOF
47293 /* confdefs.h.  */
47294 _ACEOF
47295 cat confdefs.h >>conftest.$ac_ext
47296 cat >>conftest.$ac_ext <<_ACEOF
47297 /* end confdefs.h.  */
47298
47299
47300 #include <ole2.h>
47301 _ACEOF
47302 rm -f conftest.$ac_objext
47303 if { (ac_try="$ac_compile"
47304 case "(($ac_try" in
47305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47306   *) ac_try_echo=$ac_try;;
47307 esac
47308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47309   (eval "$ac_compile") 2>conftest.er1
47310   ac_status=$?
47311   grep -v '^ *+' conftest.er1 >conftest.err
47312   rm -f conftest.er1
47313   cat conftest.err >&5
47314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47315   (exit $ac_status); } && {
47316          test -z "$ac_c_werror_flag" ||
47317          test ! -s conftest.err
47318        } && test -s conftest.$ac_objext; then
47319   ac_cv_header_ole2_h=yes
47320 else
47321   echo "$as_me: failed program was:" >&5
47322 sed 's/^/| /' conftest.$ac_ext >&5
47323
47324         ac_cv_header_ole2_h=no
47325 fi
47326
47327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47328 fi
47329 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47330 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47331
47332
47333
47334     if test "$ac_cv_header_ole2_h" = "yes" ; then
47335         if test "$GCC" = yes ; then
47336             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47337 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
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 #include <windows.h>
47345                             #include <ole2.h>
47346 int
47347 main ()
47348 {
47349
47350   ;
47351   return 0;
47352 }
47353 _ACEOF
47354 rm -f conftest.$ac_objext
47355 if { (ac_try="$ac_compile"
47356 case "(($ac_try" in
47357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47358   *) ac_try_echo=$ac_try;;
47359 esac
47360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47361   (eval "$ac_compile") 2>conftest.er1
47362   ac_status=$?
47363   grep -v '^ *+' conftest.er1 >conftest.err
47364   rm -f conftest.er1
47365   cat conftest.err >&5
47366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47367   (exit $ac_status); } && {
47368          test -z "$ac_c_werror_flag" ||
47369          test ! -s conftest.err
47370        } && test -s conftest.$ac_objext; then
47371   { echo "$as_me:$LINENO: result: no" >&5
47372 echo "${ECHO_T}no" >&6; }
47373 else
47374   echo "$as_me: failed program was:" >&5
47375 sed 's/^/| /' conftest.$ac_ext >&5
47376
47377         { echo "$as_me:$LINENO: result: yes" >&5
47378 echo "${ECHO_T}yes" >&6; }
47379                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47380 fi
47381
47382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47383             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47384             if test "$wxUSE_OLE" = "yes" ; then
47385                 cat >>confdefs.h <<\_ACEOF
47386 #define wxUSE_OLE 1
47387 _ACEOF
47388
47389                 cat >>confdefs.h <<\_ACEOF
47390 #define wxUSE_OLE_AUTOMATION 1
47391 _ACEOF
47392
47393                 cat >>confdefs.h <<\_ACEOF
47394 #define wxUSE_ACTIVEX 1
47395 _ACEOF
47396
47397                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47398             fi
47399         fi
47400
47401                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47402             cat >>confdefs.h <<\_ACEOF
47403 #define wxUSE_DATAOBJ 1
47404 _ACEOF
47405
47406         fi
47407     else
47408         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47409 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47410
47411         wxUSE_CLIPBOARD=no
47412         wxUSE_DRAG_AND_DROP=no
47413         wxUSE_DATAOBJ=no
47414         wxUSE_OLE=no
47415     fi
47416 fi
47417
47418 if test "$wxUSE_IPC" = "yes"; then
47419     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47420         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47421 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47422         wxUSE_IPC=no
47423     fi
47424
47425     if test "$wxUSE_IPC" = "yes"; then
47426         cat >>confdefs.h <<\_ACEOF
47427 #define wxUSE_IPC 1
47428 _ACEOF
47429
47430         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47431     fi
47432 fi
47433
47434 if test "$wxUSE_DATAOBJ" = "yes"; then
47435     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47436         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47437 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47438         wxUSE_DATAOBJ=no
47439     else
47440         cat >>confdefs.h <<\_ACEOF
47441 #define wxUSE_DATAOBJ 1
47442 _ACEOF
47443
47444     fi
47445 else
47446     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47447 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47448     wxUSE_CLIPBOARD=no
47449     wxUSE_DRAG_AND_DROP=no
47450 fi
47451
47452 if test "$wxUSE_CLIPBOARD" = "yes"; then
47453     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47454         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47455 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47456         wxUSE_CLIPBOARD=no
47457     fi
47458
47459     if test "$wxUSE_CLIPBOARD" = "yes"; then
47460         cat >>confdefs.h <<\_ACEOF
47461 #define wxUSE_CLIPBOARD 1
47462 _ACEOF
47463
47464     fi
47465 fi
47466
47467 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47468     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47469             "$wxUSE_DFB" = 1; then
47470         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47471 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47472         wxUSE_DRAG_AND_DROP=no
47473     fi
47474
47475     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47476         cat >>confdefs.h <<\_ACEOF
47477 #define wxUSE_DRAG_AND_DROP 1
47478 _ACEOF
47479
47480     fi
47481
47482 fi
47483
47484 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47485     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47486 fi
47487
47488 if test "$wxUSE_CLIPBOARD" = "yes"; then
47489     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
47490 fi
47491
47492 if test "$wxUSE_SPLINES" = "yes" ; then
47493   cat >>confdefs.h <<\_ACEOF
47494 #define wxUSE_SPLINES 1
47495 _ACEOF
47496
47497 fi
47498
47499 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47500   cat >>confdefs.h <<\_ACEOF
47501 #define wxUSE_MOUSEWHEEL 1
47502 _ACEOF
47503
47504 fi
47505
47506 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
47507     cat >>confdefs.h <<\_ACEOF
47508 #define wxUSE_UIACTIONSIMULATOR 1
47509 _ACEOF
47510
47511     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
47512 fi
47513
47514 if test "$wxUSE_DC_TRANSFORM_MATRIX" = "yes" ; then
47515     cat >>confdefs.h <<\_ACEOF
47516 #define wxUSE_DC_TRANSFORM_MATRIX 1
47517 _ACEOF
47518
47519 fi
47520
47521
47522 USES_CONTROLS=0
47523 if test "$wxUSE_CONTROLS" = "yes"; then
47524   USES_CONTROLS=1
47525 fi
47526
47527 if test "$wxUSE_MARKUP" = "yes"; then
47528   cat >>confdefs.h <<\_ACEOF
47529 #define wxUSE_MARKUP 1
47530 _ACEOF
47531
47532 fi
47533
47534 if test "$wxUSE_ACCEL" = "yes"; then
47535   cat >>confdefs.h <<\_ACEOF
47536 #define wxUSE_ACCEL 1
47537 _ACEOF
47538
47539   USES_CONTROLS=1
47540 fi
47541
47542 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47543   cat >>confdefs.h <<\_ACEOF
47544 #define wxUSE_ANIMATIONCTRL 1
47545 _ACEOF
47546
47547   USES_CONTROLS=1
47548   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47549 fi
47550
47551 if test "$wxUSE_BANNERWINDOW" = "yes"; then
47552   cat >>confdefs.h <<\_ACEOF
47553 #define wxUSE_BANNERWINDOW 1
47554 _ACEOF
47555
47556 fi
47557
47558 if test "$wxUSE_BUTTON" = "yes"; then
47559   cat >>confdefs.h <<\_ACEOF
47560 #define wxUSE_BUTTON 1
47561 _ACEOF
47562
47563   USES_CONTROLS=1
47564 fi
47565
47566 if test "$wxUSE_BMPBUTTON" = "yes"; then
47567   cat >>confdefs.h <<\_ACEOF
47568 #define wxUSE_BMPBUTTON 1
47569 _ACEOF
47570
47571   USES_CONTROLS=1
47572 fi
47573
47574 if test "$wxUSE_CALCTRL" = "yes"; then
47575   cat >>confdefs.h <<\_ACEOF
47576 #define wxUSE_CALENDARCTRL 1
47577 _ACEOF
47578
47579   USES_CONTROLS=1
47580   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47581 fi
47582
47583 if test "$wxUSE_CARET" = "yes"; then
47584   cat >>confdefs.h <<\_ACEOF
47585 #define wxUSE_CARET 1
47586 _ACEOF
47587
47588   USES_CONTROLS=1
47589   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47590 fi
47591
47592 if test "$wxUSE_COLLPANE" = "yes"; then
47593     cat >>confdefs.h <<\_ACEOF
47594 #define wxUSE_COLLPANE 1
47595 _ACEOF
47596
47597     USES_CONTROLS=1
47598     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47599 fi
47600
47601 if test "$wxUSE_COMBOBOX" = "yes"; then
47602   cat >>confdefs.h <<\_ACEOF
47603 #define wxUSE_COMBOBOX 1
47604 _ACEOF
47605
47606   USES_CONTROLS=1
47607 fi
47608
47609 if test "$wxUSE_COMBOCTRL" = "yes"; then
47610   cat >>confdefs.h <<\_ACEOF
47611 #define wxUSE_COMBOCTRL 1
47612 _ACEOF
47613
47614   USES_CONTROLS=1
47615 fi
47616
47617 if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then
47618   cat >>confdefs.h <<\_ACEOF
47619 #define wxUSE_COMMANDLINKBUTTON 1
47620 _ACEOF
47621
47622   USES_CONTROLS=1
47623 fi
47624
47625 if test "$wxUSE_CHOICE" = "yes"; then
47626   cat >>confdefs.h <<\_ACEOF
47627 #define wxUSE_CHOICE 1
47628 _ACEOF
47629
47630   USES_CONTROLS=1
47631 fi
47632
47633 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47634     cat >>confdefs.h <<\_ACEOF
47635 #define wxUSE_CHOICEBOOK 1
47636 _ACEOF
47637
47638     USES_CONTROLS=1
47639 fi
47640
47641 if test "$wxUSE_CHECKBOX" = "yes"; then
47642   cat >>confdefs.h <<\_ACEOF
47643 #define wxUSE_CHECKBOX 1
47644 _ACEOF
47645
47646   USES_CONTROLS=1
47647 fi
47648
47649 if test "$wxUSE_CHECKLST" = "yes"; then
47650   cat >>confdefs.h <<\_ACEOF
47651 #define wxUSE_CHECKLISTBOX 1
47652 _ACEOF
47653
47654   USES_CONTROLS=1
47655 fi
47656
47657 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47658   cat >>confdefs.h <<\_ACEOF
47659 #define wxUSE_COLOURPICKERCTRL 1
47660 _ACEOF
47661
47662   USES_CONTROLS=1
47663 fi
47664
47665 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47666   cat >>confdefs.h <<\_ACEOF
47667 #define wxUSE_DATEPICKCTRL 1
47668 _ACEOF
47669
47670   USES_CONTROLS=1
47671 fi
47672
47673 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47674   cat >>confdefs.h <<\_ACEOF
47675 #define wxUSE_DIRPICKERCTRL 1
47676 _ACEOF
47677
47678   USES_CONTROLS=1
47679 fi
47680
47681 if test "$wxUSE_FILECTRL" = "yes"; then
47682   cat >>confdefs.h <<\_ACEOF
47683 #define wxUSE_FILECTRL 1
47684 _ACEOF
47685
47686   USES_CONTROLS=1
47687 fi
47688
47689 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47690   cat >>confdefs.h <<\_ACEOF
47691 #define wxUSE_FILEPICKERCTRL 1
47692 _ACEOF
47693
47694   USES_CONTROLS=1
47695 fi
47696
47697 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47698   cat >>confdefs.h <<\_ACEOF
47699 #define wxUSE_FONTPICKERCTRL 1
47700 _ACEOF
47701
47702   USES_CONTROLS=1
47703 fi
47704
47705 if test "$wxUSE_DISPLAY" = "yes"; then
47706     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47707         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47708 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47709         wxUSE_DISPLAY=no
47710     else
47711         cat >>confdefs.h <<\_ACEOF
47712 #define wxUSE_DISPLAY 1
47713 _ACEOF
47714
47715         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
47716     fi
47717 fi
47718
47719 if test "$wxUSE_DETECT_SM" = "yes"; then
47720     cat >>confdefs.h <<\_ACEOF
47721 #define wxUSE_DETECT_SM 1
47722 _ACEOF
47723
47724 fi
47725
47726 if test "$wxUSE_GAUGE" = "yes"; then
47727   cat >>confdefs.h <<\_ACEOF
47728 #define wxUSE_GAUGE 1
47729 _ACEOF
47730
47731   USES_CONTROLS=1
47732 fi
47733
47734 if test "$wxUSE_GRID" = "yes"; then
47735   cat >>confdefs.h <<\_ACEOF
47736 #define wxUSE_GRID 1
47737 _ACEOF
47738
47739   USES_CONTROLS=1
47740   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47741 fi
47742
47743 if test "$wxUSE_HEADERCTRL" = "yes"; then
47744   cat >>confdefs.h <<\_ACEOF
47745 #define wxUSE_HEADERCTRL 1
47746 _ACEOF
47747
47748   USES_CONTROLS=1
47749 fi
47750
47751 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47752   cat >>confdefs.h <<\_ACEOF
47753 #define wxUSE_HYPERLINKCTRL 1
47754 _ACEOF
47755
47756   USES_CONTROLS=1
47757 fi
47758
47759 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47760   cat >>confdefs.h <<\_ACEOF
47761 #define wxUSE_BITMAPCOMBOBOX 1
47762 _ACEOF
47763
47764   USES_CONTROLS=1
47765 fi
47766
47767 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47768   cat >>confdefs.h <<\_ACEOF
47769 #define wxUSE_DATAVIEWCTRL 1
47770 _ACEOF
47771
47772   USES_CONTROLS=1
47773   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47774 fi
47775
47776 if test "$wxUSE_IMAGLIST" = "yes"; then
47777     cat >>confdefs.h <<\_ACEOF
47778 #define wxUSE_IMAGLIST 1
47779 _ACEOF
47780
47781 fi
47782
47783 if test "$wxUSE_INFOBAR" = "yes"; then
47784     cat >>confdefs.h <<\_ACEOF
47785 #define wxUSE_INFOBAR 1
47786 _ACEOF
47787
47788 fi
47789
47790 if test "$wxUSE_LISTBOOK" = "yes"; then
47791     cat >>confdefs.h <<\_ACEOF
47792 #define wxUSE_LISTBOOK 1
47793 _ACEOF
47794
47795     USES_CONTROLS=1
47796 fi
47797
47798 if test "$wxUSE_LISTBOX" = "yes"; then
47799     cat >>confdefs.h <<\_ACEOF
47800 #define wxUSE_LISTBOX 1
47801 _ACEOF
47802
47803     USES_CONTROLS=1
47804 fi
47805
47806 if test "$wxUSE_LISTCTRL" = "yes"; then
47807     if test "$wxUSE_IMAGLIST" = "yes"; then
47808         cat >>confdefs.h <<\_ACEOF
47809 #define wxUSE_LISTCTRL 1
47810 _ACEOF
47811
47812         USES_CONTROLS=1
47813         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47814     else
47815         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47816 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47817     fi
47818 fi
47819
47820 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47821     cat >>confdefs.h <<\_ACEOF
47822 #define wxUSE_EDITABLELISTBOX 1
47823 _ACEOF
47824
47825     USES_CONTROLS=1
47826 fi
47827
47828 if test "$wxUSE_NOTEBOOK" = "yes"; then
47829     cat >>confdefs.h <<\_ACEOF
47830 #define wxUSE_NOTEBOOK 1
47831 _ACEOF
47832
47833     USES_CONTROLS=1
47834     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
47835 fi
47836
47837 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
47838     cat >>confdefs.h <<\_ACEOF
47839 #define wxUSE_NOTIFICATION_MESSAGE 1
47840 _ACEOF
47841
47842 fi
47843
47844 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
47845   cat >>confdefs.h <<\_ACEOF
47846 #define wxUSE_ODCOMBOBOX 1
47847 _ACEOF
47848
47849   USES_CONTROLS=1
47850   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
47851 fi
47852
47853 if test "$wxUSE_RADIOBOX" = "yes"; then
47854     cat >>confdefs.h <<\_ACEOF
47855 #define wxUSE_RADIOBOX 1
47856 _ACEOF
47857
47858     USES_CONTROLS=1
47859 fi
47860
47861 if test "$wxUSE_RADIOBTN" = "yes"; then
47862     cat >>confdefs.h <<\_ACEOF
47863 #define wxUSE_RADIOBTN 1
47864 _ACEOF
47865
47866     USES_CONTROLS=1
47867 fi
47868
47869 if test "$wxUSE_REARRANGECTRL" = "yes"; then
47870     cat >>confdefs.h <<\_ACEOF
47871 #define wxUSE_REARRANGECTRL 1
47872 _ACEOF
47873
47874 fi
47875
47876 if test "$wxUSE_RICHMSGDLG" = "yes"; then
47877     cat >>confdefs.h <<\_ACEOF
47878 #define wxUSE_RICHMSGDLG 1
47879 _ACEOF
47880
47881 fi
47882
47883 if test "$wxUSE_SASH" = "yes"; then
47884     cat >>confdefs.h <<\_ACEOF
47885 #define wxUSE_SASH 1
47886 _ACEOF
47887
47888     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
47889 fi
47890
47891 if test "$wxUSE_SCROLLBAR" = "yes"; then
47892     cat >>confdefs.h <<\_ACEOF
47893 #define wxUSE_SCROLLBAR 1
47894 _ACEOF
47895
47896     USES_CONTROLS=1
47897     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
47898 fi
47899
47900 if test "$wxUSE_SEARCHCTRL" = "yes"; then
47901     cat >>confdefs.h <<\_ACEOF
47902 #define wxUSE_SEARCHCTRL 1
47903 _ACEOF
47904
47905     USES_CONTROLS=1
47906 fi
47907
47908 if test "$wxUSE_SLIDER" = "yes"; then
47909     cat >>confdefs.h <<\_ACEOF
47910 #define wxUSE_SLIDER 1
47911 _ACEOF
47912
47913     USES_CONTROLS=1
47914 fi
47915
47916 if test "$wxUSE_SPINBTN" = "yes"; then
47917     cat >>confdefs.h <<\_ACEOF
47918 #define wxUSE_SPINBTN 1
47919 _ACEOF
47920
47921     USES_CONTROLS=1
47922 fi
47923
47924 if test "$wxUSE_SPINCTRL" = "yes"; then
47925     cat >>confdefs.h <<\_ACEOF
47926 #define wxUSE_SPINCTRL 1
47927 _ACEOF
47928
47929     USES_CONTROLS=1
47930 fi
47931
47932 if test "$wxUSE_SPLITTER" = "yes"; then
47933     cat >>confdefs.h <<\_ACEOF
47934 #define wxUSE_SPLITTER 1
47935 _ACEOF
47936
47937     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
47938 fi
47939
47940 if test "$wxUSE_STATBMP" = "yes"; then
47941     cat >>confdefs.h <<\_ACEOF
47942 #define wxUSE_STATBMP 1
47943 _ACEOF
47944
47945     USES_CONTROLS=1
47946 fi
47947
47948 if test "$wxUSE_STATBOX" = "yes"; then
47949     cat >>confdefs.h <<\_ACEOF
47950 #define wxUSE_STATBOX 1
47951 _ACEOF
47952
47953     USES_CONTROLS=1
47954 fi
47955
47956 if test "$wxUSE_STATTEXT" = "yes"; then
47957     cat >>confdefs.h <<\_ACEOF
47958 #define wxUSE_STATTEXT 1
47959 _ACEOF
47960
47961     USES_CONTROLS=1
47962 fi
47963
47964 if test "$wxUSE_STATLINE" = "yes"; then
47965     cat >>confdefs.h <<\_ACEOF
47966 #define wxUSE_STATLINE 1
47967 _ACEOF
47968
47969     USES_CONTROLS=1
47970 fi
47971
47972 if test "$wxUSE_STATUSBAR" = "yes"; then
47973         cat >>confdefs.h <<\_ACEOF
47974 #define wxUSE_NATIVE_STATUSBAR 1
47975 _ACEOF
47976
47977     cat >>confdefs.h <<\_ACEOF
47978 #define wxUSE_STATUSBAR 1
47979 _ACEOF
47980
47981     USES_CONTROLS=1
47982
47983     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
47984 fi
47985
47986 if test "$wxUSE_TEXTCTRL" = "yes"; then
47987     cat >>confdefs.h <<\_ACEOF
47988 #define wxUSE_TEXTCTRL 1
47989 _ACEOF
47990
47991     USES_CONTROLS=1
47992     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
47993
47994             cat >>confdefs.h <<\_ACEOF
47995 #define wxUSE_RICHEDIT 1
47996 _ACEOF
47997
47998     cat >>confdefs.h <<\_ACEOF
47999 #define wxUSE_RICHEDIT2 1
48000 _ACEOF
48001
48002 fi
48003
48004 if test "$wxUSE_TIMEPICKCTRL" = "yes"; then
48005   cat >>confdefs.h <<\_ACEOF
48006 #define wxUSE_TIMEPICKCTRL 1
48007 _ACEOF
48008
48009   USES_CONTROLS=1
48010 fi
48011
48012 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48013     if test "$wxUSE_OLD_COCOA" = 1 ; then
48014         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48015 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48016         wxUSE_TOGGLEBTN=no
48017     fi
48018
48019     if test "$wxUSE_TOGGLEBTN" = "yes"; then
48020         cat >>confdefs.h <<\_ACEOF
48021 #define wxUSE_TOGGLEBTN 1
48022 _ACEOF
48023
48024         USES_CONTROLS=1
48025     fi
48026 fi
48027
48028 if test "$wxUSE_TOOLBAR" = "yes"; then
48029     cat >>confdefs.h <<\_ACEOF
48030 #define wxUSE_TOOLBAR 1
48031 _ACEOF
48032
48033     USES_CONTROLS=1
48034
48035     if test "$wxUSE_UNIVERSAL" = "yes"; then
48036         wxUSE_TOOLBAR_NATIVE="no"
48037     else
48038         wxUSE_TOOLBAR_NATIVE="yes"
48039         cat >>confdefs.h <<\_ACEOF
48040 #define wxUSE_TOOLBAR_NATIVE 1
48041 _ACEOF
48042
48043     fi
48044
48045     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48046 fi
48047
48048 if test "$wxUSE_TOOLTIPS" = "yes"; then
48049     if test "$wxUSE_MOTIF" = 1; then
48050         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48051 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48052     else
48053         if test "$wxUSE_UNIVERSAL" = "yes"; then
48054             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48055 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48056         else
48057             cat >>confdefs.h <<\_ACEOF
48058 #define wxUSE_TOOLTIPS 1
48059 _ACEOF
48060
48061         fi
48062     fi
48063 fi
48064
48065 if test "$wxUSE_TREEBOOK" = "yes"; then
48066     cat >>confdefs.h <<\_ACEOF
48067 #define wxUSE_TREEBOOK 1
48068 _ACEOF
48069
48070     USES_CONTROLS=1
48071 fi
48072
48073 if test "$wxUSE_TOOLBOOK" = "yes"; then
48074     cat >>confdefs.h <<\_ACEOF
48075 #define wxUSE_TOOLBOOK 1
48076 _ACEOF
48077
48078     USES_CONTROLS=1
48079 fi
48080
48081 if test "$wxUSE_TREECTRL" = "yes"; then
48082     if test "$wxUSE_IMAGLIST" = "yes"; then
48083         cat >>confdefs.h <<\_ACEOF
48084 #define wxUSE_TREECTRL 1
48085 _ACEOF
48086
48087         USES_CONTROLS=1
48088         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48089     else
48090         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48091 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48092     fi
48093 fi
48094
48095 if test "$wxUSE_TREELISTCTRL" = "yes"; then
48096     cat >>confdefs.h <<\_ACEOF
48097 #define wxUSE_TREELISTCTRL 1
48098 _ACEOF
48099
48100     USES_CONTROLS=1
48101 fi
48102
48103 if test "$wxUSE_POPUPWIN" = "yes"; then
48104     if test "$wxUSE_OLD_COCOA" = 1 ; then
48105         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48106 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48107     else
48108         if test "$wxUSE_PM" = 1; then
48109             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48110 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48111         else
48112             cat >>confdefs.h <<\_ACEOF
48113 #define wxUSE_POPUPWIN 1
48114 _ACEOF
48115
48116             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48117
48118             USES_CONTROLS=1
48119         fi
48120     fi
48121 fi
48122
48123 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48124     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48125         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48126 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48127     else
48128         cat >>confdefs.h <<\_ACEOF
48129 #define wxUSE_DIALUP_MANAGER 1
48130 _ACEOF
48131
48132         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48133     fi
48134 fi
48135
48136 if test "$wxUSE_TIPWINDOW" = "yes"; then
48137     if test "$wxUSE_PM" = 1; then
48138         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48139 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48140     else
48141         cat >>confdefs.h <<\_ACEOF
48142 #define wxUSE_TIPWINDOW 1
48143 _ACEOF
48144
48145     fi
48146 fi
48147
48148 if test "$USES_CONTROLS" = 1; then
48149     cat >>confdefs.h <<\_ACEOF
48150 #define wxUSE_CONTROLS 1
48151 _ACEOF
48152
48153 fi
48154
48155
48156 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48157     cat >>confdefs.h <<\_ACEOF
48158 #define wxUSE_ACCESSIBILITY 1
48159 _ACEOF
48160
48161     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48162 fi
48163
48164 if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then
48165     cat >>confdefs.h <<\_ACEOF
48166 #define wxUSE_ARTPROVIDER_STD 1
48167 _ACEOF
48168
48169 fi
48170
48171 if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then
48172             if test "$wxUSE_GTK" != 1; then
48173                 if test "$wxUSE_LIBPNG" != no -a \
48174                 "$wxUSE_IMAGE" = yes -a \
48175                 "$wxUSE_STREAMS" = yes; then
48176             wxUSE_ARTPROVIDER_TANGO="yes"
48177         fi
48178     fi
48179 fi
48180
48181 if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then
48182     cat >>confdefs.h <<\_ACEOF
48183 #define wxUSE_ARTPROVIDER_TANGO 1
48184 _ACEOF
48185
48186 fi
48187
48188 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48189     cat >>confdefs.h <<\_ACEOF
48190 #define wxUSE_DRAGIMAGE 1
48191 _ACEOF
48192
48193     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48194 fi
48195
48196 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48197     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48198         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48199 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48200     else
48201         cat >>confdefs.h <<\_ACEOF
48202 #define wxUSE_EXCEPTIONS 1
48203 _ACEOF
48204
48205         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48206     fi
48207 fi
48208
48209 USE_HTML=0
48210 if test "$wxUSE_HTML" = "yes"; then
48211     cat >>confdefs.h <<\_ACEOF
48212 #define wxUSE_HTML 1
48213 _ACEOF
48214
48215     USE_HTML=1
48216     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48217 fi
48218 if test "$wxUSE_WEBKIT" = "yes"; then
48219     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48220         old_CPPFLAGS="$CPPFLAGS"
48221         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48222         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48223 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48224 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48225   echo $ECHO_N "(cached) $ECHO_C" >&6
48226 else
48227   cat >conftest.$ac_ext <<_ACEOF
48228 /* confdefs.h.  */
48229 _ACEOF
48230 cat confdefs.h >>conftest.$ac_ext
48231 cat >>conftest.$ac_ext <<_ACEOF
48232 /* end confdefs.h.  */
48233
48234                            #include <Carbon/Carbon.h>
48235                            #include <WebKit/WebKit.h>
48236
48237
48238 #include <WebKit/HIWebView.h>
48239 _ACEOF
48240 rm -f conftest.$ac_objext
48241 if { (ac_try="$ac_compile"
48242 case "(($ac_try" in
48243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48244   *) ac_try_echo=$ac_try;;
48245 esac
48246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48247   (eval "$ac_compile") 2>conftest.er1
48248   ac_status=$?
48249   grep -v '^ *+' conftest.er1 >conftest.err
48250   rm -f conftest.er1
48251   cat conftest.err >&5
48252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48253   (exit $ac_status); } && {
48254          test -z "$ac_c_werror_flag" ||
48255          test ! -s conftest.err
48256        } && test -s conftest.$ac_objext; then
48257   ac_cv_header_WebKit_HIWebView_h=yes
48258 else
48259   echo "$as_me: failed program was:" >&5
48260 sed 's/^/| /' conftest.$ac_ext >&5
48261
48262         ac_cv_header_WebKit_HIWebView_h=no
48263 fi
48264
48265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48266 fi
48267 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48268 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48269 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48270
48271                            cat >>confdefs.h <<\_ACEOF
48272 #define wxUSE_WEBKIT 1
48273 _ACEOF
48274
48275                            WEBKIT_LINK="-framework WebKit"
48276
48277 else
48278
48279                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48280 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48281                            wxUSE_WEBKIT=no
48282
48283 fi
48284
48285
48286         CPPFLAGS="$old_CPPFLAGS"
48287     elif test "$wxUSE_OLD_COCOA" = 1; then
48288         cat >>confdefs.h <<\_ACEOF
48289 #define wxUSE_WEBKIT 1
48290 _ACEOF
48291
48292     else
48293         wxUSE_WEBKIT=no
48294     fi
48295     if test "$wxUSE_WEBKIT" = "yes"; then
48296         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48297     fi
48298 fi
48299
48300 USE_XRC=0
48301 if test "$wxUSE_XRC" = "yes"; then
48302     if test "$wxUSE_XML" != "yes"; then
48303         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48304 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48305         wxUSE_XRC=no
48306     else
48307         cat >>confdefs.h <<\_ACEOF
48308 #define wxUSE_XRC 1
48309 _ACEOF
48310
48311         USE_XRC=1
48312         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48313     fi
48314 fi
48315
48316 USE_AUI=0
48317 if test "$wxUSE_AUI" = "yes"; then
48318    cat >>confdefs.h <<\_ACEOF
48319 #define wxUSE_AUI 1
48320 _ACEOF
48321
48322    USE_AUI=1
48323    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48324 fi
48325
48326 USE_PROPGRID=0
48327 if test "$wxUSE_PROPGRID" = "yes"; then
48328    cat >>confdefs.h <<\_ACEOF
48329 #define wxUSE_PROPGRID 1
48330 _ACEOF
48331
48332    USE_PROPGRID=1
48333    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
48334 fi
48335
48336 USE_RIBBON=0
48337 if test "$wxUSE_RIBBON" = "yes"; then
48338    cat >>confdefs.h <<\_ACEOF
48339 #define wxUSE_RIBBON 1
48340 _ACEOF
48341
48342    USE_RIBBON=1
48343    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
48344 fi
48345
48346 USE_STC=0
48347 if test "$wxUSE_STC" = "yes"; then
48348    cat >>confdefs.h <<\_ACEOF
48349 #define wxUSE_STC 1
48350 _ACEOF
48351
48352    USE_STC=1
48353    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48354
48355       # Extract the first word of "python", so it can be a program name with args.
48356 set dummy python; ac_word=$2
48357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48359 if test "${ac_cv_path_PYTHON+set}" = set; then
48360   echo $ECHO_N "(cached) $ECHO_C" >&6
48361 else
48362   case $PYTHON in
48363   [\\/]* | ?:[\\/]*)
48364   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
48365   ;;
48366   *)
48367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48368 for as_dir in $PATH
48369 do
48370   IFS=$as_save_IFS
48371   test -z "$as_dir" && as_dir=.
48372   for ac_exec_ext in '' $ac_executable_extensions; do
48373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48374     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
48375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48376     break 2
48377   fi
48378 done
48379 done
48380 IFS=$as_save_IFS
48381
48382   ;;
48383 esac
48384 fi
48385 PYTHON=$ac_cv_path_PYTHON
48386 if test -n "$PYTHON"; then
48387   { echo "$as_me:$LINENO: result: $PYTHON" >&5
48388 echo "${ECHO_T}$PYTHON" >&6; }
48389 else
48390   { echo "$as_me:$LINENO: result: no" >&5
48391 echo "${ECHO_T}no" >&6; }
48392 fi
48393
48394
48395    if test "x$PYTHON" = "x"; then
48396      COND_PYTHON="#"
48397    fi
48398
48399 fi
48400
48401 if test "$wxUSE_MENUS" = "yes"; then
48402     cat >>confdefs.h <<\_ACEOF
48403 #define wxUSE_MENUS 1
48404 _ACEOF
48405
48406     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48407 fi
48408
48409 if test "$wxUSE_MIMETYPE" = "yes"; then
48410     cat >>confdefs.h <<\_ACEOF
48411 #define wxUSE_MIMETYPE 1
48412 _ACEOF
48413
48414 fi
48415
48416 if test "$wxUSE_MINIFRAME" = "yes"; then
48417     cat >>confdefs.h <<\_ACEOF
48418 #define wxUSE_MINIFRAME 1
48419 _ACEOF
48420
48421 fi
48422
48423 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48424     cat >>confdefs.h <<\_ACEOF
48425 #define wxUSE_SYSTEM_OPTIONS 1
48426 _ACEOF
48427
48428 fi
48429
48430 if test "$wxUSE_TASKBARICON" = "yes"; then
48431     cat >>confdefs.h <<\_ACEOF
48432 #define wxUSE_TASKBARICON 1
48433 _ACEOF
48434
48435     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48436 fi
48437
48438
48439 if test "$wxUSE_VALIDATORS" = "yes"; then
48440     cat >>confdefs.h <<\_ACEOF
48441 #define wxUSE_VALIDATORS 1
48442 _ACEOF
48443
48444     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48445 fi
48446
48447 if test "$wxUSE_PALETTE" = "yes" ; then
48448     if test "$wxUSE_DFB" = 1; then
48449         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48450 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48451         wxUSE_PALETTE=no
48452     else
48453         cat >>confdefs.h <<\_ACEOF
48454 #define wxUSE_PALETTE 1
48455 _ACEOF
48456
48457     fi
48458 fi
48459
48460 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48461     LIBS=" -lunicows $LIBS"
48462 fi
48463
48464 USE_RICHTEXT=0
48465 if test "$wxUSE_RICHTEXT" = "yes"; then
48466     cat >>confdefs.h <<\_ACEOF
48467 #define wxUSE_RICHTEXT 1
48468 _ACEOF
48469
48470     USE_RICHTEXT=1
48471     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48472 fi
48473
48474 if test "$wxUSE_WEBVIEW" = "yes"; then
48475     USE_WEBVIEW_WEBKIT=0
48476     if test "$wxUSE_WEBVIEW_WEBKIT" = "yes"; then
48477         if test "$wxUSE_GTK" = 1; then
48478             { echo "$as_me:$LINENO: checking for webkitgtk libraries" >&5
48479 echo $ECHO_N "checking for webkitgtk libraries... $ECHO_C" >&6; }
48480
48481   ac_find_libraries=
48482   for ac_dir in $SEARCH_LIB
48483   do
48484     for ac_extension in a so sl dylib dll.a; do
48485       if test -f "$ac_dir/libwebkitgtk-1.0.$ac_extension"; then
48486         ac_find_libraries=$ac_dir
48487         break 2
48488       fi
48489     done
48490   done
48491
48492             if test "$ac_find_libraries" != "" ; then
48493
48494     if test "$ac_find_libraries" = "default location"; then
48495     ac_path_to_link=""
48496   else
48497     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
48498     result=$?
48499     if test $result = 0; then
48500       ac_path_to_link=""
48501     else
48502       ac_path_to_link=" -L$ac_find_libraries"
48503     fi
48504   fi
48505
48506                 if test "$ac_path_to_link" != " -L/usr/lib" ; then
48507                     LDFLAGS="$LDFLAGS $ac_path_to_link"
48508                 fi
48509                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwebkitgtk-1.0"
48510                 { echo "$as_me:$LINENO: result: yes" >&5
48511 echo "${ECHO_T}yes" >&6; }
48512
48513                 { echo "$as_me:$LINENO: checking for webkitgtk headers" >&5
48514 echo $ECHO_N "checking for webkitgtk headers... $ECHO_C" >&6; }
48515
48516 ac_find_includes=
48517 for ac_dir in $SEARCH_INCLUDE /usr/include/webkit-1.0 /usr/include
48518   do
48519     if test -f "$ac_dir/webkit/webkit.h"; then
48520       ac_find_includes=$ac_dir
48521       break
48522     fi
48523   done
48524
48525                 if test "$ac_find_includes" != "" ; then
48526                    { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
48527 echo "${ECHO_T}found in $ac_find_includes" >&6; }
48528
48529     if test "x$ac_find_includes" = "x/usr/include"; then
48530     ac_path_to_include=""
48531   else
48532     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
48533     result=$?
48534     if test $result = 0; then
48535       ac_path_to_include=""
48536     else
48537       ac_path_to_include=" -I$ac_find_includes"
48538     fi
48539   fi
48540
48541                    CPPFLAGS="$ac_path_to_include $CPPFLAGS"
48542
48543                                       { echo "$as_me:$LINENO: checking for libsoup headers" >&5
48544 echo $ECHO_N "checking for libsoup headers... $ECHO_C" >&6; }
48545
48546 ac_find_includes=
48547 for ac_dir in $SEARCH_INCLUDE /usr/include/libsoup-2.4 /usr/include
48548   do
48549     if test -f "$ac_dir/libsoup/soup.h"; then
48550       ac_find_includes=$ac_dir
48551       break
48552     fi
48553   done
48554
48555                    if test "$ac_find_includes" != "" ; then
48556                        { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
48557 echo "${ECHO_T}found in $ac_find_includes" >&6; }
48558
48559     if test "x$ac_find_includes" = "x/usr/include"; then
48560     ac_path_to_include=""
48561   else
48562     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
48563     result=$?
48564     if test $result = 0; then
48565       ac_path_to_include=""
48566     else
48567       ac_path_to_include=" -I$ac_find_includes"
48568     fi
48569   fi
48570
48571                        CPPFLAGS="$ac_path_to_include $CPPFLAGS"
48572
48573                        USE_WEBVIEW_WEBKIT=1
48574                    else
48575                        { echo "$as_me:$LINENO: result: not found" >&5
48576 echo "${ECHO_T}not found" >&6; }
48577                        { echo "$as_me:$LINENO: WARNING: libsoup headers not found; disabling WebKit backend" >&5
48578 echo "$as_me: WARNING: libsoup headers not found; disabling WebKit backend" >&2;}
48579                    fi
48580                 else
48581                    { echo "$as_me:$LINENO: result: not found" >&5
48582 echo "${ECHO_T}not found" >&6; }
48583                    { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling WebKit backend" >&5
48584 echo "$as_me: WARNING: WebKit headers not found; disabling WebKit backend" >&2;}
48585                 fi
48586             else
48587                 { echo "$as_me:$LINENO: result: no" >&5
48588 echo "${ECHO_T}no" >&6; }
48589                 { echo "$as_me:$LINENO: WARNING: WebKit libraries not found; disabling WebKit backend" >&5
48590 echo "$as_me: WARNING: WebKit libraries not found; disabling WebKit backend" >&2;}
48591             fi
48592         elif test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48593                                     old_CPPFLAGS="$CPPFLAGS"
48594             CPPFLAGS="-x objective-c++ $CPPFLAGS"
48595             { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48596 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48597 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48598   echo $ECHO_N "(cached) $ECHO_C" >&6
48599 else
48600   cat >conftest.$ac_ext <<_ACEOF
48601 /* confdefs.h.  */
48602 _ACEOF
48603 cat confdefs.h >>conftest.$ac_ext
48604 cat >>conftest.$ac_ext <<_ACEOF
48605 /* end confdefs.h.  */
48606
48607                                 #include <Carbon/Carbon.h>
48608                                 #include <WebKit/WebKit.h>
48609
48610
48611 #include <WebKit/HIWebView.h>
48612 _ACEOF
48613 rm -f conftest.$ac_objext
48614 if { (ac_try="$ac_compile"
48615 case "(($ac_try" in
48616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48617   *) ac_try_echo=$ac_try;;
48618 esac
48619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48620   (eval "$ac_compile") 2>conftest.er1
48621   ac_status=$?
48622   grep -v '^ *+' conftest.er1 >conftest.err
48623   rm -f conftest.er1
48624   cat conftest.err >&5
48625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48626   (exit $ac_status); } && {
48627          test -z "$ac_c_werror_flag" ||
48628          test ! -s conftest.err
48629        } && test -s conftest.$ac_objext; then
48630   ac_cv_header_WebKit_HIWebView_h=yes
48631 else
48632   echo "$as_me: failed program was:" >&5
48633 sed 's/^/| /' conftest.$ac_ext >&5
48634
48635         ac_cv_header_WebKit_HIWebView_h=no
48636 fi
48637
48638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48639 fi
48640 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48641 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48642 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48643
48644                                 USE_WEBVIEW_WEBKIT=1
48645                                 WEBKIT_LINK="-framework WebKit"
48646
48647 else
48648
48649                                 { echo "$as_me:$LINENO: WARNING: WebKit headers not found" >&5
48650 echo "$as_me: WARNING: WebKit headers not found" >&2;}
48651
48652 fi
48653
48654
48655             CPPFLAGS="$old_CPPFLAGS"
48656         fi
48657     fi
48658
48659     wxUSE_WEBVIEW="no"
48660     if test "$wxUSE_GTK" = 1 -o "$wxUSE_MAC" = 1; then
48661         if test "$USE_WEBVIEW_WEBKIT" = 1; then
48662             wxUSE_WEBVIEW="yes"
48663             cat >>confdefs.h <<\_ACEOF
48664 #define wxUSE_WEBVIEW_WEBKIT 1
48665 _ACEOF
48666
48667         else
48668             { echo "$as_me:$LINENO: WARNING: WebKit not available, disabling wxWebView" >&5
48669 echo "$as_me: WARNING: WebKit not available, disabling wxWebView" >&2;}
48670         fi
48671     elif test "$wxUSE_MSW" = 1; then
48672         if test "wxUSE_WEBVIEW_IE" = "yes"; then
48673                                     wxUSE_WEBVIEW="yes"
48674             cat >>confdefs.h <<\_ACEOF
48675 #define wxUSE_WEBVIEW_IE 1
48676 _ACEOF
48677
48678         fi
48679     fi
48680 fi
48681
48682 if test "$wxUSE_WEBVIEW" = "yes"; then
48683     USE_WEBVIEW=1
48684     cat >>confdefs.h <<\_ACEOF
48685 #define wxUSE_WEBVIEW 1
48686 _ACEOF
48687
48688     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS webview"
48689 else
48690     USE_WEBVIEW=0
48691 fi
48692
48693
48694 if test "$wxUSE_IMAGE" = "yes" ; then
48695     cat >>confdefs.h <<\_ACEOF
48696 #define wxUSE_IMAGE 1
48697 _ACEOF
48698
48699
48700     if test "$wxUSE_GIF" = "yes" ; then
48701       cat >>confdefs.h <<\_ACEOF
48702 #define wxUSE_GIF 1
48703 _ACEOF
48704
48705     fi
48706
48707     if test "$wxUSE_PCX" = "yes" ; then
48708       cat >>confdefs.h <<\_ACEOF
48709 #define wxUSE_PCX 1
48710 _ACEOF
48711
48712     fi
48713
48714     if test "$wxUSE_TGA" = "yes" ; then
48715       cat >>confdefs.h <<\_ACEOF
48716 #define wxUSE_TGA 1
48717 _ACEOF
48718
48719     fi
48720
48721     if test "$wxUSE_IFF" = "yes" ; then
48722       cat >>confdefs.h <<\_ACEOF
48723 #define wxUSE_IFF 1
48724 _ACEOF
48725
48726     fi
48727
48728     if test "$wxUSE_PNM" = "yes" ; then
48729       cat >>confdefs.h <<\_ACEOF
48730 #define wxUSE_PNM 1
48731 _ACEOF
48732
48733     fi
48734
48735     if test "$wxUSE_XPM" = "yes" ; then
48736       cat >>confdefs.h <<\_ACEOF
48737 #define wxUSE_XPM 1
48738 _ACEOF
48739
48740     fi
48741
48742     if test "$wxUSE_ICO_CUR" = "yes" ; then
48743       cat >>confdefs.h <<\_ACEOF
48744 #define wxUSE_ICO_CUR 1
48745 _ACEOF
48746
48747     fi
48748 fi
48749
48750
48751 if test "$wxUSE_ABOUTDLG" = "yes"; then
48752     cat >>confdefs.h <<\_ACEOF
48753 #define wxUSE_ABOUTDLG 1
48754 _ACEOF
48755
48756 fi
48757
48758 if test "$wxUSE_CHOICEDLG" = "yes"; then
48759     cat >>confdefs.h <<\_ACEOF
48760 #define wxUSE_CHOICEDLG 1
48761 _ACEOF
48762
48763 fi
48764
48765 if test "$wxUSE_COLOURDLG" = "yes"; then
48766     cat >>confdefs.h <<\_ACEOF
48767 #define wxUSE_COLOURDLG 1
48768 _ACEOF
48769
48770 fi
48771
48772 if test "$wxUSE_FILEDLG" = "yes"; then
48773     cat >>confdefs.h <<\_ACEOF
48774 #define wxUSE_FILEDLG 1
48775 _ACEOF
48776
48777 fi
48778
48779 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48780     cat >>confdefs.h <<\_ACEOF
48781 #define wxUSE_FINDREPLDLG 1
48782 _ACEOF
48783
48784 fi
48785
48786 if test "$wxUSE_FONTDLG" = "yes"; then
48787     cat >>confdefs.h <<\_ACEOF
48788 #define wxUSE_FONTDLG 1
48789 _ACEOF
48790
48791 fi
48792
48793 if test "$wxUSE_DIRDLG" = "yes"; then
48794     if test "$wxUSE_TREECTRL" != "yes"; then
48795         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48796 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48797     else
48798         cat >>confdefs.h <<\_ACEOF
48799 #define wxUSE_DIRDLG 1
48800 _ACEOF
48801
48802     fi
48803 fi
48804
48805 if test "$wxUSE_MSGDLG" = "yes"; then
48806     cat >>confdefs.h <<\_ACEOF
48807 #define wxUSE_MSGDLG 1
48808 _ACEOF
48809
48810 fi
48811
48812 if test "$wxUSE_NUMBERDLG" = "yes"; then
48813     cat >>confdefs.h <<\_ACEOF
48814 #define wxUSE_NUMBERDLG 1
48815 _ACEOF
48816
48817 fi
48818
48819 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48820     cat >>confdefs.h <<\_ACEOF
48821 #define wxUSE_PROGRESSDLG 1
48822 _ACEOF
48823
48824 fi
48825
48826 if test "$wxUSE_SPLASH" = "yes"; then
48827     cat >>confdefs.h <<\_ACEOF
48828 #define wxUSE_SPLASH 1
48829 _ACEOF
48830
48831     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48832 fi
48833
48834 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48835     cat >>confdefs.h <<\_ACEOF
48836 #define wxUSE_STARTUP_TIPS 1
48837 _ACEOF
48838
48839 fi
48840
48841 if test "$wxUSE_TEXTDLG" = "yes"; then
48842     cat >>confdefs.h <<\_ACEOF
48843 #define wxUSE_TEXTDLG 1
48844 _ACEOF
48845
48846 fi
48847
48848 if test "$wxUSE_WIZARDDLG" = "yes"; then
48849     cat >>confdefs.h <<\_ACEOF
48850 #define wxUSE_WIZARDDLG 1
48851 _ACEOF
48852
48853     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48854 fi
48855
48856
48857 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
48858     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
48859         cat >>confdefs.h <<\_ACEOF
48860 #define wxUSE_OWNER_DRAWN 1
48861 _ACEOF
48862
48863     fi
48864 fi
48865
48866
48867 if test "$wxUSE_MSW" = 1 ; then
48868
48869     if test "$wxUSE_DC_CACHEING" = "yes"; then
48870         cat >>confdefs.h <<\_ACEOF
48871 #define wxUSE_DC_CACHEING 1
48872 _ACEOF
48873
48874     fi
48875
48876     if test "$wxUSE_DIB" = "yes"; then
48877         cat >>confdefs.h <<\_ACEOF
48878 #define wxUSE_WXDIB 1
48879 _ACEOF
48880
48881     fi
48882
48883     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
48884         cat >>confdefs.h <<\_ACEOF
48885 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
48886 _ACEOF
48887
48888     fi
48889
48890     if test "$wxUSE_UXTHEME" = "yes"; then
48891         cat >>confdefs.h <<\_ACEOF
48892 #define wxUSE_UXTHEME 1
48893 _ACEOF
48894
48895     fi
48896
48897 fi
48898
48899 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
48900     cat >>confdefs.h <<\_ACEOF
48901 #define wxUSE_AUTOID_MANAGEMENT 1
48902 _ACEOF
48903
48904 fi
48905
48906 if test "$USE_WIN32" = 1 ; then
48907     if test "$wxUSE_INICONF" = "yes"; then
48908         cat >>confdefs.h <<\_ACEOF
48909 #define wxUSE_INICONF 1
48910 _ACEOF
48911
48912     fi
48913
48914     if test "$wxUSE_REGKEY" = "yes"; then
48915         cat >>confdefs.h <<\_ACEOF
48916 #define wxUSE_REGKEY 1
48917 _ACEOF
48918
48919     fi
48920 fi
48921
48922
48923 if test "$wxUSE_MAC" = 1; then
48924     wxUSE_GRAPHICS_CONTEXT="yes"
48925 fi
48926
48927 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48928     wx_has_graphics=0
48929     if test "$wxUSE_MSW" = 1; then
48930         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
48931 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
48932 if test "${wx_cv_lib_gdiplus+set}" = set; then
48933   echo $ECHO_N "(cached) $ECHO_C" >&6
48934 else
48935
48936                                                 ac_ext=cpp
48937 ac_cpp='$CXXCPP $CPPFLAGS'
48938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48941
48942                 cat >conftest.$ac_ext <<_ACEOF
48943 /* confdefs.h.  */
48944 _ACEOF
48945 cat confdefs.h >>conftest.$ac_ext
48946 cat >>conftest.$ac_ext <<_ACEOF
48947 /* end confdefs.h.  */
48948 #include <windows.h>
48949                      #include <gdiplus.h>
48950 int
48951 main ()
48952 {
48953
48954                         using namespace Gdiplus;
48955
48956   ;
48957   return 0;
48958 }
48959 _ACEOF
48960 rm -f conftest.$ac_objext
48961 if { (ac_try="$ac_compile"
48962 case "(($ac_try" in
48963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48964   *) ac_try_echo=$ac_try;;
48965 esac
48966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48967   (eval "$ac_compile") 2>conftest.er1
48968   ac_status=$?
48969   grep -v '^ *+' conftest.er1 >conftest.err
48970   rm -f conftest.er1
48971   cat conftest.err >&5
48972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48973   (exit $ac_status); } && {
48974          test -z "$ac_cxx_werror_flag" ||
48975          test ! -s conftest.err
48976        } && test -s conftest.$ac_objext; then
48977   wx_cv_lib_gdiplus=yes
48978 else
48979   echo "$as_me: failed program was:" >&5
48980 sed 's/^/| /' conftest.$ac_ext >&5
48981
48982         wx_cv_lib_gdiplus=no
48983
48984 fi
48985
48986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48987                 ac_ext=c
48988 ac_cpp='$CPP $CPPFLAGS'
48989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48992
48993
48994
48995 fi
48996 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
48997 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
48998         if test "$wx_cv_lib_gdiplus" = "yes"; then
48999             wx_has_graphics=1
49000         fi
49001     elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
49002
49003 pkg_failed=no
49004 { echo "$as_me:$LINENO: checking for CAIRO" >&5
49005 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
49006
49007 if test -n "$PKG_CONFIG"; then
49008     if test -n "$CAIRO_CFLAGS"; then
49009         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
49010     else
49011         if test -n "$PKG_CONFIG" && \
49012     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49013   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49014   ac_status=$?
49015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49016   (exit $ac_status); }; then
49017   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
49018 else
49019   pkg_failed=yes
49020 fi
49021     fi
49022 else
49023         pkg_failed=untried
49024 fi
49025 if test -n "$PKG_CONFIG"; then
49026     if test -n "$CAIRO_LIBS"; then
49027         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
49028     else
49029         if test -n "$PKG_CONFIG" && \
49030     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49031   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49032   ac_status=$?
49033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49034   (exit $ac_status); }; then
49035   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
49036 else
49037   pkg_failed=yes
49038 fi
49039     fi
49040 else
49041         pkg_failed=untried
49042 fi
49043
49044
49045
49046 if test $pkg_failed = yes; then
49047
49048 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49049         _pkg_short_errors_supported=yes
49050 else
49051         _pkg_short_errors_supported=no
49052 fi
49053         if test $_pkg_short_errors_supported = yes; then
49054                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
49055         else
49056                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
49057         fi
49058         # Put the nasty error message in config.log where it belongs
49059         echo "$CAIRO_PKG_ERRORS" >&5
49060
49061         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
49062 echo "$as_me: WARNING: Cairo library not found" >&2;}
49063
49064 elif test $pkg_failed = untried; then
49065         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
49066 echo "$as_me: WARNING: Cairo library not found" >&2;}
49067
49068 else
49069         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
49070         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
49071         { echo "$as_me:$LINENO: result: yes" >&5
49072 echo "${ECHO_T}yes" >&6; }
49073         wx_has_graphics=1
49074 fi
49075         if test "$wx_has_graphics" = 1; then
49076                                                 save_LIBS="$LIBS"
49077             LIBS="$LIBS $CAIRO_LIBS"
49078
49079 for ac_func in cairo_push_group
49080 do
49081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49085   echo $ECHO_N "(cached) $ECHO_C" >&6
49086 else
49087   cat >conftest.$ac_ext <<_ACEOF
49088 /* confdefs.h.  */
49089 _ACEOF
49090 cat confdefs.h >>conftest.$ac_ext
49091 cat >>conftest.$ac_ext <<_ACEOF
49092 /* end confdefs.h.  */
49093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49095 #define $ac_func innocuous_$ac_func
49096
49097 /* System header to define __stub macros and hopefully few prototypes,
49098     which can conflict with char $ac_func (); below.
49099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49100     <limits.h> exists even on freestanding compilers.  */
49101
49102 #ifdef __STDC__
49103 # include <limits.h>
49104 #else
49105 # include <assert.h>
49106 #endif
49107
49108 #undef $ac_func
49109
49110 /* Override any GCC internal prototype to avoid an error.
49111    Use char because int might match the return type of a GCC
49112    builtin and then its argument prototype would still apply.  */
49113 #ifdef __cplusplus
49114 extern "C"
49115 #endif
49116 char $ac_func ();
49117 /* The GNU C library defines this for functions which it implements
49118     to always fail with ENOSYS.  Some functions are actually named
49119     something starting with __ and the normal name is an alias.  */
49120 #if defined __stub_$ac_func || defined __stub___$ac_func
49121 choke me
49122 #endif
49123
49124 int
49125 main ()
49126 {
49127 return $ac_func ();
49128   ;
49129   return 0;
49130 }
49131 _ACEOF
49132 rm -f conftest.$ac_objext conftest$ac_exeext
49133 if { (ac_try="$ac_link"
49134 case "(($ac_try" in
49135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49136   *) ac_try_echo=$ac_try;;
49137 esac
49138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49139   (eval "$ac_link") 2>conftest.er1
49140   ac_status=$?
49141   grep -v '^ *+' conftest.er1 >conftest.err
49142   rm -f conftest.er1
49143   cat conftest.err >&5
49144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49145   (exit $ac_status); } && {
49146          test -z "$ac_c_werror_flag" ||
49147          test ! -s conftest.err
49148        } && test -s conftest$ac_exeext &&
49149        $as_test_x conftest$ac_exeext; then
49150   eval "$as_ac_var=yes"
49151 else
49152   echo "$as_me: failed program was:" >&5
49153 sed 's/^/| /' conftest.$ac_ext >&5
49154
49155         eval "$as_ac_var=no"
49156 fi
49157
49158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49159       conftest$ac_exeext conftest.$ac_ext
49160 fi
49161 ac_res=`eval echo '${'$as_ac_var'}'`
49162                { echo "$as_me:$LINENO: result: $ac_res" >&5
49163 echo "${ECHO_T}$ac_res" >&6; }
49164 if test `eval echo '${'$as_ac_var'}'` = yes; then
49165   cat >>confdefs.h <<_ACEOF
49166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49167 _ACEOF
49168
49169 fi
49170 done
49171
49172             LIBS="$save_LIBS"
49173             if test "$ac_cv_func_cairo_push_group" = "no"; then
49174                 wx_has_graphics=0
49175                 { echo "$as_me:$LINENO: WARNING: Cairo library is too old and misses cairo_push_group()" >&5
49176 echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;}
49177             else
49178                 cat >>confdefs.h <<\_ACEOF
49179 #define wxUSE_CAIRO 1
49180 _ACEOF
49181
49182
49183                                                 if test "$wxUSE_GTK" != 1; then
49184                     CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
49185                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS"
49186                 fi
49187             fi
49188         fi
49189     else
49190                 wx_has_graphics=1
49191     fi
49192
49193     if test "$wx_has_graphics" = 1; then
49194         cat >>confdefs.h <<\_ACEOF
49195 #define wxUSE_GRAPHICS_CONTEXT 1
49196 _ACEOF
49197
49198     else
49199         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
49200 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
49201     fi
49202 fi
49203
49204
49205 USE_MEDIA=0
49206
49207 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
49208     USE_MEDIA=1
49209
49210                 if test "$wxUSE_GTK" = 1; then
49211         wxUSE_GSTREAMER="no"
49212
49213                                                                 GST_VERSION_MAJOR=0
49214         GST_VERSION_MINOR=10
49215         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49216
49217         if test "$wxUSE_GSTREAMER8" = "no"; then
49218
49219 pkg_failed=no
49220 { echo "$as_me:$LINENO: checking for GST" >&5
49221 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49222
49223 if test -n "$PKG_CONFIG"; then
49224     if test -n "$GST_CFLAGS"; then
49225         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49226     else
49227         if test -n "$PKG_CONFIG" && \
49228     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49229   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49230   ac_status=$?
49231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49232   (exit $ac_status); }; then
49233   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49234 else
49235   pkg_failed=yes
49236 fi
49237     fi
49238 else
49239         pkg_failed=untried
49240 fi
49241 if test -n "$PKG_CONFIG"; then
49242     if test -n "$GST_LIBS"; then
49243         pkg_cv_GST_LIBS="$GST_LIBS"
49244     else
49245         if test -n "$PKG_CONFIG" && \
49246     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49247   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49248   ac_status=$?
49249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49250   (exit $ac_status); }; then
49251   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49252 else
49253   pkg_failed=yes
49254 fi
49255     fi
49256 else
49257         pkg_failed=untried
49258 fi
49259
49260
49261
49262 if test $pkg_failed = yes; then
49263
49264 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49265         _pkg_short_errors_supported=yes
49266 else
49267         _pkg_short_errors_supported=no
49268 fi
49269         if test $_pkg_short_errors_supported = yes; then
49270                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49271         else
49272                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49273         fi
49274         # Put the nasty error message in config.log where it belongs
49275         echo "$GST_PKG_ERRORS" >&5
49276
49277
49278                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49279 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49280                     GST_VERSION_MINOR=8
49281
49282
49283 elif test $pkg_failed = untried; then
49284
49285                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49286 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49287                     GST_VERSION_MINOR=8
49288
49289
49290 else
49291         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49292         GST_LIBS=$pkg_cv_GST_LIBS
49293         { echo "$as_me:$LINENO: result: yes" >&5
49294 echo "${ECHO_T}yes" >&6; }
49295
49296                     wxUSE_GSTREAMER="yes"
49297                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
49298
49299 fi
49300         else
49301                         GST_VERSION_MINOR=8
49302         fi
49303
49304         if test $GST_VERSION_MINOR = "8"; then
49305             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49306
49307 pkg_failed=no
49308 { echo "$as_me:$LINENO: checking for GST" >&5
49309 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49310
49311 if test -n "$PKG_CONFIG"; then
49312     if test -n "$GST_CFLAGS"; then
49313         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49314     else
49315         if test -n "$PKG_CONFIG" && \
49316     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49317   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49318   ac_status=$?
49319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49320   (exit $ac_status); }; then
49321   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49322 else
49323   pkg_failed=yes
49324 fi
49325     fi
49326 else
49327         pkg_failed=untried
49328 fi
49329 if test -n "$PKG_CONFIG"; then
49330     if test -n "$GST_LIBS"; then
49331         pkg_cv_GST_LIBS="$GST_LIBS"
49332     else
49333         if test -n "$PKG_CONFIG" && \
49334     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49335   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49336   ac_status=$?
49337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49338   (exit $ac_status); }; then
49339   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49340 else
49341   pkg_failed=yes
49342 fi
49343     fi
49344 else
49345         pkg_failed=untried
49346 fi
49347
49348
49349
49350 if test $pkg_failed = yes; then
49351
49352 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49353         _pkg_short_errors_supported=yes
49354 else
49355         _pkg_short_errors_supported=no
49356 fi
49357         if test $_pkg_short_errors_supported = yes; then
49358                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49359         else
49360                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49361         fi
49362         # Put the nasty error message in config.log where it belongs
49363         echo "$GST_PKG_ERRORS" >&5
49364
49365
49366                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49367 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49368
49369 elif test $pkg_failed = untried; then
49370
49371                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49372 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49373
49374 else
49375         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49376         GST_LIBS=$pkg_cv_GST_LIBS
49377         { echo "$as_me:$LINENO: result: yes" >&5
49378 echo "${ECHO_T}yes" >&6; }
49379         wxUSE_GSTREAMER="yes"
49380 fi
49381         fi
49382
49383
49384         if test "$wxUSE_GSTREAMER" = "yes"; then
49385             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49386             EXTRALIBS_MEDIA="$GST_LIBS"
49387
49388             cat >>confdefs.h <<\_ACEOF
49389 #define wxUSE_GSTREAMER 1
49390 _ACEOF
49391
49392         else
49393             USE_MEDIA=0
49394         fi
49395     fi
49396
49397     if test $USE_MEDIA = 1; then
49398         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
49399         cat >>confdefs.h <<\_ACEOF
49400 #define wxUSE_MEDIACTRL 1
49401 _ACEOF
49402
49403     else
49404         if test "$wxUSE_MEDIACTRL" = "yes"; then
49405             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
49406 echo "$as_me: error: GStreamer not available" >&2;}
49407    { (exit 1); exit 1; }; }
49408         else
49409                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
49410 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
49411         fi
49412     fi
49413 fi
49414
49415
49416 if test "$cross_compiling" != "no"; then
49417         OSINFO="\"$host\""
49418 else
49419         OSINFO=`uname -s -r -m`
49420     OSINFO="\"$OSINFO\""
49421 fi
49422
49423 cat >>confdefs.h <<_ACEOF
49424 #define WXWIN_OS_DESCRIPTION $OSINFO
49425 _ACEOF
49426
49427
49428
49429 if test "x$prefix" != "xNONE"; then
49430     wxPREFIX=$prefix
49431 else
49432     wxPREFIX=$ac_default_prefix
49433 fi
49434
49435 cat >>confdefs.h <<_ACEOF
49436 #define wxINSTALL_PREFIX "$wxPREFIX"
49437 _ACEOF
49438
49439
49440
49441
49442 STD_BASE_LIBS="base"
49443 STD_GUI_LIBS=""
49444 BUILT_WX_LIBS="base"
49445 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
49446
49447 if test "$wxUSE_SOCKETS" = "yes" ; then
49448     STD_BASE_LIBS="net $STD_BASE_LIBS"
49449     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49450 fi
49451 if test "$wxUSE_XML" = "yes" ; then
49452     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49453     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49454 fi
49455
49456 if test "$wxUSE_GUI" = "yes"; then
49457     STD_GUI_LIBS="adv core"
49458     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49459
49460     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49461         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49462         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49463     fi
49464     if test "$wxUSE_HTML" = "yes" ; then
49465         STD_GUI_LIBS="html $STD_GUI_LIBS"
49466         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49467     fi
49468     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49469         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49470     fi
49471     if test "$wxUSE_OPENGL" = "yes" ; then
49472         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49473     fi
49474     if test "$wxUSE_AUI" = "yes" ; then
49475         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49476     fi
49477     if test "$wxUSE_PROPGRID" = "yes" ; then
49478         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
49479     fi
49480     if test "$wxUSE_RIBBON" = "yes" ; then
49481         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
49482     fi
49483     if test "$wxUSE_RICHTEXT" = "yes" ; then
49484         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
49485     fi
49486     if test "$wxUSE_STC" = "yes" ; then
49487         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49488     fi
49489     if test "$wxUSE_WEBVIEW" = "yes" ; then
49490         STD_GUI_LIBS="webview $STD_GUI_LIBS"
49491         BUILT_WX_LIBS="webview $BUILT_WX_LIBS"
49492     fi
49493     if test "$wxUSE_XRC" = "yes" ; then
49494         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49495         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49496     fi
49497 fi
49498
49499
49500
49501
49502
49503
49504
49505 EXTRA_FRAMEWORKS=
49506 if test "$wxUSE_MAC" = 1 ; then
49507     if test "$USE_DARWIN" = 1; then
49508         if test "$wxUSE_OSX_IPHONE" = 1; then
49509             EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
49510         else
49511             EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
49512         fi
49513     fi
49514 fi
49515 if test "$wxUSE_OLD_COCOA" = 1 ; then
49516     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
49517     if test "$wxUSE_MEDIACTRL" = "yes"; then
49518         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
49519     fi
49520 fi
49521 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
49522     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49523 fi
49524
49525 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
49526 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
49527
49528 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49529
49530 if test "$wxUSE_GUI" = "yes"; then
49531
49532
49533         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49534                      erase event exec font image minimal render \
49535                      shaped svg taborder vscroll widgets wrapsizer"
49536
49537     if test "$wxUSE_MONOLITHIC" != "yes"; then
49538         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49539     fi
49540     if test "$TOOLKIT" = "MSW"; then
49541         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49542         if test "$wxUSE_UNIVERSAL" != "yes"; then
49543             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
49544         fi
49545     fi
49546     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49547         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49548     fi
49549 else
49550     SAMPLES_SUBDIRS="console"
49551     if test "$wxUSE_SOCKETS" = "yes" ; then
49552         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
49553     fi
49554     if test "$wxUSE_IPC" = "yes" ; then
49555         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
49556     fi
49557 fi
49558
49559
49560 if test "x$INTELCC" = "xyes" ; then
49561                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
49562 elif test "$GCC" = yes ; then
49563     CWARNINGS="-Wall -Wundef"
49564 fi
49565
49566 if test "x$INTELCXX" = "xyes" ; then
49567                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
49568 elif test "$GXX" = yes ; then
49569     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
49570     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
49571 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
49572 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
49573   echo $ECHO_N "(cached) $ECHO_C" >&6
49574 else
49575   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
49576
49577  ac_ext=cpp
49578 ac_cpp='$CXXCPP $CPPFLAGS'
49579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49582
49583  ac_save_CXXFLAGS="$CXXFLAGS"
49584 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
49585 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
49586    cat >conftest.$ac_ext <<_ACEOF
49587 /* confdefs.h.  */
49588 _ACEOF
49589 cat confdefs.h >>conftest.$ac_ext
49590 cat >>conftest.$ac_ext <<_ACEOF
49591 /* end confdefs.h.  */
49592
49593 int
49594 main ()
49595 {
49596 return 0;
49597   ;
49598   return 0;
49599 }
49600 _ACEOF
49601 rm -f conftest.$ac_objext
49602 if { (ac_try="$ac_compile"
49603 case "(($ac_try" in
49604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49605   *) ac_try_echo=$ac_try;;
49606 esac
49607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49608   (eval "$ac_compile") 2>conftest.er1
49609   ac_status=$?
49610   grep -v '^ *+' conftest.er1 >conftest.err
49611   rm -f conftest.er1
49612   cat conftest.err >&5
49613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49614   (exit $ac_status); } && {
49615          test -z "$ac_cxx_werror_flag" ||
49616          test ! -s conftest.err
49617        } && test -s conftest.$ac_objext; then
49618   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
49619 else
49620   echo "$as_me: failed program was:" >&5
49621 sed 's/^/| /' conftest.$ac_ext >&5
49622
49623
49624 fi
49625
49626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49627 done
49628  CXXFLAGS="$ac_save_CXXFLAGS"
49629  ac_ext=c
49630 ac_cpp='$CPP $CPPFLAGS'
49631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49634
49635
49636 fi
49637 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
49638 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
49639 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
49640      .ok|.ok,*)  ;;
49641    .|.no|.no,*)  ;;
49642    *)
49643    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
49644    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
49645   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
49646   ac_status=$?
49647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49648   (exit $ac_status); }
49649    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
49650   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
49651   ac_status=$?
49652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49653   (exit $ac_status); }
49654                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
49655    fi
49656  ;;
49657 esac
49658
49659
49660                     if test "$wxUSE_MAC" = 1 ; then
49661         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
49662     fi
49663 fi
49664
49665
49666 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49667 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49668
49669
49670 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49671  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49672  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49673  $CPPFLAGS `
49674
49675 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49676 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49677 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49678 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
49679 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
49680
49681 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49682
49683
49684 if test "x$MWCC" = "xyes"; then
49685
49686             CC="$CC -cwd source -I-"
49687     CXX="$CXX -cwd source -I-"
49688 fi
49689
49690
49691 LIBS=`echo $LIBS`
49692 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49693 EXTRALIBS_XML="$EXPAT_LINK"
49694 EXTRALIBS_HTML="$MSPACK_LINK"
49695 EXTRALIBS_MEDIA="$GST_LIBS"
49696 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49697 if test "$wxUSE_GUI" = "yes"; then
49698     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49699 fi
49700 if test "$wxUSE_OPENGL" = "yes"; then
49701     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49702 fi
49703
49704 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49705
49706 WXCONFIG_LIBS="$LIBS"
49707
49708 if test "$wxUSE_REGEX" = "builtin" ; then
49709     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49710 fi
49711 if test "$wxUSE_EXPAT" = "builtin" ; then
49712     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49713 fi
49714 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49715     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49716 fi
49717 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49718     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49719 fi
49720 if test "$wxUSE_LIBPNG" = "builtin" ; then
49721     wxconfig_3rdparty="png $wxconfig_3rdparty"
49722 fi
49723 if test "$wxUSE_ZLIB" = "builtin" ; then
49724     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49725 fi
49726
49727 for i in $wxconfig_3rdparty ; do
49728     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49729 done
49730
49731
49732 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49733     WXUNIV=1
49734
49735     case "$wxUNIV_THEMES" in
49736         ''|all)
49737             cat >>confdefs.h <<\_ACEOF
49738 #define wxUSE_ALL_THEMES 1
49739 _ACEOF
49740
49741             ;;
49742
49743         *)
49744             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
49745                 cat >>confdefs.h <<_ACEOF
49746 #define wxUSE_THEME_$t 1
49747 _ACEOF
49748
49749             done
49750     esac
49751 else
49752     WXUNIV=0
49753 fi
49754
49755
49756
49757
49758
49759
49760
49761
49762 if test $wxUSE_MONOLITHIC = "yes" ; then
49763     MONOLITHIC=1
49764 else
49765     MONOLITHIC=0
49766 fi
49767
49768 if test $wxUSE_PLUGINS = "yes" ; then
49769     USE_PLUGINS=1
49770 else
49771     USE_PLUGINS=0
49772 fi
49773
49774 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49775     USE_QA=1
49776 else
49777     USE_QA=0
49778 fi
49779
49780 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49781     OFFICIAL_BUILD=1
49782 else
49783     OFFICIAL_BUILD=0
49784 fi
49785
49786
49787
49788
49789
49790
49791
49792
49793
49794
49795
49796
49797
49798
49799
49800
49801
49802
49803
49804
49805
49806
49807
49808
49809
49810
49811
49812 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
49813
49814
49815
49816
49817
49818
49819
49820
49821
49822
49823 case "$TOOLKIT" in
49824     GTK)
49825         TOOLKIT_DESC="GTK+"
49826         if test "$WXGTK2" = 1; then
49827             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49828             if test "$wxUSE_GTKPRINT" = "yes" ; then
49829                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
49830             fi
49831             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49832                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49833             fi
49834             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49835                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49836             fi
49837             if test "$wxUSE_LIBHILDON" = "yes"; then
49838                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49839             fi
49840             if test "$wxUSE_LIBHILDON2" = "yes"; then
49841                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49842             fi
49843
49844             if test "$TOOLKIT_EXTRA" != ""; then
49845                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49846             fi
49847         fi
49848         ;;
49849
49850     ?*)
49851         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49852         ;;
49853
49854     *)
49855         TOOLKIT_DESC="base only"
49856         ;;
49857 esac
49858
49859 if test "$wxUSE_WINE" = "yes"; then
49860     BAKEFILE_FORCE_PLATFORM=win32
49861 fi
49862
49863 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49864 then
49865     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49866 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49867 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49868   echo $ECHO_N "(cached) $ECHO_C" >&6
49869 else
49870
49871             echo '#include <stdio.h>
49872                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49873
49874             echo '#include "conftest.h"
49875                   int main()
49876                   {
49877                      printf("%ls", test_var);
49878                      return 0;
49879                   }' > conftest.cpp
49880
49881             wx_cv_gcc_pch_bug="pch not supported"
49882
49883             if $CXX conftest.h >/dev/null 2>&1
49884             then
49885                 wx_cv_gcc_pch_bug=
49886
49887                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49888                 then
49889                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49890                         grep awidetest >/dev/null
49891                     then
49892                         wx_cv_gcc_pch_bug=no
49893                     else
49894                         wx_cv_gcc_pch_bug=yes
49895                     fi
49896                 fi
49897             fi
49898
49899             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49900
49901 fi
49902 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49903 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49904
49905     if test "$wx_cv_gcc_pch_bug" = yes; then
49906                         bk_use_pch=no
49907     fi
49908 fi
49909
49910
49911
49912
49913
49914
49915
49916     if test "x$BAKEFILE_HOST" = "x"; then
49917                if test "x${host}" = "x" ; then
49918                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49919 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49920    { (exit 1); exit 1; }; }
49921                fi
49922
49923         BAKEFILE_HOST="${host}"
49924     fi
49925
49926     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49927
49928     if test -n "$ac_tool_prefix"; then
49929   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49930 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49933 if test "${ac_cv_prog_RANLIB+set}" = set; then
49934   echo $ECHO_N "(cached) $ECHO_C" >&6
49935 else
49936   if test -n "$RANLIB"; then
49937   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49938 else
49939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49940 for as_dir in $PATH
49941 do
49942   IFS=$as_save_IFS
49943   test -z "$as_dir" && as_dir=.
49944   for ac_exec_ext in '' $ac_executable_extensions; do
49945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49946     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49948     break 2
49949   fi
49950 done
49951 done
49952 IFS=$as_save_IFS
49953
49954 fi
49955 fi
49956 RANLIB=$ac_cv_prog_RANLIB
49957 if test -n "$RANLIB"; then
49958   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49959 echo "${ECHO_T}$RANLIB" >&6; }
49960 else
49961   { echo "$as_me:$LINENO: result: no" >&5
49962 echo "${ECHO_T}no" >&6; }
49963 fi
49964
49965
49966 fi
49967 if test -z "$ac_cv_prog_RANLIB"; then
49968   ac_ct_RANLIB=$RANLIB
49969   # Extract the first word of "ranlib", so it can be a program name with args.
49970 set dummy ranlib; ac_word=$2
49971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49973 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49974   echo $ECHO_N "(cached) $ECHO_C" >&6
49975 else
49976   if test -n "$ac_ct_RANLIB"; then
49977   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49978 else
49979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49980 for as_dir in $PATH
49981 do
49982   IFS=$as_save_IFS
49983   test -z "$as_dir" && as_dir=.
49984   for ac_exec_ext in '' $ac_executable_extensions; do
49985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49986     ac_cv_prog_ac_ct_RANLIB="ranlib"
49987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49988     break 2
49989   fi
49990 done
49991 done
49992 IFS=$as_save_IFS
49993
49994 fi
49995 fi
49996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49997 if test -n "$ac_ct_RANLIB"; then
49998   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49999 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
50000 else
50001   { echo "$as_me:$LINENO: result: no" >&5
50002 echo "${ECHO_T}no" >&6; }
50003 fi
50004
50005   if test "x$ac_ct_RANLIB" = x; then
50006     RANLIB=":"
50007   else
50008     case $cross_compiling:$ac_tool_warned in
50009 yes:)
50010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50011 whose name does not start with the host triplet.  If you think this
50012 configuration is useful to you, please write to autoconf@gnu.org." >&5
50013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50014 whose name does not start with the host triplet.  If you think this
50015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50016 ac_tool_warned=yes ;;
50017 esac
50018     RANLIB=$ac_ct_RANLIB
50019   fi
50020 else
50021   RANLIB="$ac_cv_prog_RANLIB"
50022 fi
50023
50024     # Find a good install program.  We prefer a C program (faster),
50025 # so one script is as good as another.  But avoid the broken or
50026 # incompatible versions:
50027 # SysV /etc/install, /usr/sbin/install
50028 # SunOS /usr/etc/install
50029 # IRIX /sbin/install
50030 # AIX /bin/install
50031 # AmigaOS /C/install, which installs bootblocks on floppy discs
50032 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
50033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
50034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
50035 # OS/2's system install, which has a completely different semantic
50036 # ./install, which can be erroneously created by make from ./install.sh.
50037 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
50038 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
50039 if test -z "$INSTALL"; then
50040 if test "${ac_cv_path_install+set}" = set; then
50041   echo $ECHO_N "(cached) $ECHO_C" >&6
50042 else
50043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50044 for as_dir in $PATH
50045 do
50046   IFS=$as_save_IFS
50047   test -z "$as_dir" && as_dir=.
50048   # Account for people who put trailing slashes in PATH elements.
50049 case $as_dir/ in
50050   ./ | .// | /cC/* | \
50051   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
50052   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
50053   /usr/ucb/* ) ;;
50054   *)
50055     # OSF1 and SCO ODT 3.0 have their own names for install.
50056     # Don't use installbsd from OSF since it installs stuff as root
50057     # by default.
50058     for ac_prog in ginstall scoinst install; do
50059       for ac_exec_ext in '' $ac_executable_extensions; do
50060         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
50061           if test $ac_prog = install &&
50062             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50063             # AIX install.  It has an incompatible calling convention.
50064             :
50065           elif test $ac_prog = install &&
50066             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50067             # program-specific install script used by HP pwplus--don't use.
50068             :
50069           else
50070             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
50071             break 3
50072           fi
50073         fi
50074       done
50075     done
50076     ;;
50077 esac
50078 done
50079 IFS=$as_save_IFS
50080
50081
50082 fi
50083   if test "${ac_cv_path_install+set}" = set; then
50084     INSTALL=$ac_cv_path_install
50085   else
50086     # As a last resort, use the slow shell script.  Don't cache a
50087     # value for INSTALL within a source directory, because that will
50088     # break other packages using the cache if that directory is
50089     # removed, or if the value is a relative name.
50090     INSTALL=$ac_install_sh
50091   fi
50092 fi
50093 { echo "$as_me:$LINENO: result: $INSTALL" >&5
50094 echo "${ECHO_T}$INSTALL" >&6; }
50095
50096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
50097 # It thinks the first close brace ends the variable substitution.
50098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
50099
50100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
50101
50102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
50103
50104     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
50105 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
50106 LN_S=$as_ln_s
50107 if test "$LN_S" = "ln -s"; then
50108   { echo "$as_me:$LINENO: result: yes" >&5
50109 echo "${ECHO_T}yes" >&6; }
50110 else
50111   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
50112 echo "${ECHO_T}no, using $LN_S" >&6; }
50113 fi
50114
50115
50116     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50117 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50118 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50119 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50120   echo $ECHO_N "(cached) $ECHO_C" >&6
50121 else
50122   cat >conftest.make <<\_ACEOF
50123 SHELL = /bin/sh
50124 all:
50125         @echo '@@@%%%=$(MAKE)=@@@%%%'
50126 _ACEOF
50127 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50128 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50129   *@@@%%%=?*=@@@%%%*)
50130     eval ac_cv_prog_make_${ac_make}_set=yes;;
50131   *)
50132     eval ac_cv_prog_make_${ac_make}_set=no;;
50133 esac
50134 rm -f conftest.make
50135 fi
50136 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50137   { echo "$as_me:$LINENO: result: yes" >&5
50138 echo "${ECHO_T}yes" >&6; }
50139   SET_MAKE=
50140 else
50141   { echo "$as_me:$LINENO: result: no" >&5
50142 echo "${ECHO_T}no" >&6; }
50143   SET_MAKE="MAKE=${MAKE-make}"
50144 fi
50145
50146
50147
50148     if test "x$SUNCXX" = "xyes"; then
50149                                 AR=$CXX
50150         AROPTIONS="-xar -o"
50151
50152     elif test "x$SGICC" = "xyes"; then
50153                 AR=$CXX
50154         AROPTIONS="-ar -o"
50155
50156     else
50157         if test -n "$ac_tool_prefix"; then
50158   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
50159 set dummy ${ac_tool_prefix}ar; ac_word=$2
50160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50162 if test "${ac_cv_prog_AR+set}" = set; then
50163   echo $ECHO_N "(cached) $ECHO_C" >&6
50164 else
50165   if test -n "$AR"; then
50166   ac_cv_prog_AR="$AR" # Let the user override the test.
50167 else
50168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50169 for as_dir in $PATH
50170 do
50171   IFS=$as_save_IFS
50172   test -z "$as_dir" && as_dir=.
50173   for ac_exec_ext in '' $ac_executable_extensions; do
50174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50175     ac_cv_prog_AR="${ac_tool_prefix}ar"
50176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50177     break 2
50178   fi
50179 done
50180 done
50181 IFS=$as_save_IFS
50182
50183 fi
50184 fi
50185 AR=$ac_cv_prog_AR
50186 if test -n "$AR"; then
50187   { echo "$as_me:$LINENO: result: $AR" >&5
50188 echo "${ECHO_T}$AR" >&6; }
50189 else
50190   { echo "$as_me:$LINENO: result: no" >&5
50191 echo "${ECHO_T}no" >&6; }
50192 fi
50193
50194
50195 fi
50196 if test -z "$ac_cv_prog_AR"; then
50197   ac_ct_AR=$AR
50198   # Extract the first word of "ar", so it can be a program name with args.
50199 set dummy ar; ac_word=$2
50200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50202 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
50203   echo $ECHO_N "(cached) $ECHO_C" >&6
50204 else
50205   if test -n "$ac_ct_AR"; then
50206   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
50207 else
50208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50209 for as_dir in $PATH
50210 do
50211   IFS=$as_save_IFS
50212   test -z "$as_dir" && as_dir=.
50213   for ac_exec_ext in '' $ac_executable_extensions; do
50214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50215     ac_cv_prog_ac_ct_AR="ar"
50216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50217     break 2
50218   fi
50219 done
50220 done
50221 IFS=$as_save_IFS
50222
50223 fi
50224 fi
50225 ac_ct_AR=$ac_cv_prog_ac_ct_AR
50226 if test -n "$ac_ct_AR"; then
50227   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
50228 echo "${ECHO_T}$ac_ct_AR" >&6; }
50229 else
50230   { echo "$as_me:$LINENO: result: no" >&5
50231 echo "${ECHO_T}no" >&6; }
50232 fi
50233
50234   if test "x$ac_ct_AR" = x; then
50235     AR="ar"
50236   else
50237     case $cross_compiling:$ac_tool_warned in
50238 yes:)
50239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50240 whose name does not start with the host triplet.  If you think this
50241 configuration is useful to you, please write to autoconf@gnu.org." >&5
50242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50243 whose name does not start with the host triplet.  If you think this
50244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50245 ac_tool_warned=yes ;;
50246 esac
50247     AR=$ac_ct_AR
50248   fi
50249 else
50250   AR="$ac_cv_prog_AR"
50251 fi
50252
50253         AROPTIONS=rcu
50254     fi
50255
50256
50257     if test -n "$ac_tool_prefix"; then
50258   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
50259 set dummy ${ac_tool_prefix}strip; ac_word=$2
50260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50262 if test "${ac_cv_prog_STRIP+set}" = set; then
50263   echo $ECHO_N "(cached) $ECHO_C" >&6
50264 else
50265   if test -n "$STRIP"; then
50266   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
50267 else
50268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50269 for as_dir in $PATH
50270 do
50271   IFS=$as_save_IFS
50272   test -z "$as_dir" && as_dir=.
50273   for ac_exec_ext in '' $ac_executable_extensions; do
50274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50275     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
50276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50277     break 2
50278   fi
50279 done
50280 done
50281 IFS=$as_save_IFS
50282
50283 fi
50284 fi
50285 STRIP=$ac_cv_prog_STRIP
50286 if test -n "$STRIP"; then
50287   { echo "$as_me:$LINENO: result: $STRIP" >&5
50288 echo "${ECHO_T}$STRIP" >&6; }
50289 else
50290   { echo "$as_me:$LINENO: result: no" >&5
50291 echo "${ECHO_T}no" >&6; }
50292 fi
50293
50294
50295 fi
50296 if test -z "$ac_cv_prog_STRIP"; then
50297   ac_ct_STRIP=$STRIP
50298   # Extract the first word of "strip", so it can be a program name with args.
50299 set dummy strip; ac_word=$2
50300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50302 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
50303   echo $ECHO_N "(cached) $ECHO_C" >&6
50304 else
50305   if test -n "$ac_ct_STRIP"; then
50306   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
50307 else
50308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50309 for as_dir in $PATH
50310 do
50311   IFS=$as_save_IFS
50312   test -z "$as_dir" && as_dir=.
50313   for ac_exec_ext in '' $ac_executable_extensions; do
50314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50315     ac_cv_prog_ac_ct_STRIP="strip"
50316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50317     break 2
50318   fi
50319 done
50320 done
50321 IFS=$as_save_IFS
50322
50323 fi
50324 fi
50325 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
50326 if test -n "$ac_ct_STRIP"; then
50327   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
50328 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
50329 else
50330   { echo "$as_me:$LINENO: result: no" >&5
50331 echo "${ECHO_T}no" >&6; }
50332 fi
50333
50334   if test "x$ac_ct_STRIP" = x; then
50335     STRIP=":"
50336   else
50337     case $cross_compiling:$ac_tool_warned in
50338 yes:)
50339 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50340 whose name does not start with the host triplet.  If you think this
50341 configuration is useful to you, please write to autoconf@gnu.org." >&5
50342 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50343 whose name does not start with the host triplet.  If you think this
50344 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50345 ac_tool_warned=yes ;;
50346 esac
50347     STRIP=$ac_ct_STRIP
50348   fi
50349 else
50350   STRIP="$ac_cv_prog_STRIP"
50351 fi
50352
50353     if test -n "$ac_tool_prefix"; then
50354   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
50355 set dummy ${ac_tool_prefix}nm; ac_word=$2
50356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50358 if test "${ac_cv_prog_NM+set}" = set; then
50359   echo $ECHO_N "(cached) $ECHO_C" >&6
50360 else
50361   if test -n "$NM"; then
50362   ac_cv_prog_NM="$NM" # Let the user override the test.
50363 else
50364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50365 for as_dir in $PATH
50366 do
50367   IFS=$as_save_IFS
50368   test -z "$as_dir" && as_dir=.
50369   for ac_exec_ext in '' $ac_executable_extensions; do
50370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50371     ac_cv_prog_NM="${ac_tool_prefix}nm"
50372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50373     break 2
50374   fi
50375 done
50376 done
50377 IFS=$as_save_IFS
50378
50379 fi
50380 fi
50381 NM=$ac_cv_prog_NM
50382 if test -n "$NM"; then
50383   { echo "$as_me:$LINENO: result: $NM" >&5
50384 echo "${ECHO_T}$NM" >&6; }
50385 else
50386   { echo "$as_me:$LINENO: result: no" >&5
50387 echo "${ECHO_T}no" >&6; }
50388 fi
50389
50390
50391 fi
50392 if test -z "$ac_cv_prog_NM"; then
50393   ac_ct_NM=$NM
50394   # Extract the first word of "nm", so it can be a program name with args.
50395 set dummy nm; ac_word=$2
50396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50398 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
50399   echo $ECHO_N "(cached) $ECHO_C" >&6
50400 else
50401   if test -n "$ac_ct_NM"; then
50402   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
50403 else
50404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50405 for as_dir in $PATH
50406 do
50407   IFS=$as_save_IFS
50408   test -z "$as_dir" && as_dir=.
50409   for ac_exec_ext in '' $ac_executable_extensions; do
50410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50411     ac_cv_prog_ac_ct_NM="nm"
50412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50413     break 2
50414   fi
50415 done
50416 done
50417 IFS=$as_save_IFS
50418
50419 fi
50420 fi
50421 ac_ct_NM=$ac_cv_prog_ac_ct_NM
50422 if test -n "$ac_ct_NM"; then
50423   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
50424 echo "${ECHO_T}$ac_ct_NM" >&6; }
50425 else
50426   { echo "$as_me:$LINENO: result: no" >&5
50427 echo "${ECHO_T}no" >&6; }
50428 fi
50429
50430   if test "x$ac_ct_NM" = x; then
50431     NM=":"
50432   else
50433     case $cross_compiling:$ac_tool_warned in
50434 yes:)
50435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50436 whose name does not start with the host triplet.  If you think this
50437 configuration is useful to you, please write to autoconf@gnu.org." >&5
50438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50439 whose name does not start with the host triplet.  If you think this
50440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50441 ac_tool_warned=yes ;;
50442 esac
50443     NM=$ac_ct_NM
50444   fi
50445 else
50446   NM="$ac_cv_prog_NM"
50447 fi
50448
50449
50450     INSTALL_DIR="mkdir -p"
50451
50452
50453     LDFLAGS_GUI=
50454     case ${BAKEFILE_HOST} in
50455         *-*-cygwin* | *-*-mingw32* )
50456         LDFLAGS_GUI="-mwindows"
50457     esac
50458
50459
50460     fi
50461
50462         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50463 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
50464 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50465   echo $ECHO_N "(cached) $ECHO_C" >&6
50466 else
50467
50468         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50469                 egrep -s GNU > /dev/null); then
50470             bakefile_cv_prog_makeisgnu="yes"
50471         else
50472             bakefile_cv_prog_makeisgnu="no"
50473         fi
50474
50475 fi
50476 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50477 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50478
50479     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50480         IF_GNU_MAKE=""
50481     else
50482         IF_GNU_MAKE="#"
50483     fi
50484
50485
50486
50487     PLATFORM_UNIX=0
50488     PLATFORM_WIN32=0
50489     PLATFORM_MSDOS=0
50490     PLATFORM_MAC=0
50491     PLATFORM_MACOS=0
50492     PLATFORM_MACOSX=0
50493     PLATFORM_OS2=0
50494     PLATFORM_BEOS=0
50495
50496     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50497         case "${BAKEFILE_HOST}" in
50498             *-*-mingw32* )
50499                 PLATFORM_WIN32=1
50500             ;;
50501             *-pc-msdosdjgpp )
50502                 PLATFORM_MSDOS=1
50503             ;;
50504             *-pc-os2_emx | *-pc-os2-emx )
50505                 PLATFORM_OS2=1
50506             ;;
50507             *-*-darwin* )
50508                 PLATFORM_MAC=1
50509                 PLATFORM_MACOSX=1
50510             ;;
50511             *-*-beos* )
50512                 PLATFORM_BEOS=1
50513             ;;
50514             powerpc-apple-macos* )
50515                 PLATFORM_MAC=1
50516                 PLATFORM_MACOS=1
50517             ;;
50518             * )
50519                 PLATFORM_UNIX=1
50520             ;;
50521         esac
50522     else
50523         case "$BAKEFILE_FORCE_PLATFORM" in
50524             win32 )
50525                 PLATFORM_WIN32=1
50526             ;;
50527             msdos )
50528                 PLATFORM_MSDOS=1
50529             ;;
50530             os2 )
50531                 PLATFORM_OS2=1
50532             ;;
50533             darwin )
50534                 PLATFORM_MAC=1
50535                 PLATFORM_MACOSX=1
50536             ;;
50537             unix )
50538                 PLATFORM_UNIX=1
50539             ;;
50540             beos )
50541                 PLATFORM_BEOS=1
50542             ;;
50543             * )
50544                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
50545 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
50546    { (exit 1); exit 1; }; }
50547             ;;
50548         esac
50549     fi
50550
50551
50552
50553
50554
50555
50556
50557
50558
50559
50560
50561     # Check whether --enable-omf was given.
50562 if test "${enable_omf+set}" = set; then
50563   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50564 fi
50565
50566
50567     case "${BAKEFILE_HOST}" in
50568       *-*-darwin* )
50569                         if test "x$GCC" = "xyes"; then
50570             CFLAGS="$CFLAGS -fno-common"
50571             CXXFLAGS="$CXXFLAGS -fno-common"
50572         fi
50573         if test "x$XLCC" = "xyes"; then
50574             CFLAGS="$CFLAGS -qnocommon"
50575             CXXFLAGS="$CXXFLAGS -qnocommon"
50576         fi
50577         ;;
50578
50579       *-pc-os2_emx | *-pc-os2-emx )
50580         if test "x$bk_os2_use_omf" = "xyes" ; then
50581             AR=emxomfar
50582             RANLIB=:
50583             LDFLAGS="-Zomf $LDFLAGS"
50584             CFLAGS="-Zomf $CFLAGS"
50585             CXXFLAGS="-Zomf $CXXFLAGS"
50586             OS2_LIBEXT="lib"
50587         else
50588             OS2_LIBEXT="a"
50589         fi
50590         ;;
50591
50592       i*86-*-beos* )
50593         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50594         ;;
50595     esac
50596
50597
50598     SO_SUFFIX="so"
50599     SO_SUFFIX_MODULE="so"
50600     EXEEXT=""
50601     LIBPREFIX="lib"
50602     LIBEXT=".a"
50603     DLLPREFIX="lib"
50604     DLLPREFIX_MODULE=""
50605     DLLIMP_SUFFIX=""
50606     dlldir="$libdir"
50607
50608     case "${BAKEFILE_HOST}" in
50609                         ia64-hp-hpux* )
50610         ;;
50611         *-hp-hpux* )
50612             SO_SUFFIX="sl"
50613             SO_SUFFIX_MODULE="sl"
50614         ;;
50615         *-*-aix* )
50616                                                                         SO_SUFFIX="a"
50617             SO_SUFFIX_MODULE="a"
50618         ;;
50619         *-*-cygwin* )
50620             SO_SUFFIX="dll"
50621             SO_SUFFIX_MODULE="dll"
50622             DLLIMP_SUFFIX="dll.a"
50623             EXEEXT=".exe"
50624             DLLPREFIX="cyg"
50625             dlldir="$bindir"
50626         ;;
50627         *-*-mingw32* )
50628             SO_SUFFIX="dll"
50629             SO_SUFFIX_MODULE="dll"
50630             DLLIMP_SUFFIX="dll.a"
50631             EXEEXT=".exe"
50632             DLLPREFIX=""
50633             dlldir="$bindir"
50634         ;;
50635         *-pc-msdosdjgpp )
50636             EXEEXT=".exe"
50637             DLLPREFIX=""
50638             dlldir="$bindir"
50639         ;;
50640         *-pc-os2_emx | *-pc-os2-emx )
50641             SO_SUFFIX="dll"
50642             SO_SUFFIX_MODULE="dll"
50643             DLLIMP_SUFFIX=$OS2_LIBEXT
50644             EXEEXT=".exe"
50645             DLLPREFIX=""
50646             LIBPREFIX=""
50647             LIBEXT=".$OS2_LIBEXT"
50648             dlldir="$bindir"
50649         ;;
50650         *-*-darwin* )
50651             SO_SUFFIX="dylib"
50652             SO_SUFFIX_MODULE="bundle"
50653         ;;
50654     esac
50655
50656     if test "x$DLLIMP_SUFFIX" = "x" ; then
50657         DLLIMP_SUFFIX="$SO_SUFFIX"
50658     fi
50659
50660
50661
50662
50663
50664
50665
50666
50667
50668
50669
50670
50671         PIC_FLAG=""
50672     if test "x$GCC" = "xyes"; then
50673                 PIC_FLAG="-fPIC"
50674     fi
50675
50676         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50677     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50678     WINDOWS_IMPLIB=0
50679
50680     case "${BAKEFILE_HOST}" in
50681       *-hp-hpux* )
50682                 if test "x$GCC" != "xyes"; then
50683                         LDFLAGS="$LDFLAGS -L/usr/lib"
50684
50685             SHARED_LD_CC="${CC} -b -o"
50686             SHARED_LD_CXX="${CXX} -b -o"
50687             PIC_FLAG="+Z"
50688         fi
50689       ;;
50690
50691       *-*-linux* )
50692                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
50693             PIC_FLAG="-KPIC"
50694         elif test "x$SUNCXX" = "xyes"; then
50695             SHARED_LD_CC="${CC} -G -o"
50696             SHARED_LD_CXX="${CXX} -G -o"
50697             PIC_FLAG="-KPIC"
50698         fi
50699       ;;
50700
50701       *-*-solaris2* )
50702         if test "x$SUNCXX" = xyes ; then
50703             SHARED_LD_CC="${CC} -G -o"
50704             SHARED_LD_CXX="${CXX} -G -o"
50705             PIC_FLAG="-KPIC"
50706         fi
50707       ;;
50708
50709       *-*-darwin* )
50710
50711 D='$'
50712 cat <<EOF >shared-ld-sh
50713 #!/bin/sh
50714 #-----------------------------------------------------------------------------
50715 #-- Name:        distrib/mac/shared-ld-sh
50716 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50717 #-- Author:      Gilles Depeyrot
50718 #-- Copyright:   (c) 2002 Gilles Depeyrot
50719 #-- Licence:     any use permitted
50720 #-----------------------------------------------------------------------------
50721
50722 verbose=0
50723 args=""
50724 objects=""
50725 linking_flag="-dynamiclib"
50726 ldargs="-r -keep_private_externs -nostdlib"
50727
50728 if test "x${D}CXX" = "x"; then
50729     CXX="c++"
50730 fi
50731
50732 while test ${D}# -gt 0; do
50733     case ${D}1 in
50734
50735        -v)
50736         verbose=1
50737         ;;
50738
50739        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50740         # collect these options and values
50741         args="${D}{args} ${D}1 ${D}2"
50742         shift
50743         ;;
50744
50745        -arch|-isysroot)
50746         # collect these options and values
50747         ldargs="${D}{ldargs} ${D}1 ${D}2"
50748         shift
50749         ;;
50750
50751        -s|-Wl,*)
50752         # collect these load args
50753         ldargs="${D}{ldargs} ${D}1"
50754         ;;
50755
50756        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50757         # collect these options
50758         args="${D}{args} ${D}1"
50759         ;;
50760
50761        -dynamiclib|-bundle)
50762         linking_flag="${D}1"
50763         ;;
50764
50765        -*)
50766         echo "shared-ld: unhandled option '${D}1'"
50767         exit 1
50768         ;;
50769
50770         *.o | *.a | *.dylib)
50771         # collect object files
50772         objects="${D}{objects} ${D}1"
50773         ;;
50774
50775         *)
50776         echo "shared-ld: unhandled argument '${D}1'"
50777         exit 1
50778         ;;
50779
50780     esac
50781     shift
50782 done
50783
50784 status=0
50785
50786 #
50787 # Link one module containing all the others
50788 #
50789 if test ${D}{verbose} = 1; then
50790     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50791 fi
50792 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50793 status=${D}?
50794
50795 #
50796 # Link the shared library from the single module created, but only if the
50797 # previous command didn't fail:
50798 #
50799 if test ${D}{status} = 0; then
50800     if test ${D}{verbose} = 1; then
50801         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50802     fi
50803     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50804     status=${D}?
50805 fi
50806
50807 #
50808 # Remove intermediate module
50809 #
50810 rm -f master.${D}${D}.o
50811
50812 exit ${D}status
50813 EOF
50814
50815         chmod +x shared-ld-sh
50816
50817         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50818         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
50819
50820
50821                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50822 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50823 if test "${bakefile_cv_gcc31+set}" = set; then
50824   echo $ECHO_N "(cached) $ECHO_C" >&6
50825 else
50826
50827            cat >conftest.$ac_ext <<_ACEOF
50828 /* confdefs.h.  */
50829 _ACEOF
50830 cat confdefs.h >>conftest.$ac_ext
50831 cat >>conftest.$ac_ext <<_ACEOF
50832 /* end confdefs.h.  */
50833
50834 int
50835 main ()
50836 {
50837
50838                    #if (__GNUC__ < 3) || \
50839                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50840                        This is old gcc
50841                    #endif
50842
50843   ;
50844   return 0;
50845 }
50846 _ACEOF
50847 rm -f conftest.$ac_objext
50848 if { (ac_try="$ac_compile"
50849 case "(($ac_try" in
50850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50851   *) ac_try_echo=$ac_try;;
50852 esac
50853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50854   (eval "$ac_compile") 2>conftest.er1
50855   ac_status=$?
50856   grep -v '^ *+' conftest.er1 >conftest.err
50857   rm -f conftest.er1
50858   cat conftest.err >&5
50859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50860   (exit $ac_status); } && {
50861          test -z "$ac_c_werror_flag" ||
50862          test ! -s conftest.err
50863        } && test -s conftest.$ac_objext; then
50864
50865                    bakefile_cv_gcc31=yes
50866
50867 else
50868   echo "$as_me: failed program was:" >&5
50869 sed 's/^/| /' conftest.$ac_ext >&5
50870
50871
50872                    bakefile_cv_gcc31=no
50873
50874
50875 fi
50876
50877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50878
50879 fi
50880 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50881 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50882         if test "$bakefile_cv_gcc31" = "no"; then
50883                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50884             SHARED_LD_CXX="$SHARED_LD_CC"
50885         else
50886                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50887             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50888         fi
50889
50890         if test "x$GCC" == "xyes"; then
50891             PIC_FLAG="-dynamic -fPIC"
50892         fi
50893         if test "x$XLCC" = "xyes"; then
50894             PIC_FLAG="-dynamic -DPIC"
50895         fi
50896       ;;
50897
50898       *-*-aix* )
50899         if test "x$GCC" = "xyes"; then
50900                                                             PIC_FLAG=""
50901
50902                                                                                     case "${BAKEFILE_HOST}" in
50903                 *-*-aix5* )
50904                     LD_EXPFULL="-Wl,-bexpfull"
50905                     ;;
50906             esac
50907
50908             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50909             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50910         else
50911                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50912 set dummy makeC++SharedLib; ac_word=$2
50913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50915 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50916   echo $ECHO_N "(cached) $ECHO_C" >&6
50917 else
50918   if test -n "$AIX_CXX_LD"; then
50919   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50920 else
50921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50922 for as_dir in $PATH
50923 do
50924   IFS=$as_save_IFS
50925   test -z "$as_dir" && as_dir=.
50926   for ac_exec_ext in '' $ac_executable_extensions; do
50927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50928     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50930     break 2
50931   fi
50932 done
50933 done
50934 IFS=$as_save_IFS
50935
50936   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50937 fi
50938 fi
50939 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50940 if test -n "$AIX_CXX_LD"; then
50941   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50942 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50943 else
50944   { echo "$as_me:$LINENO: result: no" >&5
50945 echo "${ECHO_T}no" >&6; }
50946 fi
50947
50948
50949             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50950             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50951         fi
50952       ;;
50953
50954       *-*-beos* )
50955                         SHARED_LD_CC="${LD} -nostart -o"
50956         SHARED_LD_CXX="${LD} -nostart -o"
50957       ;;
50958
50959       *-*-irix* )
50960                 if test "x$GCC" != "xyes"; then
50961             PIC_FLAG="-KPIC"
50962         fi
50963       ;;
50964
50965       *-*-cygwin* | *-*-mingw32* )
50966         PIC_FLAG=""
50967         SHARED_LD_CC="\$(CC) -shared -o"
50968         SHARED_LD_CXX="\$(CXX) -shared -o"
50969         WINDOWS_IMPLIB=1
50970       ;;
50971
50972       *-pc-os2_emx | *-pc-os2-emx )
50973         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50974         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50975         PIC_FLAG=""
50976
50977 D='$'
50978 cat <<EOF >dllar.sh
50979 #!/bin/sh
50980 #
50981 # dllar - a tool to build both a .dll and an .a file
50982 # from a set of object (.o) files for EMX/OS2.
50983 #
50984 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50985 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50986 #
50987 #  This script will accept a set of files on the command line.
50988 #  All the public symbols from the .o files will be exported into
50989 #  a .DEF file, then linker will be run (through gcc) against them to
50990 #  build a shared library consisting of all given .o files. All libraries
50991 #  (.a) will be first decompressed into component .o files then act as
50992 #  described above. You can optionally give a description (-d "description")
50993 #  which will be put into .DLL. To see the list of accepted options (as well
50994 #  as command-line format) simply run this program without options. The .DLL
50995 #  is built to be imported by name (there is no guarantee that new versions
50996 #  of the library you build will have same ordinals for same symbols).
50997 #
50998 #  dllar is free software; you can redistribute it and/or modify
50999 #  it under the terms of the GNU General Public License as published by
51000 #  the Free Software Foundation; either version 2, or (at your option)
51001 #  any later version.
51002 #
51003 #  dllar is distributed in the hope that it will be useful,
51004 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
51005 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
51006 #  GNU General Public License for more details.
51007 #
51008 #  You should have received a copy of the GNU General Public License
51009 #  along with dllar; see the file COPYING.  If not, write to the Free
51010 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
51011 #  02111-1307, USA.
51012
51013 # To successfuly run this program you will need:
51014 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
51015 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
51016 #  - gcc
51017 #    (used to build the .dll)
51018 #  - emxexp
51019 #    (used to create .def file from .o files)
51020 #  - emximp
51021 #    (used to create .a file from .def file)
51022 #  - GNU text utilites (cat, sort, uniq)
51023 #    used to process emxexp output
51024 #  - GNU file utilities (mv, rm)
51025 #  - GNU sed
51026 #  - lxlite (optional, see flag below)
51027 #    (used for general .dll cleanup)
51028 #
51029
51030 flag_USE_LXLITE=1;
51031
51032 #
51033 # helper functions
51034 # basnam, variant of basename, which does _not_ remove the path, _iff_
51035 #                              second argument (suffix to remove) is given
51036 basnam(){
51037     case ${D}# in
51038     1)
51039         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
51040         ;;
51041     2)
51042         echo ${D}1 | sed 's/'${D}2'${D}//'
51043         ;;
51044     *)
51045         echo "error in basnam ${D}*"
51046         exit 8
51047         ;;
51048     esac
51049 }
51050
51051 # Cleanup temporary files and output
51052 CleanUp() {
51053     cd ${D}curDir
51054     for i in ${D}inputFiles ; do
51055         case ${D}i in
51056         *!)
51057             rm -rf \`basnam ${D}i !\`
51058             ;;
51059         *)
51060             ;;
51061         esac
51062     done
51063
51064     # Kill result in case of failure as there is just to many stupid make/nmake
51065     # things out there which doesn't do this.
51066     if [ ${D}# -eq 0 ]; then
51067         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
51068     fi
51069 }
51070
51071 # Print usage and exit script with rc=1.
51072 PrintHelp() {
51073  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
51074  echo '       [-name-mangler-script script.sh]'
51075  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
51076  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
51077  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
51078  echo '       [*.o] [*.a]'
51079  echo '*> "output_file" should have no extension.'
51080  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
51081  echo '   The import library name is derived from this and is set to "name".a,'
51082  echo '   unless overridden by -import'
51083  echo '*> "importlib_name" should have no extension.'
51084  echo '   If it has the .o, or .a extension, it is automatically removed.'
51085  echo '   This name is used as the import library name and may be longer and'
51086  echo '   more descriptive than the DLL name which has to follow the old '
51087  echo '   8.3 convention of FAT.'
51088  echo '*> "script.sh may be given to override the output_file name by a'
51089  echo '   different name. It is mainly useful if the regular make process'
51090  echo '   of some package does not take into account OS/2 restriction of'
51091  echo '   DLL name lengths. It takes the importlib name as input and is'
51092  echo '   supposed to procude a shorter name as output. The script should'
51093  echo '   expect to get importlib_name without extension and should produce'
51094  echo '   a (max.) 8 letter name without extension.'
51095  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
51096  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
51097  echo '   These flags will be put at the start of GCC command line.'
51098  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
51099  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
51100  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
51101  echo '   If the last character of a symbol is "*", all symbols beginning'
51102  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
51103  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
51104  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
51105  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
51106  echo '   C runtime DLLs.'
51107  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
51108  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
51109  echo '   unchanged to GCC at the end of command line.'
51110  echo '*> If you create a DLL from a library and you do not specify -o,'
51111  echo '   the basename for DLL and import library will be set to library name,'
51112  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
51113  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
51114  echo '   library will be renamed into gcc_s.a.'
51115  echo '--------'
51116  echo 'Example:'
51117  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
51118  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
51119  CleanUp
51120  exit 1
51121 }
51122
51123 # Execute a command.
51124 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
51125 # @Uses    Whatever CleanUp() uses.
51126 doCommand() {
51127     echo "${D}*"
51128     eval ${D}*
51129     rcCmd=${D}?
51130
51131     if [ ${D}rcCmd -ne 0 ]; then
51132         echo "command failed, exit code="${D}rcCmd
51133         CleanUp
51134         exit ${D}rcCmd
51135     fi
51136 }
51137
51138 # main routine
51139 # setup globals
51140 cmdLine=${D}*
51141 outFile=""
51142 outimpFile=""
51143 inputFiles=""
51144 renameScript=""
51145 description=""
51146 CC=gcc.exe
51147 CFLAGS="-s -Zcrtdll"
51148 EXTRA_CFLAGS=""
51149 EXPORT_BY_ORDINALS=0
51150 exclude_symbols=""
51151 library_flags=""
51152 curDir=\`pwd\`
51153 curDirS=curDir
51154 case ${D}curDirS in
51155 */)
51156   ;;
51157 *)
51158   curDirS=${D}{curDirS}"/"
51159   ;;
51160 esac
51161 # Parse commandline
51162 libsToLink=0
51163 omfLinking=0
51164 while [ ${D}1 ]; do
51165     case ${D}1 in
51166     -ord*)
51167         EXPORT_BY_ORDINALS=1;
51168         ;;
51169     -o*)
51170         shift
51171         outFile=${D}1
51172         ;;
51173     -i*)
51174         shift
51175         outimpFile=${D}1
51176         ;;
51177     -name-mangler-script)
51178         shift
51179         renameScript=${D}1
51180         ;;
51181     -d*)
51182         shift
51183         description=${D}1
51184         ;;
51185     -f*)
51186         shift
51187         CFLAGS=${D}1
51188         ;;
51189     -c*)
51190         shift
51191         CC=${D}1
51192         ;;
51193     -h*)
51194         PrintHelp
51195         ;;
51196     -ex*)
51197         shift
51198         exclude_symbols=${D}{exclude_symbols}${D}1" "
51199         ;;
51200     -libf*)
51201         shift
51202         library_flags=${D}{library_flags}${D}1" "
51203         ;;
51204     -nocrt*)
51205         CFLAGS="-s"
51206         ;;
51207     -nolxl*)
51208         flag_USE_LXLITE=0
51209         ;;
51210     -* | /*)
51211         case ${D}1 in
51212         -L* | -l*)
51213             libsToLink=1
51214             ;;
51215         -Zomf)
51216             omfLinking=1
51217             ;;
51218         *)
51219             ;;
51220         esac
51221         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51222         ;;
51223     *.dll)
51224         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
51225         if [ ${D}omfLinking -eq 1 ]; then
51226             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
51227         else
51228             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
51229         fi
51230         ;;
51231     *)
51232         found=0;
51233         if [ ${D}libsToLink -ne 0 ]; then
51234             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51235         else
51236             for file in ${D}1 ; do
51237                 if [ -f ${D}file ]; then
51238                     inputFiles="${D}{inputFiles} ${D}file"
51239                     found=1
51240                 fi
51241             done
51242             if [ ${D}found -eq 0 ]; then
51243                 echo "ERROR: No file(s) found: "${D}1
51244                 exit 8
51245             fi
51246         fi
51247       ;;
51248     esac
51249     shift
51250 done # iterate cmdline words
51251
51252 #
51253 if [ -z "${D}inputFiles" ]; then
51254     echo "dllar: no input files"
51255     PrintHelp
51256 fi
51257
51258 # Now extract all .o files from .a files
51259 newInputFiles=""
51260 for file in ${D}inputFiles ; do
51261     case ${D}file in
51262     *.a | *.lib)
51263         case ${D}file in
51264         *.a)
51265             suffix=".a"
51266             AR="ar"
51267             ;;
51268         *.lib)
51269             suffix=".lib"
51270             AR="emxomfar"
51271             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
51272             ;;
51273         *)
51274             ;;
51275         esac
51276         dirname=\`basnam ${D}file ${D}suffix\`"_%"
51277         mkdir ${D}dirname
51278         if [ ${D}? -ne 0 ]; then
51279             echo "Failed to create subdirectory ./${D}dirname"
51280             CleanUp
51281             exit 8;
51282         fi
51283         # Append '!' to indicate archive
51284         newInputFiles="${D}newInputFiles ${D}{dirname}!"
51285         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
51286         cd ${D}curDir
51287         found=0;
51288         for subfile in ${D}dirname/*.o* ; do
51289             if [ -f ${D}subfile ]; then
51290                 found=1
51291                 if [ -s ${D}subfile ]; then
51292                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
51293                     newInputFiles="${D}newInputFiles ${D}subfile"
51294                 fi
51295             fi
51296         done
51297         if [ ${D}found -eq 0 ]; then
51298             echo "WARNING: there are no files in archive \\'${D}file\\'"
51299         fi
51300         ;;
51301     *)
51302         newInputFiles="${D}{newInputFiles} ${D}file"
51303         ;;
51304     esac
51305 done
51306 inputFiles="${D}newInputFiles"
51307
51308 # Output filename(s).
51309 do_backup=0;
51310 if [ -z ${D}outFile ]; then
51311     do_backup=1;
51312     set outFile ${D}inputFiles; outFile=${D}2
51313 fi
51314
51315 # If it is an archive, remove the '!' and the '_%' suffixes
51316 case ${D}outFile in
51317 *_%!)
51318     outFile=\`basnam ${D}outFile _%!\`
51319     ;;
51320 *)
51321     ;;
51322 esac
51323 case ${D}outFile in
51324 *.dll)
51325     outFile=\`basnam ${D}outFile .dll\`
51326     ;;
51327 *.DLL)
51328     outFile=\`basnam ${D}outFile .DLL\`
51329     ;;
51330 *.o)
51331     outFile=\`basnam ${D}outFile .o\`
51332     ;;
51333 *.obj)
51334     outFile=\`basnam ${D}outFile .obj\`
51335     ;;
51336 *.a)
51337     outFile=\`basnam ${D}outFile .a\`
51338     ;;
51339 *.lib)
51340     outFile=\`basnam ${D}outFile .lib\`
51341     ;;
51342 *)
51343     ;;
51344 esac
51345 case ${D}outimpFile in
51346 *.a)
51347     outimpFile=\`basnam ${D}outimpFile .a\`
51348     ;;
51349 *.lib)
51350     outimpFile=\`basnam ${D}outimpFile .lib\`
51351     ;;
51352 *)
51353     ;;
51354 esac
51355 if [ -z ${D}outimpFile ]; then
51356     outimpFile=${D}outFile
51357 fi
51358 defFile="${D}{outFile}.def"
51359 arcFile="${D}{outimpFile}.a"
51360 arcFile2="${D}{outimpFile}.lib"
51361
51362 #create ${D}dllFile as something matching 8.3 restrictions,
51363 if [ -z ${D}renameScript ] ; then
51364     dllFile="${D}outFile"
51365 else
51366     dllFile=\`${D}renameScript ${D}outimpFile\`
51367 fi
51368
51369 if [ ${D}do_backup -ne 0 ] ; then
51370     if [ -f ${D}arcFile ] ; then
51371         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
51372     fi
51373     if [ -f ${D}arcFile2 ] ; then
51374         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
51375     fi
51376 fi
51377
51378 # Extract public symbols from all the object files.
51379 tmpdefFile=${D}{defFile}_%
51380 rm -f ${D}tmpdefFile
51381 for file in ${D}inputFiles ; do
51382     case ${D}file in
51383     *!)
51384         ;;
51385     *)
51386         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
51387         ;;
51388     esac
51389 done
51390
51391 # Create the def file.
51392 rm -f ${D}defFile
51393 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
51394 dllFile="${D}{dllFile}.dll"
51395 if [ ! -z ${D}description ]; then
51396     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
51397 fi
51398 echo "EXPORTS" >> ${D}defFile
51399
51400 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
51401 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
51402
51403 # Checks if the export is ok or not.
51404 for word in ${D}exclude_symbols; do
51405     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
51406     mv ${D}{tmpdefFile}% ${D}tmpdefFile
51407 done
51408
51409
51410 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51411     sed "=" < ${D}tmpdefFile | \\
51412     sed '
51413       N
51414       : loop
51415       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
51416       t loop
51417     ' > ${D}{tmpdefFile}%
51418     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
51419 else
51420     rm -f ${D}{tmpdefFile}%
51421 fi
51422 cat ${D}tmpdefFile >> ${D}defFile
51423 rm -f ${D}tmpdefFile
51424
51425 # Do linking, create implib, and apply lxlite.
51426 gccCmdl="";
51427 for file in ${D}inputFiles ; do
51428     case ${D}file in
51429     *!)
51430         ;;
51431     *)
51432         gccCmdl="${D}gccCmdl ${D}file"
51433         ;;
51434     esac
51435 done
51436 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
51437 touch "${D}{outFile}.dll"
51438
51439 doCommand "emximp -o ${D}arcFile ${D}defFile"
51440 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
51441     add_flags="";
51442     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51443         add_flags="-ynd"
51444     fi
51445     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
51446 fi
51447 doCommand "emxomf -s -l ${D}arcFile"
51448
51449 # Successful exit.
51450 CleanUp 1
51451 exit 0
51452 EOF
51453
51454         chmod +x dllar.sh
51455       ;;
51456
51457       powerpc-apple-macos* | \
51458       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
51459       *-*-mirbsd* | \
51460       *-*-sunos4* | \
51461       *-*-osf* | \
51462       *-*-dgux5* | \
51463       *-*-sysv5* | \
51464       *-pc-msdosdjgpp )
51465               ;;
51466
51467       *)
51468         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51469 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51470    { (exit 1); exit 1; }; }
51471     esac
51472
51473     if test "x$PIC_FLAG" != "x" ; then
51474         PIC_FLAG="$PIC_FLAG -DPIC"
51475     fi
51476
51477     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51478         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51479     fi
51480     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51481         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51482     fi
51483
51484
51485
51486
51487
51488
51489
51490
51491
51492     USE_SOVERSION=0
51493     USE_SOVERLINUX=0
51494     USE_SOVERSOLARIS=0
51495     USE_SOVERCYGWIN=0
51496     USE_SOTWOSYMLINKS=0
51497     USE_MACVERSION=0
51498     SONAME_FLAG=
51499
51500     case "${BAKEFILE_HOST}" in
51501       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
51502       *-*-k*bsd*-gnu | *-*-mirbsd* )
51503         if test "x$SUNCXX" = "xyes"; then
51504             SONAME_FLAG="-h "
51505         else
51506             SONAME_FLAG="-Wl,-soname,"
51507         fi
51508         USE_SOVERSION=1
51509         USE_SOVERLINUX=1
51510         USE_SOTWOSYMLINKS=1
51511       ;;
51512
51513       *-*-solaris2* )
51514         SONAME_FLAG="-h "
51515         USE_SOVERSION=1
51516         USE_SOVERSOLARIS=1
51517       ;;
51518
51519       *-*-darwin* )
51520         USE_MACVERSION=1
51521         USE_SOVERSION=1
51522         USE_SOTWOSYMLINKS=1
51523       ;;
51524
51525       *-*-cygwin* )
51526         USE_SOVERSION=1
51527         USE_SOVERCYGWIN=1
51528       ;;
51529     esac
51530
51531
51532
51533
51534
51535
51536
51537
51538
51539
51540     # Check whether --enable-dependency-tracking was given.
51541 if test "${enable_dependency_tracking+set}" = set; then
51542   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51543 fi
51544
51545
51546     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51547 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51548
51549     BK_DEPS=""
51550     if test "x$bk_use_trackdeps" = "xno" ; then
51551         DEPS_TRACKING=0
51552         { echo "$as_me:$LINENO: result: disabled" >&5
51553 echo "${ECHO_T}disabled" >&6; }
51554     else
51555         DEPS_TRACKING=1
51556
51557         if test "x$GCC" = "xyes"; then
51558             DEPSMODE=gcc
51559             case "${BAKEFILE_HOST}" in
51560                 *-*-darwin* )
51561                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51562                 ;;
51563                 * )
51564                     DEPSFLAG="-MMD"
51565                 ;;
51566             esac
51567             { echo "$as_me:$LINENO: result: gcc" >&5
51568 echo "${ECHO_T}gcc" >&6; }
51569         elif test "x$MWCC" = "xyes"; then
51570             DEPSMODE=mwcc
51571             DEPSFLAG="-MM"
51572             { echo "$as_me:$LINENO: result: mwcc" >&5
51573 echo "${ECHO_T}mwcc" >&6; }
51574         elif test "x$SUNCC" = "xyes"; then
51575             DEPSMODE=unixcc
51576             DEPSFLAG="-xM1"
51577             { echo "$as_me:$LINENO: result: Sun cc" >&5
51578 echo "${ECHO_T}Sun cc" >&6; }
51579         elif test "x$SGICC" = "xyes"; then
51580             DEPSMODE=unixcc
51581             DEPSFLAG="-M"
51582             { echo "$as_me:$LINENO: result: SGI cc" >&5
51583 echo "${ECHO_T}SGI cc" >&6; }
51584         elif test "x$HPCC" = "xyes"; then
51585             DEPSMODE=unixcc
51586             DEPSFLAG="+make"
51587             { echo "$as_me:$LINENO: result: HP cc" >&5
51588 echo "${ECHO_T}HP cc" >&6; }
51589         elif test "x$COMPAQCC" = "xyes"; then
51590             DEPSMODE=gcc
51591             DEPSFLAG="-MD"
51592             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51593 echo "${ECHO_T}Compaq cc" >&6; }
51594         else
51595             DEPS_TRACKING=0
51596             { echo "$as_me:$LINENO: result: none" >&5
51597 echo "${ECHO_T}none" >&6; }
51598         fi
51599
51600         if test $DEPS_TRACKING = 1 ; then
51601
51602 D='$'
51603 cat <<EOF >bk-deps
51604 #!/bin/sh
51605
51606 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51607 # script. It is used to track C/C++ files dependencies in portable way.
51608 #
51609 # Permission is given to use this file in any way.
51610
51611 DEPSMODE=${DEPSMODE}
51612 DEPSFLAG="${DEPSFLAG}"
51613 DEPSDIRBASE=.deps
51614
51615 if test ${D}DEPSMODE = gcc ; then
51616     ${D}* ${D}{DEPSFLAG}
51617     status=${D}?
51618
51619     # determine location of created files:
51620     while test ${D}# -gt 0; do
51621         case "${D}1" in
51622             -o )
51623                 shift
51624                 objfile=${D}1
51625             ;;
51626             -* )
51627             ;;
51628             * )
51629                 srcfile=${D}1
51630             ;;
51631         esac
51632         shift
51633     done
51634     objfilebase=\`basename ${D}objfile\`
51635     builddir=\`dirname ${D}objfile\`
51636     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51637     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51638     depsdir=${D}builddir/${D}DEPSDIRBASE
51639     mkdir -p ${D}depsdir
51640
51641     # if the compiler failed, we're done:
51642     if test ${D}{status} != 0 ; then
51643         rm -f ${D}depfile
51644         exit ${D}{status}
51645     fi
51646
51647     # move created file to the location we want it in:
51648     if test -f ${D}depfile ; then
51649         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51650         rm -f ${D}depfile
51651     else
51652         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51653         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
51654         if test ! -f ${D}depfile ; then
51655             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51656             depfile="${D}objfile.d"
51657         fi
51658         if test -f ${D}depfile ; then
51659             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51660             rm -f ${D}depfile
51661         fi
51662     fi
51663     exit 0
51664
51665 elif test ${D}DEPSMODE = mwcc ; then
51666     ${D}* || exit ${D}?
51667     # Run mwcc again with -MM and redirect into the dep file we want
51668     # NOTE: We can't use shift here because we need ${D}* to be valid
51669     prevarg=
51670     for arg in ${D}* ; do
51671         if test "${D}prevarg" = "-o"; then
51672             objfile=${D}arg
51673         else
51674             case "${D}arg" in
51675                 -* )
51676                 ;;
51677                 * )
51678                     srcfile=${D}arg
51679                 ;;
51680             esac
51681         fi
51682         prevarg="${D}arg"
51683     done
51684
51685     objfilebase=\`basename ${D}objfile\`
51686     builddir=\`dirname ${D}objfile\`
51687     depsdir=${D}builddir/${D}DEPSDIRBASE
51688     mkdir -p ${D}depsdir
51689
51690     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
51691     exit 0
51692
51693 elif test ${D}DEPSMODE = unixcc; then
51694     ${D}* || exit ${D}?
51695     # Run compiler again with deps flag and redirect into the dep file.
51696     # It doesn't work if the '-o FILE' option is used, but without it the
51697     # dependency file will contain the wrong name for the object. So it is
51698     # removed from the command line, and the dep file is fixed with sed.
51699     cmd=""
51700     while test ${D}# -gt 0; do
51701         case "${D}1" in
51702             -o )
51703                 shift
51704                 objfile=${D}1
51705             ;;
51706             * )
51707                 eval arg${D}#=\\${D}1
51708                 cmd="${D}cmd \\${D}arg${D}#"
51709             ;;
51710         esac
51711         shift
51712     done
51713
51714     objfilebase=\`basename ${D}objfile\`
51715     builddir=\`dirname ${D}objfile\`
51716     depsdir=${D}builddir/${D}DEPSDIRBASE
51717     mkdir -p ${D}depsdir
51718
51719     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
51720     exit 0
51721
51722 else
51723     ${D}*
51724     exit ${D}?
51725 fi
51726 EOF
51727
51728             chmod +x bk-deps
51729                                     BK_DEPS="`pwd`/bk-deps"
51730         fi
51731     fi
51732
51733
51734
51735
51736
51737     case ${BAKEFILE_HOST} in
51738         *-*-cygwin* | *-*-mingw32* )
51739                         if test -n "$ac_tool_prefix"; then
51740   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51741 set dummy ${ac_tool_prefix}windres; ac_word=$2
51742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51744 if test "${ac_cv_prog_WINDRES+set}" = set; then
51745   echo $ECHO_N "(cached) $ECHO_C" >&6
51746 else
51747   if test -n "$WINDRES"; then
51748   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51749 else
51750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51751 for as_dir in $PATH
51752 do
51753   IFS=$as_save_IFS
51754   test -z "$as_dir" && as_dir=.
51755   for ac_exec_ext in '' $ac_executable_extensions; do
51756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51757     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51759     break 2
51760   fi
51761 done
51762 done
51763 IFS=$as_save_IFS
51764
51765 fi
51766 fi
51767 WINDRES=$ac_cv_prog_WINDRES
51768 if test -n "$WINDRES"; then
51769   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51770 echo "${ECHO_T}$WINDRES" >&6; }
51771 else
51772   { echo "$as_me:$LINENO: result: no" >&5
51773 echo "${ECHO_T}no" >&6; }
51774 fi
51775
51776
51777 fi
51778 if test -z "$ac_cv_prog_WINDRES"; then
51779   ac_ct_WINDRES=$WINDRES
51780   # Extract the first word of "windres", so it can be a program name with args.
51781 set dummy windres; ac_word=$2
51782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51784 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51785   echo $ECHO_N "(cached) $ECHO_C" >&6
51786 else
51787   if test -n "$ac_ct_WINDRES"; then
51788   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51789 else
51790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51791 for as_dir in $PATH
51792 do
51793   IFS=$as_save_IFS
51794   test -z "$as_dir" && as_dir=.
51795   for ac_exec_ext in '' $ac_executable_extensions; do
51796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51797     ac_cv_prog_ac_ct_WINDRES="windres"
51798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51799     break 2
51800   fi
51801 done
51802 done
51803 IFS=$as_save_IFS
51804
51805 fi
51806 fi
51807 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51808 if test -n "$ac_ct_WINDRES"; then
51809   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51810 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51811 else
51812   { echo "$as_me:$LINENO: result: no" >&5
51813 echo "${ECHO_T}no" >&6; }
51814 fi
51815
51816   if test "x$ac_ct_WINDRES" = x; then
51817     WINDRES=""
51818   else
51819     case $cross_compiling:$ac_tool_warned in
51820 yes:)
51821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51822 whose name does not start with the host triplet.  If you think this
51823 configuration is useful to you, please write to autoconf@gnu.org." >&5
51824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51825 whose name does not start with the host triplet.  If you think this
51826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51827 ac_tool_warned=yes ;;
51828 esac
51829     WINDRES=$ac_ct_WINDRES
51830   fi
51831 else
51832   WINDRES="$ac_cv_prog_WINDRES"
51833 fi
51834
51835          ;;
51836
51837       *-*-darwin* | powerpc-apple-macos* )
51838             # Extract the first word of "Rez", so it can be a program name with args.
51839 set dummy Rez; ac_word=$2
51840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51842 if test "${ac_cv_prog_REZ+set}" = set; then
51843   echo $ECHO_N "(cached) $ECHO_C" >&6
51844 else
51845   if test -n "$REZ"; then
51846   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51847 else
51848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51849 for as_dir in $PATH
51850 do
51851   IFS=$as_save_IFS
51852   test -z "$as_dir" && as_dir=.
51853   for ac_exec_ext in '' $ac_executable_extensions; do
51854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51855     ac_cv_prog_REZ="Rez"
51856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51857     break 2
51858   fi
51859 done
51860 done
51861 IFS=$as_save_IFS
51862
51863   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51864 fi
51865 fi
51866 REZ=$ac_cv_prog_REZ
51867 if test -n "$REZ"; then
51868   { echo "$as_me:$LINENO: result: $REZ" >&5
51869 echo "${ECHO_T}$REZ" >&6; }
51870 else
51871   { echo "$as_me:$LINENO: result: no" >&5
51872 echo "${ECHO_T}no" >&6; }
51873 fi
51874
51875
51876             # Extract the first word of "SetFile", so it can be a program name with args.
51877 set dummy SetFile; ac_word=$2
51878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51880 if test "${ac_cv_prog_SETFILE+set}" = set; then
51881   echo $ECHO_N "(cached) $ECHO_C" >&6
51882 else
51883   if test -n "$SETFILE"; then
51884   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51885 else
51886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51887 for as_dir in $PATH
51888 do
51889   IFS=$as_save_IFS
51890   test -z "$as_dir" && as_dir=.
51891   for ac_exec_ext in '' $ac_executable_extensions; do
51892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51893     ac_cv_prog_SETFILE="SetFile"
51894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51895     break 2
51896   fi
51897 done
51898 done
51899 IFS=$as_save_IFS
51900
51901   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51902 fi
51903 fi
51904 SETFILE=$ac_cv_prog_SETFILE
51905 if test -n "$SETFILE"; then
51906   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51907 echo "${ECHO_T}$SETFILE" >&6; }
51908 else
51909   { echo "$as_me:$LINENO: result: no" >&5
51910 echo "${ECHO_T}no" >&6; }
51911 fi
51912
51913
51914         ;;
51915     esac
51916
51917
51918
51919
51920
51921
51922
51923
51924
51925     BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
51926
51927
51928 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
51929
51930
51931
51932     # Check whether --enable-precomp-headers was given.
51933 if test "${enable_precomp_headers+set}" = set; then
51934   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51935 fi
51936
51937
51938     GCC_PCH=0
51939     ICC_PCH=0
51940     USE_PCH=0
51941     BK_MAKE_PCH=""
51942
51943     case ${BAKEFILE_HOST} in
51944         *-*-cygwin* )
51945                                                 bk_use_pch="no"
51946             ;;
51947     esac
51948
51949     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51950         if test "x$GCC" = "xyes"; then
51951                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51952 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51953             cat >conftest.$ac_ext <<_ACEOF
51954 /* confdefs.h.  */
51955 _ACEOF
51956 cat confdefs.h >>conftest.$ac_ext
51957 cat >>conftest.$ac_ext <<_ACEOF
51958 /* end confdefs.h.  */
51959
51960 int
51961 main ()
51962 {
51963
51964                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51965                         There is no PCH support
51966                     #endif
51967                     #if (__GNUC__ < 3)
51968                         There is no PCH support
51969                     #endif
51970                     #if (__GNUC__ == 3) && \
51971                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51972                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51973                        ( defined(__INTEL_COMPILER) )
51974                         There is no PCH support
51975                     #endif
51976
51977   ;
51978   return 0;
51979 }
51980 _ACEOF
51981 rm -f conftest.$ac_objext
51982 if { (ac_try="$ac_compile"
51983 case "(($ac_try" in
51984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51985   *) ac_try_echo=$ac_try;;
51986 esac
51987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51988   (eval "$ac_compile") 2>conftest.er1
51989   ac_status=$?
51990   grep -v '^ *+' conftest.er1 >conftest.err
51991   rm -f conftest.er1
51992   cat conftest.err >&5
51993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51994   (exit $ac_status); } && {
51995          test -z "$ac_c_werror_flag" ||
51996          test ! -s conftest.err
51997        } && test -s conftest.$ac_objext; then
51998
51999                     { echo "$as_me:$LINENO: result: yes" >&5
52000 echo "${ECHO_T}yes" >&6; }
52001                     GCC_PCH=1
52002
52003 else
52004   echo "$as_me: failed program was:" >&5
52005 sed 's/^/| /' conftest.$ac_ext >&5
52006
52007
52008                     if test "$INTELCXX8" = "yes"; then
52009                         { echo "$as_me:$LINENO: result: yes" >&5
52010 echo "${ECHO_T}yes" >&6; }
52011                         ICC_PCH=1
52012                         if test "$INTELCXX10" = "yes"; then
52013                             ICC_PCH_CREATE_SWITCH="-pch-create"
52014                             ICC_PCH_USE_SWITCH="-pch-use"
52015                         else
52016                             ICC_PCH_CREATE_SWITCH="-create-pch"
52017                             ICC_PCH_USE_SWITCH="-use-pch"
52018                         fi
52019                     else
52020                         { echo "$as_me:$LINENO: result: no" >&5
52021 echo "${ECHO_T}no" >&6; }
52022                     fi
52023
52024 fi
52025
52026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52027             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
52028                 USE_PCH=1
52029
52030 D='$'
52031 cat <<EOF >bk-make-pch
52032 #!/bin/sh
52033
52034 # This script is part of Bakefile (http://www.bakefile.org) autoconf
52035 # script. It is used to generated precompiled headers.
52036 #
52037 # Permission is given to use this file in any way.
52038
52039 outfile="${D}{1}"
52040 header="${D}{2}"
52041 shift
52042 shift
52043
52044 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
52045
52046 compiler=""
52047 headerfile=""
52048
52049 while test ${D}{#} -gt 0; do
52050     add_to_cmdline=1
52051     case "${D}{1}" in
52052         -I* )
52053             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
52054             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
52055                 headerfile="${D}{incdir}/${D}{header}"
52056             fi
52057         ;;
52058         -use-pch|-use_pch|-pch-use )
52059             shift
52060             add_to_cmdline=0
52061         ;;
52062     esac
52063     if test ${D}add_to_cmdline = 1 ; then
52064         compiler="${D}{compiler} ${D}{1}"
52065     fi
52066     shift
52067 done
52068
52069 if test "x${D}{headerfile}" = "x" ; then
52070     echo "error: can't find header ${D}{header} in include paths" >&2
52071 else
52072     if test -f ${D}{outfile} ; then
52073         rm -f ${D}{outfile}
52074     else
52075         mkdir -p \`dirname ${D}{outfile}\`
52076     fi
52077     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
52078     mkdir -p ${D}{builddir}/.deps
52079     if test "x${GCC_PCH}" = "x1" ; then
52080         # can do this because gcc is >= 3.4:
52081         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
52082     elif test "x${ICC_PCH}" = "x1" ; then
52083         filename=pch_gen-${D}${D}
52084         file=${D}{filename}.c
52085         dfile=${D}{filename}.d
52086         cat > ${D}file <<EOT
52087 #include "${D}header"
52088 EOT
52089         # using -MF icc complains about differing command lines in creation/use
52090         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
52091           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
52092           rm -f ${D}file ${D}dfile ${D}{filename}.o
52093     fi
52094     exit ${D}{?}
52095 fi
52096 EOF
52097
52098                 chmod +x bk-make-pch
52099                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
52100             fi
52101         fi
52102     fi
52103
52104
52105
52106
52107
52108
52109
52110     COND_BUILD_DEBUG="#"
52111     if test "x$BUILD" = "xdebug" ; then
52112         COND_BUILD_DEBUG=""
52113     fi
52114
52115     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
52116     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
52117         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
52118     fi
52119
52120     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
52121     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
52122         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
52123     fi
52124
52125     COND_BUILD_DEBUG_UNICODE_0="#"
52126     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
52127         COND_BUILD_DEBUG_UNICODE_0=""
52128     fi
52129
52130     COND_BUILD_DEBUG_UNICODE_1="#"
52131     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52132         COND_BUILD_DEBUG_UNICODE_1=""
52133     fi
52134
52135     COND_BUILD_RELEASE="#"
52136     if test "x$BUILD" = "xrelease" ; then
52137         COND_BUILD_RELEASE=""
52138     fi
52139
52140     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
52141     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52142         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
52143     fi
52144
52145     COND_BUILD_RELEASE_UNICODE_0="#"
52146     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52147         COND_BUILD_RELEASE_UNICODE_0=""
52148     fi
52149
52150     COND_BUILD_RELEASE_UNICODE_1="#"
52151     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52152         COND_BUILD_RELEASE_UNICODE_1=""
52153     fi
52154
52155     COND_BUILD_debug="#"
52156     if test "x$BUILD" = "xdebug" ; then
52157         COND_BUILD_debug=""
52158     fi
52159
52160     COND_BUILD_debug_DEBUG_FLAG_default="#"
52161     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
52162         COND_BUILD_debug_DEBUG_FLAG_default=""
52163     fi
52164
52165     COND_BUILD_debug_DEBUG_INFO_default="#"
52166     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
52167         COND_BUILD_debug_DEBUG_INFO_default=""
52168     fi
52169
52170     COND_BUILD_debug_UNICODE_0="#"
52171     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
52172         COND_BUILD_debug_UNICODE_0=""
52173     fi
52174
52175     COND_BUILD_debug_UNICODE_1="#"
52176     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52177         COND_BUILD_debug_UNICODE_1=""
52178     fi
52179
52180     COND_BUILD_release="#"
52181     if test "x$BUILD" = "xrelease" ; then
52182         COND_BUILD_release=""
52183     fi
52184
52185     COND_BUILD_release_DEBUG_INFO_default="#"
52186     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52187         COND_BUILD_release_DEBUG_INFO_default=""
52188     fi
52189
52190     COND_BUILD_release_UNICODE_0="#"
52191     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52192         COND_BUILD_release_UNICODE_0=""
52193     fi
52194
52195     COND_BUILD_release_UNICODE_1="#"
52196     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52197         COND_BUILD_release_UNICODE_1=""
52198     fi
52199
52200     COND_DEBUG_FLAG_0="#"
52201     if test "x$DEBUG_FLAG" = "x0" ; then
52202         COND_DEBUG_FLAG_0=""
52203     fi
52204
52205     COND_DEBUG_FLAG_1="#"
52206     if test "x$DEBUG_FLAG" = "x1" ; then
52207         COND_DEBUG_FLAG_1=""
52208     fi
52209
52210     COND_DEBUG_INFO_0="#"
52211     if test "x$DEBUG_INFO" = "x0" ; then
52212         COND_DEBUG_INFO_0=""
52213     fi
52214
52215     COND_DEBUG_INFO_1="#"
52216     if test "x$DEBUG_INFO" = "x1" ; then
52217         COND_DEBUG_INFO_1=""
52218     fi
52219
52220     COND_DEPS_TRACKING_0="#"
52221     if test "x$DEPS_TRACKING" = "x0" ; then
52222         COND_DEPS_TRACKING_0=""
52223     fi
52224
52225     COND_DEPS_TRACKING_1="#"
52226     if test "x$DEPS_TRACKING" = "x1" ; then
52227         COND_DEPS_TRACKING_1=""
52228     fi
52229
52230     COND_GCC_PCH_1="#"
52231     if test "x$GCC_PCH" = "x1" ; then
52232         COND_GCC_PCH_1=""
52233     fi
52234
52235     COND_ICC_PCH_1="#"
52236     if test "x$ICC_PCH" = "x1" ; then
52237         COND_ICC_PCH_1=""
52238     fi
52239
52240     COND_MONOLITHIC_0="#"
52241     if test "x$MONOLITHIC" = "x0" ; then
52242         COND_MONOLITHIC_0=""
52243     fi
52244
52245     COND_MONOLITHIC_0_SHARED_0="#"
52246     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
52247         COND_MONOLITHIC_0_SHARED_0=""
52248     fi
52249
52250     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
52251     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
52252         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
52253     fi
52254
52255     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
52256     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
52257         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
52258     fi
52259
52260     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
52261     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52262         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
52263     fi
52264
52265     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
52266     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52267         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
52268     fi
52269
52270     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
52271     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52272         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
52273     fi
52274
52275     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1="#"
52276     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
52277         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1=""
52278     fi
52279
52280     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
52281     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
52282         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
52283     fi
52284
52285     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
52286     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
52287         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
52288     fi
52289
52290     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
52291     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52292         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
52293     fi
52294
52295     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
52296     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52297         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
52298     fi
52299
52300     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
52301     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52302         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
52303     fi
52304
52305     COND_MONOLITHIC_0_SHARED_1="#"
52306     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
52307         COND_MONOLITHIC_0_SHARED_1=""
52308     fi
52309
52310     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
52311     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
52312         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
52313     fi
52314
52315     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
52316     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
52317         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
52318     fi
52319
52320     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
52321     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52322         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
52323     fi
52324
52325     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
52326     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52327         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
52328     fi
52329
52330     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
52331     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52332         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
52333     fi
52334
52335     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1="#"
52336     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
52337         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1=""
52338     fi
52339
52340     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
52341     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
52342         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
52343     fi
52344
52345     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
52346     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
52347         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
52348     fi
52349
52350     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
52351     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
52352         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
52353     fi
52354
52355     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
52356     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
52357         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
52358     fi
52359
52360     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
52361     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52362         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
52363     fi
52364
52365     COND_MONOLITHIC_0_USE_AUI_1="#"
52366     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
52367         COND_MONOLITHIC_0_USE_AUI_1=""
52368     fi
52369
52370     COND_MONOLITHIC_0_USE_GUI_1="#"
52371     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
52372         COND_MONOLITHIC_0_USE_GUI_1=""
52373     fi
52374
52375     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
52376     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52377         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
52378     fi
52379
52380     COND_MONOLITHIC_0_USE_HTML_1="#"
52381     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
52382         COND_MONOLITHIC_0_USE_HTML_1=""
52383     fi
52384
52385     COND_MONOLITHIC_0_USE_MEDIA_1="#"
52386     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
52387         COND_MONOLITHIC_0_USE_MEDIA_1=""
52388     fi
52389
52390     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
52391     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
52392         COND_MONOLITHIC_0_USE_PROPGRID_1=""
52393     fi
52394
52395     COND_MONOLITHIC_0_USE_QA_1="#"
52396     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
52397         COND_MONOLITHIC_0_USE_QA_1=""
52398     fi
52399
52400     COND_MONOLITHIC_0_USE_RIBBON_1="#"
52401     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
52402         COND_MONOLITHIC_0_USE_RIBBON_1=""
52403     fi
52404
52405     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
52406     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52407         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
52408     fi
52409
52410     COND_MONOLITHIC_0_USE_STC_1="#"
52411     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
52412         COND_MONOLITHIC_0_USE_STC_1=""
52413     fi
52414
52415     COND_MONOLITHIC_0_USE_WEBVIEW_1="#"
52416     if test "x$MONOLITHIC" = "x0" -a "x$USE_WEBVIEW" = "x1" ; then
52417         COND_MONOLITHIC_0_USE_WEBVIEW_1=""
52418     fi
52419
52420     COND_MONOLITHIC_0_USE_XRC_1="#"
52421     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
52422         COND_MONOLITHIC_0_USE_XRC_1=""
52423     fi
52424
52425     COND_MONOLITHIC_1="#"
52426     if test "x$MONOLITHIC" = "x1" ; then
52427         COND_MONOLITHIC_1=""
52428     fi
52429
52430     COND_MONOLITHIC_1_SHARED_0="#"
52431     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
52432         COND_MONOLITHIC_1_SHARED_0=""
52433     fi
52434
52435     COND_MONOLITHIC_1_SHARED_1="#"
52436     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
52437         COND_MONOLITHIC_1_SHARED_1=""
52438     fi
52439
52440     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
52441     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
52442         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
52443     fi
52444
52445     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
52446     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
52447         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
52448     fi
52449
52450     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
52451     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52452         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
52453     fi
52454
52455     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
52456     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52457         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
52458     fi
52459
52460     COND_PLATFORM_MACOSX_1="#"
52461     if test "x$PLATFORM_MACOSX" = "x1" ; then
52462         COND_PLATFORM_MACOSX_1=""
52463     fi
52464
52465     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
52466     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
52467         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
52468     fi
52469
52470     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
52471     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52472         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
52473     fi
52474
52475     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52476     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52477         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52478     fi
52479
52480     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
52481     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52482         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
52483     fi
52484
52485     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52486     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52487         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52488     fi
52489
52490     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
52491     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52492         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
52493     fi
52494
52495     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52496     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52497         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52498     fi
52499
52500     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52501     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52502         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52503     fi
52504
52505     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
52506     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
52507         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
52508     fi
52509
52510     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
52511     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52512         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
52513     fi
52514
52515     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
52516     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52517         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
52518     fi
52519
52520     COND_PLATFORM_MACOS_1="#"
52521     if test "x$PLATFORM_MACOS" = "x1" ; then
52522         COND_PLATFORM_MACOS_1=""
52523     fi
52524
52525     COND_PLATFORM_MAC_0="#"
52526     if test "x$PLATFORM_MAC" = "x0" ; then
52527         COND_PLATFORM_MAC_0=""
52528     fi
52529
52530     COND_PLATFORM_MAC_1="#"
52531     if test "x$PLATFORM_MAC" = "x1" ; then
52532         COND_PLATFORM_MAC_1=""
52533     fi
52534
52535     COND_PLATFORM_MSDOS_0="#"
52536     if test "x$PLATFORM_MSDOS" = "x0" ; then
52537         COND_PLATFORM_MSDOS_0=""
52538     fi
52539
52540     COND_PLATFORM_MSDOS_1="#"
52541     if test "x$PLATFORM_MSDOS" = "x1" ; then
52542         COND_PLATFORM_MSDOS_1=""
52543     fi
52544
52545     COND_PLATFORM_OS2_1="#"
52546     if test "x$PLATFORM_OS2" = "x1" ; then
52547         COND_PLATFORM_OS2_1=""
52548     fi
52549
52550     COND_PLATFORM_UNIX_0="#"
52551     if test "x$PLATFORM_UNIX" = "x0" ; then
52552         COND_PLATFORM_UNIX_0=""
52553     fi
52554
52555     COND_PLATFORM_UNIX_1="#"
52556     if test "x$PLATFORM_UNIX" = "x1" ; then
52557         COND_PLATFORM_UNIX_1=""
52558     fi
52559
52560     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52561     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52562         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52563     fi
52564
52565     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52566     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52567         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52568     fi
52569
52570     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52571     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52572         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52573     fi
52574
52575     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52576     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52577         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52578     fi
52579
52580     COND_PLATFORM_WIN32_0="#"
52581     if test "x$PLATFORM_WIN32" = "x0" ; then
52582         COND_PLATFORM_WIN32_0=""
52583     fi
52584
52585     COND_PLATFORM_WIN32_1="#"
52586     if test "x$PLATFORM_WIN32" = "x1" ; then
52587         COND_PLATFORM_WIN32_1=""
52588     fi
52589
52590     COND_PLATFORM_WIN32_1_SHARED_0="#"
52591     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52592         COND_PLATFORM_WIN32_1_SHARED_0=""
52593     fi
52594
52595     COND_SHARED_0="#"
52596     if test "x$SHARED" = "x0" ; then
52597         COND_SHARED_0=""
52598     fi
52599
52600     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52601     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52602         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52603     fi
52604
52605     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52606     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52607         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52608     fi
52609
52610     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52611     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52612         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52613     fi
52614
52615     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52616     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52617         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52618     fi
52619
52620     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52621     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52622         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52623     fi
52624
52625     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52626     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52627         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52628     fi
52629
52630     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52631     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52632         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52633     fi
52634
52635     COND_SHARED_0_USE_STC_1="#"
52636     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52637         COND_SHARED_0_USE_STC_1=""
52638     fi
52639
52640     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
52641     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52642         COND_SHARED_0_wxUSE_EXPAT_builtin=""
52643     fi
52644
52645     COND_SHARED_0_wxUSE_REGEX_builtin="#"
52646     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52647         COND_SHARED_0_wxUSE_REGEX_builtin=""
52648     fi
52649
52650     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
52651     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52652         COND_SHARED_0_wxUSE_ZLIB_builtin=""
52653     fi
52654
52655     COND_SHARED_1="#"
52656     if test "x$SHARED" = "x1" ; then
52657         COND_SHARED_1=""
52658     fi
52659
52660     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52661     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52662         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52663     fi
52664
52665     COND_TOOLKIT_="#"
52666     if test "x$TOOLKIT" = "x" ; then
52667         COND_TOOLKIT_=""
52668     fi
52669
52670     COND_TOOLKIT_COCOA="#"
52671     if test "x$TOOLKIT" = "xCOCOA" ; then
52672         COND_TOOLKIT_COCOA=""
52673     fi
52674
52675     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52676     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52677         COND_TOOLKIT_COCOA_USE_GUI_1=""
52678     fi
52679
52680     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52681     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52682         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52683     fi
52684
52685     COND_TOOLKIT_DFB="#"
52686     if test "x$TOOLKIT" = "xDFB" ; then
52687         COND_TOOLKIT_DFB=""
52688     fi
52689
52690     COND_TOOLKIT_DFB_USE_GUI_1="#"
52691     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52692         COND_TOOLKIT_DFB_USE_GUI_1=""
52693     fi
52694
52695     COND_TOOLKIT_GTK="#"
52696     if test "x$TOOLKIT" = "xGTK" ; then
52697         COND_TOOLKIT_GTK=""
52698     fi
52699
52700     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52701     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52702         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52703     fi
52704
52705     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52706     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52707         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52708     fi
52709
52710     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52711     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52712         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52713     fi
52714
52715     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52716     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52717         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52718     fi
52719
52720     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52721     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52722         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52723     fi
52724
52725     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52726     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52727         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52728     fi
52729
52730     COND_TOOLKIT_GTK_USE_GUI_1="#"
52731     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52732         COND_TOOLKIT_GTK_USE_GUI_1=""
52733     fi
52734
52735     COND_TOOLKIT_MAC="#"
52736     if test "x$TOOLKIT" = "xMAC" ; then
52737         COND_TOOLKIT_MAC=""
52738     fi
52739
52740     COND_TOOLKIT_MGL="#"
52741     if test "x$TOOLKIT" = "xMGL" ; then
52742         COND_TOOLKIT_MGL=""
52743     fi
52744
52745     COND_TOOLKIT_MGL_USE_GUI_1="#"
52746     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52747         COND_TOOLKIT_MGL_USE_GUI_1=""
52748     fi
52749
52750     COND_TOOLKIT_MOTIF="#"
52751     if test "x$TOOLKIT" = "xMOTIF" ; then
52752         COND_TOOLKIT_MOTIF=""
52753     fi
52754
52755     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52756     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52757         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52758     fi
52759
52760     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52761     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52762         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52763     fi
52764
52765     COND_TOOLKIT_MSW="#"
52766     if test "x$TOOLKIT" = "xMSW" ; then
52767         COND_TOOLKIT_MSW=""
52768     fi
52769
52770     COND_TOOLKIT_MSW_USE_GUI_1="#"
52771     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52772         COND_TOOLKIT_MSW_USE_GUI_1=""
52773     fi
52774
52775     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52776     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52777         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52778     fi
52779
52780     COND_TOOLKIT_MSW_WXUNIV_0="#"
52781     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52782         COND_TOOLKIT_MSW_WXUNIV_0=""
52783     fi
52784
52785     COND_TOOLKIT_OSX_CARBON="#"
52786     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
52787         COND_TOOLKIT_OSX_CARBON=""
52788     fi
52789
52790     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52791     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52792         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52793     fi
52794
52795     COND_TOOLKIT_OSX_COCOA="#"
52796     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
52797         COND_TOOLKIT_OSX_COCOA=""
52798     fi
52799
52800     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52801     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52802         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52803     fi
52804
52805     COND_TOOLKIT_OSX_IPHONE="#"
52806     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
52807         COND_TOOLKIT_OSX_IPHONE=""
52808     fi
52809
52810     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52811     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52812         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52813     fi
52814
52815     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52816     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52817         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52818     fi
52819
52820     COND_TOOLKIT_PM="#"
52821     if test "x$TOOLKIT" = "xPM" ; then
52822         COND_TOOLKIT_PM=""
52823     fi
52824
52825     COND_TOOLKIT_PM_USE_GUI_1="#"
52826     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52827         COND_TOOLKIT_PM_USE_GUI_1=""
52828     fi
52829
52830     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52831     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52832         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52833     fi
52834
52835     COND_TOOLKIT_WINCE="#"
52836     if test "x$TOOLKIT" = "xWINCE" ; then
52837         COND_TOOLKIT_WINCE=""
52838     fi
52839
52840     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52841     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52842         COND_TOOLKIT_WINCE_USE_GUI_1=""
52843     fi
52844
52845     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52846     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52847         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52848     fi
52849
52850     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52851     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52852         COND_TOOLKIT_WINCE_WXUNIV_0=""
52853     fi
52854
52855     COND_TOOLKIT_X11="#"
52856     if test "x$TOOLKIT" = "xX11" ; then
52857         COND_TOOLKIT_X11=""
52858     fi
52859
52860     COND_TOOLKIT_X11_USE_GUI_1="#"
52861     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52862         COND_TOOLKIT_X11_USE_GUI_1=""
52863     fi
52864
52865     COND_UNICODE_1="#"
52866     if test "x$UNICODE" = "x1" ; then
52867         COND_UNICODE_1=""
52868     fi
52869
52870     COND_USE_CAIRO_1="#"
52871     if test "x$USE_CAIRO" = "x1" ; then
52872         COND_USE_CAIRO_1=""
52873     fi
52874
52875     COND_USE_EXCEPTIONS_0="#"
52876     if test "x$USE_EXCEPTIONS" = "x0" ; then
52877         COND_USE_EXCEPTIONS_0=""
52878     fi
52879
52880     COND_USE_EXCEPTIONS_1="#"
52881     if test "x$USE_EXCEPTIONS" = "x1" ; then
52882         COND_USE_EXCEPTIONS_1=""
52883     fi
52884
52885     COND_USE_GUI_0="#"
52886     if test "x$USE_GUI" = "x0" ; then
52887         COND_USE_GUI_0=""
52888     fi
52889
52890     COND_USE_GUI_1="#"
52891     if test "x$USE_GUI" = "x1" ; then
52892         COND_USE_GUI_1=""
52893     fi
52894
52895     COND_USE_GUI_1_USE_OPENGL_1="#"
52896     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52897         COND_USE_GUI_1_USE_OPENGL_1=""
52898     fi
52899
52900     COND_USE_GUI_1_WXUNIV_0="#"
52901     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52902         COND_USE_GUI_1_WXUNIV_0=""
52903     fi
52904
52905     COND_USE_GUI_1_WXUNIV_1="#"
52906     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52907         COND_USE_GUI_1_WXUNIV_1=""
52908     fi
52909
52910     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52911     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52912         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52913     fi
52914
52915     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52916     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52917         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52918     fi
52919
52920     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52921     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52922         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52923     fi
52924
52925     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52926     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52927         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52928     fi
52929
52930     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52931     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52932         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52933     fi
52934
52935     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52936     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52937         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52938     fi
52939
52940     COND_USE_OPENGL_1="#"
52941     if test "x$USE_OPENGL" = "x1" ; then
52942         COND_USE_OPENGL_1=""
52943     fi
52944
52945     COND_USE_PCH_1="#"
52946     if test "x$USE_PCH" = "x1" ; then
52947         COND_USE_PCH_1=""
52948     fi
52949
52950     COND_USE_PLUGINS_0="#"
52951     if test "x$USE_PLUGINS" = "x0" ; then
52952         COND_USE_PLUGINS_0=""
52953     fi
52954
52955     COND_USE_RTTI_0="#"
52956     if test "x$USE_RTTI" = "x0" ; then
52957         COND_USE_RTTI_0=""
52958     fi
52959
52960     COND_USE_RTTI_1="#"
52961     if test "x$USE_RTTI" = "x1" ; then
52962         COND_USE_RTTI_1=""
52963     fi
52964
52965     COND_USE_SOTWOSYMLINKS_1="#"
52966     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
52967         COND_USE_SOTWOSYMLINKS_1=""
52968     fi
52969
52970     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52971     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52972         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52973     fi
52974
52975     COND_USE_SOVERLINUX_1="#"
52976     if test "x$USE_SOVERLINUX" = "x1" ; then
52977         COND_USE_SOVERLINUX_1=""
52978     fi
52979
52980     COND_USE_SOVERSION_0="#"
52981     if test "x$USE_SOVERSION" = "x0" ; then
52982         COND_USE_SOVERSION_0=""
52983     fi
52984
52985     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
52986     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
52987         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
52988     fi
52989
52990     COND_USE_SOVERSOLARIS_1="#"
52991     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52992         COND_USE_SOVERSOLARIS_1=""
52993     fi
52994
52995     COND_USE_STC_1="#"
52996     if test "x$USE_STC" = "x1" ; then
52997         COND_USE_STC_1=""
52998     fi
52999
53000     COND_USE_THREADS_0="#"
53001     if test "x$USE_THREADS" = "x0" ; then
53002         COND_USE_THREADS_0=""
53003     fi
53004
53005     COND_USE_THREADS_1="#"
53006     if test "x$USE_THREADS" = "x1" ; then
53007         COND_USE_THREADS_1=""
53008     fi
53009
53010     COND_USE_XRC_1="#"
53011     if test "x$USE_XRC" = "x1" ; then
53012         COND_USE_XRC_1=""
53013     fi
53014
53015     COND_WINDOWS_IMPLIB_1="#"
53016     if test "x$WINDOWS_IMPLIB" = "x1" ; then
53017         COND_WINDOWS_IMPLIB_1=""
53018     fi
53019
53020     COND_WITH_PLUGIN_SDL_1="#"
53021     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
53022         COND_WITH_PLUGIN_SDL_1=""
53023     fi
53024
53025     COND_WXUNIV_0="#"
53026     if test "x$WXUNIV" = "x0" ; then
53027         COND_WXUNIV_0=""
53028     fi
53029
53030     COND_WXUNIV_1="#"
53031     if test "x$WXUNIV" = "x1" ; then
53032         COND_WXUNIV_1=""
53033     fi
53034
53035     COND_WXUSE_EXPAT_BUILTIN="#"
53036     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
53037         COND_WXUSE_EXPAT_BUILTIN=""
53038     fi
53039
53040     COND_WXUSE_LIBJPEG_BUILTIN="#"
53041     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
53042         COND_WXUSE_LIBJPEG_BUILTIN=""
53043     fi
53044
53045     COND_WXUSE_LIBPNG_BUILTIN="#"
53046     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53047         COND_WXUSE_LIBPNG_BUILTIN=""
53048     fi
53049
53050     COND_WXUSE_LIBTIFF_BUILTIN="#"
53051     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53052         COND_WXUSE_LIBTIFF_BUILTIN=""
53053     fi
53054
53055     COND_WXUSE_REGEX_BUILTIN="#"
53056     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
53057         COND_WXUSE_REGEX_BUILTIN=""
53058     fi
53059
53060     COND_WXUSE_ZLIB_BUILTIN="#"
53061     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
53062         COND_WXUSE_ZLIB_BUILTIN=""
53063     fi
53064
53065     COND_wxUSE_EXPAT_builtin="#"
53066     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
53067         COND_wxUSE_EXPAT_builtin=""
53068     fi
53069
53070     COND_wxUSE_LIBJPEG_builtin="#"
53071     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
53072         COND_wxUSE_LIBJPEG_builtin=""
53073     fi
53074
53075     COND_wxUSE_LIBPNG_builtin="#"
53076     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53077         COND_wxUSE_LIBPNG_builtin=""
53078     fi
53079
53080     COND_wxUSE_LIBTIFF_builtin="#"
53081     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53082         COND_wxUSE_LIBTIFF_builtin=""
53083     fi
53084
53085     COND_wxUSE_REGEX_builtin="#"
53086     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
53087         COND_wxUSE_REGEX_builtin=""
53088     fi
53089
53090     COND_wxUSE_ZLIB_builtin="#"
53091     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
53092         COND_wxUSE_ZLIB_builtin=""
53093     fi
53094
53095
53096
53097     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
53098         { { 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
53099 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;}
53100    { (exit 1); exit 1; }; }
53101     fi
53102
53103     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
53104         { { 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
53105 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;}
53106    { (exit 1); exit 1; }; }
53107     fi
53108
53109
53110 case ${INSTALL} in
53111   /* ) # Absolute
53112      ;;
53113   ?:* ) # Drive letter, considered as absolute.
53114      ;;
53115   *)
53116      INSTALL=`pwd`/${INSTALL} ;;
53117 esac
53118
53119 if test "$wxUSE_GUI" = "yes"; then
53120
53121 if test "$wxUSE_MSW" = 1 ; then
53122     if test "x$WINDRES" = "x"; then
53123         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
53124 echo "$as_me: error: Required windres program not found" >&2;}
53125    { (exit 1); exit 1; }; }
53126     fi
53127
53128     RESCOMP="$WINDRES"
53129 fi
53130
53131 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
53132             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
53133     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
53134
53135         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
53136
53137     # Extract the first word of "DeRez", so it can be a program name with args.
53138 set dummy DeRez; ac_word=$2
53139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53141 if test "${ac_cv_prog_DEREZ+set}" = set; then
53142   echo $ECHO_N "(cached) $ECHO_C" >&6
53143 else
53144   if test -n "$DEREZ"; then
53145   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
53146 else
53147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53148 for as_dir in $PATH
53149 do
53150   IFS=$as_save_IFS
53151   test -z "$as_dir" && as_dir=.
53152   for ac_exec_ext in '' $ac_executable_extensions; do
53153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53154     ac_cv_prog_DEREZ="DeRez"
53155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53156     break 2
53157   fi
53158 done
53159 done
53160 IFS=$as_save_IFS
53161
53162   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
53163 fi
53164 fi
53165 DEREZ=$ac_cv_prog_DEREZ
53166 if test -n "$DEREZ"; then
53167   { echo "$as_me:$LINENO: result: $DEREZ" >&5
53168 echo "${ECHO_T}$DEREZ" >&6; }
53169 else
53170   { echo "$as_me:$LINENO: result: no" >&5
53171 echo "${ECHO_T}no" >&6; }
53172 fi
53173
53174
53175
53176     MACSETFILE="\$(SETFILE)"
53177
53178             if test "$wxUSE_OSX_CARBON" = 1; then
53179         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
53180         RESCOMP="$REZ"
53181         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
53182     else
53183         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
53184         RESCOMP="cat /dev/null \| $REZ"
53185         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
53186     fi
53187
53188 else
53189         MACSETFILE="@true"
53190
53191     if test "$wxUSE_PM" = 1; then
53192         RESCOMP="emxbind"
53193         WXCONFIG_RESFLAGS="-ep"
53194
53195                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
53196     else
53197         POSTLINK_COMMAND="@true"
53198     fi
53199 fi
53200
53201 fi
53202
53203
53204 if test $GCC_PCH = 1
53205 then
53206     if test "$wx_cv_gcc_pch_bug" = yes; then
53207         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
53208 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
53209         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
53210 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
53211         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
53212 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
53213     fi
53214
53215     # Our WX_PRECOMP flag does not make sense for any language except C++ because
53216     # the headers that benefit from precompilation are mostly C++ headers.
53217     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
53218     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
53219     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
53220 fi
53221
53222
53223 if test "$wxUSE_MAC" = 1 ; then
53224     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
53225         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
53226         mv temp bk-deps
53227         chmod +x bk-deps
53228     fi
53229 fi
53230
53231 if test "$wxUSE_SHARED" = "yes"; then
53232                 case "${host}" in
53233       *-pc-os2_emx | *-pc-os2-emx )
53234         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53235         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53236         cp -p ${srcdir}/src/os2/dllnames.sh .
53237         cp -p ${srcdir}/src/os2/dllar.sh .
53238       ;;
53239     esac
53240 fi
53241 if test "$wxUSE_OMF" = "yes"; then
53242     case "${host}" in
53243       *-pc-os2_emx | *-pc-os2-emx )
53244         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
53245         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53246         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53247       ;;
53248     esac
53249 fi
53250
53251 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
53252
53253
53254 case "${host}" in
53255     *-*-solaris2* )
53256                         if test "$GCC" = yes; then
53257             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
53258             LIBS=`echo $LIBS | sed 's/-mt//'`
53259             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
53260         fi
53261         ;;
53262
53263     *-*-linux* )
53264                         if test "x$SUNCXX" = xyes; then
53265             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
53266             LIBS=`echo $LIBS | sed 's/-pthread//'`
53267             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
53268         fi
53269         ;;
53270 esac
53271
53272 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
53273 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
53274 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
53275 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
53276
53277 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
53278
53279
53280
53281
53282
53283
53284
53285
53286
53287
53288
53289
53290
53291
53292
53293
53294
53295
53296
53297
53298
53299
53300
53301
53302
53303
53304
53305
53306
53307
53308
53309
53310
53311
53312
53313
53314
53315
53316
53317
53318
53319
53320
53321
53322
53323
53324
53325
53326
53327
53328
53329
53330
53331
53332
53333
53334
53335
53336
53337
53338 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
53339 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
53340 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
53341 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
53342   echo $ECHO_N "(cached) $ECHO_C" >&6
53343 else
53344   cat >conftest.make <<\_ACEOF
53345 SHELL = /bin/sh
53346 all:
53347         @echo '@@@%%%=$(MAKE)=@@@%%%'
53348 _ACEOF
53349 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
53350 case `${MAKE-make} -f conftest.make 2>/dev/null` in
53351   *@@@%%%=?*=@@@%%%*)
53352     eval ac_cv_prog_make_${ac_make}_set=yes;;
53353   *)
53354     eval ac_cv_prog_make_${ac_make}_set=no;;
53355 esac
53356 rm -f conftest.make
53357 fi
53358 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
53359   { echo "$as_me:$LINENO: result: yes" >&5
53360 echo "${ECHO_T}yes" >&6; }
53361   SET_MAKE=
53362 else
53363   { echo "$as_me:$LINENO: result: no" >&5
53364 echo "${ECHO_T}no" >&6; }
53365   SET_MAKE="MAKE=${MAKE-make}"
53366 fi
53367
53368
53369
53370 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
53371
53372
53373 if test "$USE_WIN32" = 1; then
53374     ac_config_commands="$ac_config_commands rcdefs.h"
53375
53376 fi
53377
53378 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
53379
53380
53381 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
53382
53383
53384 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
53385
53386
53387 if test "$wx_cv_version_script" = "yes"; then
53388     ac_config_files="$ac_config_files version-script"
53389
53390 fi
53391 ac_config_files="$ac_config_files Makefile"
53392
53393
53394 ac_config_commands="$ac_config_commands wx-config"
53395
53396
53397
53398 if test "$wxWITH_SUBDIRS" != "no"; then
53399 if test "$wxUSE_GUI" = "yes"; then
53400     SUBDIRS="samples demos utils"
53401 else
53402             SUBDIRS="samples utils"
53403 fi
53404
53405
53406
53407 # Check whether --with-cppunit-prefix was given.
53408 if test "${with_cppunit_prefix+set}" = set; then
53409   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
53410 else
53411   cppunit_config_prefix=""
53412 fi
53413
53414
53415 # Check whether --with-cppunit-exec-prefix was given.
53416 if test "${with_cppunit_exec_prefix+set}" = set; then
53417   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
53418 else
53419   cppunit_config_exec_prefix=""
53420 fi
53421
53422
53423   if test x$cppunit_config_exec_prefix != x ; then
53424      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
53425      if test x${CPPUNIT_CONFIG+set} != xset ; then
53426         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
53427      fi
53428   fi
53429   if test x$cppunit_config_prefix != x ; then
53430      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
53431      if test x${CPPUNIT_CONFIG+set} != xset ; then
53432         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
53433      fi
53434   fi
53435
53436   # Extract the first word of "cppunit-config", so it can be a program name with args.
53437 set dummy cppunit-config; ac_word=$2
53438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53440 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
53441   echo $ECHO_N "(cached) $ECHO_C" >&6
53442 else
53443   case $CPPUNIT_CONFIG in
53444   [\\/]* | ?:[\\/]*)
53445   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
53446   ;;
53447   *)
53448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53449 for as_dir in $PATH
53450 do
53451   IFS=$as_save_IFS
53452   test -z "$as_dir" && as_dir=.
53453   for ac_exec_ext in '' $ac_executable_extensions; do
53454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53455     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53457     break 2
53458   fi
53459 done
53460 done
53461 IFS=$as_save_IFS
53462
53463   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
53464   ;;
53465 esac
53466 fi
53467 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
53468 if test -n "$CPPUNIT_CONFIG"; then
53469   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
53470 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
53471 else
53472   { echo "$as_me:$LINENO: result: no" >&5
53473 echo "${ECHO_T}no" >&6; }
53474 fi
53475
53476
53477   cppunit_version_min=1.8.0
53478
53479   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
53480 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
53481   no_cppunit=""
53482   if test "$CPPUNIT_CONFIG" = "no" ; then
53483     { echo "$as_me:$LINENO: result: no" >&5
53484 echo "${ECHO_T}no" >&6; }
53485     no_cppunit=yes
53486   else
53487     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
53488     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
53489     cppunit_version=`$CPPUNIT_CONFIG --version`
53490
53491     cppunit_major_version=`echo $cppunit_version | \
53492            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53493     cppunit_minor_version=`echo $cppunit_version | \
53494            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53495     cppunit_micro_version=`echo $cppunit_version | \
53496            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53497
53498     cppunit_major_min=`echo $cppunit_version_min | \
53499            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53500     cppunit_minor_min=`echo $cppunit_version_min | \
53501            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53502     cppunit_micro_min=`echo $cppunit_version_min | \
53503            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53504
53505     cppunit_version_proper=`expr \
53506         $cppunit_major_version \> $cppunit_major_min \| \
53507         $cppunit_major_version \= $cppunit_major_min \& \
53508         $cppunit_minor_version \> $cppunit_minor_min \| \
53509         $cppunit_major_version \= $cppunit_major_min \& \
53510         $cppunit_minor_version \= $cppunit_minor_min \& \
53511         $cppunit_micro_version \>= $cppunit_micro_min `
53512
53513     if test "$cppunit_version_proper" = "1" ; then
53514       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
53515 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
53516     else
53517       { echo "$as_me:$LINENO: result: no" >&5
53518 echo "${ECHO_T}no" >&6; }
53519       no_cppunit=yes
53520     fi
53521   fi
53522
53523   if test "x$no_cppunit" = x ; then
53524      SUBDIRS="$SUBDIRS tests"
53525   else
53526      CPPUNIT_CFLAGS=""
53527      CPPUNIT_LIBS=""
53528      :
53529   fi
53530
53531
53532
53533
53534
53535 for subdir in $SUBDIRS; do
53536     if test -d ${srcdir}/${subdir} ; then
53537         if test "$wxUSE_GUI" = "yes"; then
53538             if test ${subdir} = "samples"; then
53539                                                 makefiles="samples/Makefile.in $makefiles"
53540                 for sample in $SAMPLES_SUBDIRS; do
53541                     if test -d $srcdir/samples/$sample; then
53542                         makefiles="samples/$sample/Makefile.in $makefiles"
53543                     fi
53544                 done
53545             else
53546                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
53547                 eval "disabled=\$$disabled_var"
53548                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
53549                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
53550             fi
53551         else
53552                                     if test ${subdir} = "samples"; then
53553                                                 makefiles="samples/Makefile.in $makefiles"
53554                 for sample in `echo $SAMPLES_SUBDIRS`; do
53555                     if test -d $srcdir/samples/$sample; then
53556                         makefiles="samples/$sample/Makefile.in $makefiles"
53557                     fi
53558                 done
53559             elif test ${subdir} = "utils"; then
53560                 makefiles=""
53561                 for util in ifacecheck ; do
53562                     if test -d $srcdir/utils/$util ; then
53563                         makefiles="utils/$util/src/Makefile.in \
53564                                    $makefiles"
53565                     fi
53566                 done
53567             else
53568                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53569             fi
53570         fi
53571
53572         for mkin in $makefiles ; do
53573             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
53574             ac_config_files="$ac_config_files $mk"
53575
53576         done
53577     fi
53578 done
53579 fi
53580 cat >confcache <<\_ACEOF
53581 # This file is a shell script that caches the results of configure
53582 # tests run on this system so they can be shared between configure
53583 # scripts and configure runs, see configure's option --config-cache.
53584 # It is not useful on other systems.  If it contains results you don't
53585 # want to keep, you may remove or edit it.
53586 #
53587 # config.status only pays attention to the cache file if you give it
53588 # the --recheck option to rerun configure.
53589 #
53590 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53591 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53592 # following values.
53593
53594 _ACEOF
53595
53596 # The following way of writing the cache mishandles newlines in values,
53597 # but we know of no workaround that is simple, portable, and efficient.
53598 # So, we kill variables containing newlines.
53599 # Ultrix sh set writes to stderr and can't be redirected directly,
53600 # and sets the high bit in the cache file unless we assign to the vars.
53601 (
53602   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53603     eval ac_val=\$$ac_var
53604     case $ac_val in #(
53605     *${as_nl}*)
53606       case $ac_var in #(
53607       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53608 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53609       esac
53610       case $ac_var in #(
53611       _ | IFS | as_nl) ;; #(
53612       *) $as_unset $ac_var ;;
53613       esac ;;
53614     esac
53615   done
53616
53617   (set) 2>&1 |
53618     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53619     *${as_nl}ac_space=\ *)
53620       # `set' does not quote correctly, so add quotes (double-quote
53621       # substitution turns \\\\ into \\, and sed turns \\ into \).
53622       sed -n \
53623         "s/'/'\\\\''/g;
53624           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53625       ;; #(
53626     *)
53627       # `set' quotes correctly as required by POSIX, so do not add quotes.
53628       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53629       ;;
53630     esac |
53631     sort
53632 ) |
53633   sed '
53634      /^ac_cv_env_/b end
53635      t clear
53636      :clear
53637      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53638      t end
53639      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53640      :end' >>confcache
53641 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53642   if test -w "$cache_file"; then
53643     test "x$cache_file" != "x/dev/null" &&
53644       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53645 echo "$as_me: updating cache $cache_file" >&6;}
53646     cat confcache >$cache_file
53647   else
53648     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53649 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53650   fi
53651 fi
53652 rm -f confcache
53653
53654 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53655 # Let make expand exec_prefix.
53656 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53657
53658 DEFS=-DHAVE_CONFIG_H
53659
53660 ac_libobjs=
53661 ac_ltlibobjs=
53662 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53663   # 1. Remove the extension, and $U if already installed.
53664   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53665   ac_i=`echo "$ac_i" | sed "$ac_script"`
53666   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53667   #    will be set to the directory where LIBOBJS objects are built.
53668   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53669   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53670 done
53671 LIBOBJS=$ac_libobjs
53672
53673 LTLIBOBJS=$ac_ltlibobjs
53674
53675
53676
53677 : ${CONFIG_STATUS=./config.status}
53678 ac_clean_files_save=$ac_clean_files
53679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53680 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53681 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53682 cat >$CONFIG_STATUS <<_ACEOF
53683 #! $SHELL
53684 # Generated by $as_me.
53685 # Run this file to recreate the current configuration.
53686 # Compiler output produced by configure, useful for debugging
53687 # configure, is in config.log if it exists.
53688
53689 debug=false
53690 ac_cs_recheck=false
53691 ac_cs_silent=false
53692 SHELL=\${CONFIG_SHELL-$SHELL}
53693 _ACEOF
53694
53695 cat >>$CONFIG_STATUS <<\_ACEOF
53696 ## --------------------- ##
53697 ## M4sh Initialization.  ##
53698 ## --------------------- ##
53699
53700 # Be more Bourne compatible
53701 DUALCASE=1; export DUALCASE # for MKS sh
53702 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53703   emulate sh
53704   NULLCMD=:
53705   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53706   # is contrary to our usage.  Disable this feature.
53707   alias -g '${1+"$@"}'='"$@"'
53708   setopt NO_GLOB_SUBST
53709 else
53710   case `(set -o) 2>/dev/null` in
53711   *posix*) set -o posix ;;
53712 esac
53713
53714 fi
53715
53716
53717
53718
53719 # PATH needs CR
53720 # Avoid depending upon Character Ranges.
53721 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53722 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53723 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53724 as_cr_digits='0123456789'
53725 as_cr_alnum=$as_cr_Letters$as_cr_digits
53726
53727 # The user is always right.
53728 if test "${PATH_SEPARATOR+set}" != set; then
53729   echo "#! /bin/sh" >conf$$.sh
53730   echo  "exit 0"   >>conf$$.sh
53731   chmod +x conf$$.sh
53732   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53733     PATH_SEPARATOR=';'
53734   else
53735     PATH_SEPARATOR=:
53736   fi
53737   rm -f conf$$.sh
53738 fi
53739
53740 # Support unset when possible.
53741 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53742   as_unset=unset
53743 else
53744   as_unset=false
53745 fi
53746
53747
53748 # IFS
53749 # We need space, tab and new line, in precisely that order.  Quoting is
53750 # there to prevent editors from complaining about space-tab.
53751 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53752 # splitting by setting IFS to empty value.)
53753 as_nl='
53754 '
53755 IFS=" ""        $as_nl"
53756
53757 # Find who we are.  Look in the path if we contain no directory separator.
53758 case $0 in
53759   *[\\/]* ) as_myself=$0 ;;
53760   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53761 for as_dir in $PATH
53762 do
53763   IFS=$as_save_IFS
53764   test -z "$as_dir" && as_dir=.
53765   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53766 done
53767 IFS=$as_save_IFS
53768
53769      ;;
53770 esac
53771 # We did not find ourselves, most probably we were run as `sh COMMAND'
53772 # in which case we are not to be found in the path.
53773 if test "x$as_myself" = x; then
53774   as_myself=$0
53775 fi
53776 if test ! -f "$as_myself"; then
53777   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53778   { (exit 1); exit 1; }
53779 fi
53780
53781 # Work around bugs in pre-3.0 UWIN ksh.
53782 for as_var in ENV MAIL MAILPATH
53783 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53784 done
53785 PS1='$ '
53786 PS2='> '
53787 PS4='+ '
53788
53789 # NLS nuisances.
53790 for as_var in \
53791   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53792   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53793   LC_TELEPHONE LC_TIME
53794 do
53795   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53796     eval $as_var=C; export $as_var
53797   else
53798     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53799   fi
53800 done
53801
53802 # Required to use basename.
53803 if expr a : '\(a\)' >/dev/null 2>&1 &&
53804    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53805   as_expr=expr
53806 else
53807   as_expr=false
53808 fi
53809
53810 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53811   as_basename=basename
53812 else
53813   as_basename=false
53814 fi
53815
53816
53817 # Name of the executable.
53818 as_me=`$as_basename -- "$0" ||
53819 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53820          X"$0" : 'X\(//\)$' \| \
53821          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53822 echo X/"$0" |
53823     sed '/^.*\/\([^/][^/]*\)\/*$/{
53824             s//\1/
53825             q
53826           }
53827           /^X\/\(\/\/\)$/{
53828             s//\1/
53829             q
53830           }
53831           /^X\/\(\/\).*/{
53832             s//\1/
53833             q
53834           }
53835           s/.*/./; q'`
53836
53837 # CDPATH.
53838 $as_unset CDPATH
53839
53840
53841
53842   as_lineno_1=$LINENO
53843   as_lineno_2=$LINENO
53844   test "x$as_lineno_1" != "x$as_lineno_2" &&
53845   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53846
53847   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53848   # uniformly replaced by the line number.  The first 'sed' inserts a
53849   # line-number line after each line using $LINENO; the second 'sed'
53850   # does the real work.  The second script uses 'N' to pair each
53851   # line-number line with the line containing $LINENO, and appends
53852   # trailing '-' during substitution so that $LINENO is not a special
53853   # case at line end.
53854   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53855   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53856   # E. McMahon (1931-1989) for sed's syntax.  :-)
53857   sed -n '
53858     p
53859     /[$]LINENO/=
53860   ' <$as_myself |
53861     sed '
53862       s/[$]LINENO.*/&-/
53863       t lineno
53864       b
53865       :lineno
53866       N
53867       :loop
53868       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53869       t loop
53870       s/-\n.*//
53871     ' >$as_me.lineno &&
53872   chmod +x "$as_me.lineno" ||
53873     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53874    { (exit 1); exit 1; }; }
53875
53876   # Don't try to exec as it changes $[0], causing all sort of problems
53877   # (the dirname of $[0] is not the place where we might find the
53878   # original and so on.  Autoconf is especially sensitive to this).
53879   . "./$as_me.lineno"
53880   # Exit status is that of the last command.
53881   exit
53882 }
53883
53884
53885 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53886   as_dirname=dirname
53887 else
53888   as_dirname=false
53889 fi
53890
53891 ECHO_C= ECHO_N= ECHO_T=
53892 case `echo -n x` in
53893 -n*)
53894   case `echo 'x\c'` in
53895   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53896   *)   ECHO_C='\c';;
53897   esac;;
53898 *)
53899   ECHO_N='-n';;
53900 esac
53901
53902 if expr a : '\(a\)' >/dev/null 2>&1 &&
53903    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53904   as_expr=expr
53905 else
53906   as_expr=false
53907 fi
53908
53909 rm -f conf$$ conf$$.exe conf$$.file
53910 if test -d conf$$.dir; then
53911   rm -f conf$$.dir/conf$$.file
53912 else
53913   rm -f conf$$.dir
53914   mkdir conf$$.dir
53915 fi
53916 echo >conf$$.file
53917 if ln -s conf$$.file conf$$ 2>/dev/null; then
53918   as_ln_s='ln -s'
53919   # ... but there are two gotchas:
53920   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53921   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53922   # In both cases, we have to default to `cp -p'.
53923   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53924     as_ln_s='cp -p'
53925 elif ln conf$$.file conf$$ 2>/dev/null; then
53926   as_ln_s=ln
53927 else
53928   as_ln_s='cp -p'
53929 fi
53930 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53931 rmdir conf$$.dir 2>/dev/null
53932
53933 if mkdir -p . 2>/dev/null; then
53934   as_mkdir_p=:
53935 else
53936   test -d ./-p && rmdir ./-p
53937   as_mkdir_p=false
53938 fi
53939
53940 if test -x / >/dev/null 2>&1; then
53941   as_test_x='test -x'
53942 else
53943   if ls -dL / >/dev/null 2>&1; then
53944     as_ls_L_option=L
53945   else
53946     as_ls_L_option=
53947   fi
53948   as_test_x='
53949     eval sh -c '\''
53950       if test -d "$1"; then
53951         test -d "$1/.";
53952       else
53953         case $1 in
53954         -*)set "./$1";;
53955         esac;
53956         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53957         ???[sx]*):;;*)false;;esac;fi
53958     '\'' sh
53959   '
53960 fi
53961 as_executable_p=$as_test_x
53962
53963 # Sed expression to map a string onto a valid CPP name.
53964 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53965
53966 # Sed expression to map a string onto a valid variable name.
53967 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53968
53969
53970 exec 6>&1
53971
53972 # Save the log message, to keep $[0] and so on meaningful, and to
53973 # report actual input values of CONFIG_FILES etc. instead of their
53974 # values after options handling.
53975 ac_log="
53976 This file was extended by wxWidgets $as_me 2.9.3, which was
53977 generated by GNU Autoconf 2.61.  Invocation command line was
53978
53979   CONFIG_FILES    = $CONFIG_FILES
53980   CONFIG_HEADERS  = $CONFIG_HEADERS
53981   CONFIG_LINKS    = $CONFIG_LINKS
53982   CONFIG_COMMANDS = $CONFIG_COMMANDS
53983   $ $0 $@
53984
53985 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53986 "
53987
53988 _ACEOF
53989
53990 cat >>$CONFIG_STATUS <<_ACEOF
53991 # Files that config.status was made for.
53992 config_files="$ac_config_files"
53993 config_headers="$ac_config_headers"
53994 config_commands="$ac_config_commands"
53995
53996 _ACEOF
53997
53998 cat >>$CONFIG_STATUS <<\_ACEOF
53999 ac_cs_usage="\
54000 \`$as_me' instantiates files from templates according to the
54001 current configuration.
54002
54003 Usage: $0 [OPTIONS] [FILE]...
54004
54005   -h, --help       print this help, then exit
54006   -V, --version    print version number and configuration settings, then exit
54007   -q, --quiet      do not print progress messages
54008   -d, --debug      don't remove temporary files
54009       --recheck    update $as_me by reconfiguring in the same conditions
54010   --file=FILE[:TEMPLATE]
54011                    instantiate the configuration file FILE
54012   --header=FILE[:TEMPLATE]
54013                    instantiate the configuration header FILE
54014
54015 Configuration files:
54016 $config_files
54017
54018 Configuration headers:
54019 $config_headers
54020
54021 Configuration commands:
54022 $config_commands
54023
54024 Report bugs to <bug-autoconf@gnu.org>."
54025
54026 _ACEOF
54027 cat >>$CONFIG_STATUS <<_ACEOF
54028 ac_cs_version="\\
54029 wxWidgets config.status 2.9.3
54030 configured by $0, generated by GNU Autoconf 2.61,
54031   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
54032
54033 Copyright (C) 2006 Free Software Foundation, Inc.
54034 This config.status script is free software; the Free Software Foundation
54035 gives unlimited permission to copy, distribute and modify it."
54036
54037 ac_pwd='$ac_pwd'
54038 srcdir='$srcdir'
54039 INSTALL='$INSTALL'
54040 _ACEOF
54041
54042 cat >>$CONFIG_STATUS <<\_ACEOF
54043 # If no file are specified by the user, then we need to provide default
54044 # value.  By we need to know if files were specified by the user.
54045 ac_need_defaults=:
54046 while test $# != 0
54047 do
54048   case $1 in
54049   --*=*)
54050     ac_option=`expr "X$1" : 'X\([^=]*\)='`
54051     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
54052     ac_shift=:
54053     ;;
54054   *)
54055     ac_option=$1
54056     ac_optarg=$2
54057     ac_shift=shift
54058     ;;
54059   esac
54060
54061   case $ac_option in
54062   # Handling of the options.
54063   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
54064     ac_cs_recheck=: ;;
54065   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
54066     echo "$ac_cs_version"; exit ;;
54067   --debug | --debu | --deb | --de | --d | -d )
54068     debug=: ;;
54069   --file | --fil | --fi | --f )
54070     $ac_shift
54071     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
54072     ac_need_defaults=false;;
54073   --header | --heade | --head | --hea )
54074     $ac_shift
54075     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
54076     ac_need_defaults=false;;
54077   --he | --h)
54078     # Conflict between --help and --header
54079     { echo "$as_me: error: ambiguous option: $1
54080 Try \`$0 --help' for more information." >&2
54081    { (exit 1); exit 1; }; };;
54082   --help | --hel | -h )
54083     echo "$ac_cs_usage"; exit ;;
54084   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
54085   | -silent | --silent | --silen | --sile | --sil | --si | --s)
54086     ac_cs_silent=: ;;
54087
54088   # This is an error.
54089   -*) { echo "$as_me: error: unrecognized option: $1
54090 Try \`$0 --help' for more information." >&2
54091    { (exit 1); exit 1; }; } ;;
54092
54093   *) ac_config_targets="$ac_config_targets $1"
54094      ac_need_defaults=false ;;
54095
54096   esac
54097   shift
54098 done
54099
54100 ac_configure_extra_args=
54101
54102 if $ac_cs_silent; then
54103   exec 6>/dev/null
54104   ac_configure_extra_args="$ac_configure_extra_args --silent"
54105 fi
54106
54107 _ACEOF
54108 cat >>$CONFIG_STATUS <<_ACEOF
54109 if \$ac_cs_recheck; then
54110   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
54111   CONFIG_SHELL=$SHELL
54112   export CONFIG_SHELL
54113   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
54114 fi
54115
54116 _ACEOF
54117 cat >>$CONFIG_STATUS <<\_ACEOF
54118 exec 5>>config.log
54119 {
54120   echo
54121   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
54122 ## Running $as_me. ##
54123 _ASBOX
54124   echo "$ac_log"
54125 } >&5
54126
54127 _ACEOF
54128 cat >>$CONFIG_STATUS <<_ACEOF
54129 #
54130 # INIT-COMMANDS
54131 #
54132
54133             CPP="$CPP"
54134             infile="$srcdir/include/wx/msw/genrcdefs.h"
54135             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
54136
54137
54138  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54139  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54140  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54141                      LN_S="${LN_S}"
54142
54143
54144 _ACEOF
54145
54146 cat >>$CONFIG_STATUS <<\_ACEOF
54147
54148 # Handling of arguments.
54149 for ac_config_target in $ac_config_targets
54150 do
54151   case $ac_config_target in
54152     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
54153     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
54154     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
54155     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
54156     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
54157     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
54158     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
54159     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
54160     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
54161
54162   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
54163 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
54164    { (exit 1); exit 1; }; };;
54165   esac
54166 done
54167
54168
54169 # If the user did not use the arguments to specify the items to instantiate,
54170 # then the envvar interface is used.  Set only those that are not.
54171 # We use the long form for the default assignment because of an extremely
54172 # bizarre bug on SunOS 4.1.3.
54173 if $ac_need_defaults; then
54174   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54175   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54176   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
54177 fi
54178
54179 # Have a temporary directory for convenience.  Make it in the build tree
54180 # simply because there is no reason against having it here, and in addition,
54181 # creating and moving files from /tmp can sometimes cause problems.
54182 # Hook for its removal unless debugging.
54183 # Note that there is a small window in which the directory will not be cleaned:
54184 # after its creation but before its name has been assigned to `$tmp'.
54185 $debug ||
54186 {
54187   tmp=
54188   trap 'exit_status=$?
54189   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
54190 ' 0
54191   trap '{ (exit 1); exit 1; }' 1 2 13 15
54192 }
54193 # Create a (secure) tmp directory for tmp files.
54194
54195 {
54196   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
54197   test -n "$tmp" && test -d "$tmp"
54198 }  ||
54199 {
54200   tmp=./conf$$-$RANDOM
54201   (umask 077 && mkdir "$tmp")
54202 } ||
54203 {
54204    echo "$me: cannot create a temporary directory in ." >&2
54205    { (exit 1); exit 1; }
54206 }
54207
54208 #
54209 # Set up the sed scripts for CONFIG_FILES section.
54210 #
54211
54212 # No need to generate the scripts if there are no CONFIG_FILES.
54213 # This happens for instance when ./config.status config.h
54214 if test -n "$CONFIG_FILES"; then
54215
54216 _ACEOF
54217
54218
54219
54220 ac_delim='%!_!# '
54221 for ac_last_try in false false false false false :; do
54222   cat >conf$$subs.sed <<_ACEOF
54223 SHELL!$SHELL$ac_delim
54224 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
54225 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
54226 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
54227 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
54228 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
54229 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
54230 exec_prefix!$exec_prefix$ac_delim
54231 prefix!$prefix$ac_delim
54232 program_transform_name!$program_transform_name$ac_delim
54233 bindir!$bindir$ac_delim
54234 sbindir!$sbindir$ac_delim
54235 libexecdir!$libexecdir$ac_delim
54236 datarootdir!$datarootdir$ac_delim
54237 datadir!$datadir$ac_delim
54238 sysconfdir!$sysconfdir$ac_delim
54239 sharedstatedir!$sharedstatedir$ac_delim
54240 localstatedir!$localstatedir$ac_delim
54241 includedir!$includedir$ac_delim
54242 oldincludedir!$oldincludedir$ac_delim
54243 docdir!$docdir$ac_delim
54244 infodir!$infodir$ac_delim
54245 htmldir!$htmldir$ac_delim
54246 dvidir!$dvidir$ac_delim
54247 pdfdir!$pdfdir$ac_delim
54248 psdir!$psdir$ac_delim
54249 libdir!$libdir$ac_delim
54250 localedir!$localedir$ac_delim
54251 mandir!$mandir$ac_delim
54252 DEFS!$DEFS$ac_delim
54253 ECHO_C!$ECHO_C$ac_delim
54254 ECHO_N!$ECHO_N$ac_delim
54255 ECHO_T!$ECHO_T$ac_delim
54256 LIBS!$LIBS$ac_delim
54257 build_alias!$build_alias$ac_delim
54258 host_alias!$host_alias$ac_delim
54259 target_alias!$target_alias$ac_delim
54260 build!$build$ac_delim
54261 build_cpu!$build_cpu$ac_delim
54262 build_vendor!$build_vendor$ac_delim
54263 build_os!$build_os$ac_delim
54264 host!$host$ac_delim
54265 host_cpu!$host_cpu$ac_delim
54266 host_vendor!$host_vendor$ac_delim
54267 host_os!$host_os$ac_delim
54268 wx_top_builddir!$wx_top_builddir$ac_delim
54269 CC!$CC$ac_delim
54270 CFLAGS!$CFLAGS$ac_delim
54271 LDFLAGS!$LDFLAGS$ac_delim
54272 CPPFLAGS!$CPPFLAGS$ac_delim
54273 ac_ct_CC!$ac_ct_CC$ac_delim
54274 EXEEXT!$EXEEXT$ac_delim
54275 OBJEXT!$OBJEXT$ac_delim
54276 CPP!$CPP$ac_delim
54277 GREP!$GREP$ac_delim
54278 EGREP!$EGREP$ac_delim
54279 CXX!$CXX$ac_delim
54280 CXXFLAGS!$CXXFLAGS$ac_delim
54281 ac_ct_CXX!$ac_ct_CXX$ac_delim
54282 AR!$AR$ac_delim
54283 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
54284 CXXCPP!$CXXCPP$ac_delim
54285 subdirs!$subdirs$ac_delim
54286 PKG_CONFIG!$PKG_CONFIG$ac_delim
54287 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
54288 GTK_LIBS!$GTK_LIBS$ac_delim
54289 GTK_CONFIG!$GTK_CONFIG$ac_delim
54290 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
54291 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
54292 XMKMF!$XMKMF$ac_delim
54293 X_CFLAGS!$X_CFLAGS$ac_delim
54294 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
54295 X_LIBS!$X_LIBS$ac_delim
54296 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
54297 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
54298 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
54299 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
54300 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
54301 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
54302 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
54303 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
54304 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
54305 LIBICONV!$LIBICONV$ac_delim
54306 GXX_VERSION!$GXX_VERSION$ac_delim
54307 SDL_CONFIG!$SDL_CONFIG$ac_delim
54308 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
54309 SDL_LIBS!$SDL_LIBS$ac_delim
54310 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
54311 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
54312 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
54313 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
54314 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
54315 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
54316 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
54317 HILDON_LIBS!$HILDON_LIBS$ac_delim
54318 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
54319 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
54320 _ACEOF
54321
54322   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54323     break
54324   elif $ac_last_try; then
54325     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54326 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54327    { (exit 1); exit 1; }; }
54328   else
54329     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54330   fi
54331 done
54332
54333 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54334 if test -n "$ac_eof"; then
54335   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54336   ac_eof=`expr $ac_eof + 1`
54337 fi
54338
54339 cat >>$CONFIG_STATUS <<_ACEOF
54340 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
54341 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54342 _ACEOF
54343 sed '
54344 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54345 s/^/s,@/; s/!/@,|#_!!_#|/
54346 :n
54347 t n
54348 s/'"$ac_delim"'$/,g/; t
54349 s/$/\\/; p
54350 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54351 ' >>$CONFIG_STATUS <conf$$subs.sed
54352 rm -f conf$$subs.sed
54353 cat >>$CONFIG_STATUS <<_ACEOF
54354 CEOF$ac_eof
54355 _ACEOF
54356
54357
54358 ac_delim='%!_!# '
54359 for ac_last_try in false false false false false :; do
54360   cat >conf$$subs.sed <<_ACEOF
54361 PYTHON!$PYTHON$ac_delim
54362 COND_PYTHON!$COND_PYTHON$ac_delim
54363 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
54364 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
54365 GST_CFLAGS!$GST_CFLAGS$ac_delim
54366 GST_LIBS!$GST_LIBS$ac_delim
54367 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
54368 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
54369 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
54370 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
54371 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
54372 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
54373 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
54374 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
54375 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
54376 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
54377 VENDOR!$VENDOR$ac_delim
54378 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
54379 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
54380 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
54381 WXUNIV!$WXUNIV$ac_delim
54382 MONOLITHIC!$MONOLITHIC$ac_delim
54383 USE_PLUGINS!$USE_PLUGINS$ac_delim
54384 CXXWARNINGS!$CXXWARNINGS$ac_delim
54385 EXTRALIBS!$EXTRALIBS$ac_delim
54386 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
54387 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
54388 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
54389 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
54390 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
54391 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
54392 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
54393 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
54394 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
54395 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
54396 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
54397 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
54398 UNICODE!$UNICODE$ac_delim
54399 DEBUG_INFO!$DEBUG_INFO$ac_delim
54400 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
54401 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
54402 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
54403 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
54404 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
54405 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
54406 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
54407 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
54408 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
54409 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
54410 RANLIB!$RANLIB$ac_delim
54411 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
54412 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
54413 INSTALL_DATA!$INSTALL_DATA$ac_delim
54414 LN_S!$LN_S$ac_delim
54415 SET_MAKE!$SET_MAKE$ac_delim
54416 MAKE_SET!$MAKE_SET$ac_delim
54417 AROPTIONS!$AROPTIONS$ac_delim
54418 STRIP!$STRIP$ac_delim
54419 NM!$NM$ac_delim
54420 INSTALL_DIR!$INSTALL_DIR$ac_delim
54421 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
54422 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
54423 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
54424 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
54425 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
54426 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
54427 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
54428 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
54429 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
54430 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
54431 SO_SUFFIX!$SO_SUFFIX$ac_delim
54432 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
54433 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
54434 LIBPREFIX!$LIBPREFIX$ac_delim
54435 LIBEXT!$LIBEXT$ac_delim
54436 DLLPREFIX!$DLLPREFIX$ac_delim
54437 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
54438 dlldir!$dlldir$ac_delim
54439 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
54440 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
54441 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
54442 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
54443 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
54444 PIC_FLAG!$PIC_FLAG$ac_delim
54445 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
54446 USE_SOVERSION!$USE_SOVERSION$ac_delim
54447 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
54448 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
54449 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
54450 USE_MACVERSION!$USE_MACVERSION$ac_delim
54451 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
54452 SONAME_FLAG!$SONAME_FLAG$ac_delim
54453 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
54454 BK_DEPS!$BK_DEPS$ac_delim
54455 WINDRES!$WINDRES$ac_delim
54456 REZ!$REZ$ac_delim
54457 SETFILE!$SETFILE$ac_delim
54458 _ACEOF
54459
54460   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54461     break
54462   elif $ac_last_try; then
54463     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54464 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54465    { (exit 1); exit 1; }; }
54466   else
54467     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54468   fi
54469 done
54470
54471 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54472 if test -n "$ac_eof"; then
54473   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54474   ac_eof=`expr $ac_eof + 1`
54475 fi
54476
54477 cat >>$CONFIG_STATUS <<_ACEOF
54478 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
54479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54480 _ACEOF
54481 sed '
54482 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54483 s/^/s,@/; s/!/@,|#_!!_#|/
54484 :n
54485 t n
54486 s/'"$ac_delim"'$/,g/; t
54487 s/$/\\/; p
54488 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54489 ' >>$CONFIG_STATUS <conf$$subs.sed
54490 rm -f conf$$subs.sed
54491 cat >>$CONFIG_STATUS <<_ACEOF
54492 CEOF$ac_eof
54493 _ACEOF
54494
54495
54496 ac_delim='%!_!# '
54497 for ac_last_try in false false false false false :; do
54498   cat >conf$$subs.sed <<_ACEOF
54499 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
54500 GCC_PCH!$GCC_PCH$ac_delim
54501 ICC_PCH!$ICC_PCH$ac_delim
54502 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
54503 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
54504 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
54505 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
54506 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
54507 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
54508 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
54509 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
54510 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
54511 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
54512 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
54513 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
54514 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
54515 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
54516 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
54517 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
54518 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
54519 COND_BUILD_release!$COND_BUILD_release$ac_delim
54520 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
54521 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
54522 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
54523 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
54524 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
54525 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
54526 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
54527 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
54528 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
54529 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
54530 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
54531 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
54532 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
54533 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
54534 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
54535 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
54536 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54537 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
54538 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1$ac_delim
54539 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
54540 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
54541 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
54542 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
54543 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
54544 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
54545 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
54546 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
54547 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
54548 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
54549 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
54550 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1$ac_delim
54551 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
54552 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
54553 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
54554 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54555 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54556 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54557 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54558 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54559 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54560 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54561 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
54562 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54563 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
54564 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54565 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54566 COND_MONOLITHIC_0_USE_WEBVIEW_1!$COND_MONOLITHIC_0_USE_WEBVIEW_1$ac_delim
54567 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54568 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54569 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54570 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54571 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54572 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54573 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54574 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54575 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54576 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
54577 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
54578 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54579 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
54580 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54581 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
54582 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54583 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
54584 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54585 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
54586 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54587 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54588 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
54589 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54590 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54591 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54592 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54593 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54594 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54595 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54596 _ACEOF
54597
54598   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54599     break
54600   elif $ac_last_try; then
54601     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54602 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54603    { (exit 1); exit 1; }; }
54604   else
54605     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54606   fi
54607 done
54608
54609 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54610 if test -n "$ac_eof"; then
54611   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54612   ac_eof=`expr $ac_eof + 1`
54613 fi
54614
54615 cat >>$CONFIG_STATUS <<_ACEOF
54616 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54618 _ACEOF
54619 sed '
54620 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54621 s/^/s,@/; s/!/@,|#_!!_#|/
54622 :n
54623 t n
54624 s/'"$ac_delim"'$/,g/; t
54625 s/$/\\/; p
54626 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54627 ' >>$CONFIG_STATUS <conf$$subs.sed
54628 rm -f conf$$subs.sed
54629 cat >>$CONFIG_STATUS <<_ACEOF
54630 CEOF$ac_eof
54631 _ACEOF
54632
54633
54634 ac_delim='%!_!# '
54635 for ac_last_try in false false false false false :; do
54636   cat >conf$$subs.sed <<_ACEOF
54637 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54638 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54639 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54640 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54641 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54642 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
54643 COND_SHARED_0!$COND_SHARED_0$ac_delim
54644 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54645 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54646 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54647 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54648 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54649 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54650 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54651 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54652 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
54653 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
54654 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
54655 COND_SHARED_1!$COND_SHARED_1$ac_delim
54656 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54657 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54658 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54659 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54660 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54661 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54662 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54663 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54664 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54665 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54666 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54667 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54668 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54669 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54670 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54671 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54672 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54673 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54674 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54675 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54676 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54677 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54678 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54679 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54680 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54681 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
54682 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54683 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
54684 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54685 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
54686 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54687 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
54688 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54689 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54690 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54691 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54692 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54693 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54694 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54695 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54696 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54697 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54698 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
54699 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54700 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54701 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54702 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54703 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54704 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54705 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54706 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54707 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54708 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54709 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54710 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54711 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54712 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54713 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54714 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54715 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54716 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54717 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
54718 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54719 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54720 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54721 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
54722 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54723 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54724 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54725 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54726 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54727 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54728 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54729 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54730 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54731 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54732 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54733 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54734 _ACEOF
54735
54736   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54737     break
54738   elif $ac_last_try; then
54739     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54740 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54741    { (exit 1); exit 1; }; }
54742   else
54743     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54744   fi
54745 done
54746
54747 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54748 if test -n "$ac_eof"; then
54749   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54750   ac_eof=`expr $ac_eof + 1`
54751 fi
54752
54753 cat >>$CONFIG_STATUS <<_ACEOF
54754 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54756 _ACEOF
54757 sed '
54758 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54759 s/^/s,@/; s/!/@,|#_!!_#|/
54760 :n
54761 t n
54762 s/'"$ac_delim"'$/,g/; t
54763 s/$/\\/; p
54764 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54765 ' >>$CONFIG_STATUS <conf$$subs.sed
54766 rm -f conf$$subs.sed
54767 cat >>$CONFIG_STATUS <<_ACEOF
54768 CEOF$ac_eof
54769 _ACEOF
54770
54771
54772 ac_delim='%!_!# '
54773 for ac_last_try in false false false false false :; do
54774   cat >conf$$subs.sed <<_ACEOF
54775 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54776 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54777 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54778 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
54779 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
54780 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
54781 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
54782 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
54783 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
54784 DEREZ!$DEREZ$ac_delim
54785 SHARED!$SHARED$ac_delim
54786 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54787 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54788 USE_GUI!$USE_GUI$ac_delim
54789 AFMINSTALL!$AFMINSTALL$ac_delim
54790 WIN32INSTALL!$WIN32INSTALL$ac_delim
54791 TOOLKIT!$TOOLKIT$ac_delim
54792 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54793 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54794 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54795 cross_compiling!$cross_compiling$ac_delim
54796 WIDGET_SET!$WIDGET_SET$ac_delim
54797 WX_RELEASE!$WX_RELEASE$ac_delim
54798 WX_VERSION!$WX_VERSION$ac_delim
54799 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54800 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54801 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54802 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54803 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54804 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54805 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54806 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
54807 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54808 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54809 GUIDIST!$GUIDIST$ac_delim
54810 DISTDIR!$DISTDIR$ac_delim
54811 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54812 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54813 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54814 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54815 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54816 RESCOMP!$RESCOMP$ac_delim
54817 RESFLAGS!$RESFLAGS$ac_delim
54818 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54819 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54820 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54821 LIBWXMACRES!$LIBWXMACRES$ac_delim
54822 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54823 MACSETFILE!$MACSETFILE$ac_delim
54824 GCC!$GCC$ac_delim
54825 DLLTOOL!$DLLTOOL$ac_delim
54826 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54827 LIBOBJS!$LIBOBJS$ac_delim
54828 LTLIBOBJS!$LTLIBOBJS$ac_delim
54829 _ACEOF
54830
54831   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
54832     break
54833   elif $ac_last_try; then
54834     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54835 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54836    { (exit 1); exit 1; }; }
54837   else
54838     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54839   fi
54840 done
54841
54842 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54843 if test -n "$ac_eof"; then
54844   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54845   ac_eof=`expr $ac_eof + 1`
54846 fi
54847
54848 cat >>$CONFIG_STATUS <<_ACEOF
54849 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54851 _ACEOF
54852 sed '
54853 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54854 s/^/s,@/; s/!/@,|#_!!_#|/
54855 :n
54856 t n
54857 s/'"$ac_delim"'$/,g/; t
54858 s/$/\\/; p
54859 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54860 ' >>$CONFIG_STATUS <conf$$subs.sed
54861 rm -f conf$$subs.sed
54862 cat >>$CONFIG_STATUS <<_ACEOF
54863 :end
54864 s/|#_!!_#|//g
54865 CEOF$ac_eof
54866 _ACEOF
54867
54868
54869 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54870 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54871 # trailing colons and then remove the whole line if VPATH becomes empty
54872 # (actually we leave an empty line to preserve line numbers).
54873 if test "x$srcdir" = x.; then
54874   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54875 s/:*\$(srcdir):*/:/
54876 s/:*\${srcdir}:*/:/
54877 s/:*@srcdir@:*/:/
54878 s/^\([^=]*=[     ]*\):*/\1/
54879 s/:*$//
54880 s/^[^=]*=[       ]*$//
54881 }'
54882 fi
54883
54884 cat >>$CONFIG_STATUS <<\_ACEOF
54885 fi # test -n "$CONFIG_FILES"
54886
54887
54888 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54889 do
54890   case $ac_tag in
54891   :[FHLC]) ac_mode=$ac_tag; continue;;
54892   esac
54893   case $ac_mode$ac_tag in
54894   :[FHL]*:*);;
54895   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54896 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54897    { (exit 1); exit 1; }; };;
54898   :[FH]-) ac_tag=-:-;;
54899   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54900   esac
54901   ac_save_IFS=$IFS
54902   IFS=:
54903   set x $ac_tag
54904   IFS=$ac_save_IFS
54905   shift
54906   ac_file=$1
54907   shift
54908
54909   case $ac_mode in
54910   :L) ac_source=$1;;
54911   :[FH])
54912     ac_file_inputs=
54913     for ac_f
54914     do
54915       case $ac_f in
54916       -) ac_f="$tmp/stdin";;
54917       *) # Look for the file first in the build tree, then in the source tree
54918          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54919          # because $ac_f cannot contain `:'.
54920          test -f "$ac_f" ||
54921            case $ac_f in
54922            [\\/$]*) false;;
54923            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54924            esac ||
54925            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54926 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54927    { (exit 1); exit 1; }; };;
54928       esac
54929       ac_file_inputs="$ac_file_inputs $ac_f"
54930     done
54931
54932     # Let's still pretend it is `configure' which instantiates (i.e., don't
54933     # use $as_me), people would be surprised to read:
54934     #    /* config.h.  Generated by config.status.  */
54935     configure_input="Generated from "`IFS=:
54936           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54937     if test x"$ac_file" != x-; then
54938       configure_input="$ac_file.  $configure_input"
54939       { echo "$as_me:$LINENO: creating $ac_file" >&5
54940 echo "$as_me: creating $ac_file" >&6;}
54941     fi
54942
54943     case $ac_tag in
54944     *:-:* | *:-) cat >"$tmp/stdin";;
54945     esac
54946     ;;
54947   esac
54948
54949   ac_dir=`$as_dirname -- "$ac_file" ||
54950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54951          X"$ac_file" : 'X\(//\)[^/]' \| \
54952          X"$ac_file" : 'X\(//\)$' \| \
54953          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54954 echo X"$ac_file" |
54955     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54956             s//\1/
54957             q
54958           }
54959           /^X\(\/\/\)[^/].*/{
54960             s//\1/
54961             q
54962           }
54963           /^X\(\/\/\)$/{
54964             s//\1/
54965             q
54966           }
54967           /^X\(\/\).*/{
54968             s//\1/
54969             q
54970           }
54971           s/.*/./; q'`
54972   { as_dir="$ac_dir"
54973   case $as_dir in #(
54974   -*) as_dir=./$as_dir;;
54975   esac
54976   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54977     as_dirs=
54978     while :; do
54979       case $as_dir in #(
54980       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54981       *) as_qdir=$as_dir;;
54982       esac
54983       as_dirs="'$as_qdir' $as_dirs"
54984       as_dir=`$as_dirname -- "$as_dir" ||
54985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54986          X"$as_dir" : 'X\(//\)[^/]' \| \
54987          X"$as_dir" : 'X\(//\)$' \| \
54988          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54989 echo X"$as_dir" |
54990     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54991             s//\1/
54992             q
54993           }
54994           /^X\(\/\/\)[^/].*/{
54995             s//\1/
54996             q
54997           }
54998           /^X\(\/\/\)$/{
54999             s//\1/
55000             q
55001           }
55002           /^X\(\/\).*/{
55003             s//\1/
55004             q
55005           }
55006           s/.*/./; q'`
55007       test -d "$as_dir" && break
55008     done
55009     test -z "$as_dirs" || eval "mkdir $as_dirs"
55010   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55011 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55012    { (exit 1); exit 1; }; }; }
55013   ac_builddir=.
55014
55015 case "$ac_dir" in
55016 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55017 *)
55018   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55019   # A ".." for each directory in $ac_dir_suffix.
55020   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55021   case $ac_top_builddir_sub in
55022   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55023   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55024   esac ;;
55025 esac
55026 ac_abs_top_builddir=$ac_pwd
55027 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55028 # for backward compatibility:
55029 ac_top_builddir=$ac_top_build_prefix
55030
55031 case $srcdir in
55032   .)  # We are building in place.
55033     ac_srcdir=.
55034     ac_top_srcdir=$ac_top_builddir_sub
55035     ac_abs_top_srcdir=$ac_pwd ;;
55036   [\\/]* | ?:[\\/]* )  # Absolute name.
55037     ac_srcdir=$srcdir$ac_dir_suffix;
55038     ac_top_srcdir=$srcdir
55039     ac_abs_top_srcdir=$srcdir ;;
55040   *) # Relative name.
55041     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55042     ac_top_srcdir=$ac_top_build_prefix$srcdir
55043     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55044 esac
55045 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55046
55047
55048   case $ac_mode in
55049   :F)
55050   #
55051   # CONFIG_FILE
55052   #
55053
55054   case $INSTALL in
55055   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
55056   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
55057   esac
55058 _ACEOF
55059
55060 cat >>$CONFIG_STATUS <<\_ACEOF
55061 # If the template does not know about datarootdir, expand it.
55062 # FIXME: This hack should be removed a few years after 2.60.
55063 ac_datarootdir_hack=; ac_datarootdir_seen=
55064
55065 case `sed -n '/datarootdir/ {
55066   p
55067   q
55068 }
55069 /@datadir@/p
55070 /@docdir@/p
55071 /@infodir@/p
55072 /@localedir@/p
55073 /@mandir@/p
55074 ' $ac_file_inputs` in
55075 *datarootdir*) ac_datarootdir_seen=yes;;
55076 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
55077   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
55078 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
55079 _ACEOF
55080 cat >>$CONFIG_STATUS <<_ACEOF
55081   ac_datarootdir_hack='
55082   s&@datadir@&$datadir&g
55083   s&@docdir@&$docdir&g
55084   s&@infodir@&$infodir&g
55085   s&@localedir@&$localedir&g
55086   s&@mandir@&$mandir&g
55087     s&\\\${datarootdir}&$datarootdir&g' ;;
55088 esac
55089 _ACEOF
55090
55091 # Neutralize VPATH when `$srcdir' = `.'.
55092 # Shell code in configure.ac might set extrasub.
55093 # FIXME: do we really want to maintain this feature?
55094 cat >>$CONFIG_STATUS <<_ACEOF
55095   sed "$ac_vpsub
55096 $extrasub
55097 _ACEOF
55098 cat >>$CONFIG_STATUS <<\_ACEOF
55099 :t
55100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55101 s&@configure_input@&$configure_input&;t t
55102 s&@top_builddir@&$ac_top_builddir_sub&;t t
55103 s&@srcdir@&$ac_srcdir&;t t
55104 s&@abs_srcdir@&$ac_abs_srcdir&;t t
55105 s&@top_srcdir@&$ac_top_srcdir&;t t
55106 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
55107 s&@builddir@&$ac_builddir&;t t
55108 s&@abs_builddir@&$ac_abs_builddir&;t t
55109 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
55110 s&@INSTALL@&$ac_INSTALL&;t t
55111 $ac_datarootdir_hack
55112 " $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
55113
55114 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
55115   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
55116   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
55117   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55118 which seems to be undefined.  Please make sure it is defined." >&5
55119 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55120 which seems to be undefined.  Please make sure it is defined." >&2;}
55121
55122   rm -f "$tmp/stdin"
55123   case $ac_file in
55124   -) cat "$tmp/out"; rm -f "$tmp/out";;
55125   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
55126   esac
55127  ;;
55128   :H)
55129   #
55130   # CONFIG_HEADER
55131   #
55132 _ACEOF
55133
55134 # Transform confdefs.h into a sed script `conftest.defines', that
55135 # substitutes the proper values into config.h.in to produce config.h.
55136 rm -f conftest.defines conftest.tail
55137 # First, append a space to every undef/define line, to ease matching.
55138 echo 's/$/ /' >conftest.defines
55139 # Then, protect against being on the right side of a sed subst, or in
55140 # an unquoted here document, in config.status.  If some macros were
55141 # called several times there might be several #defines for the same
55142 # symbol, which is useless.  But do not sort them, since the last
55143 # AC_DEFINE must be honored.
55144 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
55145 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
55146 # NAME is the cpp macro being defined, VALUE is the value it is being given.
55147 # PARAMS is the parameter list in the macro definition--in most cases, it's
55148 # just an empty string.
55149 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
55150 ac_dB='\\)[      (].*,\\1define\\2'
55151 ac_dC=' '
55152 ac_dD=' ,'
55153
55154 uniq confdefs.h |
55155   sed -n '
55156         t rset
55157         :rset
55158         s/^[     ]*#[    ]*define[       ][      ]*//
55159         t ok
55160         d
55161         :ok
55162         s/[\\&,]/\\&/g
55163         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
55164         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
55165   ' >>conftest.defines
55166
55167 # Remove the space that was appended to ease matching.
55168 # Then replace #undef with comments.  This is necessary, for
55169 # example, in the case of _POSIX_SOURCE, which is predefined and required
55170 # on some systems where configure will not decide to define it.
55171 # (The regexp can be short, since the line contains either #define or #undef.)
55172 echo 's/ $//
55173 s,^[     #]*u.*,/* & */,' >>conftest.defines
55174
55175 # Break up conftest.defines:
55176 ac_max_sed_lines=50
55177
55178 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
55179 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
55180 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
55181 # et cetera.
55182 ac_in='$ac_file_inputs'
55183 ac_out='"$tmp/out1"'
55184 ac_nxt='"$tmp/out2"'
55185
55186 while :
55187 do
55188   # Write a here document:
55189     cat >>$CONFIG_STATUS <<_ACEOF
55190     # First, check the format of the line:
55191     cat >"\$tmp/defines.sed" <<\\CEOF
55192 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
55193 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
55194 b
55195 :def
55196 _ACEOF
55197   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
55198   echo 'CEOF
55199     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
55200   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
55201   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
55202   grep . conftest.tail >/dev/null || break
55203   rm -f conftest.defines
55204   mv conftest.tail conftest.defines
55205 done
55206 rm -f conftest.defines conftest.tail
55207
55208 echo "ac_result=$ac_in" >>$CONFIG_STATUS
55209 cat >>$CONFIG_STATUS <<\_ACEOF
55210   if test x"$ac_file" != x-; then
55211     echo "/* $configure_input  */" >"$tmp/config.h"
55212     cat "$ac_result" >>"$tmp/config.h"
55213     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
55214       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
55215 echo "$as_me: $ac_file is unchanged" >&6;}
55216     else
55217       rm -f $ac_file
55218       mv "$tmp/config.h" $ac_file
55219     fi
55220   else
55221     echo "/* $configure_input  */"
55222     cat "$ac_result"
55223   fi
55224   rm -f "$tmp/out12"
55225  ;;
55226
55227   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
55228 echo "$as_me: executing $ac_file commands" >&6;}
55229  ;;
55230   esac
55231
55232
55233   case $ac_file$ac_mode in
55234     "rcdefs.h":C)
55235             mkdir -p $outdir &&
55236             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
55237          ;;
55238     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
55239     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
55240     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
55241     "wx-config":C)  rm -f wx-config
55242                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
55243                     ;;
55244
55245   esac
55246 done # for ac_tag
55247
55248
55249 { (exit 0); exit 0; }
55250 _ACEOF
55251 chmod +x $CONFIG_STATUS
55252 ac_clean_files=$ac_clean_files_save
55253
55254
55255 # configure is writing to config.log, and then calls config.status.
55256 # config.status does its own redirection, appending to config.log.
55257 # Unfortunately, on DOS this fails, as config.log is still kept open
55258 # by configure, so config.status won't be able to write to it; its
55259 # output is simply discarded.  So we exec the FD to /dev/null,
55260 # effectively closing config.log, so it can be properly (re)opened and
55261 # appended to by config.status.  When coming back to configure, we
55262 # need to make the FD available again.
55263 if test "$no_create" != yes; then
55264   ac_cs_success=:
55265   ac_config_status_args=
55266   test "$silent" = yes &&
55267     ac_config_status_args="$ac_config_status_args --quiet"
55268   exec 5>/dev/null
55269   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
55270   exec 5>>config.log
55271   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
55272   # would make configure fail if this is the last instruction.
55273   $ac_cs_success || { (exit 1); exit 1; }
55274 fi
55275
55276 #
55277 # CONFIG_SUBDIRS section.
55278 #
55279 if test "$no_recursion" != yes; then
55280
55281   # Remove --cache-file and --srcdir arguments so they do not pile up.
55282   ac_sub_configure_args=
55283   ac_prev=
55284   eval "set x $ac_configure_args"
55285   shift
55286   for ac_arg
55287   do
55288     if test -n "$ac_prev"; then
55289       ac_prev=
55290       continue
55291     fi
55292     case $ac_arg in
55293     -cache-file | --cache-file | --cache-fil | --cache-fi \
55294     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
55295       ac_prev=cache_file ;;
55296     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
55297     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
55298     | --c=*)
55299       ;;
55300     --config-cache | -C)
55301       ;;
55302     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
55303       ac_prev=srcdir ;;
55304     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
55305       ;;
55306     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
55307       ac_prev=prefix ;;
55308     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
55309       ;;
55310     *)
55311       case $ac_arg in
55312       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55313       esac
55314       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
55315     esac
55316   done
55317
55318   # Always prepend --prefix to ensure using the same prefix
55319   # in subdir configurations.
55320   ac_arg="--prefix=$prefix"
55321   case $ac_arg in
55322   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55323   esac
55324   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
55325
55326   # Pass --silent
55327   if test "$silent" = yes; then
55328     ac_sub_configure_args="--silent $ac_sub_configure_args"
55329   fi
55330
55331   ac_popdir=`pwd`
55332   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
55333
55334     # Do not complain, so a configure script can configure whichever
55335     # parts of a large source tree are present.
55336     test -d "$srcdir/$ac_dir" || continue
55337
55338     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
55339     echo "$as_me:$LINENO: $ac_msg" >&5
55340     echo "$ac_msg" >&6
55341     { as_dir="$ac_dir"
55342   case $as_dir in #(
55343   -*) as_dir=./$as_dir;;
55344   esac
55345   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55346     as_dirs=
55347     while :; do
55348       case $as_dir in #(
55349       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55350       *) as_qdir=$as_dir;;
55351       esac
55352       as_dirs="'$as_qdir' $as_dirs"
55353       as_dir=`$as_dirname -- "$as_dir" ||
55354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55355          X"$as_dir" : 'X\(//\)[^/]' \| \
55356          X"$as_dir" : 'X\(//\)$' \| \
55357          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55358 echo X"$as_dir" |
55359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55360             s//\1/
55361             q
55362           }
55363           /^X\(\/\/\)[^/].*/{
55364             s//\1/
55365             q
55366           }
55367           /^X\(\/\/\)$/{
55368             s//\1/
55369             q
55370           }
55371           /^X\(\/\).*/{
55372             s//\1/
55373             q
55374           }
55375           s/.*/./; q'`
55376       test -d "$as_dir" && break
55377     done
55378     test -z "$as_dirs" || eval "mkdir $as_dirs"
55379   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55380 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55381    { (exit 1); exit 1; }; }; }
55382     ac_builddir=.
55383
55384 case "$ac_dir" in
55385 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55386 *)
55387   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55388   # A ".." for each directory in $ac_dir_suffix.
55389   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55390   case $ac_top_builddir_sub in
55391   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55392   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55393   esac ;;
55394 esac
55395 ac_abs_top_builddir=$ac_pwd
55396 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55397 # for backward compatibility:
55398 ac_top_builddir=$ac_top_build_prefix
55399
55400 case $srcdir in
55401   .)  # We are building in place.
55402     ac_srcdir=.
55403     ac_top_srcdir=$ac_top_builddir_sub
55404     ac_abs_top_srcdir=$ac_pwd ;;
55405   [\\/]* | ?:[\\/]* )  # Absolute name.
55406     ac_srcdir=$srcdir$ac_dir_suffix;
55407     ac_top_srcdir=$srcdir
55408     ac_abs_top_srcdir=$srcdir ;;
55409   *) # Relative name.
55410     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55411     ac_top_srcdir=$ac_top_build_prefix$srcdir
55412     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55413 esac
55414 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55415
55416
55417     cd "$ac_dir"
55418
55419     # Check for guested configure; otherwise get Cygnus style configure.
55420     if test -f "$ac_srcdir/configure.gnu"; then
55421       ac_sub_configure=$ac_srcdir/configure.gnu
55422     elif test -f "$ac_srcdir/configure"; then
55423       ac_sub_configure=$ac_srcdir/configure
55424     elif test -f "$ac_srcdir/configure.in"; then
55425       # This should be Cygnus configure.
55426       ac_sub_configure=$ac_aux_dir/configure
55427     else
55428       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
55429 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
55430       ac_sub_configure=
55431     fi
55432
55433     # The recursion is here.
55434     if test -n "$ac_sub_configure"; then
55435       # Make the cache file name correct relative to the subdirectory.
55436       case $cache_file in
55437       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
55438       *) # Relative name.
55439         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
55440       esac
55441
55442       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
55443 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
55444       # The eval makes quoting arguments work.
55445       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
55446            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
55447         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
55448 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
55449    { (exit 1); exit 1; }; }
55450     fi
55451
55452     cd "$ac_popdir"
55453   done
55454 fi
55455
55456
55457 echo
55458 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
55459 echo ""
55460 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
55461 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
55462 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
55463 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
55464 if test "$wxUSE_UNICODE" = "yes"; then
55465     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
55466         echo " (using UTF-8)"
55467     else
55468         echo " (using wchar_t)"
55469     fi
55470 else
55471     echo
55472 fi
55473
55474 echo "  What level of wxWidgets compatibility should be enabled?"
55475 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
55476 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
55477
55478 echo "  Which libraries should wxWidgets use?"
55479 echo "                                       STL                ${wxUSE_STL}"
55480 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
55481 echo "                                       png                ${wxUSE_LIBPNG-none}"
55482 echo "                                       regex              ${wxUSE_REGEX}"
55483 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
55484 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
55485 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
55486 fi
55487 echo "                                       zlib               ${wxUSE_ZLIB}"
55488 echo "                                       expat              ${wxUSE_EXPAT}"
55489 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
55490 echo "                                       sdl                ${wxUSE_LIBSDL}"
55491
55492 echo ""
55493