Use AC_LANG_SOURCE and add missing quoting to configure.
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.3.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.3'
579 PACKAGE_STRING='wxWidgets 2.9.3'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 wx_top_builddir
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 CXX
676 CXXFLAGS
677 ac_ct_CXX
678 AR
679 OSX_SW_VERS
680 CXXCPP
681 subdirs
682 PKG_CONFIG
683 GTK_CFLAGS
684 GTK_LIBS
685 GTK_CONFIG
686 DIRECTFB_CFLAGS
687 DIRECTFB_LIBS
688 XMKMF
689 X_CFLAGS
690 X_PRE_LIBS
691 X_LIBS
692 X_EXTRA_LIBS
693 PANGOX_CFLAGS
694 PANGOX_LIBS
695 PANGOFT2_CFLAGS
696 PANGOFT2_LIBS
697 PANGOXFT_CFLAGS
698 PANGOXFT_LIBS
699 CFLAGS_VISIBILITY
700 CXXFLAGS_VISIBILITY
701 LIBICONV
702 GXX_VERSION
703 SDL_CONFIG
704 SDL_CFLAGS
705 SDL_LIBS
706 GTKPRINT_CFLAGS
707 GTKPRINT_LIBS
708 LIBGNOMEPRINTUI_CFLAGS
709 LIBGNOMEPRINTUI_LIBS
710 GNOMEVFS_CFLAGS
711 GNOMEVFS_LIBS
712 HILDON_CFLAGS
713 HILDON_LIBS
714 HILDON2_CFLAGS
715 HILDON2_LIBS
716 PYTHON
717 COND_PYTHON
718 CAIRO_CFLAGS
719 CAIRO_LIBS
720 GST_CFLAGS
721 GST_LIBS
722 ALL_WX_LIBS
723 BUILT_WX_LIBS
724 STD_BASE_LIBS
725 STD_GUI_LIBS
726 wxUSE_ZLIB
727 wxUSE_REGEX
728 wxUSE_EXPAT
729 wxUSE_LIBJPEG
730 wxUSE_LIBPNG
731 wxUSE_LIBTIFF
732 VENDOR
733 OFFICIAL_BUILD
734 WX_FLAVOUR
735 WX_LIB_FLAVOUR
736 WXUNIV
737 MONOLITHIC
738 USE_PLUGINS
739 CXXWARNINGS
740 EXTRALIBS
741 EXTRALIBS_XML
742 EXTRALIBS_HTML
743 EXTRALIBS_MEDIA
744 EXTRALIBS_GUI
745 EXTRALIBS_OPENGL
746 EXTRALIBS_SDL
747 EXTRALIBS_STC
748 WITH_PLUGIN_SDL
749 EXTRALIBS_GTKPRINT
750 EXTRALIBS_GNOMEPRINT
751 EXTRALIBS_GNOMEVFS
752 EXTRALIBS_HILDON
753 UNICODE
754 DEBUG_INFO
755 DEBUG_FLAG
756 TOOLKIT_LOWERCASE
757 TOOLKIT_VERSION
758 DYLIB_RPATH_INSTALL
759 DYLIB_RPATH_POSTLINK
760 SAMPLES_RPATH_FLAG
761 HEADER_PAD_OPTION
762 HOST_SUFFIX
763 CPPUNIT_CFLAGS
764 CPPUNIT_LIBS
765 RANLIB
766 INSTALL_PROGRAM
767 INSTALL_SCRIPT
768 INSTALL_DATA
769 LN_S
770 SET_MAKE
771 MAKE_SET
772 AROPTIONS
773 STRIP
774 NM
775 INSTALL_DIR
776 LDFLAGS_GUI
777 IF_GNU_MAKE
778 PLATFORM_UNIX
779 PLATFORM_WIN32
780 PLATFORM_MSDOS
781 PLATFORM_MAC
782 PLATFORM_MACOS
783 PLATFORM_MACOSX
784 PLATFORM_OS2
785 PLATFORM_BEOS
786 SO_SUFFIX
787 SO_SUFFIX_MODULE
788 DLLIMP_SUFFIX
789 LIBPREFIX
790 LIBEXT
791 DLLPREFIX
792 DLLPREFIX_MODULE
793 dlldir
794 AIX_CXX_LD
795 SHARED_LD_CC
796 SHARED_LD_CXX
797 SHARED_LD_MODULE_CC
798 SHARED_LD_MODULE_CXX
799 PIC_FLAG
800 WINDOWS_IMPLIB
801 USE_SOVERSION
802 USE_SOVERLINUX
803 USE_SOVERSOLARIS
804 USE_SOVERCYGWIN
805 USE_MACVERSION
806 USE_SOTWOSYMLINKS
807 SONAME_FLAG
808 DEPS_TRACKING
809 BK_DEPS
810 WINDRES
811 REZ
812 SETFILE
813 OBJCXXFLAGS
814 GCC_PCH
815 ICC_PCH
816 ICC_PCH_CREATE_SWITCH
817 ICC_PCH_USE_SWITCH
818 BK_MAKE_PCH
819 COND_BUILD_DEBUG
820 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
821 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
822 COND_BUILD_DEBUG_UNICODE_0
823 COND_BUILD_DEBUG_UNICODE_1
824 COND_BUILD_RELEASE
825 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
826 COND_BUILD_RELEASE_UNICODE_0
827 COND_BUILD_RELEASE_UNICODE_1
828 COND_BUILD_debug
829 COND_BUILD_debug_DEBUG_FLAG_default
830 COND_BUILD_debug_DEBUG_INFO_default
831 COND_BUILD_debug_UNICODE_0
832 COND_BUILD_debug_UNICODE_1
833 COND_BUILD_release
834 COND_BUILD_release_DEBUG_INFO_default
835 COND_BUILD_release_UNICODE_0
836 COND_BUILD_release_UNICODE_1
837 COND_DEBUG_FLAG_0
838 COND_DEBUG_FLAG_1
839 COND_DEBUG_INFO_0
840 COND_DEBUG_INFO_1
841 COND_DEPS_TRACKING_0
842 COND_DEPS_TRACKING_1
843 COND_GCC_PCH_1
844 COND_ICC_PCH_1
845 COND_MONOLITHIC_0
846 COND_MONOLITHIC_0_SHARED_0
847 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
848 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
849 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
850 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
851 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
852 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1
853 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
854 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
855 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
856 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
857 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
858 COND_MONOLITHIC_0_SHARED_1
859 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
860 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
861 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
862 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
863 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
864 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1
865 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
866 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
867 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
868 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
869 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
870 COND_MONOLITHIC_0_USE_AUI_1
871 COND_MONOLITHIC_0_USE_GUI_1
872 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
873 COND_MONOLITHIC_0_USE_HTML_1
874 COND_MONOLITHIC_0_USE_MEDIA_1
875 COND_MONOLITHIC_0_USE_PROPGRID_1
876 COND_MONOLITHIC_0_USE_QA_1
877 COND_MONOLITHIC_0_USE_RIBBON_1
878 COND_MONOLITHIC_0_USE_RICHTEXT_1
879 COND_MONOLITHIC_0_USE_STC_1
880 COND_MONOLITHIC_0_USE_WEBVIEW_1
881 COND_MONOLITHIC_0_USE_XRC_1
882 COND_MONOLITHIC_1
883 COND_MONOLITHIC_1_SHARED_0
884 COND_MONOLITHIC_1_SHARED_1
885 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
886 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
887 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
888 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
889 COND_PLATFORM_MACOSX_1
890 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
891 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0
892 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
893 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
894 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
895 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
896 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1
897 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
898 COND_PLATFORM_MACOSX_1_USE_GUI_1
899 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
900 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
901 COND_PLATFORM_MACOS_1
902 COND_PLATFORM_MAC_0
903 COND_PLATFORM_MAC_1
904 COND_PLATFORM_MSDOS_0
905 COND_PLATFORM_MSDOS_1
906 COND_PLATFORM_OS2_1
907 COND_PLATFORM_UNIX_0
908 COND_PLATFORM_UNIX_1
909 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
910 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
911 COND_PLATFORM_UNIX_1_USE_GUI_1
912 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
913 COND_PLATFORM_WIN32_0
914 COND_PLATFORM_WIN32_1
915 COND_PLATFORM_WIN32_1_SHARED_0
916 COND_SHARED_0
917 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
918 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
919 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
920 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
921 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
922 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
923 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
924 COND_SHARED_0_USE_STC_1
925 COND_SHARED_0_wxUSE_EXPAT_builtin
926 COND_SHARED_0_wxUSE_REGEX_builtin
927 COND_SHARED_0_wxUSE_ZLIB_builtin
928 COND_SHARED_1
929 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
930 COND_TOOLKIT_
931 COND_TOOLKIT_COCOA
932 COND_TOOLKIT_COCOA_USE_GUI_1
933 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
934 COND_TOOLKIT_DFB
935 COND_TOOLKIT_DFB_USE_GUI_1
936 COND_TOOLKIT_GTK
937 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
938 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
939 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
940 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
941 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
942 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
943 COND_TOOLKIT_GTK_USE_GUI_1
944 COND_TOOLKIT_MAC
945 COND_TOOLKIT_MGL
946 COND_TOOLKIT_MGL_USE_GUI_1
947 COND_TOOLKIT_MOTIF
948 COND_TOOLKIT_MOTIF_USE_GUI_1
949 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
950 COND_TOOLKIT_MSW
951 COND_TOOLKIT_MSW_USE_GUI_1
952 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
953 COND_TOOLKIT_MSW_WXUNIV_0
954 COND_TOOLKIT_OSX_CARBON
955 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
956 COND_TOOLKIT_OSX_COCOA
957 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
958 COND_TOOLKIT_OSX_IPHONE
959 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1
960 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
961 COND_TOOLKIT_PM
962 COND_TOOLKIT_PM_USE_GUI_1
963 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
964 COND_TOOLKIT_WINCE
965 COND_TOOLKIT_WINCE_USE_GUI_1
966 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
967 COND_TOOLKIT_WINCE_WXUNIV_0
968 COND_TOOLKIT_X11
969 COND_TOOLKIT_X11_USE_GUI_1
970 COND_UNICODE_1
971 COND_USE_CAIRO_1
972 COND_USE_EXCEPTIONS_0
973 COND_USE_EXCEPTIONS_1
974 COND_USE_GUI_0
975 COND_USE_GUI_1
976 COND_USE_GUI_1_USE_OPENGL_1
977 COND_USE_GUI_1_WXUNIV_0
978 COND_USE_GUI_1_WXUNIV_1
979 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
980 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
981 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
982 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
983 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
984 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
985 COND_USE_OPENGL_1
986 COND_USE_PCH_1
987 COND_USE_PLUGINS_0
988 COND_USE_RTTI_0
989 COND_USE_RTTI_1
990 COND_USE_SOTWOSYMLINKS_1
991 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
992 COND_USE_SOVERLINUX_1
993 COND_USE_SOVERSION_0
994 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
995 COND_USE_SOVERSOLARIS_1
996 COND_USE_STC_1
997 COND_USE_THREADS_0
998 COND_USE_THREADS_1
999 COND_USE_XRC_1
1000 COND_WINDOWS_IMPLIB_1
1001 COND_WITH_PLUGIN_SDL_1
1002 COND_WXUNIV_0
1003 COND_WXUNIV_1
1004 COND_WXUSE_EXPAT_BUILTIN
1005 COND_WXUSE_LIBJPEG_BUILTIN
1006 COND_WXUSE_LIBPNG_BUILTIN
1007 COND_WXUSE_LIBTIFF_BUILTIN
1008 COND_WXUSE_REGEX_BUILTIN
1009 COND_WXUSE_ZLIB_BUILTIN
1010 COND_wxUSE_EXPAT_builtin
1011 COND_wxUSE_LIBJPEG_builtin
1012 COND_wxUSE_LIBPNG_builtin
1013 COND_wxUSE_LIBTIFF_builtin
1014 COND_wxUSE_REGEX_builtin
1015 COND_wxUSE_ZLIB_builtin
1016 DEREZ
1017 SHARED
1018 WX_LIBRARY_BASENAME_NOGUI
1019 WX_LIBRARY_BASENAME_GUI
1020 USE_GUI
1021 AFMINSTALL
1022 WIN32INSTALL
1023 TOOLKIT
1024 TOOLKIT_DIR
1025 TOOLCHAIN_NAME
1026 TOOLCHAIN_FULLNAME
1027 cross_compiling
1028 WIDGET_SET
1029 WX_RELEASE
1030 WX_VERSION
1031 WX_SUBVERSION
1032 WX_CHARTYPE
1033 WXCONFIG_CPPFLAGS
1034 WXCONFIG_CFLAGS
1035 WXCONFIG_CXXFLAGS
1036 WXCONFIG_LIBS
1037 WXCONFIG_RPATH
1038 WXCONFIG_LDFLAGS
1039 WXCONFIG_LDFLAGS_GUI
1040 WXCONFIG_RESFLAGS
1041 GUIDIST
1042 DISTDIR
1043 SAMPLES_SUBDIRS
1044 LDFLAGS_GL
1045 OPENGL_LIBS
1046 DMALLOC_LIBS
1047 WX_VERSION_TAG
1048 RESCOMP
1049 RESFLAGS
1050 RESPROGRAMOBJ
1051 WX_RESOURCES_MACOSX_ASCII
1052 WX_RESOURCES_MACOSX_DATA
1053 LIBWXMACRES
1054 POSTLINK_COMMAND
1055 MACSETFILE
1056 GCC
1057 DLLTOOL
1058 CPPUNIT_CONFIG
1059 LIBOBJS
1060 LTLIBOBJS'
1061 ac_subst_files=''
1062       ac_precious_vars='build_alias
1063 host_alias
1064 target_alias
1065 CC
1066 CFLAGS
1067 LDFLAGS
1068 LIBS
1069 CPPFLAGS
1070 CPP
1071 CXX
1072 CXXFLAGS
1073 CCC
1074 CXXCPP
1075 PKG_CONFIG
1076 DIRECTFB_CFLAGS
1077 DIRECTFB_LIBS
1078 XMKMF
1079 PANGOX_CFLAGS
1080 PANGOX_LIBS
1081 PANGOFT2_CFLAGS
1082 PANGOFT2_LIBS
1083 PANGOXFT_CFLAGS
1084 PANGOXFT_LIBS
1085 GTKPRINT_CFLAGS
1086 GTKPRINT_LIBS
1087 LIBGNOMEPRINTUI_CFLAGS
1088 LIBGNOMEPRINTUI_LIBS
1089 GNOMEVFS_CFLAGS
1090 GNOMEVFS_LIBS
1091 HILDON_CFLAGS
1092 HILDON_LIBS
1093 HILDON2_CFLAGS
1094 HILDON2_LIBS
1095 CAIRO_CFLAGS
1096 CAIRO_LIBS
1097 GST_CFLAGS
1098 GST_LIBS'
1099 ac_subdirs_all='src/tiff
1100 src/expat'
1101
1102 # Initialize some variables set by options.
1103 ac_init_help=
1104 ac_init_version=false
1105 # The variables have the same names as the options, with
1106 # dashes changed to underlines.
1107 cache_file=/dev/null
1108 exec_prefix=NONE
1109 no_create=
1110 no_recursion=
1111 prefix=NONE
1112 program_prefix=NONE
1113 program_suffix=NONE
1114 program_transform_name=s,x,x,
1115 silent=
1116 site=
1117 srcdir=
1118 verbose=
1119 x_includes=NONE
1120 x_libraries=NONE
1121
1122 # Installation directory options.
1123 # These are left unexpanded so users can "make install exec_prefix=/foo"
1124 # and all the variables that are supposed to be based on exec_prefix
1125 # by default will actually change.
1126 # Use braces instead of parens because sh, perl, etc. also accept them.
1127 # (The list follows the same order as the GNU Coding Standards.)
1128 bindir='${exec_prefix}/bin'
1129 sbindir='${exec_prefix}/sbin'
1130 libexecdir='${exec_prefix}/libexec'
1131 datarootdir='${prefix}/share'
1132 datadir='${datarootdir}'
1133 sysconfdir='${prefix}/etc'
1134 sharedstatedir='${prefix}/com'
1135 localstatedir='${prefix}/var'
1136 includedir='${prefix}/include'
1137 oldincludedir='/usr/include'
1138 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1139 infodir='${datarootdir}/info'
1140 htmldir='${docdir}'
1141 dvidir='${docdir}'
1142 pdfdir='${docdir}'
1143 psdir='${docdir}'
1144 libdir='${exec_prefix}/lib'
1145 localedir='${datarootdir}/locale'
1146 mandir='${datarootdir}/man'
1147
1148 ac_prev=
1149 ac_dashdash=
1150 for ac_option
1151 do
1152   # If the previous option needs an argument, assign it.
1153   if test -n "$ac_prev"; then
1154     eval $ac_prev=\$ac_option
1155     ac_prev=
1156     continue
1157   fi
1158
1159   case $ac_option in
1160   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1161   *)    ac_optarg=yes ;;
1162   esac
1163
1164   # Accept the important Cygnus configure options, so we can diagnose typos.
1165
1166   case $ac_dashdash$ac_option in
1167   --)
1168     ac_dashdash=yes ;;
1169
1170   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1171     ac_prev=bindir ;;
1172   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1173     bindir=$ac_optarg ;;
1174
1175   -build | --build | --buil | --bui | --bu)
1176     ac_prev=build_alias ;;
1177   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1178     build_alias=$ac_optarg ;;
1179
1180   -cache-file | --cache-file | --cache-fil | --cache-fi \
1181   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1182     ac_prev=cache_file ;;
1183   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1184   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1185     cache_file=$ac_optarg ;;
1186
1187   --config-cache | -C)
1188     cache_file=config.cache ;;
1189
1190   -datadir | --datadir | --datadi | --datad)
1191     ac_prev=datadir ;;
1192   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1193     datadir=$ac_optarg ;;
1194
1195   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1196   | --dataroo | --dataro | --datar)
1197     ac_prev=datarootdir ;;
1198   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1199   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1200     datarootdir=$ac_optarg ;;
1201
1202   -disable-* | --disable-*)
1203     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1207    { (exit 1); exit 1; }; }
1208     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1209     eval enable_$ac_feature=no ;;
1210
1211   -docdir | --docdir | --docdi | --doc | --do)
1212     ac_prev=docdir ;;
1213   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1214     docdir=$ac_optarg ;;
1215
1216   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1217     ac_prev=dvidir ;;
1218   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1219     dvidir=$ac_optarg ;;
1220
1221   -enable-* | --enable-*)
1222     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1223     # Reject names that are not valid shell variable names.
1224     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1226    { (exit 1); exit 1; }; }
1227     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1228     eval enable_$ac_feature=\$ac_optarg ;;
1229
1230   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1231   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1232   | --exec | --exe | --ex)
1233     ac_prev=exec_prefix ;;
1234   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1235   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1236   | --exec=* | --exe=* | --ex=*)
1237     exec_prefix=$ac_optarg ;;
1238
1239   -gas | --gas | --ga | --g)
1240     # Obsolete; use --with-gas.
1241     with_gas=yes ;;
1242
1243   -help | --help | --hel | --he | -h)
1244     ac_init_help=long ;;
1245   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1246     ac_init_help=recursive ;;
1247   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1248     ac_init_help=short ;;
1249
1250   -host | --host | --hos | --ho)
1251     ac_prev=host_alias ;;
1252   -host=* | --host=* | --hos=* | --ho=*)
1253     host_alias=$ac_optarg ;;
1254
1255   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1256     ac_prev=htmldir ;;
1257   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1258   | --ht=*)
1259     htmldir=$ac_optarg ;;
1260
1261   -includedir | --includedir | --includedi | --included | --include \
1262   | --includ | --inclu | --incl | --inc)
1263     ac_prev=includedir ;;
1264   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1265   | --includ=* | --inclu=* | --incl=* | --inc=*)
1266     includedir=$ac_optarg ;;
1267
1268   -infodir | --infodir | --infodi | --infod | --info | --inf)
1269     ac_prev=infodir ;;
1270   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1271     infodir=$ac_optarg ;;
1272
1273   -libdir | --libdir | --libdi | --libd)
1274     ac_prev=libdir ;;
1275   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1276     libdir=$ac_optarg ;;
1277
1278   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1279   | --libexe | --libex | --libe)
1280     ac_prev=libexecdir ;;
1281   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1282   | --libexe=* | --libex=* | --libe=*)
1283     libexecdir=$ac_optarg ;;
1284
1285   -localedir | --localedir | --localedi | --localed | --locale)
1286     ac_prev=localedir ;;
1287   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1288     localedir=$ac_optarg ;;
1289
1290   -localstatedir | --localstatedir | --localstatedi | --localstated \
1291   | --localstate | --localstat | --localsta | --localst | --locals)
1292     ac_prev=localstatedir ;;
1293   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1294   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1295     localstatedir=$ac_optarg ;;
1296
1297   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1298     ac_prev=mandir ;;
1299   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1300     mandir=$ac_optarg ;;
1301
1302   -nfp | --nfp | --nf)
1303     # Obsolete; use --without-fp.
1304     with_fp=no ;;
1305
1306   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1307   | --no-cr | --no-c | -n)
1308     no_create=yes ;;
1309
1310   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1311   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1312     no_recursion=yes ;;
1313
1314   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1315   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1316   | --oldin | --oldi | --old | --ol | --o)
1317     ac_prev=oldincludedir ;;
1318   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1319   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1320   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1321     oldincludedir=$ac_optarg ;;
1322
1323   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1324     ac_prev=prefix ;;
1325   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1326     prefix=$ac_optarg ;;
1327
1328   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1329   | --program-pre | --program-pr | --program-p)
1330     ac_prev=program_prefix ;;
1331   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1332   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1333     program_prefix=$ac_optarg ;;
1334
1335   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1336   | --program-suf | --program-su | --program-s)
1337     ac_prev=program_suffix ;;
1338   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1339   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1340     program_suffix=$ac_optarg ;;
1341
1342   -program-transform-name | --program-transform-name \
1343   | --program-transform-nam | --program-transform-na \
1344   | --program-transform-n | --program-transform- \
1345   | --program-transform | --program-transfor \
1346   | --program-transfo | --program-transf \
1347   | --program-trans | --program-tran \
1348   | --progr-tra | --program-tr | --program-t)
1349     ac_prev=program_transform_name ;;
1350   -program-transform-name=* | --program-transform-name=* \
1351   | --program-transform-nam=* | --program-transform-na=* \
1352   | --program-transform-n=* | --program-transform-=* \
1353   | --program-transform=* | --program-transfor=* \
1354   | --program-transfo=* | --program-transf=* \
1355   | --program-trans=* | --program-tran=* \
1356   | --progr-tra=* | --program-tr=* | --program-t=*)
1357     program_transform_name=$ac_optarg ;;
1358
1359   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1360     ac_prev=pdfdir ;;
1361   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1362     pdfdir=$ac_optarg ;;
1363
1364   -psdir | --psdir | --psdi | --psd | --ps)
1365     ac_prev=psdir ;;
1366   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1367     psdir=$ac_optarg ;;
1368
1369   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1370   | -silent | --silent | --silen | --sile | --sil)
1371     silent=yes ;;
1372
1373   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1374     ac_prev=sbindir ;;
1375   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1376   | --sbi=* | --sb=*)
1377     sbindir=$ac_optarg ;;
1378
1379   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1380   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1381   | --sharedst | --shareds | --shared | --share | --shar \
1382   | --sha | --sh)
1383     ac_prev=sharedstatedir ;;
1384   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1385   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1386   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1387   | --sha=* | --sh=*)
1388     sharedstatedir=$ac_optarg ;;
1389
1390   -site | --site | --sit)
1391     ac_prev=site ;;
1392   -site=* | --site=* | --sit=*)
1393     site=$ac_optarg ;;
1394
1395   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1396     ac_prev=srcdir ;;
1397   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1398     srcdir=$ac_optarg ;;
1399
1400   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1401   | --syscon | --sysco | --sysc | --sys | --sy)
1402     ac_prev=sysconfdir ;;
1403   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1404   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1405     sysconfdir=$ac_optarg ;;
1406
1407   -target | --target | --targe | --targ | --tar | --ta | --t)
1408     ac_prev=target_alias ;;
1409   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1410     target_alias=$ac_optarg ;;
1411
1412   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1413     verbose=yes ;;
1414
1415   -version | --version | --versio | --versi | --vers | -V)
1416     ac_init_version=: ;;
1417
1418   -with-* | --with-*)
1419     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1420     # Reject names that are not valid shell variable names.
1421     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1422       { echo "$as_me: error: invalid package name: $ac_package" >&2
1423    { (exit 1); exit 1; }; }
1424     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1425     eval with_$ac_package=\$ac_optarg ;;
1426
1427   -without-* | --without-*)
1428     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1429     # Reject names that are not valid shell variable names.
1430     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1431       { echo "$as_me: error: invalid package name: $ac_package" >&2
1432    { (exit 1); exit 1; }; }
1433     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1434     eval with_$ac_package=no ;;
1435
1436   --x)
1437     # Obsolete; use --with-x.
1438     with_x=yes ;;
1439
1440   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1441   | --x-incl | --x-inc | --x-in | --x-i)
1442     ac_prev=x_includes ;;
1443   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1444   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1445     x_includes=$ac_optarg ;;
1446
1447   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1448   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1449     ac_prev=x_libraries ;;
1450   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1451   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1452     x_libraries=$ac_optarg ;;
1453
1454   -*) { echo "$as_me: error: unrecognized option: $ac_option
1455 Try \`$0 --help' for more information." >&2
1456    { (exit 1); exit 1; }; }
1457     ;;
1458
1459   *=*)
1460     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1461     # Reject names that are not valid shell variable names.
1462     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1463       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1464    { (exit 1); exit 1; }; }
1465     eval $ac_envvar=\$ac_optarg
1466     export $ac_envvar ;;
1467
1468   *)
1469     # FIXME: should be removed in autoconf 3.0.
1470     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1471     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1472       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1473     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1474     ;;
1475
1476   esac
1477 done
1478
1479 if test -n "$ac_prev"; then
1480   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1481   { echo "$as_me: error: missing argument to $ac_option" >&2
1482    { (exit 1); exit 1; }; }
1483 fi
1484
1485 # Be sure to have absolute directory names.
1486 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1487                 datadir sysconfdir sharedstatedir localstatedir includedir \
1488                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1489                 libdir localedir mandir
1490 do
1491   eval ac_val=\$$ac_var
1492   case $ac_val in
1493     [\\/$]* | ?:[\\/]* )  continue;;
1494     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1495   esac
1496   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1497    { (exit 1); exit 1; }; }
1498 done
1499
1500 # There might be people who depend on the old broken behavior: `$host'
1501 # used to hold the argument of --host etc.
1502 # FIXME: To remove some day.
1503 build=$build_alias
1504 host=$host_alias
1505 target=$target_alias
1506
1507 # FIXME: To remove some day.
1508 if test "x$host_alias" != x; then
1509   if test "x$build_alias" = x; then
1510     cross_compiling=maybe
1511     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1512     If a cross compiler is detected then cross compile mode will be used." >&2
1513   elif test "x$build_alias" != "x$host_alias"; then
1514     cross_compiling=yes
1515   fi
1516 fi
1517
1518 ac_tool_prefix=
1519 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1520
1521 test "$silent" = yes && exec 6>/dev/null
1522
1523
1524 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1525 ac_ls_di=`ls -di .` &&
1526 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1527   { echo "$as_me: error: Working directory cannot be determined" >&2
1528    { (exit 1); exit 1; }; }
1529 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1530   { echo "$as_me: error: pwd does not report name of working directory" >&2
1531    { (exit 1); exit 1; }; }
1532
1533
1534 # Find the source files, if location was not specified.
1535 if test -z "$srcdir"; then
1536   ac_srcdir_defaulted=yes
1537   # Try the directory containing this script, then the parent directory.
1538   ac_confdir=`$as_dirname -- "$0" ||
1539 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1540          X"$0" : 'X\(//\)[^/]' \| \
1541          X"$0" : 'X\(//\)$' \| \
1542          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1543 echo X"$0" |
1544     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1545             s//\1/
1546             q
1547           }
1548           /^X\(\/\/\)[^/].*/{
1549             s//\1/
1550             q
1551           }
1552           /^X\(\/\/\)$/{
1553             s//\1/
1554             q
1555           }
1556           /^X\(\/\).*/{
1557             s//\1/
1558             q
1559           }
1560           s/.*/./; q'`
1561   srcdir=$ac_confdir
1562   if test ! -r "$srcdir/$ac_unique_file"; then
1563     srcdir=..
1564   fi
1565 else
1566   ac_srcdir_defaulted=no
1567 fi
1568 if test ! -r "$srcdir/$ac_unique_file"; then
1569   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1570   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1571    { (exit 1); exit 1; }; }
1572 fi
1573 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1574 ac_abs_confdir=`(
1575         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1576    { (exit 1); exit 1; }; }
1577         pwd)`
1578 # When building in place, set srcdir=.
1579 if test "$ac_abs_confdir" = "$ac_pwd"; then
1580   srcdir=.
1581 fi
1582 # Remove unnecessary trailing slashes from srcdir.
1583 # Double slashes in file names in object file debugging info
1584 # mess up M-x gdb in Emacs.
1585 case $srcdir in
1586 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1587 esac
1588 for ac_var in $ac_precious_vars; do
1589   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1590   eval ac_env_${ac_var}_value=\$${ac_var}
1591   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1592   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1593 done
1594
1595 #
1596 # Report the --help message.
1597 #
1598 if test "$ac_init_help" = "long"; then
1599   # Omit some internal or obsolete options to make the list less imposing.
1600   # This message is too long to be a string in the A/UX 3.1 sh.
1601   cat <<_ACEOF
1602 \`configure' configures wxWidgets 2.9.3 to adapt to many kinds of systems.
1603
1604 Usage: $0 [OPTION]... [VAR=VALUE]...
1605
1606 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1607 VAR=VALUE.  See below for descriptions of some of the useful variables.
1608
1609 Defaults for the options are specified in brackets.
1610
1611 Configuration:
1612   -h, --help              display this help and exit
1613       --help=short        display options specific to this package
1614       --help=recursive    display the short help of all the included packages
1615   -V, --version           display version information and exit
1616   -q, --quiet, --silent   do not print \`checking...' messages
1617       --cache-file=FILE   cache test results in FILE [disabled]
1618   -C, --config-cache      alias for \`--cache-file=config.cache'
1619   -n, --no-create         do not create output files
1620       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1621
1622 Installation directories:
1623   --prefix=PREFIX         install architecture-independent files in PREFIX
1624                           [$ac_default_prefix]
1625   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1626                           [PREFIX]
1627
1628 By default, \`make install' will install all the files in
1629 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1630 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1631 for instance \`--prefix=\$HOME'.
1632
1633 For better control, use the options below.
1634
1635 Fine tuning of the installation directories:
1636   --bindir=DIR           user executables [EPREFIX/bin]
1637   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1638   --libexecdir=DIR       program executables [EPREFIX/libexec]
1639   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1640   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1641   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1642   --libdir=DIR           object code libraries [EPREFIX/lib]
1643   --includedir=DIR       C header files [PREFIX/include]
1644   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1645   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1646   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1647   --infodir=DIR          info documentation [DATAROOTDIR/info]
1648   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1649   --mandir=DIR           man documentation [DATAROOTDIR/man]
1650   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1651   --htmldir=DIR          html documentation [DOCDIR]
1652   --dvidir=DIR           dvi documentation [DOCDIR]
1653   --pdfdir=DIR           pdf documentation [DOCDIR]
1654   --psdir=DIR            ps documentation [DOCDIR]
1655 _ACEOF
1656
1657   cat <<\_ACEOF
1658
1659 X features:
1660   --x-includes=DIR    X include files are in DIR
1661   --x-libraries=DIR   X library files are in DIR
1662
1663 System types:
1664   --build=BUILD     configure for building on BUILD [guessed]
1665   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1666 _ACEOF
1667 fi
1668
1669 if test -n "$ac_init_help"; then
1670   case $ac_init_help in
1671      short | recursive ) echo "Configuration of wxWidgets 2.9.3:";;
1672    esac
1673   cat <<\_ACEOF
1674
1675 Optional Features:
1676   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1677   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1678   --disable-gui           don't build GUI parts of the library
1679   --enable-monolithic     build wxWidgets as single library
1680   --enable-plugins        build parts of wxWidgets as loadable components
1681   --enable-official_build official build of wxWidgets (win32 DLL only)
1682   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1683   --disable-all-features  disable all optional features to build minimal library
1684   --enable-universal      use wxWidgets GUI controls instead of native ones
1685   --enable-nanox          use NanoX
1686   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1687   --enable-gpe            use GNOME PDA Environment features if possible
1688   --enable-debug          build library for debugging
1689   --disable-debug_flag    disable all debugging support
1690   --enable-debug_info     generate debug information
1691   --enable-debug_gdb      create code with extra GDB debugging information
1692   --enable-debug_cntxt    obsolete, don't use: use wxDebugContext
1693   --enable-mem_tracing    obsolete, don't use: create code with memory tracing
1694   --disable-shared        create static library instead of shared
1695   --enable-stl            use standard C++ classes for everything
1696   --enable-std_containers use standard C++ container classes
1697   --enable-std_iostreams  use standard C++ stream classes
1698   --enable-std_string     use standard C++ string classes
1699  --enable-std_string_conv_in_wxstring     provide implicit conversion to std::string in wxString
1700   --disable-unicode       compile without Unicode support
1701   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1702   --enable-utf8           use UTF-8 representation for strings (Unix only)
1703   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1704   --enable-extended_rtti  use extended RTTI (XTI)
1705   --enable-omf            use OMF object format
1706   --disable-optimise      compile without optimisations
1707   --enable-profile        create code with profiling information
1708   --enable-no_rtti        create code without RTTI information
1709   --enable-no_exceptions  create code without C++ exceptions handling
1710   --enable-permissive     compile code disregarding strict ANSI
1711   --enable-no_deps        create code without dependency information
1712   --disable-vararg_macros don't use vararg macros, even if they are supported
1713   --enable-universal_binary  create universal binary with Mac PPC and i386 (and x86_64 if using Cocoa) architectures
1714   --enable-macosx_arch=ARCH  build for just the specified architecture
1715   --enable-compat26       enable wxWidgets 2.6 compatibility
1716   --disable-compat28      disable wxWidgets 2.8 compatibility
1717   --disable-rpath         disable use of rpath for uninstalled builds
1718   --enable-objc_uniquifying enable Objective-C class name uniquifying
1719   --disable-visibility    disable use of ELF symbols visibility even if supported
1720   --disable-tls           disable use of compiler TLS support
1721   --enable-intl           use internationalization system
1722   --enable-xlocale        use x-locale support (requires wxLocale)
1723   --enable-config         use wxConfig (and derived) classes
1724   --enable-protocols      use wxProtocol and derived classes
1725   --enable-ftp            use wxFTP (requires wxProtocol
1726   --enable-http           use wxHTTP (requires wxProtocol
1727   --enable-fileproto      use wxFileProto class (requires wxProtocol
1728   --enable-sockets        use socket/network classes
1729   --enable-ipv6           enable IPv6 support in wxSocket
1730   --enable-ole            use OLE classes (Win32 only)
1731   --enable-dataobj        use data object classes
1732   --enable-ipc            use interprocess communication (wxSocket etc.)
1733   --enable-baseevtloop    use event loop in console programs too
1734   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1735   --enable-selectloop     use wxSelectDispatcher class
1736   --enable-any            use wxAny class
1737   --enable-apple_ieee     use the Apple IEEE codec
1738   --enable-arcstream      use wxArchive streams
1739   --enable-base64         use base64 encoding/decoding functions
1740   --enable-backtrace      use wxStackWalker class for getting backtraces
1741   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1742   --enable-cmdline        use wxCmdLineParser class
1743   --enable-datetime       use wxDateTime class
1744   --enable-debugreport    use wxDebugReport class
1745   --enable-dialupman      use dialup network classes
1746   --enable-dynlib         use wxLibrary class for DLL loading
1747   --enable-dynamicloader  use (new) wxDynamicLibrary class
1748   --enable-exceptions     build exception-safe library
1749   --enable-ffile          use wxFFile class
1750   --enable-file           use wxFile class
1751   --enable-filehistory    use wxFileHistory class
1752   --enable-filesystem     use virtual file systems classes
1753   --enable-fontenum       use wxFontEnumerator class
1754   --enable-fontmap        use font encodings conversion classes
1755   --enable-fs_archive     use virtual archive filesystems
1756   --enable-fs_inet        use virtual HTTP/FTP filesystems
1757   --enable-fs_zip         now replaced by fs_archive
1758   --enable-fswatcher      use wxFileSystemWatcher class
1759   --enable-geometry       use geometry class
1760   --enable-log            use logging system
1761   --enable-longlong       use wxLongLong class
1762   --enable-mimetype       use wxMimeTypesManager
1763   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1764   --enable-snglinst       use wxSingleInstanceChecker class
1765   --enable-sound          use wxSound class
1766   --enable-stdpaths       use wxStandardPaths class
1767   --enable-stopwatch      use wxStopWatch class
1768   --enable-streams        use wxStream etc classes
1769   --enable-sysoptions     use wxSystemOptions
1770   --enable-tarstream      use wxTar streams
1771   --enable-textbuf        use wxTextBuffer class
1772   --enable-textfile       use wxTextFile class
1773   --enable-timer          use wxTimer class
1774   --enable-variant        use wxVariant class
1775   --enable-zipstream      use wxZip streams
1776   --enable-url            use wxURL class
1777   --enable-protocol       use wxProtocol class
1778   --enable-protocol-http  HTTP support in wxProtocol
1779   --enable-protocol-ftp   FTP support in wxProtocol
1780   --enable-protocol-file  FILE support in wxProtocol
1781   --enable-threads        use threads
1782   --enable-iniconf        use wxIniConfig (Win32 only)
1783   --enable-regkey         use wxRegKey class (Win32 only)
1784   --enable-docview        use document view architecture
1785   --enable-help           use help subsystem
1786   --enable-mshtmlhelp     use MS HTML Help (win32)
1787   --enable-html           use wxHTML sub-library
1788   --enable-htmlhelp       use wxHTML-based help
1789   --enable-xrc            use XRC resources sub-library
1790   --enable-aui            use AUI docking library
1791   --enable-propgrid       use wxPropertyGrid library
1792   --enable-ribbon         use wxRibbon library
1793   --enable-stc            use wxStyledTextCtrl library
1794   --enable-constraints    use layout-constraints system
1795   --enable-loggui         use standard GUI logger
1796   --enable-logwin         use wxLogWindow
1797   --enable-logdialog      use wxLogDialog
1798   --enable-mdi            use multiple document interface architecture
1799   --enable-mdidoc         use docview architecture with MDI
1800   --enable-mediactrl      use wxMediaCtrl class
1801   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1802   --enable-richtext       use wxRichTextCtrl
1803   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1804   --enable-printarch      use printing architecture
1805   --enable-svg            use wxSVGFileDC device context
1806   --enable-webkit         use wxWebKitCtrl (Mac-only, use wxWebView instead)
1807   --enable-webview        use wxWebView library
1808   --enable-graphics_ctx   use graphics context 2D drawing API
1809   --enable-clipboard      use wxClipboard class
1810   --enable-dnd            use Drag'n'Drop classes
1811   --disable-controls      disable compilation of all standard controls
1812   --enable-markup         support wxControl::SetLabelMarkup
1813   --enable-accel          use accelerators
1814   --enable-animatectrl    use wxAnimationCtrl class
1815   --enable-bannerwindow   use wxBannerWindow class
1816   --enable-artstd         use standard XPM icons in wxArtProvider
1817   --enable-arttango       use Tango icons in wxArtProvider
1818   --enable-bmpbutton      use wxBitmapButton class
1819   --enable-bmpcombobox    use wxBitmapComboBox class
1820   --enable-button         use wxButton class
1821   --enable-calendar       use wxCalendarCtrl class
1822   --enable-caret          use wxCaret class
1823   --enable-checkbox       use wxCheckBox class
1824   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1825   --enable-choice         use wxChoice class
1826   --enable-choicebook     use wxChoicebook class
1827   --enable-collpane       use wxCollapsiblePane class
1828   --enable-colourpicker   use wxColourPickerCtrl class
1829   --enable-combobox       use wxComboBox class
1830   --enable-comboctrl      use wxComboCtrl class
1831   --enable-commandlinkbutton      use wxCommmandLinkButton class
1832   --enable-dataviewctrl   use wxDataViewCtrl class
1833   --enable-datepick       use wxDatePickerCtrl class
1834   --enable-detect_sm      use code to detect X11 session manager
1835   --enable-dirpicker      use wxDirPickerCtrl class
1836   --enable-display        use wxDisplay class
1837   --enable-editablebox    use wxEditableListBox class
1838   --enable-filectrl       use wxFileCtrl class
1839   --enable-filepicker     use wxFilePickerCtrl class
1840   --enable-fontpicker     use wxFontPickerCtrl class
1841   --enable-gauge          use wxGauge class
1842   --enable-grid           use wxGrid class
1843   --enable-headerctrl     use wxHeaderCtrl class
1844   --enable-hyperlink      use wxHyperlinkCtrl class
1845   --enable-imaglist       use wxImageList class
1846   --enable-infobar        use wxInfoBar class
1847   --enable-listbook       use wxListbook class
1848   --enable-listbox        use wxListBox class
1849   --enable-listctrl       use wxListCtrl class
1850   --enable-notebook       use wxNotebook class
1851   --enable-notifmsg       use wxNotificationMessage class
1852   --enable-odcombobox     use wxOwnerDrawnComboBox class
1853   --enable-popupwin       use wxPopUpWindow class
1854   --enable-radiobox       use wxRadioBox class
1855   --enable-radiobtn       use wxRadioButton class
1856   --enable-richmsgdlg     use wxRichMessageDialog class
1857   --enable-richtooltip    use wxRichToolTip class
1858   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1859   --enable-sash           use wxSashWindow class
1860   --enable-scrollbar      use wxScrollBar class and scrollable windows
1861   --enable-searchctrl     use wxSearchCtrl class
1862   --enable-slider         use wxSlider class
1863   --enable-spinbtn        use wxSpinButton class
1864   --enable-spinctrl       use wxSpinCtrl class
1865   --enable-splitter       use wxSplitterWindow class
1866   --enable-statbmp        use wxStaticBitmap class
1867   --enable-statbox        use wxStaticBox class
1868   --enable-statline       use wxStaticLine class
1869   --enable-stattext       use wxStaticText class
1870   --enable-statusbar      use wxStatusBar class
1871   --enable-taskbaricon    use wxTaskBarIcon class
1872   --enable-tbarnative     use native wxToolBar class
1873   --enable-textctrl       use wxTextCtrl class
1874   --enable-timepick       use wxTimePickerCtrl class
1875   --enable-tipwindow      use wxTipWindow class
1876   --enable-togglebtn      use wxToggleButton class
1877   --enable-toolbar        use wxToolBar class
1878   --enable-toolbook       use wxToolbook class
1879   --enable-treebook       use wxTreebook class
1880   --enable-treectrl       use wxTreeCtrl class
1881   --enable-treelist       use wxTreeListCtrl class
1882   --enable-commondlg      use all common dialogs
1883   --enable-aboutdlg       use wxAboutBox
1884   --enable-choicedlg      use wxChoiceDialog
1885   --enable-coldlg         use wxColourDialog
1886   --enable-filedlg        use wxFileDialog
1887   --enable-finddlg        use wxFindReplaceDialog
1888   --enable-fontdlg        use wxFontDialog
1889   --enable-dirdlg         use wxDirDialog
1890   --enable-msgdlg         use wxMessageDialog
1891   --enable-numberdlg      use wxNumberEntryDialog
1892   --enable-splash         use wxSplashScreen
1893   --enable-textdlg        use wxTextDialog
1894   --enable-tipdlg         use startup tips
1895   --enable-progressdlg    use wxProgressDialog
1896   --enable-wizarddlg      use wxWizard
1897   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1898   --enable-miniframe      use wxMiniFrame class
1899   --enable-tooltips       use wxToolTip class
1900   --enable-splines        use spline drawing code
1901   --enable-mousewheel     use mousewheel
1902   --enable-validators     use wxValidator and derived classes
1903   --enable-busyinfo       use wxBusyInfo
1904   --enable-hotkey         use wxWindow::RegisterHotKey()
1905   --enable-joystick       use wxJoystick
1906   --enable-metafiles      use wxMetaFile
1907   --enable-dragimage      use wxDragImage
1908   --enable-accessibility  enable accessibility support
1909   --enable-uiactionsim    use wxUIActionSimulator (experimental)
1910   --enable-dctransform    use wxDC::SetTransformMatrix and related
1911   --enable-webview-webkit use wxWebView WebKit backend
1912   --enable-palette        use wxPalette class
1913   --enable-image          use wxImage class
1914   --enable-gif            use gif images (GIF file format)
1915   --enable-pcx            use pcx images (PCX file format)
1916   --enable-tga            use tga images (TGA file format)
1917   --enable-iff            use iff images (IFF file format)
1918   --enable-pnm            use pnm images (PNM file format)
1919   --enable-xpm            use xpm images (XPM file format)
1920   --enable-ico_cur        use Windows ICO and CUR formats
1921   --enable-dccache        cache temporary wxDC objects (Win32 only)
1922   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1923   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1924   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1925   --enable-wxdib          use wxDIB class (Win32 only)
1926   --enable-webview-ie     use wxWebView IE backend (Win32 only)
1927   --enable-autoidman      use automatic ids management
1928   --disable-largefile     omit support for large files
1929   --disable-gtktest       do not try to compile and run a test GTK+ program
1930   --disable-gtktest       Do not try to compile and run a test GTK program
1931   --disable-sdltest       Do not try to compile and run a test SDL program
1932   --enable-omf            use OMF object format (OS/2)
1933   --disable-dependency-tracking
1934                           don't use dependency tracking even if the compiler
1935                           can
1936   --disable-precomp-headers
1937                           don't use precompiled headers even if compiler can
1938
1939 Optional Packages:
1940   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1941   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1942   --without-subdirs       don't generate makefiles for samples/demos/...
1943   --with-flavour=NAME     specify a name to identify this build
1944   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1945   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1946   --with-motif            use Motif/Lesstif
1947   --with-osx_carbon       use Mac OS X (Carbon)
1948   --with-osx_cocoa        use Mac OS X (Cocoa)
1949   --with-osx_iphone       use iPhone OS X port
1950   --with-osx              use Mac OS X (default port, currently Carbon)
1951   --with-carbon           same as --with-osx_carbon
1952   --with-cocoa            same as --with-osx_cocoa
1953   --with-iphone           same as --with-osx_iphone
1954   --with-mac              same as --with-osx
1955   --with-old_cocoa        use old, deprecated, Cocoa port
1956   --with-wine             use Wine
1957   --with-msw              use MS-Windows
1958   --with-pm               use OS/2 Presentation Manager
1959   --with-mgl              use SciTech MGL
1960   --with-directfb         use DirectFB
1961   --with-microwin         use MicroWindows
1962   --with-x11              use X11
1963   --with-libpng           use libpng (PNG image format)
1964   --with-libjpeg          use libjpeg (JPEG file format)
1965   --with-libtiff          use libtiff (TIFF file format)
1966   --with-libxpm           use libxpm (XPM file format)
1967   --with-libiconv         use libiconv (character conversion)
1968   --with-libmspack        use libmspack (CHM help files loading)
1969   --without-gtkprint      don't use GTK printing support
1970   --without-gnomeprint    don't use GNOME printing libraries
1971   --with-gnomevfs         use GNOME VFS for associating MIME types
1972   --with-hildon           use Hildon framework for Nokia 770/800/810
1973   --with-opengl           use OpenGL (or Mesa)
1974   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1975   --with-sdl              use SDL for audio on Unix
1976   --with-regex            enable support for wxRegEx class
1977   --with-zlib             use zlib for LZW compression
1978   --with-expat            enable XML support using expat parser
1979   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1980   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1981   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1982   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1983   --with-x                use the X Window System
1984   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1985   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1986   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1987   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1988   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1989
1990 Some influential environment variables:
1991   CC          C compiler command
1992   CFLAGS      C compiler flags
1993   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1994               nonstandard directory <lib dir>
1995   LIBS        libraries to pass to the linker, e.g. -l<library>
1996   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1997               you have headers in a nonstandard directory <include dir>
1998   CPP         C preprocessor
1999   CXX         C++ compiler command
2000   CXXFLAGS    C++ compiler flags
2001   CXXCPP      C++ preprocessor
2002   PKG_CONFIG  path to pkg-config utility
2003   DIRECTFB_CFLAGS
2004               C compiler flags for DIRECTFB, overriding pkg-config
2005   DIRECTFB_LIBS
2006               linker flags for DIRECTFB, overriding pkg-config
2007   XMKMF       Path to xmkmf, Makefile generator for X Window System
2008   PANGOX_CFLAGS
2009               C compiler flags for PANGOX, overriding pkg-config
2010   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
2011   PANGOFT2_CFLAGS
2012               C compiler flags for PANGOFT2, overriding pkg-config
2013   PANGOFT2_LIBS
2014               linker flags for PANGOFT2, overriding pkg-config
2015   PANGOXFT_CFLAGS
2016               C compiler flags for PANGOXFT, overriding pkg-config
2017   PANGOXFT_LIBS
2018               linker flags for PANGOXFT, overriding pkg-config
2019   GTKPRINT_CFLAGS
2020               C compiler flags for GTKPRINT, overriding pkg-config
2021   GTKPRINT_LIBS
2022               linker flags for GTKPRINT, overriding pkg-config
2023   LIBGNOMEPRINTUI_CFLAGS
2024               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2025   LIBGNOMEPRINTUI_LIBS
2026               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2027   GNOMEVFS_CFLAGS
2028               C compiler flags for GNOMEVFS, overriding pkg-config
2029   GNOMEVFS_LIBS
2030               linker flags for GNOMEVFS, overriding pkg-config
2031   HILDON_CFLAGS
2032               C compiler flags for HILDON, overriding pkg-config
2033   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2034   HILDON2_CFLAGS
2035               C compiler flags for HILDON2, overriding pkg-config
2036   HILDON2_LIBS
2037               linker flags for HILDON2, overriding pkg-config
2038   CAIRO_CFLAGS
2039               C compiler flags for CAIRO, overriding pkg-config
2040   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2041   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2042   GST_LIBS    linker flags for GST, overriding pkg-config
2043
2044 Use these variables to override the choices made by `configure' or to help
2045 it to find libraries and programs with nonstandard names/locations.
2046
2047 Report bugs to <wx-dev@lists.wxwidgets.org>.
2048 _ACEOF
2049 ac_status=$?
2050 fi
2051
2052 if test "$ac_init_help" = "recursive"; then
2053   # If there are subdirs, report their specific --help.
2054   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2055     test -d "$ac_dir" || continue
2056     ac_builddir=.
2057
2058 case "$ac_dir" in
2059 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2060 *)
2061   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2062   # A ".." for each directory in $ac_dir_suffix.
2063   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2064   case $ac_top_builddir_sub in
2065   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2066   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2067   esac ;;
2068 esac
2069 ac_abs_top_builddir=$ac_pwd
2070 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2071 # for backward compatibility:
2072 ac_top_builddir=$ac_top_build_prefix
2073
2074 case $srcdir in
2075   .)  # We are building in place.
2076     ac_srcdir=.
2077     ac_top_srcdir=$ac_top_builddir_sub
2078     ac_abs_top_srcdir=$ac_pwd ;;
2079   [\\/]* | ?:[\\/]* )  # Absolute name.
2080     ac_srcdir=$srcdir$ac_dir_suffix;
2081     ac_top_srcdir=$srcdir
2082     ac_abs_top_srcdir=$srcdir ;;
2083   *) # Relative name.
2084     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2085     ac_top_srcdir=$ac_top_build_prefix$srcdir
2086     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2087 esac
2088 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2089
2090     cd "$ac_dir" || { ac_status=$?; continue; }
2091     # Check for guested configure.
2092     if test -f "$ac_srcdir/configure.gnu"; then
2093       echo &&
2094       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2095     elif test -f "$ac_srcdir/configure"; then
2096       echo &&
2097       $SHELL "$ac_srcdir/configure" --help=recursive
2098     else
2099       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2100     fi || ac_status=$?
2101     cd "$ac_pwd" || { ac_status=$?; break; }
2102   done
2103 fi
2104
2105 test -n "$ac_init_help" && exit $ac_status
2106 if $ac_init_version; then
2107   cat <<\_ACEOF
2108 wxWidgets configure 2.9.3
2109 generated by GNU Autoconf 2.61
2110
2111 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2112 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2113 This configure script is free software; the Free Software Foundation
2114 gives unlimited permission to copy, distribute and modify it.
2115 _ACEOF
2116   exit
2117 fi
2118 cat >config.log <<_ACEOF
2119 This file contains any messages produced by compilers while
2120 running configure, to aid debugging if configure makes a mistake.
2121
2122 It was created by wxWidgets $as_me 2.9.3, which was
2123 generated by GNU Autoconf 2.61.  Invocation command line was
2124
2125   $ $0 $@
2126
2127 _ACEOF
2128 exec 5>>config.log
2129 {
2130 cat <<_ASUNAME
2131 ## --------- ##
2132 ## Platform. ##
2133 ## --------- ##
2134
2135 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2136 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2137 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2138 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2139 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2140
2141 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2142 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2143
2144 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2145 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2146 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2147 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2148 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2149 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2150 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2151
2152 _ASUNAME
2153
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2156 do
2157   IFS=$as_save_IFS
2158   test -z "$as_dir" && as_dir=.
2159   echo "PATH: $as_dir"
2160 done
2161 IFS=$as_save_IFS
2162
2163 } >&5
2164
2165 cat >&5 <<_ACEOF
2166
2167
2168 ## ----------- ##
2169 ## Core tests. ##
2170 ## ----------- ##
2171
2172 _ACEOF
2173
2174
2175 # Keep a trace of the command line.
2176 # Strip out --no-create and --no-recursion so they do not pile up.
2177 # Strip out --silent because we don't want to record it for future runs.
2178 # Also quote any args containing shell meta-characters.
2179 # Make two passes to allow for proper duplicate-argument suppression.
2180 ac_configure_args=
2181 ac_configure_args0=
2182 ac_configure_args1=
2183 ac_must_keep_next=false
2184 for ac_pass in 1 2
2185 do
2186   for ac_arg
2187   do
2188     case $ac_arg in
2189     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2190     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2191     | -silent | --silent | --silen | --sile | --sil)
2192       continue ;;
2193     *\'*)
2194       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2195     esac
2196     case $ac_pass in
2197     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2198     2)
2199       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2200       if test $ac_must_keep_next = true; then
2201         ac_must_keep_next=false # Got value, back to normal.
2202       else
2203         case $ac_arg in
2204           *=* | --config-cache | -C | -disable-* | --disable-* \
2205           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2206           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2207           | -with-* | --with-* | -without-* | --without-* | --x)
2208             case "$ac_configure_args0 " in
2209               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2210             esac
2211             ;;
2212           -* ) ac_must_keep_next=true ;;
2213         esac
2214       fi
2215       ac_configure_args="$ac_configure_args '$ac_arg'"
2216       ;;
2217     esac
2218   done
2219 done
2220 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2221 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2222
2223 # When interrupted or exit'd, cleanup temporary files, and complete
2224 # config.log.  We remove comments because anyway the quotes in there
2225 # would cause problems or look ugly.
2226 # WARNING: Use '\'' to represent an apostrophe within the trap.
2227 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2228 trap 'exit_status=$?
2229   # Save into config.log some information that might help in debugging.
2230   {
2231     echo
2232
2233     cat <<\_ASBOX
2234 ## ---------------- ##
2235 ## Cache variables. ##
2236 ## ---------------- ##
2237 _ASBOX
2238     echo
2239     # The following way of writing the cache mishandles newlines in values,
2240 (
2241   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2242     eval ac_val=\$$ac_var
2243     case $ac_val in #(
2244     *${as_nl}*)
2245       case $ac_var in #(
2246       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2247 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2248       esac
2249       case $ac_var in #(
2250       _ | IFS | as_nl) ;; #(
2251       *) $as_unset $ac_var ;;
2252       esac ;;
2253     esac
2254   done
2255   (set) 2>&1 |
2256     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2257     *${as_nl}ac_space=\ *)
2258       sed -n \
2259         "s/'\''/'\''\\\\'\'''\''/g;
2260           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2261       ;; #(
2262     *)
2263       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2264       ;;
2265     esac |
2266     sort
2267 )
2268     echo
2269
2270     cat <<\_ASBOX
2271 ## ----------------- ##
2272 ## Output variables. ##
2273 ## ----------------- ##
2274 _ASBOX
2275     echo
2276     for ac_var in $ac_subst_vars
2277     do
2278       eval ac_val=\$$ac_var
2279       case $ac_val in
2280       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281       esac
2282       echo "$ac_var='\''$ac_val'\''"
2283     done | sort
2284     echo
2285
2286     if test -n "$ac_subst_files"; then
2287       cat <<\_ASBOX
2288 ## ------------------- ##
2289 ## File substitutions. ##
2290 ## ------------------- ##
2291 _ASBOX
2292       echo
2293       for ac_var in $ac_subst_files
2294       do
2295         eval ac_val=\$$ac_var
2296         case $ac_val in
2297         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2298         esac
2299         echo "$ac_var='\''$ac_val'\''"
2300       done | sort
2301       echo
2302     fi
2303
2304     if test -s confdefs.h; then
2305       cat <<\_ASBOX
2306 ## ----------- ##
2307 ## confdefs.h. ##
2308 ## ----------- ##
2309 _ASBOX
2310       echo
2311       cat confdefs.h
2312       echo
2313     fi
2314     test "$ac_signal" != 0 &&
2315       echo "$as_me: caught signal $ac_signal"
2316     echo "$as_me: exit $exit_status"
2317   } >&5
2318   rm -f core *.core core.conftest.* &&
2319     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2320     exit $exit_status
2321 ' 0
2322 for ac_signal in 1 2 13 15; do
2323   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2324 done
2325 ac_signal=0
2326
2327 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2328 rm -f -r conftest* confdefs.h
2329
2330 # Predefined preprocessor variables.
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_NAME "$PACKAGE_NAME"
2334 _ACEOF
2335
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2339 _ACEOF
2340
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2344 _ACEOF
2345
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_STRING "$PACKAGE_STRING"
2349 _ACEOF
2350
2351
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2354 _ACEOF
2355
2356
2357 # Let the site file select an alternate cache file if it wants to.
2358 # Prefer explicitly selected file to automatically selected ones.
2359 if test -n "$CONFIG_SITE"; then
2360   set x "$CONFIG_SITE"
2361 elif test "x$prefix" != xNONE; then
2362   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2363 else
2364   set x "$ac_default_prefix/share/config.site" \
2365         "$ac_default_prefix/etc/config.site"
2366 fi
2367 shift
2368 for ac_site_file
2369 do
2370   if test -r "$ac_site_file"; then
2371     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2372 echo "$as_me: loading site script $ac_site_file" >&6;}
2373     sed 's/^/| /' "$ac_site_file" >&5
2374     . "$ac_site_file"
2375   fi
2376 done
2377
2378 if test -r "$cache_file"; then
2379   # Some versions of bash will fail to source /dev/null (special
2380   # files actually), so we avoid doing that.
2381   if test -f "$cache_file"; then
2382     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2383 echo "$as_me: loading cache $cache_file" >&6;}
2384     case $cache_file in
2385       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2386       *)                      . "./$cache_file";;
2387     esac
2388   fi
2389 else
2390   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2391 echo "$as_me: creating cache $cache_file" >&6;}
2392   >$cache_file
2393 fi
2394
2395 # Check that the precious variables saved in the cache have kept the same
2396 # value.
2397 ac_cache_corrupted=false
2398 for ac_var in $ac_precious_vars; do
2399   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400   eval ac_new_set=\$ac_env_${ac_var}_set
2401   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402   eval ac_new_val=\$ac_env_${ac_var}_value
2403   case $ac_old_set,$ac_new_set in
2404     set,)
2405       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2406 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2407       ac_cache_corrupted=: ;;
2408     ,set)
2409       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2410 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2411       ac_cache_corrupted=: ;;
2412     ,);;
2413     *)
2414       if test "x$ac_old_val" != "x$ac_new_val"; then
2415         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2416 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2417         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2418 echo "$as_me:   former value:  $ac_old_val" >&2;}
2419         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2420 echo "$as_me:   current value: $ac_new_val" >&2;}
2421         ac_cache_corrupted=:
2422       fi;;
2423   esac
2424   # Pass precious variables to config.status.
2425   if test "$ac_new_set" = set; then
2426     case $ac_new_val in
2427     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2428     *) ac_arg=$ac_var=$ac_new_val ;;
2429     esac
2430     case " $ac_configure_args " in
2431       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2432       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2433     esac
2434   fi
2435 done
2436 if $ac_cache_corrupted; then
2437   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2438 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2439   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2440 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2441    { (exit 1); exit 1; }; }
2442 fi
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468 ac_ext=c
2469 ac_cpp='$CPP $CPPFLAGS'
2470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2473
2474
2475
2476
2477
2478 ac_aux_dir=
2479 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2480   if test -f "$ac_dir/install-sh"; then
2481     ac_aux_dir=$ac_dir
2482     ac_install_sh="$ac_aux_dir/install-sh -c"
2483     break
2484   elif test -f "$ac_dir/install.sh"; then
2485     ac_aux_dir=$ac_dir
2486     ac_install_sh="$ac_aux_dir/install.sh -c"
2487     break
2488   elif test -f "$ac_dir/shtool"; then
2489     ac_aux_dir=$ac_dir
2490     ac_install_sh="$ac_aux_dir/shtool install -c"
2491     break
2492   fi
2493 done
2494 if test -z "$ac_aux_dir"; then
2495   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2496 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2497    { (exit 1); exit 1; }; }
2498 fi
2499
2500 # These three variables are undocumented and unsupported,
2501 # and are intended to be withdrawn in a future Autoconf release.
2502 # They can cause serious problems if a builder's source tree is in a directory
2503 # whose full name contains unusual characters.
2504 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2505 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2506 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2507
2508
2509 # Make sure we can run config.sub.
2510 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2511   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2512 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2513    { (exit 1); exit 1; }; }
2514
2515 { echo "$as_me:$LINENO: checking build system type" >&5
2516 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2517 if test "${ac_cv_build+set}" = set; then
2518   echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520   ac_build_alias=$build_alias
2521 test "x$ac_build_alias" = x &&
2522   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2523 test "x$ac_build_alias" = x &&
2524   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2525 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2526    { (exit 1); exit 1; }; }
2527 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2528   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2529 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2530    { (exit 1); exit 1; }; }
2531
2532 fi
2533 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2534 echo "${ECHO_T}$ac_cv_build" >&6; }
2535 case $ac_cv_build in
2536 *-*-*) ;;
2537 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2538 echo "$as_me: error: invalid value of canonical build" >&2;}
2539    { (exit 1); exit 1; }; };;
2540 esac
2541 build=$ac_cv_build
2542 ac_save_IFS=$IFS; IFS='-'
2543 set x $ac_cv_build
2544 shift
2545 build_cpu=$1
2546 build_vendor=$2
2547 shift; shift
2548 # Remember, the first character of IFS is used to create $*,
2549 # except with old shells:
2550 build_os=$*
2551 IFS=$ac_save_IFS
2552 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2553
2554
2555 { echo "$as_me:$LINENO: checking host system type" >&5
2556 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2557 if test "${ac_cv_host+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   if test "x$host_alias" = x; then
2561   ac_cv_host=$ac_cv_build
2562 else
2563   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2564     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2565 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2566    { (exit 1); exit 1; }; }
2567 fi
2568
2569 fi
2570 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2571 echo "${ECHO_T}$ac_cv_host" >&6; }
2572 case $ac_cv_host in
2573 *-*-*) ;;
2574 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2575 echo "$as_me: error: invalid value of canonical host" >&2;}
2576    { (exit 1); exit 1; }; };;
2577 esac
2578 host=$ac_cv_host
2579 ac_save_IFS=$IFS; IFS='-'
2580 set x $ac_cv_host
2581 shift
2582 host_cpu=$1
2583 host_vendor=$2
2584 shift; shift
2585 # Remember, the first character of IFS is used to create $*,
2586 # except with old shells:
2587 host_os=$*
2588 IFS=$ac_save_IFS
2589 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2590
2591
2592
2593 if test "$cross_compiling" != "no"; then
2594     HOST_PREFIX="${host_alias}-"
2595     HOST_SUFFIX="-$host_alias"
2596 else
2597     HOST_PREFIX=
2598     HOST_SUFFIX=
2599 fi
2600
2601
2602 wx_major_version_number=2
2603 wx_minor_version_number=9
2604 wx_release_number=3
2605 wx_subrelease_number=0
2606
2607 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2608 WX_VERSION=$WX_RELEASE.$wx_release_number
2609 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2610
2611 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2612
2613
2614 wx_top_builddir="`pwd`"
2615
2616
2617
2618
2619 USE_UNIX=1
2620 USE_OS2=0
2621 USE_WIN32=0
2622 USE_DOS=0
2623 USE_BEOS=0
2624 USE_MAC=0
2625
2626 USE_AIX=
2627 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2628 USE_GNU=                            USE_HPUX=
2629 USE_LINUX=
2630 USE_NETBSD=
2631 USE_OPENBSD=
2632 USE_OSF=                            USE_SGI=
2633 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2634 USE_ULTRIX=
2635 USE_UNIXWARE=
2636
2637 USE_ALPHA=
2638
2639 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2640
2641 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
2642
2643 DEFAULT_wxUSE_OLD_COCOA=0
2644 DEFAULT_wxUSE_GTK=0
2645 DEFAULT_wxUSE_OSX_CARBON=0
2646 DEFAULT_wxUSE_OSX_COCOA=0
2647 DEFAULT_wxUSE_OSX_IPHONE=0
2648 DEFAULT_wxUSE_MGL=0
2649 DEFAULT_wxUSE_MICROWIN=0
2650 DEFAULT_wxUSE_MOTIF=0
2651 DEFAULT_wxUSE_MSW=0
2652 DEFAULT_wxUSE_PM=0
2653 DEFAULT_wxUSE_X11=0
2654 DEFAULT_wxUSE_DFB=0
2655
2656 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2657 DEFAULT_DEFAULT_wxUSE_GTK=0
2658 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2659 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2660 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2661 DEFAULT_DEFAULT_wxUSE_MGL=0
2662 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2663 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2664 DEFAULT_DEFAULT_wxUSE_MSW=0
2665 DEFAULT_DEFAULT_wxUSE_PM=0
2666 DEFAULT_DEFAULT_wxUSE_X11=0
2667 DEFAULT_DEFAULT_wxUSE_DFB=0
2668
2669 PROGRAM_EXT=
2670 SAMPLES_RPATH_FLAG=
2671 DYLIB_RPATH_INSTALL=
2672 DYLIB_RPATH_POSTLINK=
2673
2674 DEFAULT_STD_FLAG=yes
2675
2676 case "${host}" in
2677   *-hp-hpux* )
2678     USE_HPUX=1
2679     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2680     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2681     cat >>confdefs.h <<\_ACEOF
2682 #define __HPUX__ 1
2683 _ACEOF
2684
2685
2686             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2687   ;;
2688   *-*-linux* )
2689     USE_LINUX=1
2690     cat >>confdefs.h <<\_ACEOF
2691 #define __LINUX__ 1
2692 _ACEOF
2693
2694     TMP=`uname -m`
2695     if test "x$TMP" = "xalpha"; then
2696       USE_ALPHA=1
2697       cat >>confdefs.h <<\_ACEOF
2698 #define __ALPHA__ 1
2699 _ACEOF
2700
2701     fi
2702     DEFAULT_DEFAULT_wxUSE_GTK=1
2703   ;;
2704   *-*-gnu* | *-*-k*bsd*-gnu )
2705     USE_GNU=1
2706     TMP=`uname -m`
2707     if test "x$TMP" = "xalpha"; then
2708       USE_ALPHA=1
2709       cat >>confdefs.h <<\_ACEOF
2710 #define __ALPHA__ 1
2711 _ACEOF
2712
2713     fi
2714     DEFAULT_DEFAULT_wxUSE_GTK=1
2715   ;;
2716   *-*-irix5* | *-*-irix6* )
2717     USE_SGI=1
2718     USE_SVR4=1
2719     cat >>confdefs.h <<\_ACEOF
2720 #define __SGI__ 1
2721 _ACEOF
2722
2723     cat >>confdefs.h <<\_ACEOF
2724 #define __SVR4__ 1
2725 _ACEOF
2726
2727     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2728   ;;
2729   *-*-qnx*)
2730     USE_QNX=1
2731     cat >>confdefs.h <<\_ACEOF
2732 #define __QNX__ 1
2733 _ACEOF
2734
2735     DEFAULT_DEFAULT_wxUSE_X11=1
2736   ;;
2737   *-*-solaris2* )
2738     USE_SUN=1
2739     USE_SOLARIS=1
2740     USE_SVR4=1
2741     cat >>confdefs.h <<\_ACEOF
2742 #define __SUN__ 1
2743 _ACEOF
2744
2745     cat >>confdefs.h <<\_ACEOF
2746 #define __SOLARIS__ 1
2747 _ACEOF
2748
2749     cat >>confdefs.h <<\_ACEOF
2750 #define __SVR4__ 1
2751 _ACEOF
2752
2753     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2754     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2755   ;;
2756   *-*-sunos4* )
2757     USE_SUN=1
2758     USE_SUNOS=1
2759     USE_BSD=1
2760     cat >>confdefs.h <<\_ACEOF
2761 #define __SUN__ 1
2762 _ACEOF
2763
2764     cat >>confdefs.h <<\_ACEOF
2765 #define __SUNOS__ 1
2766 _ACEOF
2767
2768     cat >>confdefs.h <<\_ACEOF
2769 #define __BSD__ 1
2770 _ACEOF
2771
2772     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2773   ;;
2774   *-*-freebsd*)
2775     USE_BSD=1
2776     USE_FREEBSD=1
2777     cat >>confdefs.h <<\_ACEOF
2778 #define __FREEBSD__ 1
2779 _ACEOF
2780
2781     cat >>confdefs.h <<\_ACEOF
2782 #define __BSD__ 1
2783 _ACEOF
2784
2785     DEFAULT_DEFAULT_wxUSE_GTK=1
2786   ;;
2787   *-*-openbsd*|*-*-mirbsd*)
2788     USE_BSD=1
2789     USE_OPENBSD=1
2790     cat >>confdefs.h <<\_ACEOF
2791 #define __OPENBSD__ 1
2792 _ACEOF
2793
2794     cat >>confdefs.h <<\_ACEOF
2795 #define __BSD__ 1
2796 _ACEOF
2797
2798     DEFAULT_DEFAULT_wxUSE_GTK=1
2799   ;;
2800   *-*-netbsd*)
2801     USE_BSD=1
2802     USE_NETBSD=1
2803     cat >>confdefs.h <<\_ACEOF
2804 #define __NETBSD__ 1
2805 _ACEOF
2806
2807     cat >>confdefs.h <<\_ACEOF
2808 #define __BSD__ 1
2809 _ACEOF
2810
2811     DEFAULT_DEFAULT_wxUSE_GTK=1
2812     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2813
2814             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2815   ;;
2816   *-*-osf* )
2817     USE_ALPHA=1
2818     USE_OSF=1
2819     cat >>confdefs.h <<\_ACEOF
2820 #define __ALPHA__ 1
2821 _ACEOF
2822
2823     cat >>confdefs.h <<\_ACEOF
2824 #define __OSF__ 1
2825 _ACEOF
2826
2827     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2828     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2829   ;;
2830   *-*-dgux5* )
2831     USE_ALPHA=1
2832     USE_SVR4=1
2833     cat >>confdefs.h <<\_ACEOF
2834 #define __ALPHA__ 1
2835 _ACEOF
2836
2837     cat >>confdefs.h <<\_ACEOF
2838 #define __SVR4__ 1
2839 _ACEOF
2840
2841     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2842   ;;
2843   *-*-sysv5* )
2844     USE_SYSV=1
2845     USE_SVR4=1
2846     cat >>confdefs.h <<\_ACEOF
2847 #define __SYSV__ 1
2848 _ACEOF
2849
2850     cat >>confdefs.h <<\_ACEOF
2851 #define __SVR4__ 1
2852 _ACEOF
2853
2854     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2855   ;;
2856   *-*-aix* )
2857     USE_AIX=1
2858     USE_SYSV=1
2859     USE_SVR4=1
2860     cat >>confdefs.h <<\_ACEOF
2861 #define __AIX__ 1
2862 _ACEOF
2863
2864     cat >>confdefs.h <<\_ACEOF
2865 #define __SYSV__ 1
2866 _ACEOF
2867
2868     cat >>confdefs.h <<\_ACEOF
2869 #define __SVR4__ 1
2870 _ACEOF
2871
2872     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2873   ;;
2874
2875   *-*-*UnixWare*)
2876     USE_SYSV=1
2877     USE_SVR4=1
2878     USE_UNIXWARE=1
2879     cat >>confdefs.h <<\_ACEOF
2880 #define __UNIXWARE__ 1
2881 _ACEOF
2882
2883   ;;
2884
2885   *-*-cygwin* | *-*-mingw32* )
2886                 PROGRAM_EXT=".exe"
2887     DEFAULT_DEFAULT_wxUSE_MSW=1
2888   ;;
2889
2890   *-pc-msdosdjgpp )
2891     USE_UNIX=0
2892     USE_DOS=1
2893     cat >>confdefs.h <<\_ACEOF
2894 #define __DOS__ 1
2895 _ACEOF
2896
2897     PROGRAM_EXT=".exe"
2898     DEFAULT_DEFAULT_wxUSE_MGL=1
2899   ;;
2900
2901   *-pc-os2_emx | *-pc-os2-emx )
2902     cat >>confdefs.h <<\_ACEOF
2903 #define __EMX__ 1
2904 _ACEOF
2905
2906     USE_OS2=1
2907     cat >>confdefs.h <<\_ACEOF
2908 #define __OS2__ 1
2909 _ACEOF
2910
2911     PROGRAM_EXT=".exe"
2912     DEFAULT_DEFAULT_wxUSE_PM=1
2913         CXX=gcc
2914     LDFLAGS="$LDFLAGS -Zcrtdll"
2915                         ac_executable_extensions=".exe"
2916     export ac_executable_extensions
2917             ac_save_IFS="$IFS"
2918     IFS='\\'
2919     ac_TEMP_PATH=
2920     for ac_dir in $PATH; do
2921       IFS=$ac_save_IFS
2922       if test -z "$ac_TEMP_PATH"; then
2923         ac_TEMP_PATH="$ac_dir"
2924       else
2925         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2926       fi
2927     done
2928     export PATH="$ac_TEMP_PATH"
2929     unset ac_TEMP_PATH
2930     DEFAULT_STD_FLAG=no
2931   ;;
2932
2933   arm-apple-darwin*)
2934         USE_BSD=1
2935     USE_DARWIN=1
2936     cat >>confdefs.h <<\_ACEOF
2937 #define __BSD__ 1
2938 _ACEOF
2939
2940     cat >>confdefs.h <<\_ACEOF
2941 #define __DARWIN__ 1
2942 _ACEOF
2943
2944     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2945   ;;
2946
2947   *-*-darwin* )
2948         USE_BSD=1
2949     USE_DARWIN=1
2950     cat >>confdefs.h <<\_ACEOF
2951 #define __BSD__ 1
2952 _ACEOF
2953
2954     cat >>confdefs.h <<\_ACEOF
2955 #define __DARWIN__ 1
2956 _ACEOF
2957
2958     cat >>confdefs.h <<\_ACEOF
2959 #define TARGET_CARBON 1
2960 _ACEOF
2961
2962     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2963   ;;
2964
2965   *-*-beos* )
2966         USE_BEOS=1
2967     cat >>confdefs.h <<\_ACEOF
2968 #define __BEOS__ 1
2969 _ACEOF
2970
2971   ;;
2972
2973   *)
2974     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2975 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2976     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2977 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2978
2979     DEFAULT_DEFAULT_wxUSE_X11=1
2980     DEFAULT_wxUSE_SHARED=no
2981 esac
2982
2983
2984
2985 DEFAULT_wxUSE_ALL_FEATURES=yes
2986
2987 DEFAULT_wxUSE_STD_CONTAINERS=no
2988 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2989 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2990
2991 DEFAULT_wxUSE_DMALLOC=no
2992 DEFAULT_wxUSE_LIBGNOMEVFS=no
2993 DEFAULT_wxUSE_LIBHILDON=no
2994 DEFAULT_wxUSE_LIBHILDON2=no
2995 DEFAULT_wxUSE_LIBMSPACK=no
2996 DEFAULT_wxUSE_LIBSDL=no
2997
2998 DEFAULT_wxUSE_ACCESSIBILITY=no
2999 DEFAULT_wxUSE_IPV6=no
3000 DEFAULT_wxUSE_GSTREAMER8=no
3001
3002 DEFAULT_wxUSE_ARTPROVIDER_TANGO=auto
3003 DEFAULT_wxUSE_UNICODE_UTF8=auto
3004 DEFAULT_wxUSE_OPENGL=auto
3005 DEFAULT_wxUSE_MEDIACTRL=auto
3006 DEFAULT_wxUSE_COMPILER_TLS=auto
3007 DEFAULT_wxUSE_HOTKEY=auto
3008 DEFAULT_wxUSE_METAFILE=auto
3009
3010 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
3011
3012 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3013 DEFAULT_wxUSE_MAC_ARCH=no
3014
3015 DEFAULT_wxUSE_OFFICIAL_BUILD=no
3016
3017 DEFAULT_wxUSE_GTK2=yes
3018
3019 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3020
3021
3022
3023
3024
3025           enablestring=disable
3026           defaultval=
3027           if test -z "$defaultval"; then
3028               if test x"$enablestring" = xdisable; then
3029                   defaultval=yes
3030               else
3031                   defaultval=no
3032               fi
3033           fi
3034
3035           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3036 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3037           # Check whether --enable-gui was given.
3038 if test "${enable_gui+set}" = set; then
3039   enableval=$enable_gui;
3040                           if test "$enableval" = yes; then
3041                             wx_cv_use_gui='wxUSE_GUI=yes'
3042                           else
3043                             wx_cv_use_gui='wxUSE_GUI=no'
3044                           fi
3045
3046 else
3047
3048                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3049
3050 fi
3051
3052
3053           eval "$wx_cv_use_gui"
3054
3055           if test x"$enablestring" = xdisable; then
3056             if test $wxUSE_GUI = no; then
3057               result=yes
3058             else
3059               result=no
3060             fi
3061           else
3062             result=$wxUSE_GUI
3063           fi
3064
3065           { echo "$as_me:$LINENO: result: $result" >&5
3066 echo "${ECHO_T}$result" >&6; }
3067
3068
3069           enablestring=
3070           defaultval=
3071           if test -z "$defaultval"; then
3072               if test x"$enablestring" = xdisable; then
3073                   defaultval=yes
3074               else
3075                   defaultval=no
3076               fi
3077           fi
3078
3079           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3080 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3081           # Check whether --enable-monolithic was given.
3082 if test "${enable_monolithic+set}" = set; then
3083   enableval=$enable_monolithic;
3084                           if test "$enableval" = yes; then
3085                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3086                           else
3087                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3088                           fi
3089
3090 else
3091
3092                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3093
3094 fi
3095
3096
3097           eval "$wx_cv_use_monolithic"
3098
3099           if test x"$enablestring" = xdisable; then
3100             if test $wxUSE_MONOLITHIC = no; then
3101               result=yes
3102             else
3103               result=no
3104             fi
3105           else
3106             result=$wxUSE_MONOLITHIC
3107           fi
3108
3109           { echo "$as_me:$LINENO: result: $result" >&5
3110 echo "${ECHO_T}$result" >&6; }
3111
3112
3113           enablestring=
3114           defaultval=
3115           if test -z "$defaultval"; then
3116               if test x"$enablestring" = xdisable; then
3117                   defaultval=yes
3118               else
3119                   defaultval=no
3120               fi
3121           fi
3122
3123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3124 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3125           # Check whether --enable-plugins was given.
3126 if test "${enable_plugins+set}" = set; then
3127   enableval=$enable_plugins;
3128                           if test "$enableval" = yes; then
3129                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3130                           else
3131                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3132                           fi
3133
3134 else
3135
3136                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3137
3138 fi
3139
3140
3141           eval "$wx_cv_use_plugins"
3142
3143           if test x"$enablestring" = xdisable; then
3144             if test $wxUSE_PLUGINS = no; then
3145               result=yes
3146             else
3147               result=no
3148             fi
3149           else
3150             result=$wxUSE_PLUGINS
3151           fi
3152
3153           { echo "$as_me:$LINENO: result: $result" >&5
3154 echo "${ECHO_T}$result" >&6; }
3155
3156
3157           withstring=without
3158           defaultval=$wxUSE_ALL_FEATURES
3159           if test -z "$defaultval"; then
3160               if test x"$withstring" = xwithout; then
3161                   defaultval=yes
3162               else
3163                   defaultval=no
3164               fi
3165           fi
3166           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3167 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3168
3169 # Check whether --with-subdirs was given.
3170 if test "${with_subdirs+set}" = set; then
3171   withval=$with_subdirs;
3172                         if test "$withval" = yes; then
3173                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3174                         else
3175                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3176                         fi
3177
3178 else
3179
3180                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3181
3182 fi
3183
3184
3185           eval "$wx_cv_use_subdirs"
3186
3187           if test x"$withstring" = xwithout; then
3188             if test $wxWITH_SUBDIRS = yes; then
3189               result=no
3190             else
3191               result=yes
3192             fi
3193           else
3194             result=$wxWITH_SUBDIRS
3195           fi
3196
3197           { echo "$as_me:$LINENO: result: $result" >&5
3198 echo "${ECHO_T}$result" >&6; }
3199
3200
3201 # Check whether --with-flavour was given.
3202 if test "${with_flavour+set}" = set; then
3203   withval=$with_flavour; WX_FLAVOUR="$withval"
3204 fi
3205
3206
3207           enablestring=
3208           defaultval=
3209           if test -z "$defaultval"; then
3210               if test x"$enablestring" = xdisable; then
3211                   defaultval=yes
3212               else
3213                   defaultval=no
3214               fi
3215           fi
3216
3217           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3218 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3219           # Check whether --enable-official_build was given.
3220 if test "${enable_official_build+set}" = set; then
3221   enableval=$enable_official_build;
3222                           if test "$enableval" = yes; then
3223                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3224                           else
3225                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3226                           fi
3227
3228 else
3229
3230                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3231
3232 fi
3233
3234
3235           eval "$wx_cv_use_official_build"
3236
3237           if test x"$enablestring" = xdisable; then
3238             if test $wxUSE_OFFICIAL_BUILD = no; then
3239               result=yes
3240             else
3241               result=no
3242             fi
3243           else
3244             result=$wxUSE_OFFICIAL_BUILD
3245           fi
3246
3247           { echo "$as_me:$LINENO: result: $result" >&5
3248 echo "${ECHO_T}$result" >&6; }
3249
3250 # Check whether --enable-vendor was given.
3251 if test "${enable_vendor+set}" = set; then
3252   enableval=$enable_vendor; VENDOR="$enableval"
3253 fi
3254
3255 if test "x$VENDOR" = "x"; then
3256     VENDOR="custom"
3257 fi
3258
3259
3260           enablestring=disable
3261           defaultval=
3262           if test -z "$defaultval"; then
3263               if test x"$enablestring" = xdisable; then
3264                   defaultval=yes
3265               else
3266                   defaultval=no
3267               fi
3268           fi
3269
3270           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3271 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3272           # Check whether --enable-all-features was given.
3273 if test "${enable_all_features+set}" = set; then
3274   enableval=$enable_all_features;
3275                           if test "$enableval" = yes; then
3276                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3277                           else
3278                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3279                           fi
3280
3281 else
3282
3283                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3284
3285 fi
3286
3287
3288           eval "$wx_cv_use_all_features"
3289
3290           if test x"$enablestring" = xdisable; then
3291             if test $wxUSE_ALL_FEATURES = no; then
3292               result=yes
3293             else
3294               result=no
3295             fi
3296           else
3297             result=$wxUSE_ALL_FEATURES
3298           fi
3299
3300           { echo "$as_me:$LINENO: result: $result" >&5
3301 echo "${ECHO_T}$result" >&6; }
3302
3303
3304 if test "$wxUSE_ALL_FEATURES" = "no"; then
3305                     DEFAULT_wxUSE_ARTPROVIDER_TANGO=no
3306     DEFAULT_wxUSE_MEDIACTRL=no
3307 fi
3308
3309
3310 if test "$wxUSE_GUI" = "yes"; then
3311
3312
3313           enablestring=
3314           defaultval=
3315           if test -z "$defaultval"; then
3316               if test x"$enablestring" = xdisable; then
3317                   defaultval=yes
3318               else
3319                   defaultval=no
3320               fi
3321           fi
3322
3323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3324 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3325           # Check whether --enable-universal was given.
3326 if test "${enable_universal+set}" = set; then
3327   enableval=$enable_universal;
3328                           if test "$enableval" = yes; then
3329                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3330                           else
3331                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3332                           fi
3333
3334 else
3335
3336                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3337
3338 fi
3339
3340
3341           eval "$wx_cv_use_universal"
3342
3343           if test x"$enablestring" = xdisable; then
3344             if test $wxUSE_UNIVERSAL = no; then
3345               result=yes
3346             else
3347               result=no
3348             fi
3349           else
3350             result=$wxUSE_UNIVERSAL
3351           fi
3352
3353           { echo "$as_me:$LINENO: result: $result" >&5
3354 echo "${ECHO_T}$result" >&6; }
3355
3356 if test "$wxUSE_UNIVERSAL" = "yes"; then
3357
3358 # Check whether --with-themes was given.
3359 if test "${with_themes+set}" = set; then
3360   withval=$with_themes; wxUNIV_THEMES="$withval"
3361 fi
3362
3363 fi
3364
3365
3366 # Check whether --with-gtk was given.
3367 if test "${with_gtk+set}" = set; then
3368   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3369 fi
3370
3371
3372 # Check whether --with-motif was given.
3373 if test "${with_motif+set}" = set; then
3374   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3375 fi
3376
3377
3378 # Check whether --with-osx_carbon was given.
3379 if test "${with_osx_carbon+set}" = set; then
3380   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3381 fi
3382
3383
3384 # Check whether --with-osx_cocoa was given.
3385 if test "${with_osx_cocoa+set}" = set; then
3386   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3387 fi
3388
3389
3390 # Check whether --with-osx_iphone was given.
3391 if test "${with_osx_iphone+set}" = set; then
3392   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3393 fi
3394
3395
3396 # Check whether --with-osx was given.
3397 if test "${with_osx+set}" = set; then
3398   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3399 fi
3400
3401
3402 # Check whether --with-carbon was given.
3403 if test "${with_carbon+set}" = set; then
3404   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3405 fi
3406
3407
3408 # Check whether --with-cocoa was given.
3409 if test "${with_cocoa+set}" = set; then
3410   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3411 fi
3412
3413
3414 # Check whether --with-iphone was given.
3415 if test "${with_iphone+set}" = set; then
3416   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3417 fi
3418
3419
3420 # Check whether --with-mac was given.
3421 if test "${with_mac+set}" = set; then
3422   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3423 fi
3424
3425
3426 # Check whether --with-old_cocoa was given.
3427 if test "${with_old_cocoa+set}" = set; then
3428   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3429 fi
3430
3431
3432 # Check whether --with-wine was given.
3433 if test "${with_wine+set}" = set; then
3434   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3435 fi
3436
3437
3438 # Check whether --with-msw was given.
3439 if test "${with_msw+set}" = set; then
3440   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3441 fi
3442
3443
3444 # Check whether --with-pm was given.
3445 if test "${with_pm+set}" = set; then
3446   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3447 fi
3448
3449
3450 # Check whether --with-mgl was given.
3451 if test "${with_mgl+set}" = set; then
3452   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3453 fi
3454
3455
3456 # Check whether --with-directfb was given.
3457 if test "${with_directfb+set}" = set; then
3458   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3459 fi
3460
3461
3462 # Check whether --with-microwin was given.
3463 if test "${with_microwin+set}" = set; then
3464   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3465 fi
3466
3467
3468 # Check whether --with-x11 was given.
3469 if test "${with_x11+set}" = set; then
3470   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3471 fi
3472
3473
3474           enablestring=
3475           defaultval=
3476           if test -z "$defaultval"; then
3477               if test x"$enablestring" = xdisable; then
3478                   defaultval=yes
3479               else
3480                   defaultval=no
3481               fi
3482           fi
3483
3484           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3485 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3486           # Check whether --enable-nanox was given.
3487 if test "${enable_nanox+set}" = set; then
3488   enableval=$enable_nanox;
3489                           if test "$enableval" = yes; then
3490                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3491                           else
3492                             wx_cv_use_nanox='wxUSE_NANOX=no'
3493                           fi
3494
3495 else
3496
3497                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3498
3499 fi
3500
3501
3502           eval "$wx_cv_use_nanox"
3503
3504           if test x"$enablestring" = xdisable; then
3505             if test $wxUSE_NANOX = no; then
3506               result=yes
3507             else
3508               result=no
3509             fi
3510           else
3511             result=$wxUSE_NANOX
3512           fi
3513
3514           { echo "$as_me:$LINENO: result: $result" >&5
3515 echo "${ECHO_T}$result" >&6; }
3516
3517
3518 # Check whether --enable-gtk2 was given.
3519 if test "${enable_gtk2+set}" = set; then
3520   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3521 fi
3522
3523
3524           enablestring=
3525           defaultval=
3526           if test -z "$defaultval"; then
3527               if test x"$enablestring" = xdisable; then
3528                   defaultval=yes
3529               else
3530                   defaultval=no
3531               fi
3532           fi
3533
3534           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3535 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3536           # Check whether --enable-gpe was given.
3537 if test "${enable_gpe+set}" = set; then
3538   enableval=$enable_gpe;
3539                           if test "$enableval" = yes; then
3540                             wx_cv_use_gpe='wxUSE_GPE=yes'
3541                           else
3542                             wx_cv_use_gpe='wxUSE_GPE=no'
3543                           fi
3544
3545 else
3546
3547                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3548
3549 fi
3550
3551
3552           eval "$wx_cv_use_gpe"
3553
3554           if test x"$enablestring" = xdisable; then
3555             if test $wxUSE_GPE = no; then
3556               result=yes
3557             else
3558               result=no
3559             fi
3560           else
3561             result=$wxUSE_GPE
3562           fi
3563
3564           { echo "$as_me:$LINENO: result: $result" >&5
3565 echo "${ECHO_T}$result" >&6; }
3566
3567
3568
3569 { echo "$as_me:$LINENO: checking for toolkit" >&5
3570 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3571
3572
3573
3574 # In Wine, we need to default to MSW, not GTK or MOTIF
3575 if test "$wxUSE_WINE" = "yes"; then
3576     DEFAULT_DEFAULT_wxUSE_GTK=0
3577     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3578     DEFAULT_DEFAULT_wxUSE_MSW=1
3579     wxUSE_SHARED=no
3580     CC=${CC:-winegcc}
3581     CXX=${CXX:-wineg++}
3582 fi
3583
3584
3585 if test "$wxUSE_GUI" = "yes"; then
3586
3587     if test "$USE_BEOS" = 1; then
3588         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3589 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3590    { (exit 1); exit 1; }; }
3591     fi
3592
3593     if test "$TOOLKIT_GIVEN" = 1; then
3594             for toolkit in $ALL_TOOLKITS; do
3595         var=wxUSE_$toolkit
3596         eval "value=\$${var}"
3597         if test "x$value" = "xno"; then
3598           eval "$var=0"
3599         elif test "x$value" != "x"; then
3600           eval "$var=1"
3601         fi
3602
3603         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3604           eval "wx${toolkit}_VERSION=$value"
3605         fi
3606       done
3607     else
3608             for toolkit in $ALL_TOOLKITS; do
3609         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3610         eval "wxUSE_$toolkit=\$${var}"
3611       done
3612     fi
3613
3614             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3615                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3616                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3617
3618         case "${host}" in
3619       *-pc-os2_emx | *-pc-os2-emx )
3620         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3621     esac
3622
3623     case "$NUM_TOOLKITS" in
3624       1)
3625       ;;
3626       0)
3627         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3628 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3629    { (exit 1); exit 1; }; }
3630       ;;
3631       *)
3632         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3633 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3634    { (exit 1); exit 1; }; }
3635     esac
3636
3637     # to be removed when --disable-gtk2 isn't needed
3638     if test "x$wxUSE_GTK2" = "xyes"; then
3639         wxGTK_VERSION=2
3640         wxUSE_GTK1=0
3641     elif test "x$wxUSE_GTK2" = "xno"; then
3642         wxGTK_VERSION=1
3643         wxUSE_GTK1=1
3644     fi
3645
3646     for toolkit in $ALL_TOOLKITS; do
3647         var=wxUSE_$toolkit
3648         eval "value=\$${var}"
3649         if test "$value" = 1; then
3650           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3651           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3652 echo "${ECHO_T}$toolkit_echo" >&6; }
3653         fi
3654     done
3655 else
3656     if test "x$host_alias" != "x"; then
3657         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3658 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3659     else
3660         { echo "$as_me:$LINENO: result: base only" >&5
3661 echo "${ECHO_T}base only" >&6; }
3662     fi
3663 fi
3664
3665 wxUSE_MAC=0
3666 if test "$wxUSE_OSX_CARBON" = 1 \
3667        -o "$wxUSE_OSX_COCOA" = 1 \
3668        -o "$wxUSE_OSX_IPHONE" = 1; then
3669     wxUSE_MAC=1
3670 fi
3671
3672
3673
3674           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3675 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3676
3677 # Check whether --with-libpng was given.
3678 if test "${with_libpng+set}" = set; then
3679   withval=$with_libpng;
3680                         if test "$withval" = yes; then
3681                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3682                         elif test "$withval" = no; then
3683                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3684                         elif test "$withval" = sys; then
3685                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3686                         elif test "$withval" = builtin; then
3687                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3688                         else
3689                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3690 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3691    { (exit 1); exit 1; }; }
3692                         fi
3693
3694 else
3695
3696                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3697
3698 fi
3699
3700
3701           eval "$wx_cv_use_libpng"
3702
3703           if test "$wxUSE_LIBPNG" = yes; then
3704             { echo "$as_me:$LINENO: result: yes" >&5
3705 echo "${ECHO_T}yes" >&6; }
3706           elif test "$wxUSE_LIBPNG" = no; then
3707             { echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6; }
3709           elif test "$wxUSE_LIBPNG" = sys; then
3710             { echo "$as_me:$LINENO: result: system version" >&5
3711 echo "${ECHO_T}system version" >&6; }
3712           elif test "$wxUSE_LIBPNG" = builtin; then
3713             { echo "$as_me:$LINENO: result: builtin version" >&5
3714 echo "${ECHO_T}builtin version" >&6; }
3715           else
3716             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3717 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3718    { (exit 1); exit 1; }; }
3719           fi
3720
3721
3722           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3723 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3724
3725 # Check whether --with-libjpeg was given.
3726 if test "${with_libjpeg+set}" = set; then
3727   withval=$with_libjpeg;
3728                         if test "$withval" = yes; then
3729                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3730                         elif test "$withval" = no; then
3731                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3732                         elif test "$withval" = sys; then
3733                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3734                         elif test "$withval" = builtin; then
3735                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3736                         else
3737                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3738 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3739    { (exit 1); exit 1; }; }
3740                         fi
3741
3742 else
3743
3744                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3745
3746 fi
3747
3748
3749           eval "$wx_cv_use_libjpeg"
3750
3751           if test "$wxUSE_LIBJPEG" = yes; then
3752             { echo "$as_me:$LINENO: result: yes" >&5
3753 echo "${ECHO_T}yes" >&6; }
3754           elif test "$wxUSE_LIBJPEG" = no; then
3755             { echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6; }
3757           elif test "$wxUSE_LIBJPEG" = sys; then
3758             { echo "$as_me:$LINENO: result: system version" >&5
3759 echo "${ECHO_T}system version" >&6; }
3760           elif test "$wxUSE_LIBJPEG" = builtin; then
3761             { echo "$as_me:$LINENO: result: builtin version" >&5
3762 echo "${ECHO_T}builtin version" >&6; }
3763           else
3764             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3765 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3766    { (exit 1); exit 1; }; }
3767           fi
3768
3769
3770           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3771 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3772
3773 # Check whether --with-libtiff was given.
3774 if test "${with_libtiff+set}" = set; then
3775   withval=$with_libtiff;
3776                         if test "$withval" = yes; then
3777                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3778                         elif test "$withval" = no; then
3779                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3780                         elif test "$withval" = sys; then
3781                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3782                         elif test "$withval" = builtin; then
3783                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3784                         else
3785                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3786 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3787    { (exit 1); exit 1; }; }
3788                         fi
3789
3790 else
3791
3792                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3793
3794 fi
3795
3796
3797           eval "$wx_cv_use_libtiff"
3798
3799           if test "$wxUSE_LIBTIFF" = yes; then
3800             { echo "$as_me:$LINENO: result: yes" >&5
3801 echo "${ECHO_T}yes" >&6; }
3802           elif test "$wxUSE_LIBTIFF" = no; then
3803             { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3805           elif test "$wxUSE_LIBTIFF" = sys; then
3806             { echo "$as_me:$LINENO: result: system version" >&5
3807 echo "${ECHO_T}system version" >&6; }
3808           elif test "$wxUSE_LIBTIFF" = builtin; then
3809             { echo "$as_me:$LINENO: result: builtin version" >&5
3810 echo "${ECHO_T}builtin version" >&6; }
3811           else
3812             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3813 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3814    { (exit 1); exit 1; }; }
3815           fi
3816
3817
3818           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3819 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3820
3821 # Check whether --with-libxpm was given.
3822 if test "${with_libxpm+set}" = set; then
3823   withval=$with_libxpm;
3824                         if test "$withval" = yes; then
3825                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3826                         elif test "$withval" = no; then
3827                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3828                         elif test "$withval" = sys; then
3829                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3830                         elif test "$withval" = builtin; then
3831                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3832                         else
3833                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3834 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3835    { (exit 1); exit 1; }; }
3836                         fi
3837
3838 else
3839
3840                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3841
3842 fi
3843
3844
3845           eval "$wx_cv_use_libxpm"
3846
3847           if test "$wxUSE_LIBXPM" = yes; then
3848             { echo "$as_me:$LINENO: result: yes" >&5
3849 echo "${ECHO_T}yes" >&6; }
3850           elif test "$wxUSE_LIBXPM" = no; then
3851             { echo "$as_me:$LINENO: result: no" >&5
3852 echo "${ECHO_T}no" >&6; }
3853           elif test "$wxUSE_LIBXPM" = sys; then
3854             { echo "$as_me:$LINENO: result: system version" >&5
3855 echo "${ECHO_T}system version" >&6; }
3856           elif test "$wxUSE_LIBXPM" = builtin; then
3857             { echo "$as_me:$LINENO: result: builtin version" >&5
3858 echo "${ECHO_T}builtin version" >&6; }
3859           else
3860             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3861 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3862    { (exit 1); exit 1; }; }
3863           fi
3864
3865
3866           withstring=
3867           defaultval=$wxUSE_ALL_FEATURES
3868           if test -z "$defaultval"; then
3869               if test x"$withstring" = xwithout; then
3870                   defaultval=yes
3871               else
3872                   defaultval=no
3873               fi
3874           fi
3875           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3876 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3877
3878 # Check whether --with-libiconv was given.
3879 if test "${with_libiconv+set}" = set; then
3880   withval=$with_libiconv;
3881                         if test "$withval" = yes; then
3882                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3883                         else
3884                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3885                         fi
3886
3887 else
3888
3889                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3890
3891 fi
3892
3893
3894           eval "$wx_cv_use_libiconv"
3895
3896           if test x"$withstring" = xwithout; then
3897             if test $wxUSE_LIBICONV = yes; then
3898               result=no
3899             else
3900               result=yes
3901             fi
3902           else
3903             result=$wxUSE_LIBICONV
3904           fi
3905
3906           { echo "$as_me:$LINENO: result: $result" >&5
3907 echo "${ECHO_T}$result" >&6; }
3908
3909
3910           withstring=
3911           defaultval=$wxUSE_ALL_FEATURES
3912           if test -z "$defaultval"; then
3913               if test x"$withstring" = xwithout; then
3914                   defaultval=yes
3915               else
3916                   defaultval=no
3917               fi
3918           fi
3919           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3920 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3921
3922 # Check whether --with-libmspack was given.
3923 if test "${with_libmspack+set}" = set; then
3924   withval=$with_libmspack;
3925                         if test "$withval" = yes; then
3926                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3927                         else
3928                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3929                         fi
3930
3931 else
3932
3933                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3934
3935 fi
3936
3937
3938           eval "$wx_cv_use_libmspack"
3939
3940           if test x"$withstring" = xwithout; then
3941             if test $wxUSE_LIBMSPACK = yes; then
3942               result=no
3943             else
3944               result=yes
3945             fi
3946           else
3947             result=$wxUSE_LIBMSPACK
3948           fi
3949
3950           { echo "$as_me:$LINENO: result: $result" >&5
3951 echo "${ECHO_T}$result" >&6; }
3952
3953
3954           withstring=without
3955           defaultval=$wxUSE_ALL_FEATURES
3956           if test -z "$defaultval"; then
3957               if test x"$withstring" = xwithout; then
3958                   defaultval=yes
3959               else
3960                   defaultval=no
3961               fi
3962           fi
3963           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3964 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3965
3966 # Check whether --with-gtkprint was given.
3967 if test "${with_gtkprint+set}" = set; then
3968   withval=$with_gtkprint;
3969                         if test "$withval" = yes; then
3970                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3971                         else
3972                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3973                         fi
3974
3975 else
3976
3977                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3978
3979 fi
3980
3981
3982           eval "$wx_cv_use_gtkprint"
3983
3984           if test x"$withstring" = xwithout; then
3985             if test $wxUSE_GTKPRINT = yes; then
3986               result=no
3987             else
3988               result=yes
3989             fi
3990           else
3991             result=$wxUSE_GTKPRINT
3992           fi
3993
3994           { echo "$as_me:$LINENO: result: $result" >&5
3995 echo "${ECHO_T}$result" >&6; }
3996
3997
3998           withstring=without
3999           defaultval=$wxUSE_ALL_FEATURES
4000           if test -z "$defaultval"; then
4001               if test x"$withstring" = xwithout; then
4002                   defaultval=yes
4003               else
4004                   defaultval=no
4005               fi
4006           fi
4007           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
4008 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
4009
4010 # Check whether --with-gnomeprint was given.
4011 if test "${with_gnomeprint+set}" = set; then
4012   withval=$with_gnomeprint;
4013                         if test "$withval" = yes; then
4014                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4015                         else
4016                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4017                         fi
4018
4019 else
4020
4021                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
4022
4023 fi
4024
4025
4026           eval "$wx_cv_use_gnomeprint"
4027
4028           if test x"$withstring" = xwithout; then
4029             if test $wxUSE_LIBGNOMEPRINT = yes; then
4030               result=no
4031             else
4032               result=yes
4033             fi
4034           else
4035             result=$wxUSE_LIBGNOMEPRINT
4036           fi
4037
4038           { echo "$as_me:$LINENO: result: $result" >&5
4039 echo "${ECHO_T}$result" >&6; }
4040
4041
4042           withstring=
4043           defaultval=$wxUSE_ALL_FEATURES
4044           if test -z "$defaultval"; then
4045               if test x"$withstring" = xwithout; then
4046                   defaultval=yes
4047               else
4048                   defaultval=no
4049               fi
4050           fi
4051           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4052 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4053
4054 # Check whether --with-gnomevfs was given.
4055 if test "${with_gnomevfs+set}" = set; then
4056   withval=$with_gnomevfs;
4057                         if test "$withval" = yes; then
4058                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4059                         else
4060                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4061                         fi
4062
4063 else
4064
4065                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4066
4067 fi
4068
4069
4070           eval "$wx_cv_use_gnomevfs"
4071
4072           if test x"$withstring" = xwithout; then
4073             if test $wxUSE_LIBGNOMEVFS = yes; then
4074               result=no
4075             else
4076               result=yes
4077             fi
4078           else
4079             result=$wxUSE_LIBGNOMEVFS
4080           fi
4081
4082           { echo "$as_me:$LINENO: result: $result" >&5
4083 echo "${ECHO_T}$result" >&6; }
4084
4085
4086           withstring=
4087           defaultval=$wxUSE_ALL_FEATURES
4088           if test -z "$defaultval"; then
4089               if test x"$withstring" = xwithout; then
4090                   defaultval=yes
4091               else
4092                   defaultval=no
4093               fi
4094           fi
4095           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4096 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4097
4098 # Check whether --with-hildon was given.
4099 if test "${with_hildon+set}" = set; then
4100   withval=$with_hildon;
4101                         if test "$withval" = yes; then
4102                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4103                         else
4104                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4105                         fi
4106
4107 else
4108
4109                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4110
4111 fi
4112
4113
4114           eval "$wx_cv_use_hildon"
4115
4116           if test x"$withstring" = xwithout; then
4117             if test $wxUSE_LIBHILDON = yes; then
4118               result=no
4119             else
4120               result=yes
4121             fi
4122           else
4123             result=$wxUSE_LIBHILDON
4124           fi
4125
4126           { echo "$as_me:$LINENO: result: $result" >&5
4127 echo "${ECHO_T}$result" >&6; }
4128
4129
4130           withstring=
4131           defaultval=$wxUSE_ALL_FEATURES
4132           if test -z "$defaultval"; then
4133               if test x"$withstring" = xwithout; then
4134                   defaultval=yes
4135               else
4136                   defaultval=no
4137               fi
4138           fi
4139           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4140 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4141
4142 # Check whether --with-opengl was given.
4143 if test "${with_opengl+set}" = set; then
4144   withval=$with_opengl;
4145                         if test "$withval" = yes; then
4146                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4147                         else
4148                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4149                         fi
4150
4151 else
4152
4153                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4154
4155 fi
4156
4157
4158           eval "$wx_cv_use_opengl"
4159
4160           if test x"$withstring" = xwithout; then
4161             if test $wxUSE_OPENGL = yes; then
4162               result=no
4163             else
4164               result=yes
4165             fi
4166           else
4167             result=$wxUSE_OPENGL
4168           fi
4169
4170           { echo "$as_me:$LINENO: result: $result" >&5
4171 echo "${ECHO_T}$result" >&6; }
4172
4173
4174 fi
4175
4176
4177           withstring=
4178           defaultval=$wxUSE_ALL_FEATURES
4179           if test -z "$defaultval"; then
4180               if test x"$withstring" = xwithout; then
4181                   defaultval=yes
4182               else
4183                   defaultval=no
4184               fi
4185           fi
4186           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4187 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4188
4189 # Check whether --with-dmalloc was given.
4190 if test "${with_dmalloc+set}" = set; then
4191   withval=$with_dmalloc;
4192                         if test "$withval" = yes; then
4193                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4194                         else
4195                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4196                         fi
4197
4198 else
4199
4200                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4201
4202 fi
4203
4204
4205           eval "$wx_cv_use_dmalloc"
4206
4207           if test x"$withstring" = xwithout; then
4208             if test $wxUSE_DMALLOC = yes; then
4209               result=no
4210             else
4211               result=yes
4212             fi
4213           else
4214             result=$wxUSE_DMALLOC
4215           fi
4216
4217           { echo "$as_me:$LINENO: result: $result" >&5
4218 echo "${ECHO_T}$result" >&6; }
4219
4220
4221           withstring=
4222           defaultval=$wxUSE_ALL_FEATURES
4223           if test -z "$defaultval"; then
4224               if test x"$withstring" = xwithout; then
4225                   defaultval=yes
4226               else
4227                   defaultval=no
4228               fi
4229           fi
4230           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4231 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4232
4233 # Check whether --with-sdl was given.
4234 if test "${with_sdl+set}" = set; then
4235   withval=$with_sdl;
4236                         if test "$withval" = yes; then
4237                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4238                         else
4239                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4240                         fi
4241
4242 else
4243
4244                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4245
4246 fi
4247
4248
4249           eval "$wx_cv_use_sdl"
4250
4251           if test x"$withstring" = xwithout; then
4252             if test $wxUSE_LIBSDL = yes; then
4253               result=no
4254             else
4255               result=yes
4256             fi
4257           else
4258             result=$wxUSE_LIBSDL
4259           fi
4260
4261           { echo "$as_me:$LINENO: result: $result" >&5
4262 echo "${ECHO_T}$result" >&6; }
4263
4264
4265           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4266 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4267
4268 # Check whether --with-regex was given.
4269 if test "${with_regex+set}" = set; then
4270   withval=$with_regex;
4271                         if test "$withval" = yes; then
4272                           wx_cv_use_regex='wxUSE_REGEX=yes'
4273                         elif test "$withval" = no; then
4274                           wx_cv_use_regex='wxUSE_REGEX=no'
4275                         elif test "$withval" = sys; then
4276                           wx_cv_use_regex='wxUSE_REGEX=sys'
4277                         elif test "$withval" = builtin; then
4278                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4279                         else
4280                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4281 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4282    { (exit 1); exit 1; }; }
4283                         fi
4284
4285 else
4286
4287                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4288
4289 fi
4290
4291
4292           eval "$wx_cv_use_regex"
4293
4294           if test "$wxUSE_REGEX" = yes; then
4295             { echo "$as_me:$LINENO: result: yes" >&5
4296 echo "${ECHO_T}yes" >&6; }
4297           elif test "$wxUSE_REGEX" = no; then
4298             { echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; }
4300           elif test "$wxUSE_REGEX" = sys; then
4301             { echo "$as_me:$LINENO: result: system version" >&5
4302 echo "${ECHO_T}system version" >&6; }
4303           elif test "$wxUSE_REGEX" = builtin; then
4304             { echo "$as_me:$LINENO: result: builtin version" >&5
4305 echo "${ECHO_T}builtin version" >&6; }
4306           else
4307             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4308 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4309    { (exit 1); exit 1; }; }
4310           fi
4311
4312
4313           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4314 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4315
4316 # Check whether --with-zlib was given.
4317 if test "${with_zlib+set}" = set; then
4318   withval=$with_zlib;
4319                         if test "$withval" = yes; then
4320                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4321                         elif test "$withval" = no; then
4322                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4323                         elif test "$withval" = sys; then
4324                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4325                         elif test "$withval" = builtin; then
4326                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4327                         else
4328                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4329 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4330    { (exit 1); exit 1; }; }
4331                         fi
4332
4333 else
4334
4335                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4336
4337 fi
4338
4339
4340           eval "$wx_cv_use_zlib"
4341
4342           if test "$wxUSE_ZLIB" = yes; then
4343             { echo "$as_me:$LINENO: result: yes" >&5
4344 echo "${ECHO_T}yes" >&6; }
4345           elif test "$wxUSE_ZLIB" = no; then
4346             { echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6; }
4348           elif test "$wxUSE_ZLIB" = sys; then
4349             { echo "$as_me:$LINENO: result: system version" >&5
4350 echo "${ECHO_T}system version" >&6; }
4351           elif test "$wxUSE_ZLIB" = builtin; then
4352             { echo "$as_me:$LINENO: result: builtin version" >&5
4353 echo "${ECHO_T}builtin version" >&6; }
4354           else
4355             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4356 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4357    { (exit 1); exit 1; }; }
4358           fi
4359
4360
4361           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4362 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4363
4364 # Check whether --with-expat was given.
4365 if test "${with_expat+set}" = set; then
4366   withval=$with_expat;
4367                         if test "$withval" = yes; then
4368                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4369                         elif test "$withval" = no; then
4370                           wx_cv_use_expat='wxUSE_EXPAT=no'
4371                         elif test "$withval" = sys; then
4372                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4373                         elif test "$withval" = builtin; then
4374                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4375                         else
4376                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4377 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4378    { (exit 1); exit 1; }; }
4379                         fi
4380
4381 else
4382
4383                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4384
4385 fi
4386
4387
4388           eval "$wx_cv_use_expat"
4389
4390           if test "$wxUSE_EXPAT" = yes; then
4391             { echo "$as_me:$LINENO: result: yes" >&5
4392 echo "${ECHO_T}yes" >&6; }
4393           elif test "$wxUSE_EXPAT" = no; then
4394             { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4396           elif test "$wxUSE_EXPAT" = sys; then
4397             { echo "$as_me:$LINENO: result: system version" >&5
4398 echo "${ECHO_T}system version" >&6; }
4399           elif test "$wxUSE_EXPAT" = builtin; then
4400             { echo "$as_me:$LINENO: result: builtin version" >&5
4401 echo "${ECHO_T}builtin version" >&6; }
4402           else
4403             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4404 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4405    { (exit 1); exit 1; }; }
4406           fi
4407
4408
4409 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4410 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4411
4412 # Check whether --with-macosx-sdk was given.
4413 if test "${with_macosx_sdk+set}" = set; then
4414   withval=$with_macosx_sdk;
4415         wxUSE_MACOSX_SDK=$withval
4416         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4417
4418 fi
4419
4420 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4421 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4422
4423 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4424 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4425
4426 # Check whether --with-macosx-version-min was given.
4427 if test "${with_macosx_version_min+set}" = set; then
4428   withval=$with_macosx_version_min;
4429         wxUSE_MACOSX_VERSION_MIN=$withval
4430         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4431
4432 fi
4433
4434 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4435 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4436
4437
4438 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4439 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4440 # Check whether --enable-debug was given.
4441 if test "${enable_debug+set}" = set; then
4442   enableval=$enable_debug;
4443         if test "$enableval" = yes; then
4444             wxUSE_DEBUG=yes
4445         elif test "$enableval" = no; then
4446             wxUSE_DEBUG=no
4447         elif test "$enableval" = max; then
4448             wxUSE_DEBUG=yes
4449             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4450         else
4451             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4452 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4453    { (exit 1); exit 1; }; }
4454         fi
4455
4456 else
4457   wxUSE_DEBUG=default
4458
4459 fi
4460
4461
4462 case "$wxUSE_DEBUG" in
4463     yes)
4464                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4465         DEFAULT_wxUSE_DEBUG_INFO=yes
4466
4467                         DEFAULT_wxUSE_OPTIMISE=no
4468         ;;
4469
4470     no)
4471                         DEFAULT_wxUSE_DEBUG_FLAG=no
4472         DEFAULT_wxUSE_DEBUG_INFO=no
4473         ;;
4474
4475     default)
4476                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4477         DEFAULT_wxUSE_DEBUG_INFO=no
4478         ;;
4479 esac
4480
4481
4482           enablestring=disable
4483           defaultval=
4484           if test -z "$defaultval"; then
4485               if test x"$enablestring" = xdisable; then
4486                   defaultval=yes
4487               else
4488                   defaultval=no
4489               fi
4490           fi
4491
4492           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4493 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4494           # Check whether --enable-debug_flag was given.
4495 if test "${enable_debug_flag+set}" = set; then
4496   enableval=$enable_debug_flag;
4497                           if test "$enableval" = yes; then
4498                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4499                           else
4500                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4501                           fi
4502
4503 else
4504
4505                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4506
4507 fi
4508
4509
4510           eval "$wx_cv_use_debug_flag"
4511
4512           if test x"$enablestring" = xdisable; then
4513             if test $wxUSE_DEBUG_FLAG = no; then
4514               result=yes
4515             else
4516               result=no
4517             fi
4518           else
4519             result=$wxUSE_DEBUG_FLAG
4520           fi
4521
4522           { echo "$as_me:$LINENO: result: $result" >&5
4523 echo "${ECHO_T}$result" >&6; }
4524
4525
4526           enablestring=
4527           defaultval=
4528           if test -z "$defaultval"; then
4529               if test x"$enablestring" = xdisable; then
4530                   defaultval=yes
4531               else
4532                   defaultval=no
4533               fi
4534           fi
4535
4536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4537 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4538           # Check whether --enable-debug_info was given.
4539 if test "${enable_debug_info+set}" = set; then
4540   enableval=$enable_debug_info;
4541                           if test "$enableval" = yes; then
4542                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4543                           else
4544                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4545                           fi
4546
4547 else
4548
4549                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4550
4551 fi
4552
4553
4554           eval "$wx_cv_use_debug_info"
4555
4556           if test x"$enablestring" = xdisable; then
4557             if test $wxUSE_DEBUG_INFO = no; then
4558               result=yes
4559             else
4560               result=no
4561             fi
4562           else
4563             result=$wxUSE_DEBUG_INFO
4564           fi
4565
4566           { echo "$as_me:$LINENO: result: $result" >&5
4567 echo "${ECHO_T}$result" >&6; }
4568
4569
4570
4571
4572           enablestring=
4573           defaultval=
4574           if test -z "$defaultval"; then
4575               if test x"$enablestring" = xdisable; then
4576                   defaultval=yes
4577               else
4578                   defaultval=no
4579               fi
4580           fi
4581
4582           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4583 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4584           # Check whether --enable-debug_gdb was given.
4585 if test "${enable_debug_gdb+set}" = set; then
4586   enableval=$enable_debug_gdb;
4587                           if test "$enableval" = yes; then
4588                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4589                           else
4590                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4591                           fi
4592
4593 else
4594
4595                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4596
4597 fi
4598
4599
4600           eval "$wx_cv_use_debug_gdb"
4601
4602           if test x"$enablestring" = xdisable; then
4603             if test $wxUSE_DEBUG_GDB = no; then
4604               result=yes
4605             else
4606               result=no
4607             fi
4608           else
4609             result=$wxUSE_DEBUG_GDB
4610           fi
4611
4612           { echo "$as_me:$LINENO: result: $result" >&5
4613 echo "${ECHO_T}$result" >&6; }
4614
4615
4616           enablestring=
4617           defaultval=
4618           if test -z "$defaultval"; then
4619               if test x"$enablestring" = xdisable; then
4620                   defaultval=yes
4621               else
4622                   defaultval=no
4623               fi
4624           fi
4625
4626           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4627 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4628           # Check whether --enable-debug_cntxt was given.
4629 if test "${enable_debug_cntxt+set}" = set; then
4630   enableval=$enable_debug_cntxt;
4631                           if test "$enableval" = yes; then
4632                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4633                           else
4634                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4635                           fi
4636
4637 else
4638
4639                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4640
4641 fi
4642
4643
4644           eval "$wx_cv_use_debug_cntxt"
4645
4646           if test x"$enablestring" = xdisable; then
4647             if test $wxUSE_DEBUG_CONTEXT = no; then
4648               result=yes
4649             else
4650               result=no
4651             fi
4652           else
4653             result=$wxUSE_DEBUG_CONTEXT
4654           fi
4655
4656           { echo "$as_me:$LINENO: result: $result" >&5
4657 echo "${ECHO_T}$result" >&6; }
4658
4659
4660           enablestring=
4661           defaultval=
4662           if test -z "$defaultval"; then
4663               if test x"$enablestring" = xdisable; then
4664                   defaultval=yes
4665               else
4666                   defaultval=no
4667               fi
4668           fi
4669
4670           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4671 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4672           # Check whether --enable-mem_tracing was given.
4673 if test "${enable_mem_tracing+set}" = set; then
4674   enableval=$enable_mem_tracing;
4675                           if test "$enableval" = yes; then
4676                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4677                           else
4678                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4679                           fi
4680
4681 else
4682
4683                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4684
4685 fi
4686
4687
4688           eval "$wx_cv_use_mem_tracing"
4689
4690           if test x"$enablestring" = xdisable; then
4691             if test $wxUSE_MEM_TRACING = no; then
4692               result=yes
4693             else
4694               result=no
4695             fi
4696           else
4697             result=$wxUSE_MEM_TRACING
4698           fi
4699
4700           { echo "$as_me:$LINENO: result: $result" >&5
4701 echo "${ECHO_T}$result" >&6; }
4702
4703
4704
4705
4706           enablestring=disable
4707           defaultval=
4708           if test -z "$defaultval"; then
4709               if test x"$enablestring" = xdisable; then
4710                   defaultval=yes
4711               else
4712                   defaultval=no
4713               fi
4714           fi
4715
4716           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4717 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4718           # Check whether --enable-shared was given.
4719 if test "${enable_shared+set}" = set; then
4720   enableval=$enable_shared;
4721                           if test "$enableval" = yes; then
4722                             wx_cv_use_shared='wxUSE_SHARED=yes'
4723                           else
4724                             wx_cv_use_shared='wxUSE_SHARED=no'
4725                           fi
4726
4727 else
4728
4729                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4730
4731 fi
4732
4733
4734           eval "$wx_cv_use_shared"
4735
4736           if test x"$enablestring" = xdisable; then
4737             if test $wxUSE_SHARED = no; then
4738               result=yes
4739             else
4740               result=no
4741             fi
4742           else
4743             result=$wxUSE_SHARED
4744           fi
4745
4746           { echo "$as_me:$LINENO: result: $result" >&5
4747 echo "${ECHO_T}$result" >&6; }
4748
4749
4750           enablestring=
4751           defaultval=
4752           if test -z "$defaultval"; then
4753               if test x"$enablestring" = xdisable; then
4754                   defaultval=yes
4755               else
4756                   defaultval=no
4757               fi
4758           fi
4759
4760           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4761 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4762           # Check whether --enable-stl was given.
4763 if test "${enable_stl+set}" = set; then
4764   enableval=$enable_stl;
4765                           if test "$enableval" = yes; then
4766                             wx_cv_use_stl='wxUSE_STL=yes'
4767                           else
4768                             wx_cv_use_stl='wxUSE_STL=no'
4769                           fi
4770
4771 else
4772
4773                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4774
4775 fi
4776
4777
4778           eval "$wx_cv_use_stl"
4779
4780           if test x"$enablestring" = xdisable; then
4781             if test $wxUSE_STL = no; then
4782               result=yes
4783             else
4784               result=no
4785             fi
4786           else
4787             result=$wxUSE_STL
4788           fi
4789
4790           { echo "$as_me:$LINENO: result: $result" >&5
4791 echo "${ECHO_T}$result" >&6; }
4792
4793 if test "$wxUSE_STL" = "yes"; then
4794     DEFAULT_wxUSE_STD_CONTAINERS=yes
4795     DEFAULT_wxUSE_STD_IOSTREAM=yes
4796     DEFAULT_wxUSE_STD_STRING=yes
4797 fi
4798
4799           enablestring=
4800           defaultval=
4801           if test -z "$defaultval"; then
4802               if test x"$enablestring" = xdisable; then
4803                   defaultval=yes
4804               else
4805                   defaultval=no
4806               fi
4807           fi
4808
4809           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_containers" >&5
4810 echo $ECHO_N "checking for --${enablestring:-enable}-std_containers... $ECHO_C" >&6; }
4811           # Check whether --enable-std_containers was given.
4812 if test "${enable_std_containers+set}" = set; then
4813   enableval=$enable_std_containers;
4814                           if test "$enableval" = yes; then
4815                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=yes'
4816                           else
4817                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=no'
4818                           fi
4819
4820 else
4821
4822                           wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=${'DEFAULT_wxUSE_STD_CONTAINERS":-$defaultval}"
4823
4824 fi
4825
4826
4827           eval "$wx_cv_use_std_containers"
4828
4829           if test x"$enablestring" = xdisable; then
4830             if test $wxUSE_STD_CONTAINERS = no; then
4831               result=yes
4832             else
4833               result=no
4834             fi
4835           else
4836             result=$wxUSE_STD_CONTAINERS
4837           fi
4838
4839           { echo "$as_me:$LINENO: result: $result" >&5
4840 echo "${ECHO_T}$result" >&6; }
4841
4842
4843           enablestring=
4844           defaultval=
4845           if test -z "$defaultval"; then
4846               if test x"$enablestring" = xdisable; then
4847                   defaultval=yes
4848               else
4849                   defaultval=no
4850               fi
4851           fi
4852
4853           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4854 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4855           # Check whether --enable-std_iostreams was given.
4856 if test "${enable_std_iostreams+set}" = set; then
4857   enableval=$enable_std_iostreams;
4858                           if test "$enableval" = yes; then
4859                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4860                           else
4861                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4862                           fi
4863
4864 else
4865
4866                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4867
4868 fi
4869
4870
4871           eval "$wx_cv_use_std_iostreams"
4872
4873           if test x"$enablestring" = xdisable; then
4874             if test $wxUSE_STD_IOSTREAM = no; then
4875               result=yes
4876             else
4877               result=no
4878             fi
4879           else
4880             result=$wxUSE_STD_IOSTREAM
4881           fi
4882
4883           { echo "$as_me:$LINENO: result: $result" >&5
4884 echo "${ECHO_T}$result" >&6; }
4885
4886
4887           enablestring=
4888           defaultval=
4889           if test -z "$defaultval"; then
4890               if test x"$enablestring" = xdisable; then
4891                   defaultval=yes
4892               else
4893                   defaultval=no
4894               fi
4895           fi
4896
4897           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4898 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4899           # Check whether --enable-std_string was given.
4900 if test "${enable_std_string+set}" = set; then
4901   enableval=$enable_std_string;
4902                           if test "$enableval" = yes; then
4903                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4904                           else
4905                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4906                           fi
4907
4908 else
4909
4910                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4911
4912 fi
4913
4914
4915           eval "$wx_cv_use_std_string"
4916
4917           if test x"$enablestring" = xdisable; then
4918             if test $wxUSE_STD_STRING = no; then
4919               result=yes
4920             else
4921               result=no
4922             fi
4923           else
4924             result=$wxUSE_STD_STRING
4925           fi
4926
4927           { echo "$as_me:$LINENO: result: $result" >&5
4928 echo "${ECHO_T}$result" >&6; }
4929
4930
4931           enablestring=
4932           defaultval=
4933           if test -z "$defaultval"; then
4934               if test x"$enablestring" = xdisable; then
4935                   defaultval=yes
4936               else
4937                   defaultval=no
4938               fi
4939           fi
4940
4941           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string_conv_in_wxstring" >&5
4942 echo $ECHO_N "checking for --${enablestring:-enable}-std_string_conv_in_wxstring... $ECHO_C" >&6; }
4943           # Check whether --enable-std_string_conv_in_wxstring was given.
4944 if test "${enable_std_string_conv_in_wxstring+set}" = set; then
4945   enableval=$enable_std_string_conv_in_wxstring;
4946                           if test "$enableval" = yes; then
4947                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=yes'
4948                           else
4949                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=no'
4950                           fi
4951
4952 else
4953
4954                           wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=${'DEFAULT_wxUSE_STD_STRING_CONV_IN_WXSTRING":-$defaultval}"
4955
4956 fi
4957
4958
4959           eval "$wx_cv_use_std_string_conv_in_wxstring"
4960
4961           if test x"$enablestring" = xdisable; then
4962             if test $wxUSE_STD_STRING_CONV_IN_WXSTRING = no; then
4963               result=yes
4964             else
4965               result=no
4966             fi
4967           else
4968             result=$wxUSE_STD_STRING_CONV_IN_WXSTRING
4969           fi
4970
4971           { echo "$as_me:$LINENO: result: $result" >&5
4972 echo "${ECHO_T}$result" >&6; }
4973
4974
4975           enablestring=disable
4976           defaultval=
4977           if test -z "$defaultval"; then
4978               if test x"$enablestring" = xdisable; then
4979                   defaultval=yes
4980               else
4981                   defaultval=no
4982               fi
4983           fi
4984
4985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4986 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4987           # Check whether --enable-unicode was given.
4988 if test "${enable_unicode+set}" = set; then
4989   enableval=$enable_unicode;
4990                           if test "$enableval" = yes; then
4991                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4992                           else
4993                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4994                           fi
4995
4996 else
4997
4998                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4999
5000 fi
5001
5002
5003           eval "$wx_cv_use_unicode"
5004
5005           if test x"$enablestring" = xdisable; then
5006             if test $wxUSE_UNICODE = no; then
5007               result=yes
5008             else
5009               result=no
5010             fi
5011           else
5012             result=$wxUSE_UNICODE
5013           fi
5014
5015           { echo "$as_me:$LINENO: result: $result" >&5
5016 echo "${ECHO_T}$result" >&6; }
5017
5018
5019           enablestring=
5020           defaultval=
5021           if test -z "$defaultval"; then
5022               if test x"$enablestring" = xdisable; then
5023                   defaultval=yes
5024               else
5025                   defaultval=no
5026               fi
5027           fi
5028
5029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5030 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
5031           # Check whether --enable-mslu was given.
5032 if test "${enable_mslu+set}" = set; then
5033   enableval=$enable_mslu;
5034                           if test "$enableval" = yes; then
5035                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5036                           else
5037                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5038                           fi
5039
5040 else
5041
5042                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
5043
5044 fi
5045
5046
5047           eval "$wx_cv_use_mslu"
5048
5049           if test x"$enablestring" = xdisable; then
5050             if test $wxUSE_UNICODE_MSLU = no; then
5051               result=yes
5052             else
5053               result=no
5054             fi
5055           else
5056             result=$wxUSE_UNICODE_MSLU
5057           fi
5058
5059           { echo "$as_me:$LINENO: result: $result" >&5
5060 echo "${ECHO_T}$result" >&6; }
5061
5062
5063           enablestring=
5064           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5065 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
5066           # Check whether --enable-utf8 was given.
5067 if test "${enable_utf8+set}" = set; then
5068   enableval=$enable_utf8;
5069                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
5070
5071 else
5072
5073                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
5074
5075 fi
5076
5077
5078           eval "$wx_cv_use_utf8"
5079
5080           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5081 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
5082
5083
5084           enablestring=
5085           defaultval=
5086           if test -z "$defaultval"; then
5087               if test x"$enablestring" = xdisable; then
5088                   defaultval=yes
5089               else
5090                   defaultval=no
5091               fi
5092           fi
5093
5094           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5095 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5096           # Check whether --enable-utf8only was given.
5097 if test "${enable_utf8only+set}" = set; then
5098   enableval=$enable_utf8only;
5099                           if test "$enableval" = yes; then
5100                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5101                           else
5102                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5103                           fi
5104
5105 else
5106
5107                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5108
5109 fi
5110
5111
5112           eval "$wx_cv_use_utf8only"
5113
5114           if test x"$enablestring" = xdisable; then
5115             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
5116               result=yes
5117             else
5118               result=no
5119             fi
5120           else
5121             result=$wxUSE_UNICODE_UTF8_LOCALE
5122           fi
5123
5124           { echo "$as_me:$LINENO: result: $result" >&5
5125 echo "${ECHO_T}$result" >&6; }
5126
5127
5128           enablestring=
5129           defaultval=
5130           if test -z "$defaultval"; then
5131               if test x"$enablestring" = xdisable; then
5132                   defaultval=yes
5133               else
5134                   defaultval=no
5135               fi
5136           fi
5137
5138           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5139 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5140           # Check whether --enable-extended_rtti was given.
5141 if test "${enable_extended_rtti+set}" = set; then
5142   enableval=$enable_extended_rtti;
5143                           if test "$enableval" = yes; then
5144                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5145                           else
5146                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5147                           fi
5148
5149 else
5150
5151                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5152
5153 fi
5154
5155
5156           eval "$wx_cv_use_extended_rtti"
5157
5158           if test x"$enablestring" = xdisable; then
5159             if test $wxUSE_EXTENDED_RTTI = no; then
5160               result=yes
5161             else
5162               result=no
5163             fi
5164           else
5165             result=$wxUSE_EXTENDED_RTTI
5166           fi
5167
5168           { echo "$as_me:$LINENO: result: $result" >&5
5169 echo "${ECHO_T}$result" >&6; }
5170
5171 if test "$USE_OS2" = 1; then
5172     DEFAULT_wxUSE_OMF=no
5173
5174           enablestring=
5175           defaultval=
5176           if test -z "$defaultval"; then
5177               if test x"$enablestring" = xdisable; then
5178                   defaultval=yes
5179               else
5180                   defaultval=no
5181               fi
5182           fi
5183
5184           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5185 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5186           # Check whether --enable-omf was given.
5187 if test "${enable_omf+set}" = set; then
5188   enableval=$enable_omf;
5189                           if test "$enableval" = yes; then
5190                             wx_cv_use_omf='wxUSE_OMF=yes'
5191                           else
5192                             wx_cv_use_omf='wxUSE_OMF=no'
5193                           fi
5194
5195 else
5196
5197                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5198
5199 fi
5200
5201
5202           eval "$wx_cv_use_omf"
5203
5204           if test x"$enablestring" = xdisable; then
5205             if test $wxUSE_OMF = no; then
5206               result=yes
5207             else
5208               result=no
5209             fi
5210           else
5211             result=$wxUSE_OMF
5212           fi
5213
5214           { echo "$as_me:$LINENO: result: $result" >&5
5215 echo "${ECHO_T}$result" >&6; }
5216
5217 fi
5218
5219
5220           enablestring=disable
5221           defaultval=
5222           if test -z "$defaultval"; then
5223               if test x"$enablestring" = xdisable; then
5224                   defaultval=yes
5225               else
5226                   defaultval=no
5227               fi
5228           fi
5229
5230           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5231 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5232           # Check whether --enable-optimise was given.
5233 if test "${enable_optimise+set}" = set; then
5234   enableval=$enable_optimise;
5235                           if test "$enableval" = yes; then
5236                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5237                           else
5238                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5239                           fi
5240
5241 else
5242
5243                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5244
5245 fi
5246
5247
5248           eval "$wx_cv_use_optimise"
5249
5250           if test x"$enablestring" = xdisable; then
5251             if test $wxUSE_OPTIMISE = no; then
5252               result=yes
5253             else
5254               result=no
5255             fi
5256           else
5257             result=$wxUSE_OPTIMISE
5258           fi
5259
5260           { echo "$as_me:$LINENO: result: $result" >&5
5261 echo "${ECHO_T}$result" >&6; }
5262
5263
5264
5265           enablestring=
5266           defaultval=
5267           if test -z "$defaultval"; then
5268               if test x"$enablestring" = xdisable; then
5269                   defaultval=yes
5270               else
5271                   defaultval=no
5272               fi
5273           fi
5274
5275           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5276 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5277           # Check whether --enable-profile was given.
5278 if test "${enable_profile+set}" = set; then
5279   enableval=$enable_profile;
5280                           if test "$enableval" = yes; then
5281                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5282                           else
5283                             wx_cv_use_profile='wxUSE_PROFILE=no'
5284                           fi
5285
5286 else
5287
5288                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5289
5290 fi
5291
5292
5293           eval "$wx_cv_use_profile"
5294
5295           if test x"$enablestring" = xdisable; then
5296             if test $wxUSE_PROFILE = no; then
5297               result=yes
5298             else
5299               result=no
5300             fi
5301           else
5302             result=$wxUSE_PROFILE
5303           fi
5304
5305           { echo "$as_me:$LINENO: result: $result" >&5
5306 echo "${ECHO_T}$result" >&6; }
5307
5308
5309           enablestring=
5310           defaultval=
5311           if test -z "$defaultval"; then
5312               if test x"$enablestring" = xdisable; then
5313                   defaultval=yes
5314               else
5315                   defaultval=no
5316               fi
5317           fi
5318
5319           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5320 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5321           # Check whether --enable-no_rtti was given.
5322 if test "${enable_no_rtti+set}" = set; then
5323   enableval=$enable_no_rtti;
5324                           if test "$enableval" = yes; then
5325                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5326                           else
5327                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5328                           fi
5329
5330 else
5331
5332                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5333
5334 fi
5335
5336
5337           eval "$wx_cv_use_no_rtti"
5338
5339           if test x"$enablestring" = xdisable; then
5340             if test $wxUSE_NO_RTTI = no; then
5341               result=yes
5342             else
5343               result=no
5344             fi
5345           else
5346             result=$wxUSE_NO_RTTI
5347           fi
5348
5349           { echo "$as_me:$LINENO: result: $result" >&5
5350 echo "${ECHO_T}$result" >&6; }
5351
5352
5353           enablestring=
5354           defaultval=
5355           if test -z "$defaultval"; then
5356               if test x"$enablestring" = xdisable; then
5357                   defaultval=yes
5358               else
5359                   defaultval=no
5360               fi
5361           fi
5362
5363           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5364 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5365           # Check whether --enable-no_exceptions was given.
5366 if test "${enable_no_exceptions+set}" = set; then
5367   enableval=$enable_no_exceptions;
5368                           if test "$enableval" = yes; then
5369                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5370                           else
5371                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5372                           fi
5373
5374 else
5375
5376                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5377
5378 fi
5379
5380
5381           eval "$wx_cv_use_no_exceptions"
5382
5383           if test x"$enablestring" = xdisable; then
5384             if test $wxUSE_NO_EXCEPTIONS = no; then
5385               result=yes
5386             else
5387               result=no
5388             fi
5389           else
5390             result=$wxUSE_NO_EXCEPTIONS
5391           fi
5392
5393           { echo "$as_me:$LINENO: result: $result" >&5
5394 echo "${ECHO_T}$result" >&6; }
5395
5396
5397           enablestring=
5398           defaultval=
5399           if test -z "$defaultval"; then
5400               if test x"$enablestring" = xdisable; then
5401                   defaultval=yes
5402               else
5403                   defaultval=no
5404               fi
5405           fi
5406
5407           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5408 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5409           # Check whether --enable-permissive was given.
5410 if test "${enable_permissive+set}" = set; then
5411   enableval=$enable_permissive;
5412                           if test "$enableval" = yes; then
5413                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5414                           else
5415                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5416                           fi
5417
5418 else
5419
5420                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5421
5422 fi
5423
5424
5425           eval "$wx_cv_use_permissive"
5426
5427           if test x"$enablestring" = xdisable; then
5428             if test $wxUSE_PERMISSIVE = no; then
5429               result=yes
5430             else
5431               result=no
5432             fi
5433           else
5434             result=$wxUSE_PERMISSIVE
5435           fi
5436
5437           { echo "$as_me:$LINENO: result: $result" >&5
5438 echo "${ECHO_T}$result" >&6; }
5439
5440
5441           enablestring=
5442           defaultval=
5443           if test -z "$defaultval"; then
5444               if test x"$enablestring" = xdisable; then
5445                   defaultval=yes
5446               else
5447                   defaultval=no
5448               fi
5449           fi
5450
5451           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5452 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5453           # Check whether --enable-no_deps was given.
5454 if test "${enable_no_deps+set}" = set; then
5455   enableval=$enable_no_deps;
5456                           if test "$enableval" = yes; then
5457                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5458                           else
5459                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5460                           fi
5461
5462 else
5463
5464                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5465
5466 fi
5467
5468
5469           eval "$wx_cv_use_no_deps"
5470
5471           if test x"$enablestring" = xdisable; then
5472             if test $wxUSE_NO_DEPS = no; then
5473               result=yes
5474             else
5475               result=no
5476             fi
5477           else
5478             result=$wxUSE_NO_DEPS
5479           fi
5480
5481           { echo "$as_me:$LINENO: result: $result" >&5
5482 echo "${ECHO_T}$result" >&6; }
5483
5484
5485           enablestring=disable
5486           defaultval=
5487           if test -z "$defaultval"; then
5488               if test x"$enablestring" = xdisable; then
5489                   defaultval=yes
5490               else
5491                   defaultval=no
5492               fi
5493           fi
5494
5495           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5496 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5497           # Check whether --enable-vararg_macros was given.
5498 if test "${enable_vararg_macros+set}" = set; then
5499   enableval=$enable_vararg_macros;
5500                           if test "$enableval" = yes; then
5501                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5502                           else
5503                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5504                           fi
5505
5506 else
5507
5508                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5509
5510 fi
5511
5512
5513           eval "$wx_cv_use_vararg_macros"
5514
5515           if test x"$enablestring" = xdisable; then
5516             if test $wxUSE_VARARG_MACROS = no; then
5517               result=yes
5518             else
5519               result=no
5520             fi
5521           else
5522             result=$wxUSE_VARARG_MACROS
5523           fi
5524
5525           { echo "$as_me:$LINENO: result: $result" >&5
5526 echo "${ECHO_T}$result" >&6; }
5527
5528
5529
5530           enablestring=
5531           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5532 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5533           # Check whether --enable-universal_binary was given.
5534 if test "${enable_universal_binary+set}" = set; then
5535   enableval=$enable_universal_binary;
5536                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5537
5538 else
5539
5540                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5541
5542 fi
5543
5544
5545           eval "$wx_cv_use_universal_binary"
5546
5547           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5548 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5549
5550
5551           enablestring=
5552           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-macosx_arch" >&5
5553 echo $ECHO_N "checking for --${enablestring:-enable}-macosx_arch... $ECHO_C" >&6; }
5554           # Check whether --enable-macosx_arch was given.
5555 if test "${enable_macosx_arch+set}" = set; then
5556   enableval=$enable_macosx_arch;
5557                           wx_cv_use_macosx_arch="wxUSE_MAC_ARCH='$enableval'"
5558
5559 else
5560
5561                           wx_cv_use_macosx_arch='wxUSE_MAC_ARCH='$DEFAULT_wxUSE_MAC_ARCH
5562
5563 fi
5564
5565
5566           eval "$wx_cv_use_macosx_arch"
5567
5568           { echo "$as_me:$LINENO: result: $wxUSE_MAC_ARCH" >&5
5569 echo "${ECHO_T}$wxUSE_MAC_ARCH" >&6; }
5570
5571
5572
5573           enablestring=
5574           defaultval=
5575           if test -z "$defaultval"; then
5576               if test x"$enablestring" = xdisable; then
5577                   defaultval=yes
5578               else
5579                   defaultval=no
5580               fi
5581           fi
5582
5583           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5584 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5585           # Check whether --enable-compat26 was given.
5586 if test "${enable_compat26+set}" = set; then
5587   enableval=$enable_compat26;
5588                           if test "$enableval" = yes; then
5589                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5590                           else
5591                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5592                           fi
5593
5594 else
5595
5596                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5597
5598 fi
5599
5600
5601           eval "$wx_cv_use_compat26"
5602
5603           if test x"$enablestring" = xdisable; then
5604             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5605               result=yes
5606             else
5607               result=no
5608             fi
5609           else
5610             result=$WXWIN_COMPATIBILITY_2_6
5611           fi
5612
5613           { echo "$as_me:$LINENO: result: $result" >&5
5614 echo "${ECHO_T}$result" >&6; }
5615
5616
5617           enablestring=disable
5618           defaultval=
5619           if test -z "$defaultval"; then
5620               if test x"$enablestring" = xdisable; then
5621                   defaultval=yes
5622               else
5623                   defaultval=no
5624               fi
5625           fi
5626
5627           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5628 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5629           # Check whether --enable-compat28 was given.
5630 if test "${enable_compat28+set}" = set; then
5631   enableval=$enable_compat28;
5632                           if test "$enableval" = yes; then
5633                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5634                           else
5635                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5636                           fi
5637
5638 else
5639
5640                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5641
5642 fi
5643
5644
5645           eval "$wx_cv_use_compat28"
5646
5647           if test x"$enablestring" = xdisable; then
5648             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5649               result=yes
5650             else
5651               result=no
5652             fi
5653           else
5654             result=$WXWIN_COMPATIBILITY_2_8
5655           fi
5656
5657           { echo "$as_me:$LINENO: result: $result" >&5
5658 echo "${ECHO_T}$result" >&6; }
5659
5660
5661
5662           enablestring=disable
5663           defaultval=
5664           if test -z "$defaultval"; then
5665               if test x"$enablestring" = xdisable; then
5666                   defaultval=yes
5667               else
5668                   defaultval=no
5669               fi
5670           fi
5671
5672           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5673 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5674           # Check whether --enable-rpath was given.
5675 if test "${enable_rpath+set}" = set; then
5676   enableval=$enable_rpath;
5677                           if test "$enableval" = yes; then
5678                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5679                           else
5680                             wx_cv_use_rpath='wxUSE_RPATH=no'
5681                           fi
5682
5683 else
5684
5685                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5686
5687 fi
5688
5689
5690           eval "$wx_cv_use_rpath"
5691
5692           if test x"$enablestring" = xdisable; then
5693             if test $wxUSE_RPATH = no; then
5694               result=yes
5695             else
5696               result=no
5697             fi
5698           else
5699             result=$wxUSE_RPATH
5700           fi
5701
5702           { echo "$as_me:$LINENO: result: $result" >&5
5703 echo "${ECHO_T}$result" >&6; }
5704
5705
5706
5707           enablestring=
5708           defaultval=
5709           if test -z "$defaultval"; then
5710               if test x"$enablestring" = xdisable; then
5711                   defaultval=yes
5712               else
5713                   defaultval=no
5714               fi
5715           fi
5716
5717           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5718 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5719           # Check whether --enable-objc_uniquifying was given.
5720 if test "${enable_objc_uniquifying+set}" = set; then
5721   enableval=$enable_objc_uniquifying;
5722                           if test "$enableval" = yes; then
5723                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5724                           else
5725                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5726                           fi
5727
5728 else
5729
5730                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5731
5732 fi
5733
5734
5735           eval "$wx_cv_use_objc_uniquifying"
5736
5737           if test x"$enablestring" = xdisable; then
5738             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5739               result=yes
5740             else
5741               result=no
5742             fi
5743           else
5744             result=$wxUSE_OBJC_UNIQUIFYING
5745           fi
5746
5747           { echo "$as_me:$LINENO: result: $result" >&5
5748 echo "${ECHO_T}$result" >&6; }
5749
5750
5751
5752           enablestring=disable
5753           defaultval=
5754           if test -z "$defaultval"; then
5755               if test x"$enablestring" = xdisable; then
5756                   defaultval=yes
5757               else
5758                   defaultval=no
5759               fi
5760           fi
5761
5762           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5763 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5764           # Check whether --enable-visibility was given.
5765 if test "${enable_visibility+set}" = set; then
5766   enableval=$enable_visibility;
5767                           if test "$enableval" = yes; then
5768                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5769                           else
5770                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5771                           fi
5772
5773 else
5774
5775                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5776
5777 fi
5778
5779
5780           eval "$wx_cv_use_visibility"
5781
5782           if test x"$enablestring" = xdisable; then
5783             if test $wxUSE_VISIBILITY = no; then
5784               result=yes
5785             else
5786               result=no
5787             fi
5788           else
5789             result=$wxUSE_VISIBILITY
5790           fi
5791
5792           { echo "$as_me:$LINENO: result: $result" >&5
5793 echo "${ECHO_T}$result" >&6; }
5794
5795
5796           enablestring=disable
5797           defaultval=
5798           if test -z "$defaultval"; then
5799               if test x"$enablestring" = xdisable; then
5800                   defaultval=yes
5801               else
5802                   defaultval=no
5803               fi
5804           fi
5805
5806           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5807 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5808           # Check whether --enable-tls was given.
5809 if test "${enable_tls+set}" = set; then
5810   enableval=$enable_tls;
5811                           if test "$enableval" = yes; then
5812                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5813                           else
5814                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5815                           fi
5816
5817 else
5818
5819                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5820
5821 fi
5822
5823
5824           eval "$wx_cv_use_tls"
5825
5826           if test x"$enablestring" = xdisable; then
5827             if test $wxUSE_COMPILER_TLS = no; then
5828               result=yes
5829             else
5830               result=no
5831             fi
5832           else
5833             result=$wxUSE_COMPILER_TLS
5834           fi
5835
5836           { echo "$as_me:$LINENO: result: $result" >&5
5837 echo "${ECHO_T}$result" >&6; }
5838
5839
5840
5841
5842           enablestring=
5843           defaultval=$wxUSE_ALL_FEATURES
5844           if test -z "$defaultval"; then
5845               if test x"$enablestring" = xdisable; then
5846                   defaultval=yes
5847               else
5848                   defaultval=no
5849               fi
5850           fi
5851
5852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5853 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5854           # Check whether --enable-intl was given.
5855 if test "${enable_intl+set}" = set; then
5856   enableval=$enable_intl;
5857                           if test "$enableval" = yes; then
5858                             wx_cv_use_intl='wxUSE_INTL=yes'
5859                           else
5860                             wx_cv_use_intl='wxUSE_INTL=no'
5861                           fi
5862
5863 else
5864
5865                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5866
5867 fi
5868
5869
5870           eval "$wx_cv_use_intl"
5871
5872           if test x"$enablestring" = xdisable; then
5873             if test $wxUSE_INTL = no; then
5874               result=yes
5875             else
5876               result=no
5877             fi
5878           else
5879             result=$wxUSE_INTL
5880           fi
5881
5882           { echo "$as_me:$LINENO: result: $result" >&5
5883 echo "${ECHO_T}$result" >&6; }
5884
5885
5886           enablestring=
5887           defaultval=$wxUSE_ALL_FEATURES
5888           if test -z "$defaultval"; then
5889               if test x"$enablestring" = xdisable; then
5890                   defaultval=yes
5891               else
5892                   defaultval=no
5893               fi
5894           fi
5895
5896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5897 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5898           # Check whether --enable-xlocale was given.
5899 if test "${enable_xlocale+set}" = set; then
5900   enableval=$enable_xlocale;
5901                           if test "$enableval" = yes; then
5902                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5903                           else
5904                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5905                           fi
5906
5907 else
5908
5909                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5910
5911 fi
5912
5913
5914           eval "$wx_cv_use_xlocale"
5915
5916           if test x"$enablestring" = xdisable; then
5917             if test $wxUSE_XLOCALE = no; then
5918               result=yes
5919             else
5920               result=no
5921             fi
5922           else
5923             result=$wxUSE_XLOCALE
5924           fi
5925
5926           { echo "$as_me:$LINENO: result: $result" >&5
5927 echo "${ECHO_T}$result" >&6; }
5928
5929
5930           enablestring=
5931           defaultval=$wxUSE_ALL_FEATURES
5932           if test -z "$defaultval"; then
5933               if test x"$enablestring" = xdisable; then
5934                   defaultval=yes
5935               else
5936                   defaultval=no
5937               fi
5938           fi
5939
5940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5941 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5942           # Check whether --enable-config was given.
5943 if test "${enable_config+set}" = set; then
5944   enableval=$enable_config;
5945                           if test "$enableval" = yes; then
5946                             wx_cv_use_config='wxUSE_CONFIG=yes'
5947                           else
5948                             wx_cv_use_config='wxUSE_CONFIG=no'
5949                           fi
5950
5951 else
5952
5953                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5954
5955 fi
5956
5957
5958           eval "$wx_cv_use_config"
5959
5960           if test x"$enablestring" = xdisable; then
5961             if test $wxUSE_CONFIG = no; then
5962               result=yes
5963             else
5964               result=no
5965             fi
5966           else
5967             result=$wxUSE_CONFIG
5968           fi
5969
5970           { echo "$as_me:$LINENO: result: $result" >&5
5971 echo "${ECHO_T}$result" >&6; }
5972
5973
5974
5975           enablestring=
5976           defaultval=$wxUSE_ALL_FEATURES
5977           if test -z "$defaultval"; then
5978               if test x"$enablestring" = xdisable; then
5979                   defaultval=yes
5980               else
5981                   defaultval=no
5982               fi
5983           fi
5984
5985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5986 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5987           # Check whether --enable-protocols was given.
5988 if test "${enable_protocols+set}" = set; then
5989   enableval=$enable_protocols;
5990                           if test "$enableval" = yes; then
5991                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5992                           else
5993                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5994                           fi
5995
5996 else
5997
5998                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5999
6000 fi
6001
6002
6003           eval "$wx_cv_use_protocols"
6004
6005           if test x"$enablestring" = xdisable; then
6006             if test $wxUSE_PROTOCOL = no; then
6007               result=yes
6008             else
6009               result=no
6010             fi
6011           else
6012             result=$wxUSE_PROTOCOL
6013           fi
6014
6015           { echo "$as_me:$LINENO: result: $result" >&5
6016 echo "${ECHO_T}$result" >&6; }
6017
6018
6019           enablestring=
6020           defaultval=$wxUSE_ALL_FEATURES
6021           if test -z "$defaultval"; then
6022               if test x"$enablestring" = xdisable; then
6023                   defaultval=yes
6024               else
6025                   defaultval=no
6026               fi
6027           fi
6028
6029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6030 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6031           # Check whether --enable-ftp was given.
6032 if test "${enable_ftp+set}" = set; then
6033   enableval=$enable_ftp;
6034                           if test "$enableval" = yes; then
6035                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6036                           else
6037                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6038                           fi
6039
6040 else
6041
6042                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6043
6044 fi
6045
6046
6047           eval "$wx_cv_use_ftp"
6048
6049           if test x"$enablestring" = xdisable; then
6050             if test $wxUSE_PROTOCOL_FTP = no; then
6051               result=yes
6052             else
6053               result=no
6054             fi
6055           else
6056             result=$wxUSE_PROTOCOL_FTP
6057           fi
6058
6059           { echo "$as_me:$LINENO: result: $result" >&5
6060 echo "${ECHO_T}$result" >&6; }
6061
6062
6063           enablestring=
6064           defaultval=$wxUSE_ALL_FEATURES
6065           if test -z "$defaultval"; then
6066               if test x"$enablestring" = xdisable; then
6067                   defaultval=yes
6068               else
6069                   defaultval=no
6070               fi
6071           fi
6072
6073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6074 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6075           # Check whether --enable-http was given.
6076 if test "${enable_http+set}" = set; then
6077   enableval=$enable_http;
6078                           if test "$enableval" = yes; then
6079                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6080                           else
6081                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6082                           fi
6083
6084 else
6085
6086                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6087
6088 fi
6089
6090
6091           eval "$wx_cv_use_http"
6092
6093           if test x"$enablestring" = xdisable; then
6094             if test $wxUSE_PROTOCOL_HTTP = no; then
6095               result=yes
6096             else
6097               result=no
6098             fi
6099           else
6100             result=$wxUSE_PROTOCOL_HTTP
6101           fi
6102
6103           { echo "$as_me:$LINENO: result: $result" >&5
6104 echo "${ECHO_T}$result" >&6; }
6105
6106
6107           enablestring=
6108           defaultval=$wxUSE_ALL_FEATURES
6109           if test -z "$defaultval"; then
6110               if test x"$enablestring" = xdisable; then
6111                   defaultval=yes
6112               else
6113                   defaultval=no
6114               fi
6115           fi
6116
6117           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6118 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6119           # Check whether --enable-fileproto was given.
6120 if test "${enable_fileproto+set}" = set; then
6121   enableval=$enable_fileproto;
6122                           if test "$enableval" = yes; then
6123                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6124                           else
6125                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6126                           fi
6127
6128 else
6129
6130                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6131
6132 fi
6133
6134
6135           eval "$wx_cv_use_fileproto"
6136
6137           if test x"$enablestring" = xdisable; then
6138             if test $wxUSE_PROTOCOL_FILE = no; then
6139               result=yes
6140             else
6141               result=no
6142             fi
6143           else
6144             result=$wxUSE_PROTOCOL_FILE
6145           fi
6146
6147           { echo "$as_me:$LINENO: result: $result" >&5
6148 echo "${ECHO_T}$result" >&6; }
6149
6150
6151           enablestring=
6152           defaultval=$wxUSE_ALL_FEATURES
6153           if test -z "$defaultval"; then
6154               if test x"$enablestring" = xdisable; then
6155                   defaultval=yes
6156               else
6157                   defaultval=no
6158               fi
6159           fi
6160
6161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6162 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6163           # Check whether --enable-sockets was given.
6164 if test "${enable_sockets+set}" = set; then
6165   enableval=$enable_sockets;
6166                           if test "$enableval" = yes; then
6167                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6168                           else
6169                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6170                           fi
6171
6172 else
6173
6174                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6175
6176 fi
6177
6178
6179           eval "$wx_cv_use_sockets"
6180
6181           if test x"$enablestring" = xdisable; then
6182             if test $wxUSE_SOCKETS = no; then
6183               result=yes
6184             else
6185               result=no
6186             fi
6187           else
6188             result=$wxUSE_SOCKETS
6189           fi
6190
6191           { echo "$as_me:$LINENO: result: $result" >&5
6192 echo "${ECHO_T}$result" >&6; }
6193
6194
6195           enablestring=
6196           defaultval=$wxUSE_ALL_FEATURES
6197           if test -z "$defaultval"; then
6198               if test x"$enablestring" = xdisable; then
6199                   defaultval=yes
6200               else
6201                   defaultval=no
6202               fi
6203           fi
6204
6205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6206 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6207           # Check whether --enable-ipv6 was given.
6208 if test "${enable_ipv6+set}" = set; then
6209   enableval=$enable_ipv6;
6210                           if test "$enableval" = yes; then
6211                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6212                           else
6213                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6214                           fi
6215
6216 else
6217
6218                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6219
6220 fi
6221
6222
6223           eval "$wx_cv_use_ipv6"
6224
6225           if test x"$enablestring" = xdisable; then
6226             if test $wxUSE_IPV6 = no; then
6227               result=yes
6228             else
6229               result=no
6230             fi
6231           else
6232             result=$wxUSE_IPV6
6233           fi
6234
6235           { echo "$as_me:$LINENO: result: $result" >&5
6236 echo "${ECHO_T}$result" >&6; }
6237
6238
6239           enablestring=
6240           defaultval=$wxUSE_ALL_FEATURES
6241           if test -z "$defaultval"; then
6242               if test x"$enablestring" = xdisable; then
6243                   defaultval=yes
6244               else
6245                   defaultval=no
6246               fi
6247           fi
6248
6249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6250 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6251           # Check whether --enable-ole was given.
6252 if test "${enable_ole+set}" = set; then
6253   enableval=$enable_ole;
6254                           if test "$enableval" = yes; then
6255                             wx_cv_use_ole='wxUSE_OLE=yes'
6256                           else
6257                             wx_cv_use_ole='wxUSE_OLE=no'
6258                           fi
6259
6260 else
6261
6262                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6263
6264 fi
6265
6266
6267           eval "$wx_cv_use_ole"
6268
6269           if test x"$enablestring" = xdisable; then
6270             if test $wxUSE_OLE = no; then
6271               result=yes
6272             else
6273               result=no
6274             fi
6275           else
6276             result=$wxUSE_OLE
6277           fi
6278
6279           { echo "$as_me:$LINENO: result: $result" >&5
6280 echo "${ECHO_T}$result" >&6; }
6281
6282
6283           enablestring=
6284           defaultval=$wxUSE_ALL_FEATURES
6285           if test -z "$defaultval"; then
6286               if test x"$enablestring" = xdisable; then
6287                   defaultval=yes
6288               else
6289                   defaultval=no
6290               fi
6291           fi
6292
6293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6294 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6295           # Check whether --enable-dataobj was given.
6296 if test "${enable_dataobj+set}" = set; then
6297   enableval=$enable_dataobj;
6298                           if test "$enableval" = yes; then
6299                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6300                           else
6301                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6302                           fi
6303
6304 else
6305
6306                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6307
6308 fi
6309
6310
6311           eval "$wx_cv_use_dataobj"
6312
6313           if test x"$enablestring" = xdisable; then
6314             if test $wxUSE_DATAOBJ = no; then
6315               result=yes
6316             else
6317               result=no
6318             fi
6319           else
6320             result=$wxUSE_DATAOBJ
6321           fi
6322
6323           { echo "$as_me:$LINENO: result: $result" >&5
6324 echo "${ECHO_T}$result" >&6; }
6325
6326
6327
6328           enablestring=
6329           defaultval=$wxUSE_ALL_FEATURES
6330           if test -z "$defaultval"; then
6331               if test x"$enablestring" = xdisable; then
6332                   defaultval=yes
6333               else
6334                   defaultval=no
6335               fi
6336           fi
6337
6338           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6339 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6340           # Check whether --enable-ipc was given.
6341 if test "${enable_ipc+set}" = set; then
6342   enableval=$enable_ipc;
6343                           if test "$enableval" = yes; then
6344                             wx_cv_use_ipc='wxUSE_IPC=yes'
6345                           else
6346                             wx_cv_use_ipc='wxUSE_IPC=no'
6347                           fi
6348
6349 else
6350
6351                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6352
6353 fi
6354
6355
6356           eval "$wx_cv_use_ipc"
6357
6358           if test x"$enablestring" = xdisable; then
6359             if test $wxUSE_IPC = no; then
6360               result=yes
6361             else
6362               result=no
6363             fi
6364           else
6365             result=$wxUSE_IPC
6366           fi
6367
6368           { echo "$as_me:$LINENO: result: $result" >&5
6369 echo "${ECHO_T}$result" >&6; }
6370
6371
6372
6373           enablestring=
6374           defaultval=$wxUSE_ALL_FEATURES
6375           if test -z "$defaultval"; then
6376               if test x"$enablestring" = xdisable; then
6377                   defaultval=yes
6378               else
6379                   defaultval=no
6380               fi
6381           fi
6382
6383           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6384 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6385           # Check whether --enable-baseevtloop was given.
6386 if test "${enable_baseevtloop+set}" = set; then
6387   enableval=$enable_baseevtloop;
6388                           if test "$enableval" = yes; then
6389                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6390                           else
6391                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6392                           fi
6393
6394 else
6395
6396                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6397
6398 fi
6399
6400
6401           eval "$wx_cv_use_baseevtloop"
6402
6403           if test x"$enablestring" = xdisable; then
6404             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6405               result=yes
6406             else
6407               result=no
6408             fi
6409           else
6410             result=$wxUSE_CONSOLE_EVENTLOOP
6411           fi
6412
6413           { echo "$as_me:$LINENO: result: $result" >&5
6414 echo "${ECHO_T}$result" >&6; }
6415
6416
6417           enablestring=
6418           defaultval=$wxUSE_ALL_FEATURES
6419           if test -z "$defaultval"; then
6420               if test x"$enablestring" = xdisable; then
6421                   defaultval=yes
6422               else
6423                   defaultval=no
6424               fi
6425           fi
6426
6427           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6428 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6429           # Check whether --enable-epollloop was given.
6430 if test "${enable_epollloop+set}" = set; then
6431   enableval=$enable_epollloop;
6432                           if test "$enableval" = yes; then
6433                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6434                           else
6435                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6436                           fi
6437
6438 else
6439
6440                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6441
6442 fi
6443
6444
6445           eval "$wx_cv_use_epollloop"
6446
6447           if test x"$enablestring" = xdisable; then
6448             if test $wxUSE_EPOLL_DISPATCHER = no; then
6449               result=yes
6450             else
6451               result=no
6452             fi
6453           else
6454             result=$wxUSE_EPOLL_DISPATCHER
6455           fi
6456
6457           { echo "$as_me:$LINENO: result: $result" >&5
6458 echo "${ECHO_T}$result" >&6; }
6459
6460
6461           enablestring=
6462           defaultval=$wxUSE_ALL_FEATURES
6463           if test -z "$defaultval"; then
6464               if test x"$enablestring" = xdisable; then
6465                   defaultval=yes
6466               else
6467                   defaultval=no
6468               fi
6469           fi
6470
6471           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6472 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6473           # Check whether --enable-selectloop was given.
6474 if test "${enable_selectloop+set}" = set; then
6475   enableval=$enable_selectloop;
6476                           if test "$enableval" = yes; then
6477                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6478                           else
6479                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6480                           fi
6481
6482 else
6483
6484                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6485
6486 fi
6487
6488
6489           eval "$wx_cv_use_selectloop"
6490
6491           if test x"$enablestring" = xdisable; then
6492             if test $wxUSE_SELECT_DISPATCHER = no; then
6493               result=yes
6494             else
6495               result=no
6496             fi
6497           else
6498             result=$wxUSE_SELECT_DISPATCHER
6499           fi
6500
6501           { echo "$as_me:$LINENO: result: $result" >&5
6502 echo "${ECHO_T}$result" >&6; }
6503
6504
6505
6506           enablestring=
6507           defaultval=$wxUSE_ALL_FEATURES
6508           if test -z "$defaultval"; then
6509               if test x"$enablestring" = xdisable; then
6510                   defaultval=yes
6511               else
6512                   defaultval=no
6513               fi
6514           fi
6515
6516           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6517 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6518           # Check whether --enable-any was given.
6519 if test "${enable_any+set}" = set; then
6520   enableval=$enable_any;
6521                           if test "$enableval" = yes; then
6522                             wx_cv_use_any='wxUSE_ANY=yes'
6523                           else
6524                             wx_cv_use_any='wxUSE_ANY=no'
6525                           fi
6526
6527 else
6528
6529                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6530
6531 fi
6532
6533
6534           eval "$wx_cv_use_any"
6535
6536           if test x"$enablestring" = xdisable; then
6537             if test $wxUSE_ANY = no; then
6538               result=yes
6539             else
6540               result=no
6541             fi
6542           else
6543             result=$wxUSE_ANY
6544           fi
6545
6546           { echo "$as_me:$LINENO: result: $result" >&5
6547 echo "${ECHO_T}$result" >&6; }
6548
6549
6550           enablestring=
6551           defaultval=$wxUSE_ALL_FEATURES
6552           if test -z "$defaultval"; then
6553               if test x"$enablestring" = xdisable; then
6554                   defaultval=yes
6555               else
6556                   defaultval=no
6557               fi
6558           fi
6559
6560           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6561 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6562           # Check whether --enable-apple_ieee was given.
6563 if test "${enable_apple_ieee+set}" = set; then
6564   enableval=$enable_apple_ieee;
6565                           if test "$enableval" = yes; then
6566                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6567                           else
6568                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6569                           fi
6570
6571 else
6572
6573                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6574
6575 fi
6576
6577
6578           eval "$wx_cv_use_apple_ieee"
6579
6580           if test x"$enablestring" = xdisable; then
6581             if test $wxUSE_APPLE_IEEE = no; then
6582               result=yes
6583             else
6584               result=no
6585             fi
6586           else
6587             result=$wxUSE_APPLE_IEEE
6588           fi
6589
6590           { echo "$as_me:$LINENO: result: $result" >&5
6591 echo "${ECHO_T}$result" >&6; }
6592
6593
6594           enablestring=
6595           defaultval=$wxUSE_ALL_FEATURES
6596           if test -z "$defaultval"; then
6597               if test x"$enablestring" = xdisable; then
6598                   defaultval=yes
6599               else
6600                   defaultval=no
6601               fi
6602           fi
6603
6604           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6605 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6606           # Check whether --enable-arcstream was given.
6607 if test "${enable_arcstream+set}" = set; then
6608   enableval=$enable_arcstream;
6609                           if test "$enableval" = yes; then
6610                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6611                           else
6612                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6613                           fi
6614
6615 else
6616
6617                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6618
6619 fi
6620
6621
6622           eval "$wx_cv_use_arcstream"
6623
6624           if test x"$enablestring" = xdisable; then
6625             if test $wxUSE_ARCHIVE_STREAMS = no; then
6626               result=yes
6627             else
6628               result=no
6629             fi
6630           else
6631             result=$wxUSE_ARCHIVE_STREAMS
6632           fi
6633
6634           { echo "$as_me:$LINENO: result: $result" >&5
6635 echo "${ECHO_T}$result" >&6; }
6636
6637
6638           enablestring=
6639           defaultval=$wxUSE_ALL_FEATURES
6640           if test -z "$defaultval"; then
6641               if test x"$enablestring" = xdisable; then
6642                   defaultval=yes
6643               else
6644                   defaultval=no
6645               fi
6646           fi
6647
6648           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6649 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6650           # Check whether --enable-base64 was given.
6651 if test "${enable_base64+set}" = set; then
6652   enableval=$enable_base64;
6653                           if test "$enableval" = yes; then
6654                             wx_cv_use_base64='wxUSE_BASE64=yes'
6655                           else
6656                             wx_cv_use_base64='wxUSE_BASE64=no'
6657                           fi
6658
6659 else
6660
6661                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6662
6663 fi
6664
6665
6666           eval "$wx_cv_use_base64"
6667
6668           if test x"$enablestring" = xdisable; then
6669             if test $wxUSE_BASE64 = no; then
6670               result=yes
6671             else
6672               result=no
6673             fi
6674           else
6675             result=$wxUSE_BASE64
6676           fi
6677
6678           { echo "$as_me:$LINENO: result: $result" >&5
6679 echo "${ECHO_T}$result" >&6; }
6680
6681
6682           enablestring=
6683           defaultval=$wxUSE_ALL_FEATURES
6684           if test -z "$defaultval"; then
6685               if test x"$enablestring" = xdisable; then
6686                   defaultval=yes
6687               else
6688                   defaultval=no
6689               fi
6690           fi
6691
6692           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6693 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6694           # Check whether --enable-backtrace was given.
6695 if test "${enable_backtrace+set}" = set; then
6696   enableval=$enable_backtrace;
6697                           if test "$enableval" = yes; then
6698                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6699                           else
6700                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6701                           fi
6702
6703 else
6704
6705                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6706
6707 fi
6708
6709
6710           eval "$wx_cv_use_backtrace"
6711
6712           if test x"$enablestring" = xdisable; then
6713             if test $wxUSE_STACKWALKER = no; then
6714               result=yes
6715             else
6716               result=no
6717             fi
6718           else
6719             result=$wxUSE_STACKWALKER
6720           fi
6721
6722           { echo "$as_me:$LINENO: result: $result" >&5
6723 echo "${ECHO_T}$result" >&6; }
6724
6725
6726           enablestring=
6727           defaultval=$wxUSE_ALL_FEATURES
6728           if test -z "$defaultval"; then
6729               if test x"$enablestring" = xdisable; then
6730                   defaultval=yes
6731               else
6732                   defaultval=no
6733               fi
6734           fi
6735
6736           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6737 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6738           # Check whether --enable-catch_segvs was given.
6739 if test "${enable_catch_segvs+set}" = set; then
6740   enableval=$enable_catch_segvs;
6741                           if test "$enableval" = yes; then
6742                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6743                           else
6744                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6745                           fi
6746
6747 else
6748
6749                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6750
6751 fi
6752
6753
6754           eval "$wx_cv_use_catch_segvs"
6755
6756           if test x"$enablestring" = xdisable; then
6757             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6758               result=yes
6759             else
6760               result=no
6761             fi
6762           else
6763             result=$wxUSE_ON_FATAL_EXCEPTION
6764           fi
6765
6766           { echo "$as_me:$LINENO: result: $result" >&5
6767 echo "${ECHO_T}$result" >&6; }
6768
6769
6770           enablestring=
6771           defaultval=$wxUSE_ALL_FEATURES
6772           if test -z "$defaultval"; then
6773               if test x"$enablestring" = xdisable; then
6774                   defaultval=yes
6775               else
6776                   defaultval=no
6777               fi
6778           fi
6779
6780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6781 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6782           # Check whether --enable-cmdline was given.
6783 if test "${enable_cmdline+set}" = set; then
6784   enableval=$enable_cmdline;
6785                           if test "$enableval" = yes; then
6786                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6787                           else
6788                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6789                           fi
6790
6791 else
6792
6793                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6794
6795 fi
6796
6797
6798           eval "$wx_cv_use_cmdline"
6799
6800           if test x"$enablestring" = xdisable; then
6801             if test $wxUSE_CMDLINE_PARSER = no; then
6802               result=yes
6803             else
6804               result=no
6805             fi
6806           else
6807             result=$wxUSE_CMDLINE_PARSER
6808           fi
6809
6810           { echo "$as_me:$LINENO: result: $result" >&5
6811 echo "${ECHO_T}$result" >&6; }
6812
6813
6814           enablestring=
6815           defaultval=$wxUSE_ALL_FEATURES
6816           if test -z "$defaultval"; then
6817               if test x"$enablestring" = xdisable; then
6818                   defaultval=yes
6819               else
6820                   defaultval=no
6821               fi
6822           fi
6823
6824           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6825 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6826           # Check whether --enable-datetime was given.
6827 if test "${enable_datetime+set}" = set; then
6828   enableval=$enable_datetime;
6829                           if test "$enableval" = yes; then
6830                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6831                           else
6832                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6833                           fi
6834
6835 else
6836
6837                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6838
6839 fi
6840
6841
6842           eval "$wx_cv_use_datetime"
6843
6844           if test x"$enablestring" = xdisable; then
6845             if test $wxUSE_DATETIME = no; then
6846               result=yes
6847             else
6848               result=no
6849             fi
6850           else
6851             result=$wxUSE_DATETIME
6852           fi
6853
6854           { echo "$as_me:$LINENO: result: $result" >&5
6855 echo "${ECHO_T}$result" >&6; }
6856
6857
6858           enablestring=
6859           defaultval=$wxUSE_ALL_FEATURES
6860           if test -z "$defaultval"; then
6861               if test x"$enablestring" = xdisable; then
6862                   defaultval=yes
6863               else
6864                   defaultval=no
6865               fi
6866           fi
6867
6868           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6869 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6870           # Check whether --enable-debugreport was given.
6871 if test "${enable_debugreport+set}" = set; then
6872   enableval=$enable_debugreport;
6873                           if test "$enableval" = yes; then
6874                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6875                           else
6876                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6877                           fi
6878
6879 else
6880
6881                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6882
6883 fi
6884
6885
6886           eval "$wx_cv_use_debugreport"
6887
6888           if test x"$enablestring" = xdisable; then
6889             if test $wxUSE_DEBUGREPORT = no; then
6890               result=yes
6891             else
6892               result=no
6893             fi
6894           else
6895             result=$wxUSE_DEBUGREPORT
6896           fi
6897
6898           { echo "$as_me:$LINENO: result: $result" >&5
6899 echo "${ECHO_T}$result" >&6; }
6900
6901
6902           enablestring=
6903           defaultval=$wxUSE_ALL_FEATURES
6904           if test -z "$defaultval"; then
6905               if test x"$enablestring" = xdisable; then
6906                   defaultval=yes
6907               else
6908                   defaultval=no
6909               fi
6910           fi
6911
6912           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6913 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6914           # Check whether --enable-dialupman was given.
6915 if test "${enable_dialupman+set}" = set; then
6916   enableval=$enable_dialupman;
6917                           if test "$enableval" = yes; then
6918                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6919                           else
6920                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6921                           fi
6922
6923 else
6924
6925                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6926
6927 fi
6928
6929
6930           eval "$wx_cv_use_dialupman"
6931
6932           if test x"$enablestring" = xdisable; then
6933             if test $wxUSE_DIALUP_MANAGER = no; then
6934               result=yes
6935             else
6936               result=no
6937             fi
6938           else
6939             result=$wxUSE_DIALUP_MANAGER
6940           fi
6941
6942           { echo "$as_me:$LINENO: result: $result" >&5
6943 echo "${ECHO_T}$result" >&6; }
6944
6945
6946           enablestring=
6947           defaultval=$wxUSE_ALL_FEATURES
6948           if test -z "$defaultval"; then
6949               if test x"$enablestring" = xdisable; then
6950                   defaultval=yes
6951               else
6952                   defaultval=no
6953               fi
6954           fi
6955
6956           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6957 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6958           # Check whether --enable-dynlib was given.
6959 if test "${enable_dynlib+set}" = set; then
6960   enableval=$enable_dynlib;
6961                           if test "$enableval" = yes; then
6962                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6963                           else
6964                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6965                           fi
6966
6967 else
6968
6969                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6970
6971 fi
6972
6973
6974           eval "$wx_cv_use_dynlib"
6975
6976           if test x"$enablestring" = xdisable; then
6977             if test $wxUSE_DYNLIB_CLASS = no; then
6978               result=yes
6979             else
6980               result=no
6981             fi
6982           else
6983             result=$wxUSE_DYNLIB_CLASS
6984           fi
6985
6986           { echo "$as_me:$LINENO: result: $result" >&5
6987 echo "${ECHO_T}$result" >&6; }
6988
6989
6990           enablestring=
6991           defaultval=$wxUSE_ALL_FEATURES
6992           if test -z "$defaultval"; then
6993               if test x"$enablestring" = xdisable; then
6994                   defaultval=yes
6995               else
6996                   defaultval=no
6997               fi
6998           fi
6999
7000           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7001 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7002           # Check whether --enable-dynamicloader was given.
7003 if test "${enable_dynamicloader+set}" = set; then
7004   enableval=$enable_dynamicloader;
7005                           if test "$enableval" = yes; then
7006                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7007                           else
7008                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7009                           fi
7010
7011 else
7012
7013                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7014
7015 fi
7016
7017
7018           eval "$wx_cv_use_dynamicloader"
7019
7020           if test x"$enablestring" = xdisable; then
7021             if test $wxUSE_DYNAMIC_LOADER = no; then
7022               result=yes
7023             else
7024               result=no
7025             fi
7026           else
7027             result=$wxUSE_DYNAMIC_LOADER
7028           fi
7029
7030           { echo "$as_me:$LINENO: result: $result" >&5
7031 echo "${ECHO_T}$result" >&6; }
7032
7033
7034           enablestring=
7035           defaultval=$wxUSE_ALL_FEATURES
7036           if test -z "$defaultval"; then
7037               if test x"$enablestring" = xdisable; then
7038                   defaultval=yes
7039               else
7040                   defaultval=no
7041               fi
7042           fi
7043
7044           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7045 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7046           # Check whether --enable-exceptions was given.
7047 if test "${enable_exceptions+set}" = set; then
7048   enableval=$enable_exceptions;
7049                           if test "$enableval" = yes; then
7050                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7051                           else
7052                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7053                           fi
7054
7055 else
7056
7057                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7058
7059 fi
7060
7061
7062           eval "$wx_cv_use_exceptions"
7063
7064           if test x"$enablestring" = xdisable; then
7065             if test $wxUSE_EXCEPTIONS = no; then
7066               result=yes
7067             else
7068               result=no
7069             fi
7070           else
7071             result=$wxUSE_EXCEPTIONS
7072           fi
7073
7074           { echo "$as_me:$LINENO: result: $result" >&5
7075 echo "${ECHO_T}$result" >&6; }
7076
7077
7078           enablestring=
7079           defaultval=$wxUSE_ALL_FEATURES
7080           if test -z "$defaultval"; then
7081               if test x"$enablestring" = xdisable; then
7082                   defaultval=yes
7083               else
7084                   defaultval=no
7085               fi
7086           fi
7087
7088           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7089 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7090           # Check whether --enable-ffile was given.
7091 if test "${enable_ffile+set}" = set; then
7092   enableval=$enable_ffile;
7093                           if test "$enableval" = yes; then
7094                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7095                           else
7096                             wx_cv_use_ffile='wxUSE_FFILE=no'
7097                           fi
7098
7099 else
7100
7101                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7102
7103 fi
7104
7105
7106           eval "$wx_cv_use_ffile"
7107
7108           if test x"$enablestring" = xdisable; then
7109             if test $wxUSE_FFILE = no; then
7110               result=yes
7111             else
7112               result=no
7113             fi
7114           else
7115             result=$wxUSE_FFILE
7116           fi
7117
7118           { echo "$as_me:$LINENO: result: $result" >&5
7119 echo "${ECHO_T}$result" >&6; }
7120
7121
7122           enablestring=
7123           defaultval=$wxUSE_ALL_FEATURES
7124           if test -z "$defaultval"; then
7125               if test x"$enablestring" = xdisable; then
7126                   defaultval=yes
7127               else
7128                   defaultval=no
7129               fi
7130           fi
7131
7132           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7133 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7134           # Check whether --enable-file was given.
7135 if test "${enable_file+set}" = set; then
7136   enableval=$enable_file;
7137                           if test "$enableval" = yes; then
7138                             wx_cv_use_file='wxUSE_FILE=yes'
7139                           else
7140                             wx_cv_use_file='wxUSE_FILE=no'
7141                           fi
7142
7143 else
7144
7145                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7146
7147 fi
7148
7149
7150           eval "$wx_cv_use_file"
7151
7152           if test x"$enablestring" = xdisable; then
7153             if test $wxUSE_FILE = no; then
7154               result=yes
7155             else
7156               result=no
7157             fi
7158           else
7159             result=$wxUSE_FILE
7160           fi
7161
7162           { echo "$as_me:$LINENO: result: $result" >&5
7163 echo "${ECHO_T}$result" >&6; }
7164
7165
7166           enablestring=
7167           defaultval=$wxUSE_ALL_FEATURES
7168           if test -z "$defaultval"; then
7169               if test x"$enablestring" = xdisable; then
7170                   defaultval=yes
7171               else
7172                   defaultval=no
7173               fi
7174           fi
7175
7176           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
7177 echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7178           # Check whether --enable-filehistory was given.
7179 if test "${enable_filehistory+set}" = set; then
7180   enableval=$enable_filehistory;
7181                           if test "$enableval" = yes; then
7182                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7183                           else
7184                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7185                           fi
7186
7187 else
7188
7189                           wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7190
7191 fi
7192
7193
7194           eval "$wx_cv_use_filehistory"
7195
7196           if test x"$enablestring" = xdisable; then
7197             if test $wxUSE_FILE_HISTORY = no; then
7198               result=yes
7199             else
7200               result=no
7201             fi
7202           else
7203             result=$wxUSE_FILE_HISTORY
7204           fi
7205
7206           { echo "$as_me:$LINENO: result: $result" >&5
7207 echo "${ECHO_T}$result" >&6; }
7208
7209
7210           enablestring=
7211           defaultval=$wxUSE_ALL_FEATURES
7212           if test -z "$defaultval"; then
7213               if test x"$enablestring" = xdisable; then
7214                   defaultval=yes
7215               else
7216                   defaultval=no
7217               fi
7218           fi
7219
7220           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7221 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7222           # Check whether --enable-filesystem was given.
7223 if test "${enable_filesystem+set}" = set; then
7224   enableval=$enable_filesystem;
7225                           if test "$enableval" = yes; then
7226                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7227                           else
7228                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7229                           fi
7230
7231 else
7232
7233                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7234
7235 fi
7236
7237
7238           eval "$wx_cv_use_filesystem"
7239
7240           if test x"$enablestring" = xdisable; then
7241             if test $wxUSE_FILESYSTEM = no; then
7242               result=yes
7243             else
7244               result=no
7245             fi
7246           else
7247             result=$wxUSE_FILESYSTEM
7248           fi
7249
7250           { echo "$as_me:$LINENO: result: $result" >&5
7251 echo "${ECHO_T}$result" >&6; }
7252
7253
7254           enablestring=
7255           defaultval=$wxUSE_ALL_FEATURES
7256           if test -z "$defaultval"; then
7257               if test x"$enablestring" = xdisable; then
7258                   defaultval=yes
7259               else
7260                   defaultval=no
7261               fi
7262           fi
7263
7264           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7265 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7266           # Check whether --enable-fontenum was given.
7267 if test "${enable_fontenum+set}" = set; then
7268   enableval=$enable_fontenum;
7269                           if test "$enableval" = yes; then
7270                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7271                           else
7272                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7273                           fi
7274
7275 else
7276
7277                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7278
7279 fi
7280
7281
7282           eval "$wx_cv_use_fontenum"
7283
7284           if test x"$enablestring" = xdisable; then
7285             if test $wxUSE_FONTENUM = no; then
7286               result=yes
7287             else
7288               result=no
7289             fi
7290           else
7291             result=$wxUSE_FONTENUM
7292           fi
7293
7294           { echo "$as_me:$LINENO: result: $result" >&5
7295 echo "${ECHO_T}$result" >&6; }
7296
7297
7298           enablestring=
7299           defaultval=$wxUSE_ALL_FEATURES
7300           if test -z "$defaultval"; then
7301               if test x"$enablestring" = xdisable; then
7302                   defaultval=yes
7303               else
7304                   defaultval=no
7305               fi
7306           fi
7307
7308           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7309 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7310           # Check whether --enable-fontmap was given.
7311 if test "${enable_fontmap+set}" = set; then
7312   enableval=$enable_fontmap;
7313                           if test "$enableval" = yes; then
7314                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7315                           else
7316                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7317                           fi
7318
7319 else
7320
7321                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7322
7323 fi
7324
7325
7326           eval "$wx_cv_use_fontmap"
7327
7328           if test x"$enablestring" = xdisable; then
7329             if test $wxUSE_FONTMAP = no; then
7330               result=yes
7331             else
7332               result=no
7333             fi
7334           else
7335             result=$wxUSE_FONTMAP
7336           fi
7337
7338           { echo "$as_me:$LINENO: result: $result" >&5
7339 echo "${ECHO_T}$result" >&6; }
7340
7341
7342           enablestring=
7343           defaultval=$wxUSE_ALL_FEATURES
7344           if test -z "$defaultval"; then
7345               if test x"$enablestring" = xdisable; then
7346                   defaultval=yes
7347               else
7348                   defaultval=no
7349               fi
7350           fi
7351
7352           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7353 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7354           # Check whether --enable-fs_archive was given.
7355 if test "${enable_fs_archive+set}" = set; then
7356   enableval=$enable_fs_archive;
7357                           if test "$enableval" = yes; then
7358                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7359                           else
7360                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7361                           fi
7362
7363 else
7364
7365                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7366
7367 fi
7368
7369
7370           eval "$wx_cv_use_fs_archive"
7371
7372           if test x"$enablestring" = xdisable; then
7373             if test $wxUSE_FS_ARCHIVE = no; then
7374               result=yes
7375             else
7376               result=no
7377             fi
7378           else
7379             result=$wxUSE_FS_ARCHIVE
7380           fi
7381
7382           { echo "$as_me:$LINENO: result: $result" >&5
7383 echo "${ECHO_T}$result" >&6; }
7384
7385
7386           enablestring=
7387           defaultval=$wxUSE_ALL_FEATURES
7388           if test -z "$defaultval"; then
7389               if test x"$enablestring" = xdisable; then
7390                   defaultval=yes
7391               else
7392                   defaultval=no
7393               fi
7394           fi
7395
7396           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7397 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7398           # Check whether --enable-fs_inet was given.
7399 if test "${enable_fs_inet+set}" = set; then
7400   enableval=$enable_fs_inet;
7401                           if test "$enableval" = yes; then
7402                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7403                           else
7404                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7405                           fi
7406
7407 else
7408
7409                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7410
7411 fi
7412
7413
7414           eval "$wx_cv_use_fs_inet"
7415
7416           if test x"$enablestring" = xdisable; then
7417             if test $wxUSE_FS_INET = no; then
7418               result=yes
7419             else
7420               result=no
7421             fi
7422           else
7423             result=$wxUSE_FS_INET
7424           fi
7425
7426           { echo "$as_me:$LINENO: result: $result" >&5
7427 echo "${ECHO_T}$result" >&6; }
7428
7429
7430           enablestring=
7431           defaultval=$wxUSE_ALL_FEATURES
7432           if test -z "$defaultval"; then
7433               if test x"$enablestring" = xdisable; then
7434                   defaultval=yes
7435               else
7436                   defaultval=no
7437               fi
7438           fi
7439
7440           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7441 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7442           # Check whether --enable-fs_zip was given.
7443 if test "${enable_fs_zip+set}" = set; then
7444   enableval=$enable_fs_zip;
7445                           if test "$enableval" = yes; then
7446                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7447                           else
7448                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7449                           fi
7450
7451 else
7452
7453                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7454
7455 fi
7456
7457
7458           eval "$wx_cv_use_fs_zip"
7459
7460           if test x"$enablestring" = xdisable; then
7461             if test $wxUSE_FS_ZIP = no; then
7462               result=yes
7463             else
7464               result=no
7465             fi
7466           else
7467             result=$wxUSE_FS_ZIP
7468           fi
7469
7470           { echo "$as_me:$LINENO: result: $result" >&5
7471 echo "${ECHO_T}$result" >&6; }
7472
7473
7474           enablestring=
7475           defaultval=$wxUSE_ALL_FEATURES
7476           if test -z "$defaultval"; then
7477               if test x"$enablestring" = xdisable; then
7478                   defaultval=yes
7479               else
7480                   defaultval=no
7481               fi
7482           fi
7483
7484           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7485 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7486           # Check whether --enable-fswatcher was given.
7487 if test "${enable_fswatcher+set}" = set; then
7488   enableval=$enable_fswatcher;
7489                           if test "$enableval" = yes; then
7490                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7491                           else
7492                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7493                           fi
7494
7495 else
7496
7497                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7498
7499 fi
7500
7501
7502           eval "$wx_cv_use_fswatcher"
7503
7504           if test x"$enablestring" = xdisable; then
7505             if test $wxUSE_FSWATCHER = no; then
7506               result=yes
7507             else
7508               result=no
7509             fi
7510           else
7511             result=$wxUSE_FSWATCHER
7512           fi
7513
7514           { echo "$as_me:$LINENO: result: $result" >&5
7515 echo "${ECHO_T}$result" >&6; }
7516
7517
7518           enablestring=
7519           defaultval=$wxUSE_ALL_FEATURES
7520           if test -z "$defaultval"; then
7521               if test x"$enablestring" = xdisable; then
7522                   defaultval=yes
7523               else
7524                   defaultval=no
7525               fi
7526           fi
7527
7528           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7529 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7530           # Check whether --enable-geometry was given.
7531 if test "${enable_geometry+set}" = set; then
7532   enableval=$enable_geometry;
7533                           if test "$enableval" = yes; then
7534                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7535                           else
7536                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7537                           fi
7538
7539 else
7540
7541                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7542
7543 fi
7544
7545
7546           eval "$wx_cv_use_geometry"
7547
7548           if test x"$enablestring" = xdisable; then
7549             if test $wxUSE_GEOMETRY = no; then
7550               result=yes
7551             else
7552               result=no
7553             fi
7554           else
7555             result=$wxUSE_GEOMETRY
7556           fi
7557
7558           { echo "$as_me:$LINENO: result: $result" >&5
7559 echo "${ECHO_T}$result" >&6; }
7560
7561
7562           enablestring=
7563           defaultval=$wxUSE_ALL_FEATURES
7564           if test -z "$defaultval"; then
7565               if test x"$enablestring" = xdisable; then
7566                   defaultval=yes
7567               else
7568                   defaultval=no
7569               fi
7570           fi
7571
7572           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7573 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7574           # Check whether --enable-log was given.
7575 if test "${enable_log+set}" = set; then
7576   enableval=$enable_log;
7577                           if test "$enableval" = yes; then
7578                             wx_cv_use_log='wxUSE_LOG=yes'
7579                           else
7580                             wx_cv_use_log='wxUSE_LOG=no'
7581                           fi
7582
7583 else
7584
7585                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7586
7587 fi
7588
7589
7590           eval "$wx_cv_use_log"
7591
7592           if test x"$enablestring" = xdisable; then
7593             if test $wxUSE_LOG = no; then
7594               result=yes
7595             else
7596               result=no
7597             fi
7598           else
7599             result=$wxUSE_LOG
7600           fi
7601
7602           { echo "$as_me:$LINENO: result: $result" >&5
7603 echo "${ECHO_T}$result" >&6; }
7604
7605
7606           enablestring=
7607           defaultval=$wxUSE_ALL_FEATURES
7608           if test -z "$defaultval"; then
7609               if test x"$enablestring" = xdisable; then
7610                   defaultval=yes
7611               else
7612                   defaultval=no
7613               fi
7614           fi
7615
7616           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7617 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7618           # Check whether --enable-longlong was given.
7619 if test "${enable_longlong+set}" = set; then
7620   enableval=$enable_longlong;
7621                           if test "$enableval" = yes; then
7622                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7623                           else
7624                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7625                           fi
7626
7627 else
7628
7629                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7630
7631 fi
7632
7633
7634           eval "$wx_cv_use_longlong"
7635
7636           if test x"$enablestring" = xdisable; then
7637             if test $wxUSE_LONGLONG = no; then
7638               result=yes
7639             else
7640               result=no
7641             fi
7642           else
7643             result=$wxUSE_LONGLONG
7644           fi
7645
7646           { echo "$as_me:$LINENO: result: $result" >&5
7647 echo "${ECHO_T}$result" >&6; }
7648
7649
7650           enablestring=
7651           defaultval=$wxUSE_ALL_FEATURES
7652           if test -z "$defaultval"; then
7653               if test x"$enablestring" = xdisable; then
7654                   defaultval=yes
7655               else
7656                   defaultval=no
7657               fi
7658           fi
7659
7660           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7661 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7662           # Check whether --enable-mimetype was given.
7663 if test "${enable_mimetype+set}" = set; then
7664   enableval=$enable_mimetype;
7665                           if test "$enableval" = yes; then
7666                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7667                           else
7668                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7669                           fi
7670
7671 else
7672
7673                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7674
7675 fi
7676
7677
7678           eval "$wx_cv_use_mimetype"
7679
7680           if test x"$enablestring" = xdisable; then
7681             if test $wxUSE_MIMETYPE = no; then
7682               result=yes
7683             else
7684               result=no
7685             fi
7686           else
7687             result=$wxUSE_MIMETYPE
7688           fi
7689
7690           { echo "$as_me:$LINENO: result: $result" >&5
7691 echo "${ECHO_T}$result" >&6; }
7692
7693
7694           enablestring=
7695           defaultval=$wxUSE_ALL_FEATURES
7696           if test -z "$defaultval"; then
7697               if test x"$enablestring" = xdisable; then
7698                   defaultval=yes
7699               else
7700                   defaultval=no
7701               fi
7702           fi
7703
7704           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7705 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7706           # Check whether --enable-printfposparam was given.
7707 if test "${enable_printfposparam+set}" = set; then
7708   enableval=$enable_printfposparam;
7709                           if test "$enableval" = yes; then
7710                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7711                           else
7712                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7713                           fi
7714
7715 else
7716
7717                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7718
7719 fi
7720
7721
7722           eval "$wx_cv_use_printfposparam"
7723
7724           if test x"$enablestring" = xdisable; then
7725             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7726               result=yes
7727             else
7728               result=no
7729             fi
7730           else
7731             result=$wxUSE_PRINTF_POS_PARAMS
7732           fi
7733
7734           { echo "$as_me:$LINENO: result: $result" >&5
7735 echo "${ECHO_T}$result" >&6; }
7736
7737
7738           enablestring=
7739           defaultval=$wxUSE_ALL_FEATURES
7740           if test -z "$defaultval"; then
7741               if test x"$enablestring" = xdisable; then
7742                   defaultval=yes
7743               else
7744                   defaultval=no
7745               fi
7746           fi
7747
7748           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7749 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7750           # Check whether --enable-snglinst was given.
7751 if test "${enable_snglinst+set}" = set; then
7752   enableval=$enable_snglinst;
7753                           if test "$enableval" = yes; then
7754                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7755                           else
7756                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7757                           fi
7758
7759 else
7760
7761                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7762
7763 fi
7764
7765
7766           eval "$wx_cv_use_snglinst"
7767
7768           if test x"$enablestring" = xdisable; then
7769             if test $wxUSE_SNGLINST_CHECKER = no; then
7770               result=yes
7771             else
7772               result=no
7773             fi
7774           else
7775             result=$wxUSE_SNGLINST_CHECKER
7776           fi
7777
7778           { echo "$as_me:$LINENO: result: $result" >&5
7779 echo "${ECHO_T}$result" >&6; }
7780
7781
7782           enablestring=
7783           defaultval=$wxUSE_ALL_FEATURES
7784           if test -z "$defaultval"; then
7785               if test x"$enablestring" = xdisable; then
7786                   defaultval=yes
7787               else
7788                   defaultval=no
7789               fi
7790           fi
7791
7792           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7793 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7794           # Check whether --enable-sound was given.
7795 if test "${enable_sound+set}" = set; then
7796   enableval=$enable_sound;
7797                           if test "$enableval" = yes; then
7798                             wx_cv_use_sound='wxUSE_SOUND=yes'
7799                           else
7800                             wx_cv_use_sound='wxUSE_SOUND=no'
7801                           fi
7802
7803 else
7804
7805                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7806
7807 fi
7808
7809
7810           eval "$wx_cv_use_sound"
7811
7812           if test x"$enablestring" = xdisable; then
7813             if test $wxUSE_SOUND = no; then
7814               result=yes
7815             else
7816               result=no
7817             fi
7818           else
7819             result=$wxUSE_SOUND
7820           fi
7821
7822           { echo "$as_me:$LINENO: result: $result" >&5
7823 echo "${ECHO_T}$result" >&6; }
7824
7825
7826           enablestring=
7827           defaultval=$wxUSE_ALL_FEATURES
7828           if test -z "$defaultval"; then
7829               if test x"$enablestring" = xdisable; then
7830                   defaultval=yes
7831               else
7832                   defaultval=no
7833               fi
7834           fi
7835
7836           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7837 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7838           # Check whether --enable-stdpaths was given.
7839 if test "${enable_stdpaths+set}" = set; then
7840   enableval=$enable_stdpaths;
7841                           if test "$enableval" = yes; then
7842                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7843                           else
7844                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7845                           fi
7846
7847 else
7848
7849                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7850
7851 fi
7852
7853
7854           eval "$wx_cv_use_stdpaths"
7855
7856           if test x"$enablestring" = xdisable; then
7857             if test $wxUSE_STDPATHS = no; then
7858               result=yes
7859             else
7860               result=no
7861             fi
7862           else
7863             result=$wxUSE_STDPATHS
7864           fi
7865
7866           { echo "$as_me:$LINENO: result: $result" >&5
7867 echo "${ECHO_T}$result" >&6; }
7868
7869
7870           enablestring=
7871           defaultval=$wxUSE_ALL_FEATURES
7872           if test -z "$defaultval"; then
7873               if test x"$enablestring" = xdisable; then
7874                   defaultval=yes
7875               else
7876                   defaultval=no
7877               fi
7878           fi
7879
7880           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7881 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7882           # Check whether --enable-stopwatch was given.
7883 if test "${enable_stopwatch+set}" = set; then
7884   enableval=$enable_stopwatch;
7885                           if test "$enableval" = yes; then
7886                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7887                           else
7888                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7889                           fi
7890
7891 else
7892
7893                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7894
7895 fi
7896
7897
7898           eval "$wx_cv_use_stopwatch"
7899
7900           if test x"$enablestring" = xdisable; then
7901             if test $wxUSE_STOPWATCH = no; then
7902               result=yes
7903             else
7904               result=no
7905             fi
7906           else
7907             result=$wxUSE_STOPWATCH
7908           fi
7909
7910           { echo "$as_me:$LINENO: result: $result" >&5
7911 echo "${ECHO_T}$result" >&6; }
7912
7913
7914           enablestring=
7915           defaultval=$wxUSE_ALL_FEATURES
7916           if test -z "$defaultval"; then
7917               if test x"$enablestring" = xdisable; then
7918                   defaultval=yes
7919               else
7920                   defaultval=no
7921               fi
7922           fi
7923
7924           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7925 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7926           # Check whether --enable-streams was given.
7927 if test "${enable_streams+set}" = set; then
7928   enableval=$enable_streams;
7929                           if test "$enableval" = yes; then
7930                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7931                           else
7932                             wx_cv_use_streams='wxUSE_STREAMS=no'
7933                           fi
7934
7935 else
7936
7937                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7938
7939 fi
7940
7941
7942           eval "$wx_cv_use_streams"
7943
7944           if test x"$enablestring" = xdisable; then
7945             if test $wxUSE_STREAMS = no; then
7946               result=yes
7947             else
7948               result=no
7949             fi
7950           else
7951             result=$wxUSE_STREAMS
7952           fi
7953
7954           { echo "$as_me:$LINENO: result: $result" >&5
7955 echo "${ECHO_T}$result" >&6; }
7956
7957
7958           enablestring=
7959           defaultval=$wxUSE_ALL_FEATURES
7960           if test -z "$defaultval"; then
7961               if test x"$enablestring" = xdisable; then
7962                   defaultval=yes
7963               else
7964                   defaultval=no
7965               fi
7966           fi
7967
7968           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
7969 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
7970           # Check whether --enable-sysoptions was given.
7971 if test "${enable_sysoptions+set}" = set; then
7972   enableval=$enable_sysoptions;
7973                           if test "$enableval" = yes; then
7974                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
7975                           else
7976                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
7977                           fi
7978
7979 else
7980
7981                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7982
7983 fi
7984
7985
7986           eval "$wx_cv_use_sysoptions"
7987
7988           if test x"$enablestring" = xdisable; then
7989             if test $wxUSE_SYSTEM_OPTIONS = no; then
7990               result=yes
7991             else
7992               result=no
7993             fi
7994           else
7995             result=$wxUSE_SYSTEM_OPTIONS
7996           fi
7997
7998           { echo "$as_me:$LINENO: result: $result" >&5
7999 echo "${ECHO_T}$result" >&6; }
8000
8001
8002           enablestring=
8003           defaultval=$wxUSE_ALL_FEATURES
8004           if test -z "$defaultval"; then
8005               if test x"$enablestring" = xdisable; then
8006                   defaultval=yes
8007               else
8008                   defaultval=no
8009               fi
8010           fi
8011
8012           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8013 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8014           # Check whether --enable-tarstream was given.
8015 if test "${enable_tarstream+set}" = set; then
8016   enableval=$enable_tarstream;
8017                           if test "$enableval" = yes; then
8018                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8019                           else
8020                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8021                           fi
8022
8023 else
8024
8025                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8026
8027 fi
8028
8029
8030           eval "$wx_cv_use_tarstream"
8031
8032           if test x"$enablestring" = xdisable; then
8033             if test $wxUSE_TARSTREAM = no; then
8034               result=yes
8035             else
8036               result=no
8037             fi
8038           else
8039             result=$wxUSE_TARSTREAM
8040           fi
8041
8042           { echo "$as_me:$LINENO: result: $result" >&5
8043 echo "${ECHO_T}$result" >&6; }
8044
8045
8046           enablestring=
8047           defaultval=$wxUSE_ALL_FEATURES
8048           if test -z "$defaultval"; then
8049               if test x"$enablestring" = xdisable; then
8050                   defaultval=yes
8051               else
8052                   defaultval=no
8053               fi
8054           fi
8055
8056           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8057 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8058           # Check whether --enable-textbuf was given.
8059 if test "${enable_textbuf+set}" = set; then
8060   enableval=$enable_textbuf;
8061                           if test "$enableval" = yes; then
8062                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8063                           else
8064                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8065                           fi
8066
8067 else
8068
8069                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8070
8071 fi
8072
8073
8074           eval "$wx_cv_use_textbuf"
8075
8076           if test x"$enablestring" = xdisable; then
8077             if test $wxUSE_TEXTBUFFER = no; then
8078               result=yes
8079             else
8080               result=no
8081             fi
8082           else
8083             result=$wxUSE_TEXTBUFFER
8084           fi
8085
8086           { echo "$as_me:$LINENO: result: $result" >&5
8087 echo "${ECHO_T}$result" >&6; }
8088
8089
8090           enablestring=
8091           defaultval=$wxUSE_ALL_FEATURES
8092           if test -z "$defaultval"; then
8093               if test x"$enablestring" = xdisable; then
8094                   defaultval=yes
8095               else
8096                   defaultval=no
8097               fi
8098           fi
8099
8100           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8101 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8102           # Check whether --enable-textfile was given.
8103 if test "${enable_textfile+set}" = set; then
8104   enableval=$enable_textfile;
8105                           if test "$enableval" = yes; then
8106                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8107                           else
8108                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8109                           fi
8110
8111 else
8112
8113                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8114
8115 fi
8116
8117
8118           eval "$wx_cv_use_textfile"
8119
8120           if test x"$enablestring" = xdisable; then
8121             if test $wxUSE_TEXTFILE = no; then
8122               result=yes
8123             else
8124               result=no
8125             fi
8126           else
8127             result=$wxUSE_TEXTFILE
8128           fi
8129
8130           { echo "$as_me:$LINENO: result: $result" >&5
8131 echo "${ECHO_T}$result" >&6; }
8132
8133
8134           enablestring=
8135           defaultval=$wxUSE_ALL_FEATURES
8136           if test -z "$defaultval"; then
8137               if test x"$enablestring" = xdisable; then
8138                   defaultval=yes
8139               else
8140                   defaultval=no
8141               fi
8142           fi
8143
8144           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8145 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8146           # Check whether --enable-timer was given.
8147 if test "${enable_timer+set}" = set; then
8148   enableval=$enable_timer;
8149                           if test "$enableval" = yes; then
8150                             wx_cv_use_timer='wxUSE_TIMER=yes'
8151                           else
8152                             wx_cv_use_timer='wxUSE_TIMER=no'
8153                           fi
8154
8155 else
8156
8157                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8158
8159 fi
8160
8161
8162           eval "$wx_cv_use_timer"
8163
8164           if test x"$enablestring" = xdisable; then
8165             if test $wxUSE_TIMER = no; then
8166               result=yes
8167             else
8168               result=no
8169             fi
8170           else
8171             result=$wxUSE_TIMER
8172           fi
8173
8174           { echo "$as_me:$LINENO: result: $result" >&5
8175 echo "${ECHO_T}$result" >&6; }
8176
8177
8178           enablestring=
8179           defaultval=$wxUSE_ALL_FEATURES
8180           if test -z "$defaultval"; then
8181               if test x"$enablestring" = xdisable; then
8182                   defaultval=yes
8183               else
8184                   defaultval=no
8185               fi
8186           fi
8187
8188           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8189 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8190           # Check whether --enable-variant was given.
8191 if test "${enable_variant+set}" = set; then
8192   enableval=$enable_variant;
8193                           if test "$enableval" = yes; then
8194                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8195                           else
8196                             wx_cv_use_variant='wxUSE_VARIANT=no'
8197                           fi
8198
8199 else
8200
8201                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8202
8203 fi
8204
8205
8206           eval "$wx_cv_use_variant"
8207
8208           if test x"$enablestring" = xdisable; then
8209             if test $wxUSE_VARIANT = no; then
8210               result=yes
8211             else
8212               result=no
8213             fi
8214           else
8215             result=$wxUSE_VARIANT
8216           fi
8217
8218           { echo "$as_me:$LINENO: result: $result" >&5
8219 echo "${ECHO_T}$result" >&6; }
8220
8221
8222           enablestring=
8223           defaultval=$wxUSE_ALL_FEATURES
8224           if test -z "$defaultval"; then
8225               if test x"$enablestring" = xdisable; then
8226                   defaultval=yes
8227               else
8228                   defaultval=no
8229               fi
8230           fi
8231
8232           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8233 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8234           # Check whether --enable-zipstream was given.
8235 if test "${enable_zipstream+set}" = set; then
8236   enableval=$enable_zipstream;
8237                           if test "$enableval" = yes; then
8238                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8239                           else
8240                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8241                           fi
8242
8243 else
8244
8245                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8246
8247 fi
8248
8249
8250           eval "$wx_cv_use_zipstream"
8251
8252           if test x"$enablestring" = xdisable; then
8253             if test $wxUSE_ZIPSTREAM = no; then
8254               result=yes
8255             else
8256               result=no
8257             fi
8258           else
8259             result=$wxUSE_ZIPSTREAM
8260           fi
8261
8262           { echo "$as_me:$LINENO: result: $result" >&5
8263 echo "${ECHO_T}$result" >&6; }
8264
8265
8266
8267           enablestring=
8268           defaultval=$wxUSE_ALL_FEATURES
8269           if test -z "$defaultval"; then
8270               if test x"$enablestring" = xdisable; then
8271                   defaultval=yes
8272               else
8273                   defaultval=no
8274               fi
8275           fi
8276
8277           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8278 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8279           # Check whether --enable-url was given.
8280 if test "${enable_url+set}" = set; then
8281   enableval=$enable_url;
8282                           if test "$enableval" = yes; then
8283                             wx_cv_use_url='wxUSE_URL=yes'
8284                           else
8285                             wx_cv_use_url='wxUSE_URL=no'
8286                           fi
8287
8288 else
8289
8290                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8291
8292 fi
8293
8294
8295           eval "$wx_cv_use_url"
8296
8297           if test x"$enablestring" = xdisable; then
8298             if test $wxUSE_URL = no; then
8299               result=yes
8300             else
8301               result=no
8302             fi
8303           else
8304             result=$wxUSE_URL
8305           fi
8306
8307           { echo "$as_me:$LINENO: result: $result" >&5
8308 echo "${ECHO_T}$result" >&6; }
8309
8310
8311           enablestring=
8312           defaultval=$wxUSE_ALL_FEATURES
8313           if test -z "$defaultval"; then
8314               if test x"$enablestring" = xdisable; then
8315                   defaultval=yes
8316               else
8317                   defaultval=no
8318               fi
8319           fi
8320
8321           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8322 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8323           # Check whether --enable-protocol was given.
8324 if test "${enable_protocol+set}" = set; then
8325   enableval=$enable_protocol;
8326                           if test "$enableval" = yes; then
8327                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8328                           else
8329                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8330                           fi
8331
8332 else
8333
8334                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8335
8336 fi
8337
8338
8339           eval "$wx_cv_use_protocol"
8340
8341           if test x"$enablestring" = xdisable; then
8342             if test $wxUSE_PROTOCOL = no; then
8343               result=yes
8344             else
8345               result=no
8346             fi
8347           else
8348             result=$wxUSE_PROTOCOL
8349           fi
8350
8351           { echo "$as_me:$LINENO: result: $result" >&5
8352 echo "${ECHO_T}$result" >&6; }
8353
8354
8355           enablestring=
8356           defaultval=$wxUSE_ALL_FEATURES
8357           if test -z "$defaultval"; then
8358               if test x"$enablestring" = xdisable; then
8359                   defaultval=yes
8360               else
8361                   defaultval=no
8362               fi
8363           fi
8364
8365           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8366 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8367           # Check whether --enable-protocol_http was given.
8368 if test "${enable_protocol_http+set}" = set; then
8369   enableval=$enable_protocol_http;
8370                           if test "$enableval" = yes; then
8371                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8372                           else
8373                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8374                           fi
8375
8376 else
8377
8378                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8379
8380 fi
8381
8382
8383           eval "$wx_cv_use_protocol_http"
8384
8385           if test x"$enablestring" = xdisable; then
8386             if test $wxUSE_PROTOCOL_HTTP = no; then
8387               result=yes
8388             else
8389               result=no
8390             fi
8391           else
8392             result=$wxUSE_PROTOCOL_HTTP
8393           fi
8394
8395           { echo "$as_me:$LINENO: result: $result" >&5
8396 echo "${ECHO_T}$result" >&6; }
8397
8398
8399           enablestring=
8400           defaultval=$wxUSE_ALL_FEATURES
8401           if test -z "$defaultval"; then
8402               if test x"$enablestring" = xdisable; then
8403                   defaultval=yes
8404               else
8405                   defaultval=no
8406               fi
8407           fi
8408
8409           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8410 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8411           # Check whether --enable-protocol_ftp was given.
8412 if test "${enable_protocol_ftp+set}" = set; then
8413   enableval=$enable_protocol_ftp;
8414                           if test "$enableval" = yes; then
8415                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8416                           else
8417                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8418                           fi
8419
8420 else
8421
8422                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8423
8424 fi
8425
8426
8427           eval "$wx_cv_use_protocol_ftp"
8428
8429           if test x"$enablestring" = xdisable; then
8430             if test $wxUSE_PROTOCOL_FTP = no; then
8431               result=yes
8432             else
8433               result=no
8434             fi
8435           else
8436             result=$wxUSE_PROTOCOL_FTP
8437           fi
8438
8439           { echo "$as_me:$LINENO: result: $result" >&5
8440 echo "${ECHO_T}$result" >&6; }
8441
8442
8443           enablestring=
8444           defaultval=$wxUSE_ALL_FEATURES
8445           if test -z "$defaultval"; then
8446               if test x"$enablestring" = xdisable; then
8447                   defaultval=yes
8448               else
8449                   defaultval=no
8450               fi
8451           fi
8452
8453           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8454 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8455           # Check whether --enable-protocol_file was given.
8456 if test "${enable_protocol_file+set}" = set; then
8457   enableval=$enable_protocol_file;
8458                           if test "$enableval" = yes; then
8459                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8460                           else
8461                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8462                           fi
8463
8464 else
8465
8466                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8467
8468 fi
8469
8470
8471           eval "$wx_cv_use_protocol_file"
8472
8473           if test x"$enablestring" = xdisable; then
8474             if test $wxUSE_PROTOCOL_FILE = no; then
8475               result=yes
8476             else
8477               result=no
8478             fi
8479           else
8480             result=$wxUSE_PROTOCOL_FILE
8481           fi
8482
8483           { echo "$as_me:$LINENO: result: $result" >&5
8484 echo "${ECHO_T}$result" >&6; }
8485
8486
8487
8488           enablestring=
8489           defaultval=$wxUSE_ALL_FEATURES
8490           if test -z "$defaultval"; then
8491               if test x"$enablestring" = xdisable; then
8492                   defaultval=yes
8493               else
8494                   defaultval=no
8495               fi
8496           fi
8497
8498           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8499 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8500           # Check whether --enable-threads was given.
8501 if test "${enable_threads+set}" = set; then
8502   enableval=$enable_threads;
8503                           if test "$enableval" = yes; then
8504                             wx_cv_use_threads='wxUSE_THREADS=yes'
8505                           else
8506                             wx_cv_use_threads='wxUSE_THREADS=no'
8507                           fi
8508
8509 else
8510
8511                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8512
8513 fi
8514
8515
8516           eval "$wx_cv_use_threads"
8517
8518           if test x"$enablestring" = xdisable; then
8519             if test $wxUSE_THREADS = no; then
8520               result=yes
8521             else
8522               result=no
8523             fi
8524           else
8525             result=$wxUSE_THREADS
8526           fi
8527
8528           { echo "$as_me:$LINENO: result: $result" >&5
8529 echo "${ECHO_T}$result" >&6; }
8530
8531
8532
8533           enablestring=
8534           defaultval=
8535           if test -z "$defaultval"; then
8536               if test x"$enablestring" = xdisable; then
8537                   defaultval=yes
8538               else
8539                   defaultval=no
8540               fi
8541           fi
8542
8543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8544 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8545           # Check whether --enable-iniconf was given.
8546 if test "${enable_iniconf+set}" = set; then
8547   enableval=$enable_iniconf;
8548                           if test "$enableval" = yes; then
8549                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8550                           else
8551                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8552                           fi
8553
8554 else
8555
8556                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8557
8558 fi
8559
8560
8561           eval "$wx_cv_use_iniconf"
8562
8563           if test x"$enablestring" = xdisable; then
8564             if test $wxUSE_INICONF = no; then
8565               result=yes
8566             else
8567               result=no
8568             fi
8569           else
8570             result=$wxUSE_INICONF
8571           fi
8572
8573           { echo "$as_me:$LINENO: result: $result" >&5
8574 echo "${ECHO_T}$result" >&6; }
8575
8576
8577           enablestring=
8578           defaultval=$wxUSE_ALL_FEATURES
8579           if test -z "$defaultval"; then
8580               if test x"$enablestring" = xdisable; then
8581                   defaultval=yes
8582               else
8583                   defaultval=no
8584               fi
8585           fi
8586
8587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8588 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8589           # Check whether --enable-regkey was given.
8590 if test "${enable_regkey+set}" = set; then
8591   enableval=$enable_regkey;
8592                           if test "$enableval" = yes; then
8593                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8594                           else
8595                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8596                           fi
8597
8598 else
8599
8600                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8601
8602 fi
8603
8604
8605           eval "$wx_cv_use_regkey"
8606
8607           if test x"$enablestring" = xdisable; then
8608             if test $wxUSE_REGKEY = no; then
8609               result=yes
8610             else
8611               result=no
8612             fi
8613           else
8614             result=$wxUSE_REGKEY
8615           fi
8616
8617           { echo "$as_me:$LINENO: result: $result" >&5
8618 echo "${ECHO_T}$result" >&6; }
8619
8620
8621 if test "$wxUSE_GUI" = "yes"; then
8622
8623
8624
8625           enablestring=
8626           defaultval=$wxUSE_ALL_FEATURES
8627           if test -z "$defaultval"; then
8628               if test x"$enablestring" = xdisable; then
8629                   defaultval=yes
8630               else
8631                   defaultval=no
8632               fi
8633           fi
8634
8635           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8636 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8637           # Check whether --enable-docview was given.
8638 if test "${enable_docview+set}" = set; then
8639   enableval=$enable_docview;
8640                           if test "$enableval" = yes; then
8641                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8642                           else
8643                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8644                           fi
8645
8646 else
8647
8648                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8649
8650 fi
8651
8652
8653           eval "$wx_cv_use_docview"
8654
8655           if test x"$enablestring" = xdisable; then
8656             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8657               result=yes
8658             else
8659               result=no
8660             fi
8661           else
8662             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8663           fi
8664
8665           { echo "$as_me:$LINENO: result: $result" >&5
8666 echo "${ECHO_T}$result" >&6; }
8667
8668
8669           enablestring=
8670           defaultval=$wxUSE_ALL_FEATURES
8671           if test -z "$defaultval"; then
8672               if test x"$enablestring" = xdisable; then
8673                   defaultval=yes
8674               else
8675                   defaultval=no
8676               fi
8677           fi
8678
8679           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8680 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8681           # Check whether --enable-help was given.
8682 if test "${enable_help+set}" = set; then
8683   enableval=$enable_help;
8684                           if test "$enableval" = yes; then
8685                             wx_cv_use_help='wxUSE_HELP=yes'
8686                           else
8687                             wx_cv_use_help='wxUSE_HELP=no'
8688                           fi
8689
8690 else
8691
8692                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8693
8694 fi
8695
8696
8697           eval "$wx_cv_use_help"
8698
8699           if test x"$enablestring" = xdisable; then
8700             if test $wxUSE_HELP = no; then
8701               result=yes
8702             else
8703               result=no
8704             fi
8705           else
8706             result=$wxUSE_HELP
8707           fi
8708
8709           { echo "$as_me:$LINENO: result: $result" >&5
8710 echo "${ECHO_T}$result" >&6; }
8711
8712
8713           enablestring=
8714           defaultval=$wxUSE_ALL_FEATURES
8715           if test -z "$defaultval"; then
8716               if test x"$enablestring" = xdisable; then
8717                   defaultval=yes
8718               else
8719                   defaultval=no
8720               fi
8721           fi
8722
8723           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8724 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8725           # Check whether --enable-mshtmlhelp was given.
8726 if test "${enable_mshtmlhelp+set}" = set; then
8727   enableval=$enable_mshtmlhelp;
8728                           if test "$enableval" = yes; then
8729                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8730                           else
8731                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8732                           fi
8733
8734 else
8735
8736                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8737
8738 fi
8739
8740
8741           eval "$wx_cv_use_mshtmlhelp"
8742
8743           if test x"$enablestring" = xdisable; then
8744             if test $wxUSE_MS_HTML_HELP = no; then
8745               result=yes
8746             else
8747               result=no
8748             fi
8749           else
8750             result=$wxUSE_MS_HTML_HELP
8751           fi
8752
8753           { echo "$as_me:$LINENO: result: $result" >&5
8754 echo "${ECHO_T}$result" >&6; }
8755
8756
8757           enablestring=
8758           defaultval=$wxUSE_ALL_FEATURES
8759           if test -z "$defaultval"; then
8760               if test x"$enablestring" = xdisable; then
8761                   defaultval=yes
8762               else
8763                   defaultval=no
8764               fi
8765           fi
8766
8767           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8768 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8769           # Check whether --enable-html was given.
8770 if test "${enable_html+set}" = set; then
8771   enableval=$enable_html;
8772                           if test "$enableval" = yes; then
8773                             wx_cv_use_html='wxUSE_HTML=yes'
8774                           else
8775                             wx_cv_use_html='wxUSE_HTML=no'
8776                           fi
8777
8778 else
8779
8780                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8781
8782 fi
8783
8784
8785           eval "$wx_cv_use_html"
8786
8787           if test x"$enablestring" = xdisable; then
8788             if test $wxUSE_HTML = no; then
8789               result=yes
8790             else
8791               result=no
8792             fi
8793           else
8794             result=$wxUSE_HTML
8795           fi
8796
8797           { echo "$as_me:$LINENO: result: $result" >&5
8798 echo "${ECHO_T}$result" >&6; }
8799
8800
8801           enablestring=
8802           defaultval=$wxUSE_ALL_FEATURES
8803           if test -z "$defaultval"; then
8804               if test x"$enablestring" = xdisable; then
8805                   defaultval=yes
8806               else
8807                   defaultval=no
8808               fi
8809           fi
8810
8811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8812 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8813           # Check whether --enable-htmlhelp was given.
8814 if test "${enable_htmlhelp+set}" = set; then
8815   enableval=$enable_htmlhelp;
8816                           if test "$enableval" = yes; then
8817                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8818                           else
8819                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8820                           fi
8821
8822 else
8823
8824                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8825
8826 fi
8827
8828
8829           eval "$wx_cv_use_htmlhelp"
8830
8831           if test x"$enablestring" = xdisable; then
8832             if test $wxUSE_WXHTML_HELP = no; then
8833               result=yes
8834             else
8835               result=no
8836             fi
8837           else
8838             result=$wxUSE_WXHTML_HELP
8839           fi
8840
8841           { echo "$as_me:$LINENO: result: $result" >&5
8842 echo "${ECHO_T}$result" >&6; }
8843
8844
8845           enablestring=
8846           defaultval=$wxUSE_ALL_FEATURES
8847           if test -z "$defaultval"; then
8848               if test x"$enablestring" = xdisable; then
8849                   defaultval=yes
8850               else
8851                   defaultval=no
8852               fi
8853           fi
8854
8855           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8856 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8857           # Check whether --enable-xrc was given.
8858 if test "${enable_xrc+set}" = set; then
8859   enableval=$enable_xrc;
8860                           if test "$enableval" = yes; then
8861                             wx_cv_use_xrc='wxUSE_XRC=yes'
8862                           else
8863                             wx_cv_use_xrc='wxUSE_XRC=no'
8864                           fi
8865
8866 else
8867
8868                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8869
8870 fi
8871
8872
8873           eval "$wx_cv_use_xrc"
8874
8875           if test x"$enablestring" = xdisable; then
8876             if test $wxUSE_XRC = no; then
8877               result=yes
8878             else
8879               result=no
8880             fi
8881           else
8882             result=$wxUSE_XRC
8883           fi
8884
8885           { echo "$as_me:$LINENO: result: $result" >&5
8886 echo "${ECHO_T}$result" >&6; }
8887
8888
8889           enablestring=
8890           defaultval=$wxUSE_ALL_FEATURES
8891           if test -z "$defaultval"; then
8892               if test x"$enablestring" = xdisable; then
8893                   defaultval=yes
8894               else
8895                   defaultval=no
8896               fi
8897           fi
8898
8899           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8900 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8901           # Check whether --enable-aui was given.
8902 if test "${enable_aui+set}" = set; then
8903   enableval=$enable_aui;
8904                           if test "$enableval" = yes; then
8905                             wx_cv_use_aui='wxUSE_AUI=yes'
8906                           else
8907                             wx_cv_use_aui='wxUSE_AUI=no'
8908                           fi
8909
8910 else
8911
8912                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8913
8914 fi
8915
8916
8917           eval "$wx_cv_use_aui"
8918
8919           if test x"$enablestring" = xdisable; then
8920             if test $wxUSE_AUI = no; then
8921               result=yes
8922             else
8923               result=no
8924             fi
8925           else
8926             result=$wxUSE_AUI
8927           fi
8928
8929           { echo "$as_me:$LINENO: result: $result" >&5
8930 echo "${ECHO_T}$result" >&6; }
8931
8932
8933           enablestring=
8934           defaultval=$wxUSE_ALL_FEATURES
8935           if test -z "$defaultval"; then
8936               if test x"$enablestring" = xdisable; then
8937                   defaultval=yes
8938               else
8939                   defaultval=no
8940               fi
8941           fi
8942
8943           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8944 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8945           # Check whether --enable-propgrid was given.
8946 if test "${enable_propgrid+set}" = set; then
8947   enableval=$enable_propgrid;
8948                           if test "$enableval" = yes; then
8949                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8950                           else
8951                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8952                           fi
8953
8954 else
8955
8956                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8957
8958 fi
8959
8960
8961           eval "$wx_cv_use_propgrid"
8962
8963           if test x"$enablestring" = xdisable; then
8964             if test $wxUSE_PROPGRID = no; then
8965               result=yes
8966             else
8967               result=no
8968             fi
8969           else
8970             result=$wxUSE_PROPGRID
8971           fi
8972
8973           { echo "$as_me:$LINENO: result: $result" >&5
8974 echo "${ECHO_T}$result" >&6; }
8975
8976
8977           enablestring=
8978           defaultval=$wxUSE_ALL_FEATURES
8979           if test -z "$defaultval"; then
8980               if test x"$enablestring" = xdisable; then
8981                   defaultval=yes
8982               else
8983                   defaultval=no
8984               fi
8985           fi
8986
8987           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
8988 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
8989           # Check whether --enable-ribbon was given.
8990 if test "${enable_ribbon+set}" = set; then
8991   enableval=$enable_ribbon;
8992                           if test "$enableval" = yes; then
8993                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
8994                           else
8995                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
8996                           fi
8997
8998 else
8999
9000                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
9001
9002 fi
9003
9004
9005           eval "$wx_cv_use_ribbon"
9006
9007           if test x"$enablestring" = xdisable; then
9008             if test $wxUSE_RIBBON = no; then
9009               result=yes
9010             else
9011               result=no
9012             fi
9013           else
9014             result=$wxUSE_RIBBON
9015           fi
9016
9017           { echo "$as_me:$LINENO: result: $result" >&5
9018 echo "${ECHO_T}$result" >&6; }
9019
9020
9021           enablestring=
9022           defaultval=$wxUSE_ALL_FEATURES
9023           if test -z "$defaultval"; then
9024               if test x"$enablestring" = xdisable; then
9025                   defaultval=yes
9026               else
9027                   defaultval=no
9028               fi
9029           fi
9030
9031           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9032 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9033           # Check whether --enable-stc was given.
9034 if test "${enable_stc+set}" = set; then
9035   enableval=$enable_stc;
9036                           if test "$enableval" = yes; then
9037                             wx_cv_use_stc='wxUSE_STC=yes'
9038                           else
9039                             wx_cv_use_stc='wxUSE_STC=no'
9040                           fi
9041
9042 else
9043
9044                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9045
9046 fi
9047
9048
9049           eval "$wx_cv_use_stc"
9050
9051           if test x"$enablestring" = xdisable; then
9052             if test $wxUSE_STC = no; then
9053               result=yes
9054             else
9055               result=no
9056             fi
9057           else
9058             result=$wxUSE_STC
9059           fi
9060
9061           { echo "$as_me:$LINENO: result: $result" >&5
9062 echo "${ECHO_T}$result" >&6; }
9063
9064
9065           enablestring=
9066           defaultval=$wxUSE_ALL_FEATURES
9067           if test -z "$defaultval"; then
9068               if test x"$enablestring" = xdisable; then
9069                   defaultval=yes
9070               else
9071                   defaultval=no
9072               fi
9073           fi
9074
9075           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9076 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9077           # Check whether --enable-constraints was given.
9078 if test "${enable_constraints+set}" = set; then
9079   enableval=$enable_constraints;
9080                           if test "$enableval" = yes; then
9081                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9082                           else
9083                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9084                           fi
9085
9086 else
9087
9088                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9089
9090 fi
9091
9092
9093           eval "$wx_cv_use_constraints"
9094
9095           if test x"$enablestring" = xdisable; then
9096             if test $wxUSE_CONSTRAINTS = no; then
9097               result=yes
9098             else
9099               result=no
9100             fi
9101           else
9102             result=$wxUSE_CONSTRAINTS
9103           fi
9104
9105           { echo "$as_me:$LINENO: result: $result" >&5
9106 echo "${ECHO_T}$result" >&6; }
9107
9108
9109           enablestring=
9110           defaultval=$wxUSE_ALL_FEATURES
9111           if test -z "$defaultval"; then
9112               if test x"$enablestring" = xdisable; then
9113                   defaultval=yes
9114               else
9115                   defaultval=no
9116               fi
9117           fi
9118
9119           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9120 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9121           # Check whether --enable-loggui was given.
9122 if test "${enable_loggui+set}" = set; then
9123   enableval=$enable_loggui;
9124                           if test "$enableval" = yes; then
9125                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9126                           else
9127                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9128                           fi
9129
9130 else
9131
9132                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9133
9134 fi
9135
9136
9137           eval "$wx_cv_use_loggui"
9138
9139           if test x"$enablestring" = xdisable; then
9140             if test $wxUSE_LOGGUI = no; then
9141               result=yes
9142             else
9143               result=no
9144             fi
9145           else
9146             result=$wxUSE_LOGGUI
9147           fi
9148
9149           { echo "$as_me:$LINENO: result: $result" >&5
9150 echo "${ECHO_T}$result" >&6; }
9151
9152
9153           enablestring=
9154           defaultval=$wxUSE_ALL_FEATURES
9155           if test -z "$defaultval"; then
9156               if test x"$enablestring" = xdisable; then
9157                   defaultval=yes
9158               else
9159                   defaultval=no
9160               fi
9161           fi
9162
9163           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9164 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9165           # Check whether --enable-logwin was given.
9166 if test "${enable_logwin+set}" = set; then
9167   enableval=$enable_logwin;
9168                           if test "$enableval" = yes; then
9169                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9170                           else
9171                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9172                           fi
9173
9174 else
9175
9176                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9177
9178 fi
9179
9180
9181           eval "$wx_cv_use_logwin"
9182
9183           if test x"$enablestring" = xdisable; then
9184             if test $wxUSE_LOGWINDOW = no; then
9185               result=yes
9186             else
9187               result=no
9188             fi
9189           else
9190             result=$wxUSE_LOGWINDOW
9191           fi
9192
9193           { echo "$as_me:$LINENO: result: $result" >&5
9194 echo "${ECHO_T}$result" >&6; }
9195
9196
9197           enablestring=
9198           defaultval=$wxUSE_ALL_FEATURES
9199           if test -z "$defaultval"; then
9200               if test x"$enablestring" = xdisable; then
9201                   defaultval=yes
9202               else
9203                   defaultval=no
9204               fi
9205           fi
9206
9207           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9208 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9209           # Check whether --enable-logdialog was given.
9210 if test "${enable_logdialog+set}" = set; then
9211   enableval=$enable_logdialog;
9212                           if test "$enableval" = yes; then
9213                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9214                           else
9215                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9216                           fi
9217
9218 else
9219
9220                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9221
9222 fi
9223
9224
9225           eval "$wx_cv_use_logdialog"
9226
9227           if test x"$enablestring" = xdisable; then
9228             if test $wxUSE_LOGDIALOG = no; then
9229               result=yes
9230             else
9231               result=no
9232             fi
9233           else
9234             result=$wxUSE_LOGDIALOG
9235           fi
9236
9237           { echo "$as_me:$LINENO: result: $result" >&5
9238 echo "${ECHO_T}$result" >&6; }
9239
9240
9241           enablestring=
9242           defaultval=$wxUSE_ALL_FEATURES
9243           if test -z "$defaultval"; then
9244               if test x"$enablestring" = xdisable; then
9245                   defaultval=yes
9246               else
9247                   defaultval=no
9248               fi
9249           fi
9250
9251           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9252 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9253           # Check whether --enable-mdi was given.
9254 if test "${enable_mdi+set}" = set; then
9255   enableval=$enable_mdi;
9256                           if test "$enableval" = yes; then
9257                             wx_cv_use_mdi='wxUSE_MDI=yes'
9258                           else
9259                             wx_cv_use_mdi='wxUSE_MDI=no'
9260                           fi
9261
9262 else
9263
9264                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9265
9266 fi
9267
9268
9269           eval "$wx_cv_use_mdi"
9270
9271           if test x"$enablestring" = xdisable; then
9272             if test $wxUSE_MDI = no; then
9273               result=yes
9274             else
9275               result=no
9276             fi
9277           else
9278             result=$wxUSE_MDI
9279           fi
9280
9281           { echo "$as_me:$LINENO: result: $result" >&5
9282 echo "${ECHO_T}$result" >&6; }
9283
9284
9285           enablestring=
9286           defaultval=$wxUSE_ALL_FEATURES
9287           if test -z "$defaultval"; then
9288               if test x"$enablestring" = xdisable; then
9289                   defaultval=yes
9290               else
9291                   defaultval=no
9292               fi
9293           fi
9294
9295           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9296 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9297           # Check whether --enable-mdidoc was given.
9298 if test "${enable_mdidoc+set}" = set; then
9299   enableval=$enable_mdidoc;
9300                           if test "$enableval" = yes; then
9301                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9302                           else
9303                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9304                           fi
9305
9306 else
9307
9308                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9309
9310 fi
9311
9312
9313           eval "$wx_cv_use_mdidoc"
9314
9315           if test x"$enablestring" = xdisable; then
9316             if test $wxUSE_MDI_ARCHITECTURE = no; then
9317               result=yes
9318             else
9319               result=no
9320             fi
9321           else
9322             result=$wxUSE_MDI_ARCHITECTURE
9323           fi
9324
9325           { echo "$as_me:$LINENO: result: $result" >&5
9326 echo "${ECHO_T}$result" >&6; }
9327
9328
9329           enablestring=
9330           defaultval=$wxUSE_ALL_FEATURES
9331           if test -z "$defaultval"; then
9332               if test x"$enablestring" = xdisable; then
9333                   defaultval=yes
9334               else
9335                   defaultval=no
9336               fi
9337           fi
9338
9339           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9340 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9341           # Check whether --enable-mediactrl was given.
9342 if test "${enable_mediactrl+set}" = set; then
9343   enableval=$enable_mediactrl;
9344                           if test "$enableval" = yes; then
9345                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9346                           else
9347                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9348                           fi
9349
9350 else
9351
9352                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9353
9354 fi
9355
9356
9357           eval "$wx_cv_use_mediactrl"
9358
9359           if test x"$enablestring" = xdisable; then
9360             if test $wxUSE_MEDIACTRL = no; then
9361               result=yes
9362             else
9363               result=no
9364             fi
9365           else
9366             result=$wxUSE_MEDIACTRL
9367           fi
9368
9369           { echo "$as_me:$LINENO: result: $result" >&5
9370 echo "${ECHO_T}$result" >&6; }
9371
9372
9373           enablestring=
9374           defaultval=$wxUSE_ALL_FEATURES
9375           if test -z "$defaultval"; then
9376               if test x"$enablestring" = xdisable; then
9377                   defaultval=yes
9378               else
9379                   defaultval=no
9380               fi
9381           fi
9382
9383           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9384 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9385           # Check whether --enable-gstreamer8 was given.
9386 if test "${enable_gstreamer8+set}" = set; then
9387   enableval=$enable_gstreamer8;
9388                           if test "$enableval" = yes; then
9389                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9390                           else
9391                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9392                           fi
9393
9394 else
9395
9396                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9397
9398 fi
9399
9400
9401           eval "$wx_cv_use_gstreamer8"
9402
9403           if test x"$enablestring" = xdisable; then
9404             if test $wxUSE_GSTREAMER8 = no; then
9405               result=yes
9406             else
9407               result=no
9408             fi
9409           else
9410             result=$wxUSE_GSTREAMER8
9411           fi
9412
9413           { echo "$as_me:$LINENO: result: $result" >&5
9414 echo "${ECHO_T}$result" >&6; }
9415
9416
9417           enablestring=
9418           defaultval=$wxUSE_ALL_FEATURES
9419           if test -z "$defaultval"; then
9420               if test x"$enablestring" = xdisable; then
9421                   defaultval=yes
9422               else
9423                   defaultval=no
9424               fi
9425           fi
9426
9427           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9428 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9429           # Check whether --enable-richtext was given.
9430 if test "${enable_richtext+set}" = set; then
9431   enableval=$enable_richtext;
9432                           if test "$enableval" = yes; then
9433                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9434                           else
9435                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9436                           fi
9437
9438 else
9439
9440                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9441
9442 fi
9443
9444
9445           eval "$wx_cv_use_richtext"
9446
9447           if test x"$enablestring" = xdisable; then
9448             if test $wxUSE_RICHTEXT = no; then
9449               result=yes
9450             else
9451               result=no
9452             fi
9453           else
9454             result=$wxUSE_RICHTEXT
9455           fi
9456
9457           { echo "$as_me:$LINENO: result: $result" >&5
9458 echo "${ECHO_T}$result" >&6; }
9459
9460
9461           enablestring=
9462           defaultval=$wxUSE_ALL_FEATURES
9463           if test -z "$defaultval"; then
9464               if test x"$enablestring" = xdisable; then
9465                   defaultval=yes
9466               else
9467                   defaultval=no
9468               fi
9469           fi
9470
9471           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9472 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9473           # Check whether --enable-postscript was given.
9474 if test "${enable_postscript+set}" = set; then
9475   enableval=$enable_postscript;
9476                           if test "$enableval" = yes; then
9477                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9478                           else
9479                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9480                           fi
9481
9482 else
9483
9484                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9485
9486 fi
9487
9488
9489           eval "$wx_cv_use_postscript"
9490
9491           if test x"$enablestring" = xdisable; then
9492             if test $wxUSE_POSTSCRIPT = no; then
9493               result=yes
9494             else
9495               result=no
9496             fi
9497           else
9498             result=$wxUSE_POSTSCRIPT
9499           fi
9500
9501           { echo "$as_me:$LINENO: result: $result" >&5
9502 echo "${ECHO_T}$result" >&6; }
9503
9504
9505           enablestring=
9506           defaultval=$wxUSE_ALL_FEATURES
9507           if test -z "$defaultval"; then
9508               if test x"$enablestring" = xdisable; then
9509                   defaultval=yes
9510               else
9511                   defaultval=no
9512               fi
9513           fi
9514
9515           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9516 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9517           # Check whether --enable-printarch was given.
9518 if test "${enable_printarch+set}" = set; then
9519   enableval=$enable_printarch;
9520                           if test "$enableval" = yes; then
9521                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9522                           else
9523                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9524                           fi
9525
9526 else
9527
9528                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9529
9530 fi
9531
9532
9533           eval "$wx_cv_use_printarch"
9534
9535           if test x"$enablestring" = xdisable; then
9536             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9537               result=yes
9538             else
9539               result=no
9540             fi
9541           else
9542             result=$wxUSE_PRINTING_ARCHITECTURE
9543           fi
9544
9545           { echo "$as_me:$LINENO: result: $result" >&5
9546 echo "${ECHO_T}$result" >&6; }
9547
9548
9549           enablestring=
9550           defaultval=$wxUSE_ALL_FEATURES
9551           if test -z "$defaultval"; then
9552               if test x"$enablestring" = xdisable; then
9553                   defaultval=yes
9554               else
9555                   defaultval=no
9556               fi
9557           fi
9558
9559           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9560 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9561           # Check whether --enable-svg was given.
9562 if test "${enable_svg+set}" = set; then
9563   enableval=$enable_svg;
9564                           if test "$enableval" = yes; then
9565                             wx_cv_use_svg='wxUSE_SVG=yes'
9566                           else
9567                             wx_cv_use_svg='wxUSE_SVG=no'
9568                           fi
9569
9570 else
9571
9572                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9573
9574 fi
9575
9576
9577           eval "$wx_cv_use_svg"
9578
9579           if test x"$enablestring" = xdisable; then
9580             if test $wxUSE_SVG = no; then
9581               result=yes
9582             else
9583               result=no
9584             fi
9585           else
9586             result=$wxUSE_SVG
9587           fi
9588
9589           { echo "$as_me:$LINENO: result: $result" >&5
9590 echo "${ECHO_T}$result" >&6; }
9591
9592
9593           enablestring=
9594           defaultval=$wxUSE_ALL_FEATURES
9595           if test -z "$defaultval"; then
9596               if test x"$enablestring" = xdisable; then
9597                   defaultval=yes
9598               else
9599                   defaultval=no
9600               fi
9601           fi
9602
9603           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9604 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9605           # Check whether --enable-webkit was given.
9606 if test "${enable_webkit+set}" = set; then
9607   enableval=$enable_webkit;
9608                           if test "$enableval" = yes; then
9609                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9610                           else
9611                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9612                           fi
9613
9614 else
9615
9616                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9617
9618 fi
9619
9620
9621           eval "$wx_cv_use_webkit"
9622
9623           if test x"$enablestring" = xdisable; then
9624             if test $wxUSE_WEBKIT = no; then
9625               result=yes
9626             else
9627               result=no
9628             fi
9629           else
9630             result=$wxUSE_WEBKIT
9631           fi
9632
9633           { echo "$as_me:$LINENO: result: $result" >&5
9634 echo "${ECHO_T}$result" >&6; }
9635
9636
9637           enablestring=
9638           defaultval=$wxUSE_ALL_FEATURES
9639           if test -z "$defaultval"; then
9640               if test x"$enablestring" = xdisable; then
9641                   defaultval=yes
9642               else
9643                   defaultval=no
9644               fi
9645           fi
9646
9647           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webview" >&5
9648 echo $ECHO_N "checking for --${enablestring:-enable}-webview... $ECHO_C" >&6; }
9649           # Check whether --enable-webview was given.
9650 if test "${enable_webview+set}" = set; then
9651   enableval=$enable_webview;
9652                           if test "$enableval" = yes; then
9653                             wx_cv_use_webview='wxUSE_WEBVIEW=yes'
9654                           else
9655                             wx_cv_use_webview='wxUSE_WEBVIEW=no'
9656                           fi
9657
9658 else
9659
9660                           wx_cv_use_webview='wxUSE_WEBVIEW=${'DEFAULT_wxUSE_WEBVIEW":-$defaultval}"
9661
9662 fi
9663
9664
9665           eval "$wx_cv_use_webview"
9666
9667           if test x"$enablestring" = xdisable; then
9668             if test $wxUSE_WEBVIEW = no; then
9669               result=yes
9670             else
9671               result=no
9672             fi
9673           else
9674             result=$wxUSE_WEBVIEW
9675           fi
9676
9677           { echo "$as_me:$LINENO: result: $result" >&5
9678 echo "${ECHO_T}$result" >&6; }
9679
9680
9681 if test "$wxUSE_MAC" != 1; then
9682
9683           enablestring=
9684           defaultval=$wxUSE_ALL_FEATURES
9685           if test -z "$defaultval"; then
9686               if test x"$enablestring" = xdisable; then
9687                   defaultval=yes
9688               else
9689                   defaultval=no
9690               fi
9691           fi
9692
9693           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9694 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9695           # Check whether --enable-graphics_ctx was given.
9696 if test "${enable_graphics_ctx+set}" = set; then
9697   enableval=$enable_graphics_ctx;
9698                           if test "$enableval" = yes; then
9699                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9700                           else
9701                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9702                           fi
9703
9704 else
9705
9706                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9707
9708 fi
9709
9710
9711           eval "$wx_cv_use_graphics_ctx"
9712
9713           if test x"$enablestring" = xdisable; then
9714             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9715               result=yes
9716             else
9717               result=no
9718             fi
9719           else
9720             result=$wxUSE_GRAPHICS_CONTEXT
9721           fi
9722
9723           { echo "$as_me:$LINENO: result: $result" >&5
9724 echo "${ECHO_T}$result" >&6; }
9725
9726 fi
9727
9728
9729
9730           enablestring=
9731           defaultval=$wxUSE_ALL_FEATURES
9732           if test -z "$defaultval"; then
9733               if test x"$enablestring" = xdisable; then
9734                   defaultval=yes
9735               else
9736                   defaultval=no
9737               fi
9738           fi
9739
9740           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9741 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9742           # Check whether --enable-clipboard was given.
9743 if test "${enable_clipboard+set}" = set; then
9744   enableval=$enable_clipboard;
9745                           if test "$enableval" = yes; then
9746                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9747                           else
9748                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9749                           fi
9750
9751 else
9752
9753                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9754
9755 fi
9756
9757
9758           eval "$wx_cv_use_clipboard"
9759
9760           if test x"$enablestring" = xdisable; then
9761             if test $wxUSE_CLIPBOARD = no; then
9762               result=yes
9763             else
9764               result=no
9765             fi
9766           else
9767             result=$wxUSE_CLIPBOARD
9768           fi
9769
9770           { echo "$as_me:$LINENO: result: $result" >&5
9771 echo "${ECHO_T}$result" >&6; }
9772
9773
9774           enablestring=
9775           defaultval=$wxUSE_ALL_FEATURES
9776           if test -z "$defaultval"; then
9777               if test x"$enablestring" = xdisable; then
9778                   defaultval=yes
9779               else
9780                   defaultval=no
9781               fi
9782           fi
9783
9784           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9785 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9786           # Check whether --enable-dnd was given.
9787 if test "${enable_dnd+set}" = set; then
9788   enableval=$enable_dnd;
9789                           if test "$enableval" = yes; then
9790                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9791                           else
9792                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9793                           fi
9794
9795 else
9796
9797                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9798
9799 fi
9800
9801
9802           eval "$wx_cv_use_dnd"
9803
9804           if test x"$enablestring" = xdisable; then
9805             if test $wxUSE_DRAG_AND_DROP = no; then
9806               result=yes
9807             else
9808               result=no
9809             fi
9810           else
9811             result=$wxUSE_DRAG_AND_DROP
9812           fi
9813
9814           { echo "$as_me:$LINENO: result: $result" >&5
9815 echo "${ECHO_T}$result" >&6; }
9816
9817
9818
9819 DEFAULT_wxUSE_CONTROLS=none
9820
9821           enablestring=disable
9822           defaultval=
9823           if test -z "$defaultval"; then
9824               if test x"$enablestring" = xdisable; then
9825                   defaultval=yes
9826               else
9827                   defaultval=no
9828               fi
9829           fi
9830
9831           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9832 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9833           # Check whether --enable-controls was given.
9834 if test "${enable_controls+set}" = set; then
9835   enableval=$enable_controls;
9836                           if test "$enableval" = yes; then
9837                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9838                           else
9839                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9840                           fi
9841
9842 else
9843
9844                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9845
9846 fi
9847
9848
9849           eval "$wx_cv_use_controls"
9850
9851           if test x"$enablestring" = xdisable; then
9852             if test $wxUSE_CONTROLS = no; then
9853               result=yes
9854             else
9855               result=no
9856             fi
9857           else
9858             result=$wxUSE_CONTROLS
9859           fi
9860
9861           { echo "$as_me:$LINENO: result: $result" >&5
9862 echo "${ECHO_T}$result" >&6; }
9863
9864
9865 if test "$wxUSE_CONTROLS" = "no"; then
9866     DEFAULT_wxUSE_ACCEL=no
9867     DEFAULT_wxUSE_ANIMATIONCTRL=no
9868     DEFAULT_wxUSE_BANNERWINDOW=no
9869     DEFAULT_wxUSE_BMPBUTTON=no
9870     DEFAULT_wxUSE_BUTTON=no
9871     DEFAULT_wxUSE_CALCTRL=no
9872     DEFAULT_wxUSE_CARET=no
9873     DEFAULT_wxUSE_CHECKBOX=no
9874     DEFAULT_wxUSE_CHECKLISTBOX=no
9875     DEFAULT_wxUSE_CHOICE=no
9876     DEFAULT_wxUSE_CHOICEBOOK=no
9877     DEFAULT_wxUSE_COLLPANE=no
9878     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9879     DEFAULT_wxUSE_COMBOBOX=no
9880     DEFAULT_wxUSE_COMBOBOX=no
9881     DEFAULT_wxUSE_COMMANDLINKBUTTON=no
9882     DEFAULT_wxUSE_DATAVIEWCTRL=no
9883     DEFAULT_wxUSE_DATEPICKCTRL=no
9884     DEFAULT_wxUSE_DETECT_SM=no
9885     DEFAULT_wxUSE_DIRPICKERCTRL=no
9886     DEFAULT_wxUSE_DISPLAY=no
9887     DEFAULT_wxUSE_FILECTRL=no
9888     DEFAULT_wxUSE_FILEPICKERCTRL=no
9889     DEFAULT_wxUSE_FONTPICKERCTRL=no
9890     DEFAULT_wxUSE_GAUGE=no
9891     DEFAULT_wxUSE_GRID=no
9892     DEFAULT_wxUSE_HEADERCTRL=no
9893     DEFAULT_wxUSE_HYPERLINKCTRL=no
9894     DEFAULT_wxUSE_IMAGLIST=no
9895     DEFAULT_wxUSE_LISTBOOK=no
9896     DEFAULT_wxUSE_LISTBOX=no
9897     DEFAULT_wxUSE_LISTCTRL=no
9898     DEFAULT_wxUSE_MARKUP=no
9899     DEFAULT_wxUSE_NOTEBOOK=no
9900     DEFAULT_wxUSE_POPUPWIN=no
9901     DEFAULT_wxUSE_RADIOBOX=no
9902     DEFAULT_wxUSE_RADIOBTN=no
9903     DEFAULT_wxUSE_RICHMSGDLG=no
9904     DEFAULT_wxUSE_RICHTOOLTIP=no
9905     DEFAULT_wxUSE_REARRANGECTRL=no
9906     DEFAULT_wxUSE_SASH=no
9907     DEFAULT_wxUSE_SCROLLBAR=no
9908     DEFAULT_wxUSE_SEARCHCTRL=no
9909     DEFAULT_wxUSE_SLIDER=no
9910     DEFAULT_wxUSE_SPINBTN=no
9911     DEFAULT_wxUSE_SPINCTRL=no
9912     DEFAULT_wxUSE_SPLITTER=no
9913     DEFAULT_wxUSE_STATBMP=no
9914     DEFAULT_wxUSE_STATBOX=no
9915     DEFAULT_wxUSE_STATLINE=no
9916     DEFAULT_wxUSE_STATUSBAR=no
9917     DEFAULT_wxUSE_TIMEPICKCTRL=no
9918     DEFAULT_wxUSE_TIPWINDOW=no
9919     DEFAULT_wxUSE_TOGGLEBTN=no
9920     DEFAULT_wxUSE_TOOLBAR=no
9921     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9922     DEFAULT_wxUSE_TOOLBOOK=no
9923     DEFAULT_wxUSE_TOOLTIPS=no
9924     DEFAULT_wxUSE_TREEBOOK=no
9925     DEFAULT_wxUSE_TREECTRL=no
9926     DEFAULT_wxUSE_TREELISTCTRL=no
9927 fi
9928
9929
9930           enablestring=
9931           defaultval=$wxUSE_ALL_FEATURES
9932           if test -z "$defaultval"; then
9933               if test x"$enablestring" = xdisable; then
9934                   defaultval=yes
9935               else
9936                   defaultval=no
9937               fi
9938           fi
9939
9940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-markup" >&5
9941 echo $ECHO_N "checking for --${enablestring:-enable}-markup... $ECHO_C" >&6; }
9942           # Check whether --enable-markup was given.
9943 if test "${enable_markup+set}" = set; then
9944   enableval=$enable_markup;
9945                           if test "$enableval" = yes; then
9946                             wx_cv_use_markup='wxUSE_MARKUP=yes'
9947                           else
9948                             wx_cv_use_markup='wxUSE_MARKUP=no'
9949                           fi
9950
9951 else
9952
9953                           wx_cv_use_markup='wxUSE_MARKUP=${'DEFAULT_wxUSE_MARKUP":-$defaultval}"
9954
9955 fi
9956
9957
9958           eval "$wx_cv_use_markup"
9959
9960           if test x"$enablestring" = xdisable; then
9961             if test $wxUSE_MARKUP = no; then
9962               result=yes
9963             else
9964               result=no
9965             fi
9966           else
9967             result=$wxUSE_MARKUP
9968           fi
9969
9970           { echo "$as_me:$LINENO: result: $result" >&5
9971 echo "${ECHO_T}$result" >&6; }
9972
9973
9974
9975           enablestring=
9976           defaultval=$wxUSE_ALL_FEATURES
9977           if test -z "$defaultval"; then
9978               if test x"$enablestring" = xdisable; then
9979                   defaultval=yes
9980               else
9981                   defaultval=no
9982               fi
9983           fi
9984
9985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9986 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9987           # Check whether --enable-accel was given.
9988 if test "${enable_accel+set}" = set; then
9989   enableval=$enable_accel;
9990                           if test "$enableval" = yes; then
9991                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9992                           else
9993                             wx_cv_use_accel='wxUSE_ACCEL=no'
9994                           fi
9995
9996 else
9997
9998                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9999
10000 fi
10001
10002
10003           eval "$wx_cv_use_accel"
10004
10005           if test x"$enablestring" = xdisable; then
10006             if test $wxUSE_ACCEL = no; then
10007               result=yes
10008             else
10009               result=no
10010             fi
10011           else
10012             result=$wxUSE_ACCEL
10013           fi
10014
10015           { echo "$as_me:$LINENO: result: $result" >&5
10016 echo "${ECHO_T}$result" >&6; }
10017
10018
10019           enablestring=
10020           defaultval=$wxUSE_ALL_FEATURES
10021           if test -z "$defaultval"; then
10022               if test x"$enablestring" = xdisable; then
10023                   defaultval=yes
10024               else
10025                   defaultval=no
10026               fi
10027           fi
10028
10029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10030 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10031           # Check whether --enable-animatectrl was given.
10032 if test "${enable_animatectrl+set}" = set; then
10033   enableval=$enable_animatectrl;
10034                           if test "$enableval" = yes; then
10035                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10036                           else
10037                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10038                           fi
10039
10040 else
10041
10042                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10043
10044 fi
10045
10046
10047           eval "$wx_cv_use_animatectrl"
10048
10049           if test x"$enablestring" = xdisable; then
10050             if test $wxUSE_ANIMATIONCTRL = no; then
10051               result=yes
10052             else
10053               result=no
10054             fi
10055           else
10056             result=$wxUSE_ANIMATIONCTRL
10057           fi
10058
10059           { echo "$as_me:$LINENO: result: $result" >&5
10060 echo "${ECHO_T}$result" >&6; }
10061
10062
10063           enablestring=
10064           defaultval=$wxUSE_ALL_FEATURES
10065           if test -z "$defaultval"; then
10066               if test x"$enablestring" = xdisable; then
10067                   defaultval=yes
10068               else
10069                   defaultval=no
10070               fi
10071           fi
10072
10073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bannerwindow" >&5
10074 echo $ECHO_N "checking for --${enablestring:-enable}-bannerwindow... $ECHO_C" >&6; }
10075           # Check whether --enable-bannerwindow was given.
10076 if test "${enable_bannerwindow+set}" = set; then
10077   enableval=$enable_bannerwindow;
10078                           if test "$enableval" = yes; then
10079                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=yes'
10080                           else
10081                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=no'
10082                           fi
10083
10084 else
10085
10086                           wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=${'DEFAULT_wxUSE_BANNERWINDOW":-$defaultval}"
10087
10088 fi
10089
10090
10091           eval "$wx_cv_use_bannerwindow"
10092
10093           if test x"$enablestring" = xdisable; then
10094             if test $wxUSE_BANNERWINDOW = no; then
10095               result=yes
10096             else
10097               result=no
10098             fi
10099           else
10100             result=$wxUSE_BANNERWINDOW
10101           fi
10102
10103           { echo "$as_me:$LINENO: result: $result" >&5
10104 echo "${ECHO_T}$result" >&6; }
10105
10106
10107           enablestring=
10108           defaultval=$wxUSE_ALL_FEATURES
10109           if test -z "$defaultval"; then
10110               if test x"$enablestring" = xdisable; then
10111                   defaultval=yes
10112               else
10113                   defaultval=no
10114               fi
10115           fi
10116
10117           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-artstd" >&5
10118 echo $ECHO_N "checking for --${enablestring:-enable}-artstd... $ECHO_C" >&6; }
10119           # Check whether --enable-artstd was given.
10120 if test "${enable_artstd+set}" = set; then
10121   enableval=$enable_artstd;
10122                           if test "$enableval" = yes; then
10123                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=yes'
10124                           else
10125                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=no'
10126                           fi
10127
10128 else
10129
10130                           wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=${'DEFAULT_wxUSE_ARTPROVIDER_STD":-$defaultval}"
10131
10132 fi
10133
10134
10135           eval "$wx_cv_use_artstd"
10136
10137           if test x"$enablestring" = xdisable; then
10138             if test $wxUSE_ARTPROVIDER_STD = no; then
10139               result=yes
10140             else
10141               result=no
10142             fi
10143           else
10144             result=$wxUSE_ARTPROVIDER_STD
10145           fi
10146
10147           { echo "$as_me:$LINENO: result: $result" >&5
10148 echo "${ECHO_T}$result" >&6; }
10149
10150
10151           enablestring=
10152           defaultval=$wxUSE_ALL_FEATURES
10153           if test -z "$defaultval"; then
10154               if test x"$enablestring" = xdisable; then
10155                   defaultval=yes
10156               else
10157                   defaultval=no
10158               fi
10159           fi
10160
10161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arttango" >&5
10162 echo $ECHO_N "checking for --${enablestring:-enable}-arttango... $ECHO_C" >&6; }
10163           # Check whether --enable-arttango was given.
10164 if test "${enable_arttango+set}" = set; then
10165   enableval=$enable_arttango;
10166                           if test "$enableval" = yes; then
10167                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=yes'
10168                           else
10169                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=no'
10170                           fi
10171
10172 else
10173
10174                           wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=${'DEFAULT_wxUSE_ARTPROVIDER_TANGO":-$defaultval}"
10175
10176 fi
10177
10178
10179           eval "$wx_cv_use_arttango"
10180
10181           if test x"$enablestring" = xdisable; then
10182             if test $wxUSE_ARTPROVIDER_TANGO = no; then
10183               result=yes
10184             else
10185               result=no
10186             fi
10187           else
10188             result=$wxUSE_ARTPROVIDER_TANGO
10189           fi
10190
10191           { echo "$as_me:$LINENO: result: $result" >&5
10192 echo "${ECHO_T}$result" >&6; }
10193
10194
10195           enablestring=
10196           defaultval=$wxUSE_ALL_FEATURES
10197           if test -z "$defaultval"; then
10198               if test x"$enablestring" = xdisable; then
10199                   defaultval=yes
10200               else
10201                   defaultval=no
10202               fi
10203           fi
10204
10205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10206 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10207           # Check whether --enable-bmpbutton was given.
10208 if test "${enable_bmpbutton+set}" = set; then
10209   enableval=$enable_bmpbutton;
10210                           if test "$enableval" = yes; then
10211                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10212                           else
10213                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10214                           fi
10215
10216 else
10217
10218                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10219
10220 fi
10221
10222
10223           eval "$wx_cv_use_bmpbutton"
10224
10225           if test x"$enablestring" = xdisable; then
10226             if test $wxUSE_BMPBUTTON = no; then
10227               result=yes
10228             else
10229               result=no
10230             fi
10231           else
10232             result=$wxUSE_BMPBUTTON
10233           fi
10234
10235           { echo "$as_me:$LINENO: result: $result" >&5
10236 echo "${ECHO_T}$result" >&6; }
10237
10238
10239           enablestring=
10240           defaultval=$wxUSE_ALL_FEATURES
10241           if test -z "$defaultval"; then
10242               if test x"$enablestring" = xdisable; then
10243                   defaultval=yes
10244               else
10245                   defaultval=no
10246               fi
10247           fi
10248
10249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10250 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10251           # Check whether --enable-bmpcombobox was given.
10252 if test "${enable_bmpcombobox+set}" = set; then
10253   enableval=$enable_bmpcombobox;
10254                           if test "$enableval" = yes; then
10255                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10256                           else
10257                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10258                           fi
10259
10260 else
10261
10262                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10263
10264 fi
10265
10266
10267           eval "$wx_cv_use_bmpcombobox"
10268
10269           if test x"$enablestring" = xdisable; then
10270             if test $wxUSE_BITMAPCOMBOBOX = no; then
10271               result=yes
10272             else
10273               result=no
10274             fi
10275           else
10276             result=$wxUSE_BITMAPCOMBOBOX
10277           fi
10278
10279           { echo "$as_me:$LINENO: result: $result" >&5
10280 echo "${ECHO_T}$result" >&6; }
10281
10282
10283           enablestring=
10284           defaultval=$wxUSE_ALL_FEATURES
10285           if test -z "$defaultval"; then
10286               if test x"$enablestring" = xdisable; then
10287                   defaultval=yes
10288               else
10289                   defaultval=no
10290               fi
10291           fi
10292
10293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10294 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10295           # Check whether --enable-button was given.
10296 if test "${enable_button+set}" = set; then
10297   enableval=$enable_button;
10298                           if test "$enableval" = yes; then
10299                             wx_cv_use_button='wxUSE_BUTTON=yes'
10300                           else
10301                             wx_cv_use_button='wxUSE_BUTTON=no'
10302                           fi
10303
10304 else
10305
10306                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10307
10308 fi
10309
10310
10311           eval "$wx_cv_use_button"
10312
10313           if test x"$enablestring" = xdisable; then
10314             if test $wxUSE_BUTTON = no; then
10315               result=yes
10316             else
10317               result=no
10318             fi
10319           else
10320             result=$wxUSE_BUTTON
10321           fi
10322
10323           { echo "$as_me:$LINENO: result: $result" >&5
10324 echo "${ECHO_T}$result" >&6; }
10325
10326
10327           enablestring=
10328           defaultval=$wxUSE_ALL_FEATURES
10329           if test -z "$defaultval"; then
10330               if test x"$enablestring" = xdisable; then
10331                   defaultval=yes
10332               else
10333                   defaultval=no
10334               fi
10335           fi
10336
10337           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10338 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10339           # Check whether --enable-calendar was given.
10340 if test "${enable_calendar+set}" = set; then
10341   enableval=$enable_calendar;
10342                           if test "$enableval" = yes; then
10343                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10344                           else
10345                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10346                           fi
10347
10348 else
10349
10350                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10351
10352 fi
10353
10354
10355           eval "$wx_cv_use_calendar"
10356
10357           if test x"$enablestring" = xdisable; then
10358             if test $wxUSE_CALCTRL = no; then
10359               result=yes
10360             else
10361               result=no
10362             fi
10363           else
10364             result=$wxUSE_CALCTRL
10365           fi
10366
10367           { echo "$as_me:$LINENO: result: $result" >&5
10368 echo "${ECHO_T}$result" >&6; }
10369
10370
10371           enablestring=
10372           defaultval=$wxUSE_ALL_FEATURES
10373           if test -z "$defaultval"; then
10374               if test x"$enablestring" = xdisable; then
10375                   defaultval=yes
10376               else
10377                   defaultval=no
10378               fi
10379           fi
10380
10381           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10382 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10383           # Check whether --enable-caret was given.
10384 if test "${enable_caret+set}" = set; then
10385   enableval=$enable_caret;
10386                           if test "$enableval" = yes; then
10387                             wx_cv_use_caret='wxUSE_CARET=yes'
10388                           else
10389                             wx_cv_use_caret='wxUSE_CARET=no'
10390                           fi
10391
10392 else
10393
10394                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10395
10396 fi
10397
10398
10399           eval "$wx_cv_use_caret"
10400
10401           if test x"$enablestring" = xdisable; then
10402             if test $wxUSE_CARET = no; then
10403               result=yes
10404             else
10405               result=no
10406             fi
10407           else
10408             result=$wxUSE_CARET
10409           fi
10410
10411           { echo "$as_me:$LINENO: result: $result" >&5
10412 echo "${ECHO_T}$result" >&6; }
10413
10414
10415           enablestring=
10416           defaultval=$wxUSE_ALL_FEATURES
10417           if test -z "$defaultval"; then
10418               if test x"$enablestring" = xdisable; then
10419                   defaultval=yes
10420               else
10421                   defaultval=no
10422               fi
10423           fi
10424
10425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10426 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10427           # Check whether --enable-checkbox was given.
10428 if test "${enable_checkbox+set}" = set; then
10429   enableval=$enable_checkbox;
10430                           if test "$enableval" = yes; then
10431                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10432                           else
10433                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10434                           fi
10435
10436 else
10437
10438                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10439
10440 fi
10441
10442
10443           eval "$wx_cv_use_checkbox"
10444
10445           if test x"$enablestring" = xdisable; then
10446             if test $wxUSE_CHECKBOX = no; then
10447               result=yes
10448             else
10449               result=no
10450             fi
10451           else
10452             result=$wxUSE_CHECKBOX
10453           fi
10454
10455           { echo "$as_me:$LINENO: result: $result" >&5
10456 echo "${ECHO_T}$result" >&6; }
10457
10458
10459           enablestring=
10460           defaultval=$wxUSE_ALL_FEATURES
10461           if test -z "$defaultval"; then
10462               if test x"$enablestring" = xdisable; then
10463                   defaultval=yes
10464               else
10465                   defaultval=no
10466               fi
10467           fi
10468
10469           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10470 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10471           # Check whether --enable-checklst was given.
10472 if test "${enable_checklst+set}" = set; then
10473   enableval=$enable_checklst;
10474                           if test "$enableval" = yes; then
10475                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10476                           else
10477                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10478                           fi
10479
10480 else
10481
10482                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10483
10484 fi
10485
10486
10487           eval "$wx_cv_use_checklst"
10488
10489           if test x"$enablestring" = xdisable; then
10490             if test $wxUSE_CHECKLST = no; then
10491               result=yes
10492             else
10493               result=no
10494             fi
10495           else
10496             result=$wxUSE_CHECKLST
10497           fi
10498
10499           { echo "$as_me:$LINENO: result: $result" >&5
10500 echo "${ECHO_T}$result" >&6; }
10501
10502
10503           enablestring=
10504           defaultval=$wxUSE_ALL_FEATURES
10505           if test -z "$defaultval"; then
10506               if test x"$enablestring" = xdisable; then
10507                   defaultval=yes
10508               else
10509                   defaultval=no
10510               fi
10511           fi
10512
10513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10514 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10515           # Check whether --enable-choice was given.
10516 if test "${enable_choice+set}" = set; then
10517   enableval=$enable_choice;
10518                           if test "$enableval" = yes; then
10519                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10520                           else
10521                             wx_cv_use_choice='wxUSE_CHOICE=no'
10522                           fi
10523
10524 else
10525
10526                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10527
10528 fi
10529
10530
10531           eval "$wx_cv_use_choice"
10532
10533           if test x"$enablestring" = xdisable; then
10534             if test $wxUSE_CHOICE = no; then
10535               result=yes
10536             else
10537               result=no
10538             fi
10539           else
10540             result=$wxUSE_CHOICE
10541           fi
10542
10543           { echo "$as_me:$LINENO: result: $result" >&5
10544 echo "${ECHO_T}$result" >&6; }
10545
10546
10547           enablestring=
10548           defaultval=$wxUSE_ALL_FEATURES
10549           if test -z "$defaultval"; then
10550               if test x"$enablestring" = xdisable; then
10551                   defaultval=yes
10552               else
10553                   defaultval=no
10554               fi
10555           fi
10556
10557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10558 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10559           # Check whether --enable-choicebook was given.
10560 if test "${enable_choicebook+set}" = set; then
10561   enableval=$enable_choicebook;
10562                           if test "$enableval" = yes; then
10563                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10564                           else
10565                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10566                           fi
10567
10568 else
10569
10570                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10571
10572 fi
10573
10574
10575           eval "$wx_cv_use_choicebook"
10576
10577           if test x"$enablestring" = xdisable; then
10578             if test $wxUSE_CHOICEBOOK = no; then
10579               result=yes
10580             else
10581               result=no
10582             fi
10583           else
10584             result=$wxUSE_CHOICEBOOK
10585           fi
10586
10587           { echo "$as_me:$LINENO: result: $result" >&5
10588 echo "${ECHO_T}$result" >&6; }
10589
10590
10591           enablestring=
10592           defaultval=$wxUSE_ALL_FEATURES
10593           if test -z "$defaultval"; then
10594               if test x"$enablestring" = xdisable; then
10595                   defaultval=yes
10596               else
10597                   defaultval=no
10598               fi
10599           fi
10600
10601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10602 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10603           # Check whether --enable-collpane was given.
10604 if test "${enable_collpane+set}" = set; then
10605   enableval=$enable_collpane;
10606                           if test "$enableval" = yes; then
10607                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10608                           else
10609                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10610                           fi
10611
10612 else
10613
10614                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10615
10616 fi
10617
10618
10619           eval "$wx_cv_use_collpane"
10620
10621           if test x"$enablestring" = xdisable; then
10622             if test $wxUSE_COLLPANE = no; then
10623               result=yes
10624             else
10625               result=no
10626             fi
10627           else
10628             result=$wxUSE_COLLPANE
10629           fi
10630
10631           { echo "$as_me:$LINENO: result: $result" >&5
10632 echo "${ECHO_T}$result" >&6; }
10633
10634
10635           enablestring=
10636           defaultval=$wxUSE_ALL_FEATURES
10637           if test -z "$defaultval"; then
10638               if test x"$enablestring" = xdisable; then
10639                   defaultval=yes
10640               else
10641                   defaultval=no
10642               fi
10643           fi
10644
10645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10646 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10647           # Check whether --enable-colourpicker was given.
10648 if test "${enable_colourpicker+set}" = set; then
10649   enableval=$enable_colourpicker;
10650                           if test "$enableval" = yes; then
10651                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10652                           else
10653                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10654                           fi
10655
10656 else
10657
10658                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10659
10660 fi
10661
10662
10663           eval "$wx_cv_use_colourpicker"
10664
10665           if test x"$enablestring" = xdisable; then
10666             if test $wxUSE_COLOURPICKERCTRL = no; then
10667               result=yes
10668             else
10669               result=no
10670             fi
10671           else
10672             result=$wxUSE_COLOURPICKERCTRL
10673           fi
10674
10675           { echo "$as_me:$LINENO: result: $result" >&5
10676 echo "${ECHO_T}$result" >&6; }
10677
10678
10679           enablestring=
10680           defaultval=$wxUSE_ALL_FEATURES
10681           if test -z "$defaultval"; then
10682               if test x"$enablestring" = xdisable; then
10683                   defaultval=yes
10684               else
10685                   defaultval=no
10686               fi
10687           fi
10688
10689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10690 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10691           # Check whether --enable-combobox was given.
10692 if test "${enable_combobox+set}" = set; then
10693   enableval=$enable_combobox;
10694                           if test "$enableval" = yes; then
10695                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10696                           else
10697                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10698                           fi
10699
10700 else
10701
10702                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10703
10704 fi
10705
10706
10707           eval "$wx_cv_use_combobox"
10708
10709           if test x"$enablestring" = xdisable; then
10710             if test $wxUSE_COMBOBOX = no; then
10711               result=yes
10712             else
10713               result=no
10714             fi
10715           else
10716             result=$wxUSE_COMBOBOX
10717           fi
10718
10719           { echo "$as_me:$LINENO: result: $result" >&5
10720 echo "${ECHO_T}$result" >&6; }
10721
10722
10723           enablestring=
10724           defaultval=$wxUSE_ALL_FEATURES
10725           if test -z "$defaultval"; then
10726               if test x"$enablestring" = xdisable; then
10727                   defaultval=yes
10728               else
10729                   defaultval=no
10730               fi
10731           fi
10732
10733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10734 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10735           # Check whether --enable-comboctrl was given.
10736 if test "${enable_comboctrl+set}" = set; then
10737   enableval=$enable_comboctrl;
10738                           if test "$enableval" = yes; then
10739                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10740                           else
10741                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10742                           fi
10743
10744 else
10745
10746                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10747
10748 fi
10749
10750
10751           eval "$wx_cv_use_comboctrl"
10752
10753           if test x"$enablestring" = xdisable; then
10754             if test $wxUSE_COMBOCTRL = no; then
10755               result=yes
10756             else
10757               result=no
10758             fi
10759           else
10760             result=$wxUSE_COMBOCTRL
10761           fi
10762
10763           { echo "$as_me:$LINENO: result: $result" >&5
10764 echo "${ECHO_T}$result" >&6; }
10765
10766
10767           enablestring=
10768           defaultval=$wxUSE_ALL_FEATURES
10769           if test -z "$defaultval"; then
10770               if test x"$enablestring" = xdisable; then
10771                   defaultval=yes
10772               else
10773                   defaultval=no
10774               fi
10775           fi
10776
10777           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commandlinkbutton" >&5
10778 echo $ECHO_N "checking for --${enablestring:-enable}-commandlinkbutton... $ECHO_C" >&6; }
10779           # Check whether --enable-commandlinkbutton was given.
10780 if test "${enable_commandlinkbutton+set}" = set; then
10781   enableval=$enable_commandlinkbutton;
10782                           if test "$enableval" = yes; then
10783                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=yes'
10784                           else
10785                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=no'
10786                           fi
10787
10788 else
10789
10790                           wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=${'DEFAULT_wxUSE_COMMANDLINKBUTTON":-$defaultval}"
10791
10792 fi
10793
10794
10795           eval "$wx_cv_use_commandlinkbutton"
10796
10797           if test x"$enablestring" = xdisable; then
10798             if test $wxUSE_COMMANDLINKBUTTON = no; then
10799               result=yes
10800             else
10801               result=no
10802             fi
10803           else
10804             result=$wxUSE_COMMANDLINKBUTTON
10805           fi
10806
10807           { echo "$as_me:$LINENO: result: $result" >&5
10808 echo "${ECHO_T}$result" >&6; }
10809
10810
10811           enablestring=
10812           defaultval=$wxUSE_ALL_FEATURES
10813           if test -z "$defaultval"; then
10814               if test x"$enablestring" = xdisable; then
10815                   defaultval=yes
10816               else
10817                   defaultval=no
10818               fi
10819           fi
10820
10821           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10822 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10823           # Check whether --enable-dataviewctrl was given.
10824 if test "${enable_dataviewctrl+set}" = set; then
10825   enableval=$enable_dataviewctrl;
10826                           if test "$enableval" = yes; then
10827                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10828                           else
10829                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10830                           fi
10831
10832 else
10833
10834                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10835
10836 fi
10837
10838
10839           eval "$wx_cv_use_dataviewctrl"
10840
10841           if test x"$enablestring" = xdisable; then
10842             if test $wxUSE_DATAVIEWCTRL = no; then
10843               result=yes
10844             else
10845               result=no
10846             fi
10847           else
10848             result=$wxUSE_DATAVIEWCTRL
10849           fi
10850
10851           { echo "$as_me:$LINENO: result: $result" >&5
10852 echo "${ECHO_T}$result" >&6; }
10853
10854
10855           enablestring=
10856           defaultval=$wxUSE_ALL_FEATURES
10857           if test -z "$defaultval"; then
10858               if test x"$enablestring" = xdisable; then
10859                   defaultval=yes
10860               else
10861                   defaultval=no
10862               fi
10863           fi
10864
10865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10866 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10867           # Check whether --enable-datepick was given.
10868 if test "${enable_datepick+set}" = set; then
10869   enableval=$enable_datepick;
10870                           if test "$enableval" = yes; then
10871                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10872                           else
10873                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10874                           fi
10875
10876 else
10877
10878                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10879
10880 fi
10881
10882
10883           eval "$wx_cv_use_datepick"
10884
10885           if test x"$enablestring" = xdisable; then
10886             if test $wxUSE_DATEPICKCTRL = no; then
10887               result=yes
10888             else
10889               result=no
10890             fi
10891           else
10892             result=$wxUSE_DATEPICKCTRL
10893           fi
10894
10895           { echo "$as_me:$LINENO: result: $result" >&5
10896 echo "${ECHO_T}$result" >&6; }
10897
10898
10899           enablestring=
10900           defaultval=$wxUSE_ALL_FEATURES
10901           if test -z "$defaultval"; then
10902               if test x"$enablestring" = xdisable; then
10903                   defaultval=yes
10904               else
10905                   defaultval=no
10906               fi
10907           fi
10908
10909           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10910 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10911           # Check whether --enable-detect_sm was given.
10912 if test "${enable_detect_sm+set}" = set; then
10913   enableval=$enable_detect_sm;
10914                           if test "$enableval" = yes; then
10915                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10916                           else
10917                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10918                           fi
10919
10920 else
10921
10922                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10923
10924 fi
10925
10926
10927           eval "$wx_cv_use_detect_sm"
10928
10929           if test x"$enablestring" = xdisable; then
10930             if test $wxUSE_DETECT_SM = no; then
10931               result=yes
10932             else
10933               result=no
10934             fi
10935           else
10936             result=$wxUSE_DETECT_SM
10937           fi
10938
10939           { echo "$as_me:$LINENO: result: $result" >&5
10940 echo "${ECHO_T}$result" >&6; }
10941
10942
10943           enablestring=
10944           defaultval=$wxUSE_ALL_FEATURES
10945           if test -z "$defaultval"; then
10946               if test x"$enablestring" = xdisable; then
10947                   defaultval=yes
10948               else
10949                   defaultval=no
10950               fi
10951           fi
10952
10953           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10954 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10955           # Check whether --enable-dirpicker was given.
10956 if test "${enable_dirpicker+set}" = set; then
10957   enableval=$enable_dirpicker;
10958                           if test "$enableval" = yes; then
10959                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10960                           else
10961                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10962                           fi
10963
10964 else
10965
10966                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10967
10968 fi
10969
10970
10971           eval "$wx_cv_use_dirpicker"
10972
10973           if test x"$enablestring" = xdisable; then
10974             if test $wxUSE_DIRPICKERCTRL = no; then
10975               result=yes
10976             else
10977               result=no
10978             fi
10979           else
10980             result=$wxUSE_DIRPICKERCTRL
10981           fi
10982
10983           { echo "$as_me:$LINENO: result: $result" >&5
10984 echo "${ECHO_T}$result" >&6; }
10985
10986
10987           enablestring=
10988           defaultval=$wxUSE_ALL_FEATURES
10989           if test -z "$defaultval"; then
10990               if test x"$enablestring" = xdisable; then
10991                   defaultval=yes
10992               else
10993                   defaultval=no
10994               fi
10995           fi
10996
10997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10998 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10999           # Check whether --enable-display was given.
11000 if test "${enable_display+set}" = set; then
11001   enableval=$enable_display;
11002                           if test "$enableval" = yes; then
11003                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11004                           else
11005                             wx_cv_use_display='wxUSE_DISPLAY=no'
11006                           fi
11007
11008 else
11009
11010                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11011
11012 fi
11013
11014
11015           eval "$wx_cv_use_display"
11016
11017           if test x"$enablestring" = xdisable; then
11018             if test $wxUSE_DISPLAY = no; then
11019               result=yes
11020             else
11021               result=no
11022             fi
11023           else
11024             result=$wxUSE_DISPLAY
11025           fi
11026
11027           { echo "$as_me:$LINENO: result: $result" >&5
11028 echo "${ECHO_T}$result" >&6; }
11029
11030
11031           enablestring=
11032           defaultval=$wxUSE_ALL_FEATURES
11033           if test -z "$defaultval"; then
11034               if test x"$enablestring" = xdisable; then
11035                   defaultval=yes
11036               else
11037                   defaultval=no
11038               fi
11039           fi
11040
11041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11042 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11043           # Check whether --enable-editablebox was given.
11044 if test "${enable_editablebox+set}" = set; then
11045   enableval=$enable_editablebox;
11046                           if test "$enableval" = yes; then
11047                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11048                           else
11049                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11050                           fi
11051
11052 else
11053
11054                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11055
11056 fi
11057
11058
11059           eval "$wx_cv_use_editablebox"
11060
11061           if test x"$enablestring" = xdisable; then
11062             if test $wxUSE_EDITABLELISTBOX = no; then
11063               result=yes
11064             else
11065               result=no
11066             fi
11067           else
11068             result=$wxUSE_EDITABLELISTBOX
11069           fi
11070
11071           { echo "$as_me:$LINENO: result: $result" >&5
11072 echo "${ECHO_T}$result" >&6; }
11073
11074
11075           enablestring=
11076           defaultval=$wxUSE_ALL_FEATURES
11077           if test -z "$defaultval"; then
11078               if test x"$enablestring" = xdisable; then
11079                   defaultval=yes
11080               else
11081                   defaultval=no
11082               fi
11083           fi
11084
11085           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
11086 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
11087           # Check whether --enable-filectrl was given.
11088 if test "${enable_filectrl+set}" = set; then
11089   enableval=$enable_filectrl;
11090                           if test "$enableval" = yes; then
11091                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
11092                           else
11093                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
11094                           fi
11095
11096 else
11097
11098                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
11099
11100 fi
11101
11102
11103           eval "$wx_cv_use_filectrl"
11104
11105           if test x"$enablestring" = xdisable; then
11106             if test $wxUSE_FILECTRL = no; then
11107               result=yes
11108             else
11109               result=no
11110             fi
11111           else
11112             result=$wxUSE_FILECTRL
11113           fi
11114
11115           { echo "$as_me:$LINENO: result: $result" >&5
11116 echo "${ECHO_T}$result" >&6; }
11117
11118
11119           enablestring=
11120           defaultval=$wxUSE_ALL_FEATURES
11121           if test -z "$defaultval"; then
11122               if test x"$enablestring" = xdisable; then
11123                   defaultval=yes
11124               else
11125                   defaultval=no
11126               fi
11127           fi
11128
11129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11130 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11131           # Check whether --enable-filepicker was given.
11132 if test "${enable_filepicker+set}" = set; then
11133   enableval=$enable_filepicker;
11134                           if test "$enableval" = yes; then
11135                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11136                           else
11137                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11138                           fi
11139
11140 else
11141
11142                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11143
11144 fi
11145
11146
11147           eval "$wx_cv_use_filepicker"
11148
11149           if test x"$enablestring" = xdisable; then
11150             if test $wxUSE_FILEPICKERCTRL = no; then
11151               result=yes
11152             else
11153               result=no
11154             fi
11155           else
11156             result=$wxUSE_FILEPICKERCTRL
11157           fi
11158
11159           { echo "$as_me:$LINENO: result: $result" >&5
11160 echo "${ECHO_T}$result" >&6; }
11161
11162
11163           enablestring=
11164           defaultval=$wxUSE_ALL_FEATURES
11165           if test -z "$defaultval"; then
11166               if test x"$enablestring" = xdisable; then
11167                   defaultval=yes
11168               else
11169                   defaultval=no
11170               fi
11171           fi
11172
11173           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11174 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11175           # Check whether --enable-fontpicker was given.
11176 if test "${enable_fontpicker+set}" = set; then
11177   enableval=$enable_fontpicker;
11178                           if test "$enableval" = yes; then
11179                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11180                           else
11181                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11182                           fi
11183
11184 else
11185
11186                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11187
11188 fi
11189
11190
11191           eval "$wx_cv_use_fontpicker"
11192
11193           if test x"$enablestring" = xdisable; then
11194             if test $wxUSE_FONTPICKERCTRL = no; then
11195               result=yes
11196             else
11197               result=no
11198             fi
11199           else
11200             result=$wxUSE_FONTPICKERCTRL
11201           fi
11202
11203           { echo "$as_me:$LINENO: result: $result" >&5
11204 echo "${ECHO_T}$result" >&6; }
11205
11206
11207           enablestring=
11208           defaultval=$wxUSE_ALL_FEATURES
11209           if test -z "$defaultval"; then
11210               if test x"$enablestring" = xdisable; then
11211                   defaultval=yes
11212               else
11213                   defaultval=no
11214               fi
11215           fi
11216
11217           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11218 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11219           # Check whether --enable-gauge was given.
11220 if test "${enable_gauge+set}" = set; then
11221   enableval=$enable_gauge;
11222                           if test "$enableval" = yes; then
11223                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11224                           else
11225                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11226                           fi
11227
11228 else
11229
11230                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11231
11232 fi
11233
11234
11235           eval "$wx_cv_use_gauge"
11236
11237           if test x"$enablestring" = xdisable; then
11238             if test $wxUSE_GAUGE = no; then
11239               result=yes
11240             else
11241               result=no
11242             fi
11243           else
11244             result=$wxUSE_GAUGE
11245           fi
11246
11247           { echo "$as_me:$LINENO: result: $result" >&5
11248 echo "${ECHO_T}$result" >&6; }
11249
11250
11251           enablestring=
11252           defaultval=$wxUSE_ALL_FEATURES
11253           if test -z "$defaultval"; then
11254               if test x"$enablestring" = xdisable; then
11255                   defaultval=yes
11256               else
11257                   defaultval=no
11258               fi
11259           fi
11260
11261           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11262 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11263           # Check whether --enable-grid was given.
11264 if test "${enable_grid+set}" = set; then
11265   enableval=$enable_grid;
11266                           if test "$enableval" = yes; then
11267                             wx_cv_use_grid='wxUSE_GRID=yes'
11268                           else
11269                             wx_cv_use_grid='wxUSE_GRID=no'
11270                           fi
11271
11272 else
11273
11274                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11275
11276 fi
11277
11278
11279           eval "$wx_cv_use_grid"
11280
11281           if test x"$enablestring" = xdisable; then
11282             if test $wxUSE_GRID = no; then
11283               result=yes
11284             else
11285               result=no
11286             fi
11287           else
11288             result=$wxUSE_GRID
11289           fi
11290
11291           { echo "$as_me:$LINENO: result: $result" >&5
11292 echo "${ECHO_T}$result" >&6; }
11293
11294
11295           enablestring=
11296           defaultval=$wxUSE_ALL_FEATURES
11297           if test -z "$defaultval"; then
11298               if test x"$enablestring" = xdisable; then
11299                   defaultval=yes
11300               else
11301                   defaultval=no
11302               fi
11303           fi
11304
11305           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
11306 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
11307           # Check whether --enable-headerctrl was given.
11308 if test "${enable_headerctrl+set}" = set; then
11309   enableval=$enable_headerctrl;
11310                           if test "$enableval" = yes; then
11311                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
11312                           else
11313                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
11314                           fi
11315
11316 else
11317
11318                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
11319
11320 fi
11321
11322
11323           eval "$wx_cv_use_headerctrl"
11324
11325           if test x"$enablestring" = xdisable; then
11326             if test $wxUSE_HEADERCTRL = no; then
11327               result=yes
11328             else
11329               result=no
11330             fi
11331           else
11332             result=$wxUSE_HEADERCTRL
11333           fi
11334
11335           { echo "$as_me:$LINENO: result: $result" >&5
11336 echo "${ECHO_T}$result" >&6; }
11337
11338
11339           enablestring=
11340           defaultval=$wxUSE_ALL_FEATURES
11341           if test -z "$defaultval"; then
11342               if test x"$enablestring" = xdisable; then
11343                   defaultval=yes
11344               else
11345                   defaultval=no
11346               fi
11347           fi
11348
11349           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11350 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11351           # Check whether --enable-hyperlink was given.
11352 if test "${enable_hyperlink+set}" = set; then
11353   enableval=$enable_hyperlink;
11354                           if test "$enableval" = yes; then
11355                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11356                           else
11357                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11358                           fi
11359
11360 else
11361
11362                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11363
11364 fi
11365
11366
11367           eval "$wx_cv_use_hyperlink"
11368
11369           if test x"$enablestring" = xdisable; then
11370             if test $wxUSE_HYPERLINKCTRL = no; then
11371               result=yes
11372             else
11373               result=no
11374             fi
11375           else
11376             result=$wxUSE_HYPERLINKCTRL
11377           fi
11378
11379           { echo "$as_me:$LINENO: result: $result" >&5
11380 echo "${ECHO_T}$result" >&6; }
11381
11382
11383           enablestring=
11384           defaultval=$wxUSE_ALL_FEATURES
11385           if test -z "$defaultval"; then
11386               if test x"$enablestring" = xdisable; then
11387                   defaultval=yes
11388               else
11389                   defaultval=no
11390               fi
11391           fi
11392
11393           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11394 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11395           # Check whether --enable-imaglist was given.
11396 if test "${enable_imaglist+set}" = set; then
11397   enableval=$enable_imaglist;
11398                           if test "$enableval" = yes; then
11399                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11400                           else
11401                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11402                           fi
11403
11404 else
11405
11406                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11407
11408 fi
11409
11410
11411           eval "$wx_cv_use_imaglist"
11412
11413           if test x"$enablestring" = xdisable; then
11414             if test $wxUSE_IMAGLIST = no; then
11415               result=yes
11416             else
11417               result=no
11418             fi
11419           else
11420             result=$wxUSE_IMAGLIST
11421           fi
11422
11423           { echo "$as_me:$LINENO: result: $result" >&5
11424 echo "${ECHO_T}$result" >&6; }
11425
11426
11427           enablestring=
11428           defaultval=$wxUSE_ALL_FEATURES
11429           if test -z "$defaultval"; then
11430               if test x"$enablestring" = xdisable; then
11431                   defaultval=yes
11432               else
11433                   defaultval=no
11434               fi
11435           fi
11436
11437           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11438 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11439           # Check whether --enable-infobar was given.
11440 if test "${enable_infobar+set}" = set; then
11441   enableval=$enable_infobar;
11442                           if test "$enableval" = yes; then
11443                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11444                           else
11445                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11446                           fi
11447
11448 else
11449
11450                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11451
11452 fi
11453
11454
11455           eval "$wx_cv_use_infobar"
11456
11457           if test x"$enablestring" = xdisable; then
11458             if test $wxUSE_INFOBAR = no; then
11459               result=yes
11460             else
11461               result=no
11462             fi
11463           else
11464             result=$wxUSE_INFOBAR
11465           fi
11466
11467           { echo "$as_me:$LINENO: result: $result" >&5
11468 echo "${ECHO_T}$result" >&6; }
11469
11470
11471           enablestring=
11472           defaultval=$wxUSE_ALL_FEATURES
11473           if test -z "$defaultval"; then
11474               if test x"$enablestring" = xdisable; then
11475                   defaultval=yes
11476               else
11477                   defaultval=no
11478               fi
11479           fi
11480
11481           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11482 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11483           # Check whether --enable-listbook was given.
11484 if test "${enable_listbook+set}" = set; then
11485   enableval=$enable_listbook;
11486                           if test "$enableval" = yes; then
11487                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11488                           else
11489                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11490                           fi
11491
11492 else
11493
11494                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11495
11496 fi
11497
11498
11499           eval "$wx_cv_use_listbook"
11500
11501           if test x"$enablestring" = xdisable; then
11502             if test $wxUSE_LISTBOOK = no; then
11503               result=yes
11504             else
11505               result=no
11506             fi
11507           else
11508             result=$wxUSE_LISTBOOK
11509           fi
11510
11511           { echo "$as_me:$LINENO: result: $result" >&5
11512 echo "${ECHO_T}$result" >&6; }
11513
11514
11515           enablestring=
11516           defaultval=$wxUSE_ALL_FEATURES
11517           if test -z "$defaultval"; then
11518               if test x"$enablestring" = xdisable; then
11519                   defaultval=yes
11520               else
11521                   defaultval=no
11522               fi
11523           fi
11524
11525           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11526 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11527           # Check whether --enable-listbox was given.
11528 if test "${enable_listbox+set}" = set; then
11529   enableval=$enable_listbox;
11530                           if test "$enableval" = yes; then
11531                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11532                           else
11533                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11534                           fi
11535
11536 else
11537
11538                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11539
11540 fi
11541
11542
11543           eval "$wx_cv_use_listbox"
11544
11545           if test x"$enablestring" = xdisable; then
11546             if test $wxUSE_LISTBOX = no; then
11547               result=yes
11548             else
11549               result=no
11550             fi
11551           else
11552             result=$wxUSE_LISTBOX
11553           fi
11554
11555           { echo "$as_me:$LINENO: result: $result" >&5
11556 echo "${ECHO_T}$result" >&6; }
11557
11558
11559           enablestring=
11560           defaultval=$wxUSE_ALL_FEATURES
11561           if test -z "$defaultval"; then
11562               if test x"$enablestring" = xdisable; then
11563                   defaultval=yes
11564               else
11565                   defaultval=no
11566               fi
11567           fi
11568
11569           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11570 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11571           # Check whether --enable-listctrl was given.
11572 if test "${enable_listctrl+set}" = set; then
11573   enableval=$enable_listctrl;
11574                           if test "$enableval" = yes; then
11575                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11576                           else
11577                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11578                           fi
11579
11580 else
11581
11582                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11583
11584 fi
11585
11586
11587           eval "$wx_cv_use_listctrl"
11588
11589           if test x"$enablestring" = xdisable; then
11590             if test $wxUSE_LISTCTRL = no; then
11591               result=yes
11592             else
11593               result=no
11594             fi
11595           else
11596             result=$wxUSE_LISTCTRL
11597           fi
11598
11599           { echo "$as_me:$LINENO: result: $result" >&5
11600 echo "${ECHO_T}$result" >&6; }
11601
11602
11603           enablestring=
11604           defaultval=$wxUSE_ALL_FEATURES
11605           if test -z "$defaultval"; then
11606               if test x"$enablestring" = xdisable; then
11607                   defaultval=yes
11608               else
11609                   defaultval=no
11610               fi
11611           fi
11612
11613           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11614 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11615           # Check whether --enable-notebook was given.
11616 if test "${enable_notebook+set}" = set; then
11617   enableval=$enable_notebook;
11618                           if test "$enableval" = yes; then
11619                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11620                           else
11621                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11622                           fi
11623
11624 else
11625
11626                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11627
11628 fi
11629
11630
11631           eval "$wx_cv_use_notebook"
11632
11633           if test x"$enablestring" = xdisable; then
11634             if test $wxUSE_NOTEBOOK = no; then
11635               result=yes
11636             else
11637               result=no
11638             fi
11639           else
11640             result=$wxUSE_NOTEBOOK
11641           fi
11642
11643           { echo "$as_me:$LINENO: result: $result" >&5
11644 echo "${ECHO_T}$result" >&6; }
11645
11646
11647           enablestring=
11648           defaultval=$wxUSE_ALL_FEATURES
11649           if test -z "$defaultval"; then
11650               if test x"$enablestring" = xdisable; then
11651                   defaultval=yes
11652               else
11653                   defaultval=no
11654               fi
11655           fi
11656
11657           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11658 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11659           # Check whether --enable-notifmsg was given.
11660 if test "${enable_notifmsg+set}" = set; then
11661   enableval=$enable_notifmsg;
11662                           if test "$enableval" = yes; then
11663                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11664                           else
11665                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11666                           fi
11667
11668 else
11669
11670                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11671
11672 fi
11673
11674
11675           eval "$wx_cv_use_notifmsg"
11676
11677           if test x"$enablestring" = xdisable; then
11678             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11679               result=yes
11680             else
11681               result=no
11682             fi
11683           else
11684             result=$wxUSE_NOTIFICATION_MESSAGE
11685           fi
11686
11687           { echo "$as_me:$LINENO: result: $result" >&5
11688 echo "${ECHO_T}$result" >&6; }
11689
11690
11691           enablestring=
11692           defaultval=$wxUSE_ALL_FEATURES
11693           if test -z "$defaultval"; then
11694               if test x"$enablestring" = xdisable; then
11695                   defaultval=yes
11696               else
11697                   defaultval=no
11698               fi
11699           fi
11700
11701           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11702 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11703           # Check whether --enable-odcombobox was given.
11704 if test "${enable_odcombobox+set}" = set; then
11705   enableval=$enable_odcombobox;
11706                           if test "$enableval" = yes; then
11707                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11708                           else
11709                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11710                           fi
11711
11712 else
11713
11714                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11715
11716 fi
11717
11718
11719           eval "$wx_cv_use_odcombobox"
11720
11721           if test x"$enablestring" = xdisable; then
11722             if test $wxUSE_ODCOMBOBOX = no; then
11723               result=yes
11724             else
11725               result=no
11726             fi
11727           else
11728             result=$wxUSE_ODCOMBOBOX
11729           fi
11730
11731           { echo "$as_me:$LINENO: result: $result" >&5
11732 echo "${ECHO_T}$result" >&6; }
11733
11734
11735           enablestring=
11736           defaultval=$wxUSE_ALL_FEATURES
11737           if test -z "$defaultval"; then
11738               if test x"$enablestring" = xdisable; then
11739                   defaultval=yes
11740               else
11741                   defaultval=no
11742               fi
11743           fi
11744
11745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11746 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11747           # Check whether --enable-popupwin was given.
11748 if test "${enable_popupwin+set}" = set; then
11749   enableval=$enable_popupwin;
11750                           if test "$enableval" = yes; then
11751                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11752                           else
11753                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11754                           fi
11755
11756 else
11757
11758                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11759
11760 fi
11761
11762
11763           eval "$wx_cv_use_popupwin"
11764
11765           if test x"$enablestring" = xdisable; then
11766             if test $wxUSE_POPUPWIN = no; then
11767               result=yes
11768             else
11769               result=no
11770             fi
11771           else
11772             result=$wxUSE_POPUPWIN
11773           fi
11774
11775           { echo "$as_me:$LINENO: result: $result" >&5
11776 echo "${ECHO_T}$result" >&6; }
11777
11778
11779           enablestring=
11780           defaultval=$wxUSE_ALL_FEATURES
11781           if test -z "$defaultval"; then
11782               if test x"$enablestring" = xdisable; then
11783                   defaultval=yes
11784               else
11785                   defaultval=no
11786               fi
11787           fi
11788
11789           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11790 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11791           # Check whether --enable-radiobox was given.
11792 if test "${enable_radiobox+set}" = set; then
11793   enableval=$enable_radiobox;
11794                           if test "$enableval" = yes; then
11795                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11796                           else
11797                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11798                           fi
11799
11800 else
11801
11802                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11803
11804 fi
11805
11806
11807           eval "$wx_cv_use_radiobox"
11808
11809           if test x"$enablestring" = xdisable; then
11810             if test $wxUSE_RADIOBOX = no; then
11811               result=yes
11812             else
11813               result=no
11814             fi
11815           else
11816             result=$wxUSE_RADIOBOX
11817           fi
11818
11819           { echo "$as_me:$LINENO: result: $result" >&5
11820 echo "${ECHO_T}$result" >&6; }
11821
11822
11823           enablestring=
11824           defaultval=$wxUSE_ALL_FEATURES
11825           if test -z "$defaultval"; then
11826               if test x"$enablestring" = xdisable; then
11827                   defaultval=yes
11828               else
11829                   defaultval=no
11830               fi
11831           fi
11832
11833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11834 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11835           # Check whether --enable-radiobtn was given.
11836 if test "${enable_radiobtn+set}" = set; then
11837   enableval=$enable_radiobtn;
11838                           if test "$enableval" = yes; then
11839                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11840                           else
11841                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11842                           fi
11843
11844 else
11845
11846                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11847
11848 fi
11849
11850
11851           eval "$wx_cv_use_radiobtn"
11852
11853           if test x"$enablestring" = xdisable; then
11854             if test $wxUSE_RADIOBTN = no; then
11855               result=yes
11856             else
11857               result=no
11858             fi
11859           else
11860             result=$wxUSE_RADIOBTN
11861           fi
11862
11863           { echo "$as_me:$LINENO: result: $result" >&5
11864 echo "${ECHO_T}$result" >&6; }
11865
11866
11867           enablestring=
11868           defaultval=$wxUSE_ALL_FEATURES
11869           if test -z "$defaultval"; then
11870               if test x"$enablestring" = xdisable; then
11871                   defaultval=yes
11872               else
11873                   defaultval=no
11874               fi
11875           fi
11876
11877           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richmsgdlg" >&5
11878 echo $ECHO_N "checking for --${enablestring:-enable}-richmsgdlg... $ECHO_C" >&6; }
11879           # Check whether --enable-richmsgdlg was given.
11880 if test "${enable_richmsgdlg+set}" = set; then
11881   enableval=$enable_richmsgdlg;
11882                           if test "$enableval" = yes; then
11883                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=yes'
11884                           else
11885                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=no'
11886                           fi
11887
11888 else
11889
11890                           wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=${'DEFAULT_wxUSE_RICHMSGDLG":-$defaultval}"
11891
11892 fi
11893
11894
11895           eval "$wx_cv_use_richmsgdlg"
11896
11897           if test x"$enablestring" = xdisable; then
11898             if test $wxUSE_RICHMSGDLG = no; then
11899               result=yes
11900             else
11901               result=no
11902             fi
11903           else
11904             result=$wxUSE_RICHMSGDLG
11905           fi
11906
11907           { echo "$as_me:$LINENO: result: $result" >&5
11908 echo "${ECHO_T}$result" >&6; }
11909
11910
11911           enablestring=
11912           defaultval=$wxUSE_ALL_FEATURES
11913           if test -z "$defaultval"; then
11914               if test x"$enablestring" = xdisable; then
11915                   defaultval=yes
11916               else
11917                   defaultval=no
11918               fi
11919           fi
11920
11921           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtooltip" >&5
11922 echo $ECHO_N "checking for --${enablestring:-enable}-richtooltip... $ECHO_C" >&6; }
11923           # Check whether --enable-richtooltip was given.
11924 if test "${enable_richtooltip+set}" = set; then
11925   enableval=$enable_richtooltip;
11926                           if test "$enableval" = yes; then
11927                             wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=yes'
11928                           else
11929                             wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=no'
11930                           fi
11931
11932 else
11933
11934                           wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=${'DEFAULT_wxUSE_RICHTOOLTIP":-$defaultval}"
11935
11936 fi
11937
11938
11939           eval "$wx_cv_use_richtooltip"
11940
11941           if test x"$enablestring" = xdisable; then
11942             if test $wxUSE_RICHTOOLTIP = no; then
11943               result=yes
11944             else
11945               result=no
11946             fi
11947           else
11948             result=$wxUSE_RICHTOOLTIP
11949           fi
11950
11951           { echo "$as_me:$LINENO: result: $result" >&5
11952 echo "${ECHO_T}$result" >&6; }
11953
11954
11955           enablestring=
11956           defaultval=$wxUSE_ALL_FEATURES
11957           if test -z "$defaultval"; then
11958               if test x"$enablestring" = xdisable; then
11959                   defaultval=yes
11960               else
11961                   defaultval=no
11962               fi
11963           fi
11964
11965           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11966 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11967           # Check whether --enable-rearrangectrl was given.
11968 if test "${enable_rearrangectrl+set}" = set; then
11969   enableval=$enable_rearrangectrl;
11970                           if test "$enableval" = yes; then
11971                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11972                           else
11973                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11974                           fi
11975
11976 else
11977
11978                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11979
11980 fi
11981
11982
11983           eval "$wx_cv_use_rearrangectrl"
11984
11985           if test x"$enablestring" = xdisable; then
11986             if test $wxUSE_REARRANGECTRL = no; then
11987               result=yes
11988             else
11989               result=no
11990             fi
11991           else
11992             result=$wxUSE_REARRANGECTRL
11993           fi
11994
11995           { echo "$as_me:$LINENO: result: $result" >&5
11996 echo "${ECHO_T}$result" >&6; }
11997
11998
11999           enablestring=
12000           defaultval=$wxUSE_ALL_FEATURES
12001           if test -z "$defaultval"; then
12002               if test x"$enablestring" = xdisable; then
12003                   defaultval=yes
12004               else
12005                   defaultval=no
12006               fi
12007           fi
12008
12009           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12010 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12011           # Check whether --enable-sash was given.
12012 if test "${enable_sash+set}" = set; then
12013   enableval=$enable_sash;
12014                           if test "$enableval" = yes; then
12015                             wx_cv_use_sash='wxUSE_SASH=yes'
12016                           else
12017                             wx_cv_use_sash='wxUSE_SASH=no'
12018                           fi
12019
12020 else
12021
12022                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12023
12024 fi
12025
12026
12027           eval "$wx_cv_use_sash"
12028
12029           if test x"$enablestring" = xdisable; then
12030             if test $wxUSE_SASH = no; then
12031               result=yes
12032             else
12033               result=no
12034             fi
12035           else
12036             result=$wxUSE_SASH
12037           fi
12038
12039           { echo "$as_me:$LINENO: result: $result" >&5
12040 echo "${ECHO_T}$result" >&6; }
12041
12042
12043           enablestring=
12044           defaultval=$wxUSE_ALL_FEATURES
12045           if test -z "$defaultval"; then
12046               if test x"$enablestring" = xdisable; then
12047                   defaultval=yes
12048               else
12049                   defaultval=no
12050               fi
12051           fi
12052
12053           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12054 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12055           # Check whether --enable-scrollbar was given.
12056 if test "${enable_scrollbar+set}" = set; then
12057   enableval=$enable_scrollbar;
12058                           if test "$enableval" = yes; then
12059                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12060                           else
12061                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12062                           fi
12063
12064 else
12065
12066                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12067
12068 fi
12069
12070
12071           eval "$wx_cv_use_scrollbar"
12072
12073           if test x"$enablestring" = xdisable; then
12074             if test $wxUSE_SCROLLBAR = no; then
12075               result=yes
12076             else
12077               result=no
12078             fi
12079           else
12080             result=$wxUSE_SCROLLBAR
12081           fi
12082
12083           { echo "$as_me:$LINENO: result: $result" >&5
12084 echo "${ECHO_T}$result" >&6; }
12085
12086
12087           enablestring=
12088           defaultval=$wxUSE_ALL_FEATURES
12089           if test -z "$defaultval"; then
12090               if test x"$enablestring" = xdisable; then
12091                   defaultval=yes
12092               else
12093                   defaultval=no
12094               fi
12095           fi
12096
12097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12098 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12099           # Check whether --enable-searchctrl was given.
12100 if test "${enable_searchctrl+set}" = set; then
12101   enableval=$enable_searchctrl;
12102                           if test "$enableval" = yes; then
12103                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12104                           else
12105                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12106                           fi
12107
12108 else
12109
12110                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12111
12112 fi
12113
12114
12115           eval "$wx_cv_use_searchctrl"
12116
12117           if test x"$enablestring" = xdisable; then
12118             if test $wxUSE_SEARCHCTRL = no; then
12119               result=yes
12120             else
12121               result=no
12122             fi
12123           else
12124             result=$wxUSE_SEARCHCTRL
12125           fi
12126
12127           { echo "$as_me:$LINENO: result: $result" >&5
12128 echo "${ECHO_T}$result" >&6; }
12129
12130
12131           enablestring=
12132           defaultval=$wxUSE_ALL_FEATURES
12133           if test -z "$defaultval"; then
12134               if test x"$enablestring" = xdisable; then
12135                   defaultval=yes
12136               else
12137                   defaultval=no
12138               fi
12139           fi
12140
12141           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12142 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12143           # Check whether --enable-slider was given.
12144 if test "${enable_slider+set}" = set; then
12145   enableval=$enable_slider;
12146                           if test "$enableval" = yes; then
12147                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12148                           else
12149                             wx_cv_use_slider='wxUSE_SLIDER=no'
12150                           fi
12151
12152 else
12153
12154                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12155
12156 fi
12157
12158
12159           eval "$wx_cv_use_slider"
12160
12161           if test x"$enablestring" = xdisable; then
12162             if test $wxUSE_SLIDER = no; then
12163               result=yes
12164             else
12165               result=no
12166             fi
12167           else
12168             result=$wxUSE_SLIDER
12169           fi
12170
12171           { echo "$as_me:$LINENO: result: $result" >&5
12172 echo "${ECHO_T}$result" >&6; }
12173
12174
12175           enablestring=
12176           defaultval=$wxUSE_ALL_FEATURES
12177           if test -z "$defaultval"; then
12178               if test x"$enablestring" = xdisable; then
12179                   defaultval=yes
12180               else
12181                   defaultval=no
12182               fi
12183           fi
12184
12185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12186 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12187           # Check whether --enable-spinbtn was given.
12188 if test "${enable_spinbtn+set}" = set; then
12189   enableval=$enable_spinbtn;
12190                           if test "$enableval" = yes; then
12191                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12192                           else
12193                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12194                           fi
12195
12196 else
12197
12198                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12199
12200 fi
12201
12202
12203           eval "$wx_cv_use_spinbtn"
12204
12205           if test x"$enablestring" = xdisable; then
12206             if test $wxUSE_SPINBTN = no; then
12207               result=yes
12208             else
12209               result=no
12210             fi
12211           else
12212             result=$wxUSE_SPINBTN
12213           fi
12214
12215           { echo "$as_me:$LINENO: result: $result" >&5
12216 echo "${ECHO_T}$result" >&6; }
12217
12218
12219           enablestring=
12220           defaultval=$wxUSE_ALL_FEATURES
12221           if test -z "$defaultval"; then
12222               if test x"$enablestring" = xdisable; then
12223                   defaultval=yes
12224               else
12225                   defaultval=no
12226               fi
12227           fi
12228
12229           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12230 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12231           # Check whether --enable-spinctrl was given.
12232 if test "${enable_spinctrl+set}" = set; then
12233   enableval=$enable_spinctrl;
12234                           if test "$enableval" = yes; then
12235                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12236                           else
12237                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12238                           fi
12239
12240 else
12241
12242                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12243
12244 fi
12245
12246
12247           eval "$wx_cv_use_spinctrl"
12248
12249           if test x"$enablestring" = xdisable; then
12250             if test $wxUSE_SPINCTRL = no; then
12251               result=yes
12252             else
12253               result=no
12254             fi
12255           else
12256             result=$wxUSE_SPINCTRL
12257           fi
12258
12259           { echo "$as_me:$LINENO: result: $result" >&5
12260 echo "${ECHO_T}$result" >&6; }
12261
12262
12263           enablestring=
12264           defaultval=$wxUSE_ALL_FEATURES
12265           if test -z "$defaultval"; then
12266               if test x"$enablestring" = xdisable; then
12267                   defaultval=yes
12268               else
12269                   defaultval=no
12270               fi
12271           fi
12272
12273           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12274 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12275           # Check whether --enable-splitter was given.
12276 if test "${enable_splitter+set}" = set; then
12277   enableval=$enable_splitter;
12278                           if test "$enableval" = yes; then
12279                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12280                           else
12281                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12282                           fi
12283
12284 else
12285
12286                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12287
12288 fi
12289
12290
12291           eval "$wx_cv_use_splitter"
12292
12293           if test x"$enablestring" = xdisable; then
12294             if test $wxUSE_SPLITTER = no; then
12295               result=yes
12296             else
12297               result=no
12298             fi
12299           else
12300             result=$wxUSE_SPLITTER
12301           fi
12302
12303           { echo "$as_me:$LINENO: result: $result" >&5
12304 echo "${ECHO_T}$result" >&6; }
12305
12306
12307           enablestring=
12308           defaultval=$wxUSE_ALL_FEATURES
12309           if test -z "$defaultval"; then
12310               if test x"$enablestring" = xdisable; then
12311                   defaultval=yes
12312               else
12313                   defaultval=no
12314               fi
12315           fi
12316
12317           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12318 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12319           # Check whether --enable-statbmp was given.
12320 if test "${enable_statbmp+set}" = set; then
12321   enableval=$enable_statbmp;
12322                           if test "$enableval" = yes; then
12323                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12324                           else
12325                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12326                           fi
12327
12328 else
12329
12330                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12331
12332 fi
12333
12334
12335           eval "$wx_cv_use_statbmp"
12336
12337           if test x"$enablestring" = xdisable; then
12338             if test $wxUSE_STATBMP = no; then
12339               result=yes
12340             else
12341               result=no
12342             fi
12343           else
12344             result=$wxUSE_STATBMP
12345           fi
12346
12347           { echo "$as_me:$LINENO: result: $result" >&5
12348 echo "${ECHO_T}$result" >&6; }
12349
12350
12351           enablestring=
12352           defaultval=$wxUSE_ALL_FEATURES
12353           if test -z "$defaultval"; then
12354               if test x"$enablestring" = xdisable; then
12355                   defaultval=yes
12356               else
12357                   defaultval=no
12358               fi
12359           fi
12360
12361           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12362 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12363           # Check whether --enable-statbox was given.
12364 if test "${enable_statbox+set}" = set; then
12365   enableval=$enable_statbox;
12366                           if test "$enableval" = yes; then
12367                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12368                           else
12369                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12370                           fi
12371
12372 else
12373
12374                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12375
12376 fi
12377
12378
12379           eval "$wx_cv_use_statbox"
12380
12381           if test x"$enablestring" = xdisable; then
12382             if test $wxUSE_STATBOX = no; then
12383               result=yes
12384             else
12385               result=no
12386             fi
12387           else
12388             result=$wxUSE_STATBOX
12389           fi
12390
12391           { echo "$as_me:$LINENO: result: $result" >&5
12392 echo "${ECHO_T}$result" >&6; }
12393
12394
12395           enablestring=
12396           defaultval=$wxUSE_ALL_FEATURES
12397           if test -z "$defaultval"; then
12398               if test x"$enablestring" = xdisable; then
12399                   defaultval=yes
12400               else
12401                   defaultval=no
12402               fi
12403           fi
12404
12405           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12406 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12407           # Check whether --enable-statline was given.
12408 if test "${enable_statline+set}" = set; then
12409   enableval=$enable_statline;
12410                           if test "$enableval" = yes; then
12411                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12412                           else
12413                             wx_cv_use_statline='wxUSE_STATLINE=no'
12414                           fi
12415
12416 else
12417
12418                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12419
12420 fi
12421
12422
12423           eval "$wx_cv_use_statline"
12424
12425           if test x"$enablestring" = xdisable; then
12426             if test $wxUSE_STATLINE = no; then
12427               result=yes
12428             else
12429               result=no
12430             fi
12431           else
12432             result=$wxUSE_STATLINE
12433           fi
12434
12435           { echo "$as_me:$LINENO: result: $result" >&5
12436 echo "${ECHO_T}$result" >&6; }
12437
12438
12439           enablestring=
12440           defaultval=$wxUSE_ALL_FEATURES
12441           if test -z "$defaultval"; then
12442               if test x"$enablestring" = xdisable; then
12443                   defaultval=yes
12444               else
12445                   defaultval=no
12446               fi
12447           fi
12448
12449           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12450 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12451           # Check whether --enable-stattext was given.
12452 if test "${enable_stattext+set}" = set; then
12453   enableval=$enable_stattext;
12454                           if test "$enableval" = yes; then
12455                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12456                           else
12457                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12458                           fi
12459
12460 else
12461
12462                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12463
12464 fi
12465
12466
12467           eval "$wx_cv_use_stattext"
12468
12469           if test x"$enablestring" = xdisable; then
12470             if test $wxUSE_STATTEXT = no; then
12471               result=yes
12472             else
12473               result=no
12474             fi
12475           else
12476             result=$wxUSE_STATTEXT
12477           fi
12478
12479           { echo "$as_me:$LINENO: result: $result" >&5
12480 echo "${ECHO_T}$result" >&6; }
12481
12482
12483           enablestring=
12484           defaultval=$wxUSE_ALL_FEATURES
12485           if test -z "$defaultval"; then
12486               if test x"$enablestring" = xdisable; then
12487                   defaultval=yes
12488               else
12489                   defaultval=no
12490               fi
12491           fi
12492
12493           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12494 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12495           # Check whether --enable-statusbar was given.
12496 if test "${enable_statusbar+set}" = set; then
12497   enableval=$enable_statusbar;
12498                           if test "$enableval" = yes; then
12499                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12500                           else
12501                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12502                           fi
12503
12504 else
12505
12506                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12507
12508 fi
12509
12510
12511           eval "$wx_cv_use_statusbar"
12512
12513           if test x"$enablestring" = xdisable; then
12514             if test $wxUSE_STATUSBAR = no; then
12515               result=yes
12516             else
12517               result=no
12518             fi
12519           else
12520             result=$wxUSE_STATUSBAR
12521           fi
12522
12523           { echo "$as_me:$LINENO: result: $result" >&5
12524 echo "${ECHO_T}$result" >&6; }
12525
12526
12527           enablestring=
12528           defaultval=$wxUSE_ALL_FEATURES
12529           if test -z "$defaultval"; then
12530               if test x"$enablestring" = xdisable; then
12531                   defaultval=yes
12532               else
12533                   defaultval=no
12534               fi
12535           fi
12536
12537           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12538 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12539           # Check whether --enable-taskbaricon was given.
12540 if test "${enable_taskbaricon+set}" = set; then
12541   enableval=$enable_taskbaricon;
12542                           if test "$enableval" = yes; then
12543                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12544                           else
12545                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12546                           fi
12547
12548 else
12549
12550                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12551
12552 fi
12553
12554
12555           eval "$wx_cv_use_taskbaricon"
12556
12557           if test x"$enablestring" = xdisable; then
12558             if test $wxUSE_TASKBARICON = no; then
12559               result=yes
12560             else
12561               result=no
12562             fi
12563           else
12564             result=$wxUSE_TASKBARICON
12565           fi
12566
12567           { echo "$as_me:$LINENO: result: $result" >&5
12568 echo "${ECHO_T}$result" >&6; }
12569
12570
12571           enablestring=
12572           defaultval=$wxUSE_ALL_FEATURES
12573           if test -z "$defaultval"; then
12574               if test x"$enablestring" = xdisable; then
12575                   defaultval=yes
12576               else
12577                   defaultval=no
12578               fi
12579           fi
12580
12581           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12582 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12583           # Check whether --enable-tbarnative was given.
12584 if test "${enable_tbarnative+set}" = set; then
12585   enableval=$enable_tbarnative;
12586                           if test "$enableval" = yes; then
12587                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12588                           else
12589                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12590                           fi
12591
12592 else
12593
12594                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12595
12596 fi
12597
12598
12599           eval "$wx_cv_use_tbarnative"
12600
12601           if test x"$enablestring" = xdisable; then
12602             if test $wxUSE_TOOLBAR_NATIVE = no; then
12603               result=yes
12604             else
12605               result=no
12606             fi
12607           else
12608             result=$wxUSE_TOOLBAR_NATIVE
12609           fi
12610
12611           { echo "$as_me:$LINENO: result: $result" >&5
12612 echo "${ECHO_T}$result" >&6; }
12613
12614
12615           enablestring=
12616           defaultval=$wxUSE_ALL_FEATURES
12617           if test -z "$defaultval"; then
12618               if test x"$enablestring" = xdisable; then
12619                   defaultval=yes
12620               else
12621                   defaultval=no
12622               fi
12623           fi
12624
12625           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12626 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12627           # Check whether --enable-textctrl was given.
12628 if test "${enable_textctrl+set}" = set; then
12629   enableval=$enable_textctrl;
12630                           if test "$enableval" = yes; then
12631                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12632                           else
12633                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12634                           fi
12635
12636 else
12637
12638                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12639
12640 fi
12641
12642
12643           eval "$wx_cv_use_textctrl"
12644
12645           if test x"$enablestring" = xdisable; then
12646             if test $wxUSE_TEXTCTRL = no; then
12647               result=yes
12648             else
12649               result=no
12650             fi
12651           else
12652             result=$wxUSE_TEXTCTRL
12653           fi
12654
12655           { echo "$as_me:$LINENO: result: $result" >&5
12656 echo "${ECHO_T}$result" >&6; }
12657
12658
12659           enablestring=
12660           defaultval=$wxUSE_ALL_FEATURES
12661           if test -z "$defaultval"; then
12662               if test x"$enablestring" = xdisable; then
12663                   defaultval=yes
12664               else
12665                   defaultval=no
12666               fi
12667           fi
12668
12669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
12670 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
12671           # Check whether --enable-datepick was given.
12672 if test "${enable_datepick+set}" = set; then
12673   enableval=$enable_datepick;
12674                           if test "$enableval" = yes; then
12675                             wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=yes'
12676                           else
12677                             wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=no'
12678                           fi
12679
12680 else
12681
12682                           wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=${'DEFAULT_wxUSE_TIMEPICKCTRL":-$defaultval}"
12683
12684 fi
12685
12686
12687           eval "$wx_cv_use_datepick"
12688
12689           if test x"$enablestring" = xdisable; then
12690             if test $wxUSE_TIMEPICKCTRL = no; then
12691               result=yes
12692             else
12693               result=no
12694             fi
12695           else
12696             result=$wxUSE_TIMEPICKCTRL
12697           fi
12698
12699           { echo "$as_me:$LINENO: result: $result" >&5
12700 echo "${ECHO_T}$result" >&6; }
12701
12702
12703           enablestring=
12704           defaultval=$wxUSE_ALL_FEATURES
12705           if test -z "$defaultval"; then
12706               if test x"$enablestring" = xdisable; then
12707                   defaultval=yes
12708               else
12709                   defaultval=no
12710               fi
12711           fi
12712
12713           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12714 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12715           # Check whether --enable-tipwindow was given.
12716 if test "${enable_tipwindow+set}" = set; then
12717   enableval=$enable_tipwindow;
12718                           if test "$enableval" = yes; then
12719                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12720                           else
12721                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12722                           fi
12723
12724 else
12725
12726                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12727
12728 fi
12729
12730
12731           eval "$wx_cv_use_tipwindow"
12732
12733           if test x"$enablestring" = xdisable; then
12734             if test $wxUSE_TIPWINDOW = no; then
12735               result=yes
12736             else
12737               result=no
12738             fi
12739           else
12740             result=$wxUSE_TIPWINDOW
12741           fi
12742
12743           { echo "$as_me:$LINENO: result: $result" >&5
12744 echo "${ECHO_T}$result" >&6; }
12745
12746
12747           enablestring=
12748           defaultval=$wxUSE_ALL_FEATURES
12749           if test -z "$defaultval"; then
12750               if test x"$enablestring" = xdisable; then
12751                   defaultval=yes
12752               else
12753                   defaultval=no
12754               fi
12755           fi
12756
12757           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12758 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12759           # Check whether --enable-togglebtn was given.
12760 if test "${enable_togglebtn+set}" = set; then
12761   enableval=$enable_togglebtn;
12762                           if test "$enableval" = yes; then
12763                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12764                           else
12765                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12766                           fi
12767
12768 else
12769
12770                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12771
12772 fi
12773
12774
12775           eval "$wx_cv_use_togglebtn"
12776
12777           if test x"$enablestring" = xdisable; then
12778             if test $wxUSE_TOGGLEBTN = no; then
12779               result=yes
12780             else
12781               result=no
12782             fi
12783           else
12784             result=$wxUSE_TOGGLEBTN
12785           fi
12786
12787           { echo "$as_me:$LINENO: result: $result" >&5
12788 echo "${ECHO_T}$result" >&6; }
12789
12790
12791           enablestring=
12792           defaultval=$wxUSE_ALL_FEATURES
12793           if test -z "$defaultval"; then
12794               if test x"$enablestring" = xdisable; then
12795                   defaultval=yes
12796               else
12797                   defaultval=no
12798               fi
12799           fi
12800
12801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12802 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12803           # Check whether --enable-toolbar was given.
12804 if test "${enable_toolbar+set}" = set; then
12805   enableval=$enable_toolbar;
12806                           if test "$enableval" = yes; then
12807                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12808                           else
12809                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12810                           fi
12811
12812 else
12813
12814                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12815
12816 fi
12817
12818
12819           eval "$wx_cv_use_toolbar"
12820
12821           if test x"$enablestring" = xdisable; then
12822             if test $wxUSE_TOOLBAR = no; then
12823               result=yes
12824             else
12825               result=no
12826             fi
12827           else
12828             result=$wxUSE_TOOLBAR
12829           fi
12830
12831           { echo "$as_me:$LINENO: result: $result" >&5
12832 echo "${ECHO_T}$result" >&6; }
12833
12834
12835           enablestring=
12836           defaultval=$wxUSE_ALL_FEATURES
12837           if test -z "$defaultval"; then
12838               if test x"$enablestring" = xdisable; then
12839                   defaultval=yes
12840               else
12841                   defaultval=no
12842               fi
12843           fi
12844
12845           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12846 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12847           # Check whether --enable-toolbook was given.
12848 if test "${enable_toolbook+set}" = set; then
12849   enableval=$enable_toolbook;
12850                           if test "$enableval" = yes; then
12851                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12852                           else
12853                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12854                           fi
12855
12856 else
12857
12858                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12859
12860 fi
12861
12862
12863           eval "$wx_cv_use_toolbook"
12864
12865           if test x"$enablestring" = xdisable; then
12866             if test $wxUSE_TOOLBOOK = no; then
12867               result=yes
12868             else
12869               result=no
12870             fi
12871           else
12872             result=$wxUSE_TOOLBOOK
12873           fi
12874
12875           { echo "$as_me:$LINENO: result: $result" >&5
12876 echo "${ECHO_T}$result" >&6; }
12877
12878
12879           enablestring=
12880           defaultval=$wxUSE_ALL_FEATURES
12881           if test -z "$defaultval"; then
12882               if test x"$enablestring" = xdisable; then
12883                   defaultval=yes
12884               else
12885                   defaultval=no
12886               fi
12887           fi
12888
12889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12890 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12891           # Check whether --enable-treebook was given.
12892 if test "${enable_treebook+set}" = set; then
12893   enableval=$enable_treebook;
12894                           if test "$enableval" = yes; then
12895                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12896                           else
12897                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12898                           fi
12899
12900 else
12901
12902                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12903
12904 fi
12905
12906
12907           eval "$wx_cv_use_treebook"
12908
12909           if test x"$enablestring" = xdisable; then
12910             if test $wxUSE_TREEBOOK = no; then
12911               result=yes
12912             else
12913               result=no
12914             fi
12915           else
12916             result=$wxUSE_TREEBOOK
12917           fi
12918
12919           { echo "$as_me:$LINENO: result: $result" >&5
12920 echo "${ECHO_T}$result" >&6; }
12921
12922
12923           enablestring=
12924           defaultval=$wxUSE_ALL_FEATURES
12925           if test -z "$defaultval"; then
12926               if test x"$enablestring" = xdisable; then
12927                   defaultval=yes
12928               else
12929                   defaultval=no
12930               fi
12931           fi
12932
12933           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12934 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12935           # Check whether --enable-treectrl was given.
12936 if test "${enable_treectrl+set}" = set; then
12937   enableval=$enable_treectrl;
12938                           if test "$enableval" = yes; then
12939                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12940                           else
12941                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12942                           fi
12943
12944 else
12945
12946                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12947
12948 fi
12949
12950
12951           eval "$wx_cv_use_treectrl"
12952
12953           if test x"$enablestring" = xdisable; then
12954             if test $wxUSE_TREECTRL = no; then
12955               result=yes
12956             else
12957               result=no
12958             fi
12959           else
12960             result=$wxUSE_TREECTRL
12961           fi
12962
12963           { echo "$as_me:$LINENO: result: $result" >&5
12964 echo "${ECHO_T}$result" >&6; }
12965
12966
12967           enablestring=
12968           defaultval=$wxUSE_ALL_FEATURES
12969           if test -z "$defaultval"; then
12970               if test x"$enablestring" = xdisable; then
12971                   defaultval=yes
12972               else
12973                   defaultval=no
12974               fi
12975           fi
12976
12977           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treelist" >&5
12978 echo $ECHO_N "checking for --${enablestring:-enable}-treelist... $ECHO_C" >&6; }
12979           # Check whether --enable-treelist was given.
12980 if test "${enable_treelist+set}" = set; then
12981   enableval=$enable_treelist;
12982                           if test "$enableval" = yes; then
12983                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=yes'
12984                           else
12985                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=no'
12986                           fi
12987
12988 else
12989
12990                           wx_cv_use_treelist='wxUSE_TREELISTCTRL=${'DEFAULT_wxUSE_TREELISTCTRL":-$defaultval}"
12991
12992 fi
12993
12994
12995           eval "$wx_cv_use_treelist"
12996
12997           if test x"$enablestring" = xdisable; then
12998             if test $wxUSE_TREELISTCTRL = no; then
12999               result=yes
13000             else
13001               result=no
13002             fi
13003           else
13004             result=$wxUSE_TREELISTCTRL
13005           fi
13006
13007           { echo "$as_me:$LINENO: result: $result" >&5
13008 echo "${ECHO_T}$result" >&6; }
13009
13010
13011
13012
13013           enablestring=
13014           defaultval=$wxUSE_ALL_FEATURES
13015           if test -z "$defaultval"; then
13016               if test x"$enablestring" = xdisable; then
13017                   defaultval=yes
13018               else
13019                   defaultval=no
13020               fi
13021           fi
13022
13023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
13024 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
13025           # Check whether --enable-commondlg was given.
13026 if test "${enable_commondlg+set}" = set; then
13027   enableval=$enable_commondlg;
13028                           if test "$enableval" = yes; then
13029                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
13030                           else
13031                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
13032                           fi
13033
13034 else
13035
13036                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
13037
13038 fi
13039
13040
13041           eval "$wx_cv_use_commondlg"
13042
13043           if test x"$enablestring" = xdisable; then
13044             if test $wxUSE_COMMONDLGS = no; then
13045               result=yes
13046             else
13047               result=no
13048             fi
13049           else
13050             result=$wxUSE_COMMONDLGS
13051           fi
13052
13053           { echo "$as_me:$LINENO: result: $result" >&5
13054 echo "${ECHO_T}$result" >&6; }
13055
13056
13057           enablestring=
13058           defaultval=$wxUSE_ALL_FEATURES
13059           if test -z "$defaultval"; then
13060               if test x"$enablestring" = xdisable; then
13061                   defaultval=yes
13062               else
13063                   defaultval=no
13064               fi
13065           fi
13066
13067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
13068 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
13069           # Check whether --enable-aboutdlg was given.
13070 if test "${enable_aboutdlg+set}" = set; then
13071   enableval=$enable_aboutdlg;
13072                           if test "$enableval" = yes; then
13073                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
13074                           else
13075                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
13076                           fi
13077
13078 else
13079
13080                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
13081
13082 fi
13083
13084
13085           eval "$wx_cv_use_aboutdlg"
13086
13087           if test x"$enablestring" = xdisable; then
13088             if test $wxUSE_ABOUTDLG = no; then
13089               result=yes
13090             else
13091               result=no
13092             fi
13093           else
13094             result=$wxUSE_ABOUTDLG
13095           fi
13096
13097           { echo "$as_me:$LINENO: result: $result" >&5
13098 echo "${ECHO_T}$result" >&6; }
13099
13100
13101           enablestring=
13102           defaultval=$wxUSE_ALL_FEATURES
13103           if test -z "$defaultval"; then
13104               if test x"$enablestring" = xdisable; then
13105                   defaultval=yes
13106               else
13107                   defaultval=no
13108               fi
13109           fi
13110
13111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13112 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13113           # Check whether --enable-choicedlg was given.
13114 if test "${enable_choicedlg+set}" = set; then
13115   enableval=$enable_choicedlg;
13116                           if test "$enableval" = yes; then
13117                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13118                           else
13119                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13120                           fi
13121
13122 else
13123
13124                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13125
13126 fi
13127
13128
13129           eval "$wx_cv_use_choicedlg"
13130
13131           if test x"$enablestring" = xdisable; then
13132             if test $wxUSE_CHOICEDLG = no; then
13133               result=yes
13134             else
13135               result=no
13136             fi
13137           else
13138             result=$wxUSE_CHOICEDLG
13139           fi
13140
13141           { echo "$as_me:$LINENO: result: $result" >&5
13142 echo "${ECHO_T}$result" >&6; }
13143
13144
13145           enablestring=
13146           defaultval=$wxUSE_ALL_FEATURES
13147           if test -z "$defaultval"; then
13148               if test x"$enablestring" = xdisable; then
13149                   defaultval=yes
13150               else
13151                   defaultval=no
13152               fi
13153           fi
13154
13155           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13156 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13157           # Check whether --enable-coldlg was given.
13158 if test "${enable_coldlg+set}" = set; then
13159   enableval=$enable_coldlg;
13160                           if test "$enableval" = yes; then
13161                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13162                           else
13163                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13164                           fi
13165
13166 else
13167
13168                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13169
13170 fi
13171
13172
13173           eval "$wx_cv_use_coldlg"
13174
13175           if test x"$enablestring" = xdisable; then
13176             if test $wxUSE_COLOURDLG = no; then
13177               result=yes
13178             else
13179               result=no
13180             fi
13181           else
13182             result=$wxUSE_COLOURDLG
13183           fi
13184
13185           { echo "$as_me:$LINENO: result: $result" >&5
13186 echo "${ECHO_T}$result" >&6; }
13187
13188
13189           enablestring=
13190           defaultval=$wxUSE_ALL_FEATURES
13191           if test -z "$defaultval"; then
13192               if test x"$enablestring" = xdisable; then
13193                   defaultval=yes
13194               else
13195                   defaultval=no
13196               fi
13197           fi
13198
13199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13200 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13201           # Check whether --enable-filedlg was given.
13202 if test "${enable_filedlg+set}" = set; then
13203   enableval=$enable_filedlg;
13204                           if test "$enableval" = yes; then
13205                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13206                           else
13207                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13208                           fi
13209
13210 else
13211
13212                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13213
13214 fi
13215
13216
13217           eval "$wx_cv_use_filedlg"
13218
13219           if test x"$enablestring" = xdisable; then
13220             if test $wxUSE_FILEDLG = no; then
13221               result=yes
13222             else
13223               result=no
13224             fi
13225           else
13226             result=$wxUSE_FILEDLG
13227           fi
13228
13229           { echo "$as_me:$LINENO: result: $result" >&5
13230 echo "${ECHO_T}$result" >&6; }
13231
13232
13233           enablestring=
13234           defaultval=$wxUSE_ALL_FEATURES
13235           if test -z "$defaultval"; then
13236               if test x"$enablestring" = xdisable; then
13237                   defaultval=yes
13238               else
13239                   defaultval=no
13240               fi
13241           fi
13242
13243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13244 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13245           # Check whether --enable-finddlg was given.
13246 if test "${enable_finddlg+set}" = set; then
13247   enableval=$enable_finddlg;
13248                           if test "$enableval" = yes; then
13249                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13250                           else
13251                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13252                           fi
13253
13254 else
13255
13256                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13257
13258 fi
13259
13260
13261           eval "$wx_cv_use_finddlg"
13262
13263           if test x"$enablestring" = xdisable; then
13264             if test $wxUSE_FINDREPLDLG = no; then
13265               result=yes
13266             else
13267               result=no
13268             fi
13269           else
13270             result=$wxUSE_FINDREPLDLG
13271           fi
13272
13273           { echo "$as_me:$LINENO: result: $result" >&5
13274 echo "${ECHO_T}$result" >&6; }
13275
13276
13277           enablestring=
13278           defaultval=$wxUSE_ALL_FEATURES
13279           if test -z "$defaultval"; then
13280               if test x"$enablestring" = xdisable; then
13281                   defaultval=yes
13282               else
13283                   defaultval=no
13284               fi
13285           fi
13286
13287           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13288 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13289           # Check whether --enable-fontdlg was given.
13290 if test "${enable_fontdlg+set}" = set; then
13291   enableval=$enable_fontdlg;
13292                           if test "$enableval" = yes; then
13293                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13294                           else
13295                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13296                           fi
13297
13298 else
13299
13300                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13301
13302 fi
13303
13304
13305           eval "$wx_cv_use_fontdlg"
13306
13307           if test x"$enablestring" = xdisable; then
13308             if test $wxUSE_FONTDLG = no; then
13309               result=yes
13310             else
13311               result=no
13312             fi
13313           else
13314             result=$wxUSE_FONTDLG
13315           fi
13316
13317           { echo "$as_me:$LINENO: result: $result" >&5
13318 echo "${ECHO_T}$result" >&6; }
13319
13320
13321           enablestring=
13322           defaultval=$wxUSE_ALL_FEATURES
13323           if test -z "$defaultval"; then
13324               if test x"$enablestring" = xdisable; then
13325                   defaultval=yes
13326               else
13327                   defaultval=no
13328               fi
13329           fi
13330
13331           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
13332 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
13333           # Check whether --enable-dirdlg was given.
13334 if test "${enable_dirdlg+set}" = set; then
13335   enableval=$enable_dirdlg;
13336                           if test "$enableval" = yes; then
13337                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
13338                           else
13339                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
13340                           fi
13341
13342 else
13343
13344                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
13345
13346 fi
13347
13348
13349           eval "$wx_cv_use_dirdlg"
13350
13351           if test x"$enablestring" = xdisable; then
13352             if test $wxUSE_DIRDLG = no; then
13353               result=yes
13354             else
13355               result=no
13356             fi
13357           else
13358             result=$wxUSE_DIRDLG
13359           fi
13360
13361           { echo "$as_me:$LINENO: result: $result" >&5
13362 echo "${ECHO_T}$result" >&6; }
13363
13364
13365           enablestring=
13366           defaultval=$wxUSE_ALL_FEATURES
13367           if test -z "$defaultval"; then
13368               if test x"$enablestring" = xdisable; then
13369                   defaultval=yes
13370               else
13371                   defaultval=no
13372               fi
13373           fi
13374
13375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13376 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
13377           # Check whether --enable-msgdlg was given.
13378 if test "${enable_msgdlg+set}" = set; then
13379   enableval=$enable_msgdlg;
13380                           if test "$enableval" = yes; then
13381                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13382                           else
13383                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
13384                           fi
13385
13386 else
13387
13388                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13389
13390 fi
13391
13392
13393           eval "$wx_cv_use_msgdlg"
13394
13395           if test x"$enablestring" = xdisable; then
13396             if test $wxUSE_MSGDLG = no; then
13397               result=yes
13398             else
13399               result=no
13400             fi
13401           else
13402             result=$wxUSE_MSGDLG
13403           fi
13404
13405           { echo "$as_me:$LINENO: result: $result" >&5
13406 echo "${ECHO_T}$result" >&6; }
13407
13408
13409           enablestring=
13410           defaultval=$wxUSE_ALL_FEATURES
13411           if test -z "$defaultval"; then
13412               if test x"$enablestring" = xdisable; then
13413                   defaultval=yes
13414               else
13415                   defaultval=no
13416               fi
13417           fi
13418
13419           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13420 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
13421           # Check whether --enable-numberdlg was given.
13422 if test "${enable_numberdlg+set}" = set; then
13423   enableval=$enable_numberdlg;
13424                           if test "$enableval" = yes; then
13425                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13426                           else
13427                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13428                           fi
13429
13430 else
13431
13432                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13433
13434 fi
13435
13436
13437           eval "$wx_cv_use_numberdlg"
13438
13439           if test x"$enablestring" = xdisable; then
13440             if test $wxUSE_NUMBERDLG = no; then
13441               result=yes
13442             else
13443               result=no
13444             fi
13445           else
13446             result=$wxUSE_NUMBERDLG
13447           fi
13448
13449           { echo "$as_me:$LINENO: result: $result" >&5
13450 echo "${ECHO_T}$result" >&6; }
13451
13452
13453           enablestring=
13454           defaultval=$wxUSE_ALL_FEATURES
13455           if test -z "$defaultval"; then
13456               if test x"$enablestring" = xdisable; then
13457                   defaultval=yes
13458               else
13459                   defaultval=no
13460               fi
13461           fi
13462
13463           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13464 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
13465           # Check whether --enable-splash was given.
13466 if test "${enable_splash+set}" = set; then
13467   enableval=$enable_splash;
13468                           if test "$enableval" = yes; then
13469                             wx_cv_use_splash='wxUSE_SPLASH=yes'
13470                           else
13471                             wx_cv_use_splash='wxUSE_SPLASH=no'
13472                           fi
13473
13474 else
13475
13476                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13477
13478 fi
13479
13480
13481           eval "$wx_cv_use_splash"
13482
13483           if test x"$enablestring" = xdisable; then
13484             if test $wxUSE_SPLASH = no; then
13485               result=yes
13486             else
13487               result=no
13488             fi
13489           else
13490             result=$wxUSE_SPLASH
13491           fi
13492
13493           { echo "$as_me:$LINENO: result: $result" >&5
13494 echo "${ECHO_T}$result" >&6; }
13495
13496
13497           enablestring=
13498           defaultval=$wxUSE_ALL_FEATURES
13499           if test -z "$defaultval"; then
13500               if test x"$enablestring" = xdisable; then
13501                   defaultval=yes
13502               else
13503                   defaultval=no
13504               fi
13505           fi
13506
13507           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13508 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
13509           # Check whether --enable-textdlg was given.
13510 if test "${enable_textdlg+set}" = set; then
13511   enableval=$enable_textdlg;
13512                           if test "$enableval" = yes; then
13513                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13514                           else
13515                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13516                           fi
13517
13518 else
13519
13520                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13521
13522 fi
13523
13524
13525           eval "$wx_cv_use_textdlg"
13526
13527           if test x"$enablestring" = xdisable; then
13528             if test $wxUSE_TEXTDLG = no; then
13529               result=yes
13530             else
13531               result=no
13532             fi
13533           else
13534             result=$wxUSE_TEXTDLG
13535           fi
13536
13537           { echo "$as_me:$LINENO: result: $result" >&5
13538 echo "${ECHO_T}$result" >&6; }
13539
13540
13541           enablestring=
13542           defaultval=$wxUSE_ALL_FEATURES
13543           if test -z "$defaultval"; then
13544               if test x"$enablestring" = xdisable; then
13545                   defaultval=yes
13546               else
13547                   defaultval=no
13548               fi
13549           fi
13550
13551           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13552 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
13553           # Check whether --enable-tipdlg was given.
13554 if test "${enable_tipdlg+set}" = set; then
13555   enableval=$enable_tipdlg;
13556                           if test "$enableval" = yes; then
13557                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13558                           else
13559                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13560                           fi
13561
13562 else
13563
13564                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13565
13566 fi
13567
13568
13569           eval "$wx_cv_use_tipdlg"
13570
13571           if test x"$enablestring" = xdisable; then
13572             if test $wxUSE_STARTUP_TIPS = no; then
13573               result=yes
13574             else
13575               result=no
13576             fi
13577           else
13578             result=$wxUSE_STARTUP_TIPS
13579           fi
13580
13581           { echo "$as_me:$LINENO: result: $result" >&5
13582 echo "${ECHO_T}$result" >&6; }
13583
13584
13585           enablestring=
13586           defaultval=$wxUSE_ALL_FEATURES
13587           if test -z "$defaultval"; then
13588               if test x"$enablestring" = xdisable; then
13589                   defaultval=yes
13590               else
13591                   defaultval=no
13592               fi
13593           fi
13594
13595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13596 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13597           # Check whether --enable-progressdlg was given.
13598 if test "${enable_progressdlg+set}" = set; then
13599   enableval=$enable_progressdlg;
13600                           if test "$enableval" = yes; then
13601                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13602                           else
13603                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13604                           fi
13605
13606 else
13607
13608                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13609
13610 fi
13611
13612
13613           eval "$wx_cv_use_progressdlg"
13614
13615           if test x"$enablestring" = xdisable; then
13616             if test $wxUSE_PROGRESSDLG = no; then
13617               result=yes
13618             else
13619               result=no
13620             fi
13621           else
13622             result=$wxUSE_PROGRESSDLG
13623           fi
13624
13625           { echo "$as_me:$LINENO: result: $result" >&5
13626 echo "${ECHO_T}$result" >&6; }
13627
13628
13629           enablestring=
13630           defaultval=$wxUSE_ALL_FEATURES
13631           if test -z "$defaultval"; then
13632               if test x"$enablestring" = xdisable; then
13633                   defaultval=yes
13634               else
13635                   defaultval=no
13636               fi
13637           fi
13638
13639           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13640 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13641           # Check whether --enable-wizarddlg was given.
13642 if test "${enable_wizarddlg+set}" = set; then
13643   enableval=$enable_wizarddlg;
13644                           if test "$enableval" = yes; then
13645                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13646                           else
13647                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13648                           fi
13649
13650 else
13651
13652                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13653
13654 fi
13655
13656
13657           eval "$wx_cv_use_wizarddlg"
13658
13659           if test x"$enablestring" = xdisable; then
13660             if test $wxUSE_WIZARDDLG = no; then
13661               result=yes
13662             else
13663               result=no
13664             fi
13665           else
13666             result=$wxUSE_WIZARDDLG
13667           fi
13668
13669           { echo "$as_me:$LINENO: result: $result" >&5
13670 echo "${ECHO_T}$result" >&6; }
13671
13672
13673
13674
13675           enablestring=
13676           defaultval=$wxUSE_ALL_FEATURES
13677           if test -z "$defaultval"; then
13678               if test x"$enablestring" = xdisable; then
13679                   defaultval=yes
13680               else
13681                   defaultval=no
13682               fi
13683           fi
13684
13685           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13686 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13687           # Check whether --enable-menus was given.
13688 if test "${enable_menus+set}" = set; then
13689   enableval=$enable_menus;
13690                           if test "$enableval" = yes; then
13691                             wx_cv_use_menus='wxUSE_MENUS=yes'
13692                           else
13693                             wx_cv_use_menus='wxUSE_MENUS=no'
13694                           fi
13695
13696 else
13697
13698                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13699
13700 fi
13701
13702
13703           eval "$wx_cv_use_menus"
13704
13705           if test x"$enablestring" = xdisable; then
13706             if test $wxUSE_MENUS = no; then
13707               result=yes
13708             else
13709               result=no
13710             fi
13711           else
13712             result=$wxUSE_MENUS
13713           fi
13714
13715           { echo "$as_me:$LINENO: result: $result" >&5
13716 echo "${ECHO_T}$result" >&6; }
13717
13718
13719           enablestring=
13720           defaultval=$wxUSE_ALL_FEATURES
13721           if test -z "$defaultval"; then
13722               if test x"$enablestring" = xdisable; then
13723                   defaultval=yes
13724               else
13725                   defaultval=no
13726               fi
13727           fi
13728
13729           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13730 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13731           # Check whether --enable-miniframe was given.
13732 if test "${enable_miniframe+set}" = set; then
13733   enableval=$enable_miniframe;
13734                           if test "$enableval" = yes; then
13735                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13736                           else
13737                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13738                           fi
13739
13740 else
13741
13742                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13743
13744 fi
13745
13746
13747           eval "$wx_cv_use_miniframe"
13748
13749           if test x"$enablestring" = xdisable; then
13750             if test $wxUSE_MINIFRAME = no; then
13751               result=yes
13752             else
13753               result=no
13754             fi
13755           else
13756             result=$wxUSE_MINIFRAME
13757           fi
13758
13759           { echo "$as_me:$LINENO: result: $result" >&5
13760 echo "${ECHO_T}$result" >&6; }
13761
13762
13763           enablestring=
13764           defaultval=$wxUSE_ALL_FEATURES
13765           if test -z "$defaultval"; then
13766               if test x"$enablestring" = xdisable; then
13767                   defaultval=yes
13768               else
13769                   defaultval=no
13770               fi
13771           fi
13772
13773           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13774 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13775           # Check whether --enable-tooltips was given.
13776 if test "${enable_tooltips+set}" = set; then
13777   enableval=$enable_tooltips;
13778                           if test "$enableval" = yes; then
13779                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13780                           else
13781                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13782                           fi
13783
13784 else
13785
13786                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13787
13788 fi
13789
13790
13791           eval "$wx_cv_use_tooltips"
13792
13793           if test x"$enablestring" = xdisable; then
13794             if test $wxUSE_TOOLTIPS = no; then
13795               result=yes
13796             else
13797               result=no
13798             fi
13799           else
13800             result=$wxUSE_TOOLTIPS
13801           fi
13802
13803           { echo "$as_me:$LINENO: result: $result" >&5
13804 echo "${ECHO_T}$result" >&6; }
13805
13806
13807           enablestring=
13808           defaultval=$wxUSE_ALL_FEATURES
13809           if test -z "$defaultval"; then
13810               if test x"$enablestring" = xdisable; then
13811                   defaultval=yes
13812               else
13813                   defaultval=no
13814               fi
13815           fi
13816
13817           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13818 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13819           # Check whether --enable-splines was given.
13820 if test "${enable_splines+set}" = set; then
13821   enableval=$enable_splines;
13822                           if test "$enableval" = yes; then
13823                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13824                           else
13825                             wx_cv_use_splines='wxUSE_SPLINES=no'
13826                           fi
13827
13828 else
13829
13830                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13831
13832 fi
13833
13834
13835           eval "$wx_cv_use_splines"
13836
13837           if test x"$enablestring" = xdisable; then
13838             if test $wxUSE_SPLINES = no; then
13839               result=yes
13840             else
13841               result=no
13842             fi
13843           else
13844             result=$wxUSE_SPLINES
13845           fi
13846
13847           { echo "$as_me:$LINENO: result: $result" >&5
13848 echo "${ECHO_T}$result" >&6; }
13849
13850
13851           enablestring=
13852           defaultval=$wxUSE_ALL_FEATURES
13853           if test -z "$defaultval"; then
13854               if test x"$enablestring" = xdisable; then
13855                   defaultval=yes
13856               else
13857                   defaultval=no
13858               fi
13859           fi
13860
13861           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13862 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13863           # Check whether --enable-mousewheel was given.
13864 if test "${enable_mousewheel+set}" = set; then
13865   enableval=$enable_mousewheel;
13866                           if test "$enableval" = yes; then
13867                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13868                           else
13869                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13870                           fi
13871
13872 else
13873
13874                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13875
13876 fi
13877
13878
13879           eval "$wx_cv_use_mousewheel"
13880
13881           if test x"$enablestring" = xdisable; then
13882             if test $wxUSE_MOUSEWHEEL = no; then
13883               result=yes
13884             else
13885               result=no
13886             fi
13887           else
13888             result=$wxUSE_MOUSEWHEEL
13889           fi
13890
13891           { echo "$as_me:$LINENO: result: $result" >&5
13892 echo "${ECHO_T}$result" >&6; }
13893
13894
13895           enablestring=
13896           defaultval=$wxUSE_ALL_FEATURES
13897           if test -z "$defaultval"; then
13898               if test x"$enablestring" = xdisable; then
13899                   defaultval=yes
13900               else
13901                   defaultval=no
13902               fi
13903           fi
13904
13905           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13906 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13907           # Check whether --enable-validators was given.
13908 if test "${enable_validators+set}" = set; then
13909   enableval=$enable_validators;
13910                           if test "$enableval" = yes; then
13911                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13912                           else
13913                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13914                           fi
13915
13916 else
13917
13918                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13919
13920 fi
13921
13922
13923           eval "$wx_cv_use_validators"
13924
13925           if test x"$enablestring" = xdisable; then
13926             if test $wxUSE_VALIDATORS = no; then
13927               result=yes
13928             else
13929               result=no
13930             fi
13931           else
13932             result=$wxUSE_VALIDATORS
13933           fi
13934
13935           { echo "$as_me:$LINENO: result: $result" >&5
13936 echo "${ECHO_T}$result" >&6; }
13937
13938
13939           enablestring=
13940           defaultval=$wxUSE_ALL_FEATURES
13941           if test -z "$defaultval"; then
13942               if test x"$enablestring" = xdisable; then
13943                   defaultval=yes
13944               else
13945                   defaultval=no
13946               fi
13947           fi
13948
13949           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13950 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13951           # Check whether --enable-busyinfo was given.
13952 if test "${enable_busyinfo+set}" = set; then
13953   enableval=$enable_busyinfo;
13954                           if test "$enableval" = yes; then
13955                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13956                           else
13957                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13958                           fi
13959
13960 else
13961
13962                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13963
13964 fi
13965
13966
13967           eval "$wx_cv_use_busyinfo"
13968
13969           if test x"$enablestring" = xdisable; then
13970             if test $wxUSE_BUSYINFO = no; then
13971               result=yes
13972             else
13973               result=no
13974             fi
13975           else
13976             result=$wxUSE_BUSYINFO
13977           fi
13978
13979           { echo "$as_me:$LINENO: result: $result" >&5
13980 echo "${ECHO_T}$result" >&6; }
13981
13982
13983           enablestring=
13984           defaultval=$wxUSE_ALL_FEATURES
13985           if test -z "$defaultval"; then
13986               if test x"$enablestring" = xdisable; then
13987                   defaultval=yes
13988               else
13989                   defaultval=no
13990               fi
13991           fi
13992
13993           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hotkey" >&5
13994 echo $ECHO_N "checking for --${enablestring:-enable}-hotkey... $ECHO_C" >&6; }
13995           # Check whether --enable-hotkey was given.
13996 if test "${enable_hotkey+set}" = set; then
13997   enableval=$enable_hotkey;
13998                           if test "$enableval" = yes; then
13999                             wx_cv_use_hotkey='wxUSE_HOTKEY=yes'
14000                           else
14001                             wx_cv_use_hotkey='wxUSE_HOTKEY=no'
14002                           fi
14003
14004 else
14005
14006                           wx_cv_use_hotkey='wxUSE_HOTKEY=${'DEFAULT_wxUSE_HOTKEY":-$defaultval}"
14007
14008 fi
14009
14010
14011           eval "$wx_cv_use_hotkey"
14012
14013           if test x"$enablestring" = xdisable; then
14014             if test $wxUSE_HOTKEY = no; then
14015               result=yes
14016             else
14017               result=no
14018             fi
14019           else
14020             result=$wxUSE_HOTKEY
14021           fi
14022
14023           { echo "$as_me:$LINENO: result: $result" >&5
14024 echo "${ECHO_T}$result" >&6; }
14025
14026
14027           enablestring=
14028           defaultval=$wxUSE_ALL_FEATURES
14029           if test -z "$defaultval"; then
14030               if test x"$enablestring" = xdisable; then
14031                   defaultval=yes
14032               else
14033                   defaultval=no
14034               fi
14035           fi
14036
14037           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
14038 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
14039           # Check whether --enable-joystick was given.
14040 if test "${enable_joystick+set}" = set; then
14041   enableval=$enable_joystick;
14042                           if test "$enableval" = yes; then
14043                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
14044                           else
14045                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
14046                           fi
14047
14048 else
14049
14050                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
14051
14052 fi
14053
14054
14055           eval "$wx_cv_use_joystick"
14056
14057           if test x"$enablestring" = xdisable; then
14058             if test $wxUSE_JOYSTICK = no; then
14059               result=yes
14060             else
14061               result=no
14062             fi
14063           else
14064             result=$wxUSE_JOYSTICK
14065           fi
14066
14067           { echo "$as_me:$LINENO: result: $result" >&5
14068 echo "${ECHO_T}$result" >&6; }
14069
14070
14071           enablestring=
14072           defaultval=$wxUSE_ALL_FEATURES
14073           if test -z "$defaultval"; then
14074               if test x"$enablestring" = xdisable; then
14075                   defaultval=yes
14076               else
14077                   defaultval=no
14078               fi
14079           fi
14080
14081           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
14082 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
14083           # Check whether --enable-metafile was given.
14084 if test "${enable_metafile+set}" = set; then
14085   enableval=$enable_metafile;
14086                           if test "$enableval" = yes; then
14087                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
14088                           else
14089                             wx_cv_use_metafile='wxUSE_METAFILE=no'
14090                           fi
14091
14092 else
14093
14094                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
14095
14096 fi
14097
14098
14099           eval "$wx_cv_use_metafile"
14100
14101           if test x"$enablestring" = xdisable; then
14102             if test $wxUSE_METAFILE = no; then
14103               result=yes
14104             else
14105               result=no
14106             fi
14107           else
14108             result=$wxUSE_METAFILE
14109           fi
14110
14111           { echo "$as_me:$LINENO: result: $result" >&5
14112 echo "${ECHO_T}$result" >&6; }
14113
14114
14115           enablestring=
14116           defaultval=$wxUSE_ALL_FEATURES
14117           if test -z "$defaultval"; then
14118               if test x"$enablestring" = xdisable; then
14119                   defaultval=yes
14120               else
14121                   defaultval=no
14122               fi
14123           fi
14124
14125           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
14126 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
14127           # Check whether --enable-dragimage was given.
14128 if test "${enable_dragimage+set}" = set; then
14129   enableval=$enable_dragimage;
14130                           if test "$enableval" = yes; then
14131                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
14132                           else
14133                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
14134                           fi
14135
14136 else
14137
14138                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
14139
14140 fi
14141
14142
14143           eval "$wx_cv_use_dragimage"
14144
14145           if test x"$enablestring" = xdisable; then
14146             if test $wxUSE_DRAGIMAGE = no; then
14147               result=yes
14148             else
14149               result=no
14150             fi
14151           else
14152             result=$wxUSE_DRAGIMAGE
14153           fi
14154
14155           { echo "$as_me:$LINENO: result: $result" >&5
14156 echo "${ECHO_T}$result" >&6; }
14157
14158
14159           enablestring=
14160           defaultval=$wxUSE_ALL_FEATURES
14161           if test -z "$defaultval"; then
14162               if test x"$enablestring" = xdisable; then
14163                   defaultval=yes
14164               else
14165                   defaultval=no
14166               fi
14167           fi
14168
14169           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
14170 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
14171           # Check whether --enable-accessibility was given.
14172 if test "${enable_accessibility+set}" = set; then
14173   enableval=$enable_accessibility;
14174                           if test "$enableval" = yes; then
14175                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
14176                           else
14177                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
14178                           fi
14179
14180 else
14181
14182                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
14183
14184 fi
14185
14186
14187           eval "$wx_cv_use_accessibility"
14188
14189           if test x"$enablestring" = xdisable; then
14190             if test $wxUSE_ACCESSIBILITY = no; then
14191               result=yes
14192             else
14193               result=no
14194             fi
14195           else
14196             result=$wxUSE_ACCESSIBILITY
14197           fi
14198
14199           { echo "$as_me:$LINENO: result: $result" >&5
14200 echo "${ECHO_T}$result" >&6; }
14201
14202
14203           enablestring=
14204           defaultval=$wxUSE_ALL_FEATURES
14205           if test -z "$defaultval"; then
14206               if test x"$enablestring" = xdisable; then
14207                   defaultval=yes
14208               else
14209                   defaultval=no
14210               fi
14211           fi
14212
14213           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
14214 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
14215           # Check whether --enable-uiactionsim was given.
14216 if test "${enable_uiactionsim+set}" = set; then
14217   enableval=$enable_uiactionsim;
14218                           if test "$enableval" = yes; then
14219                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
14220                           else
14221                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
14222                           fi
14223
14224 else
14225
14226                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
14227
14228 fi
14229
14230
14231           eval "$wx_cv_use_uiactionsim"
14232
14233           if test x"$enablestring" = xdisable; then
14234             if test $wxUSE_UIACTIONSIMULATOR = no; then
14235               result=yes
14236             else
14237               result=no
14238             fi
14239           else
14240             result=$wxUSE_UIACTIONSIMULATOR
14241           fi
14242
14243           { echo "$as_me:$LINENO: result: $result" >&5
14244 echo "${ECHO_T}$result" >&6; }
14245
14246
14247           enablestring=
14248           defaultval=$wxUSE_ALL_FEATURES
14249           if test -z "$defaultval"; then
14250               if test x"$enablestring" = xdisable; then
14251                   defaultval=yes
14252               else
14253                   defaultval=no
14254               fi
14255           fi
14256
14257           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dctransform" >&5
14258 echo $ECHO_N "checking for --${enablestring:-enable}-dctransform... $ECHO_C" >&6; }
14259           # Check whether --enable-dctransform was given.
14260 if test "${enable_dctransform+set}" = set; then
14261   enableval=$enable_dctransform;
14262                           if test "$enableval" = yes; then
14263                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=yes'
14264                           else
14265                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=no'
14266                           fi
14267
14268 else
14269
14270                           wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=${'DEFAULT_wxUSE_DC_TRANSFORM_MATRIX":-$defaultval}"
14271
14272 fi
14273
14274
14275           eval "$wx_cv_use_dctransform"
14276
14277           if test x"$enablestring" = xdisable; then
14278             if test $wxUSE_DC_TRANSFORM_MATRIX = no; then
14279               result=yes
14280             else
14281               result=no
14282             fi
14283           else
14284             result=$wxUSE_DC_TRANSFORM_MATRIX
14285           fi
14286
14287           { echo "$as_me:$LINENO: result: $result" >&5
14288 echo "${ECHO_T}$result" >&6; }
14289
14290
14291           enablestring=
14292           defaultval=$wxUSE_ALL_FEATURES
14293           if test -z "$defaultval"; then
14294               if test x"$enablestring" = xdisable; then
14295                   defaultval=yes
14296               else
14297                   defaultval=no
14298               fi
14299           fi
14300
14301           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewwebkit" >&5
14302 echo $ECHO_N "checking for --${enablestring:-enable}-webviewwebkit... $ECHO_C" >&6; }
14303           # Check whether --enable-webviewwebkit was given.
14304 if test "${enable_webviewwebkit+set}" = set; then
14305   enableval=$enable_webviewwebkit;
14306                           if test "$enableval" = yes; then
14307                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=yes'
14308                           else
14309                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=no'
14310                           fi
14311
14312 else
14313
14314                           wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=${'DEFAULT_wxUSE_WEBVIEW_WEBKIT":-$defaultval}"
14315
14316 fi
14317
14318
14319           eval "$wx_cv_use_webviewwebkit"
14320
14321           if test x"$enablestring" = xdisable; then
14322             if test $wxUSE_WEBVIEW_WEBKIT = no; then
14323               result=yes
14324             else
14325               result=no
14326             fi
14327           else
14328             result=$wxUSE_WEBVIEW_WEBKIT
14329           fi
14330
14331           { echo "$as_me:$LINENO: result: $result" >&5
14332 echo "${ECHO_T}$result" >&6; }
14333
14334
14335
14336
14337           enablestring=
14338           defaultval=$wxUSE_ALL_FEATURES
14339           if test -z "$defaultval"; then
14340               if test x"$enablestring" = xdisable; then
14341                   defaultval=yes
14342               else
14343                   defaultval=no
14344               fi
14345           fi
14346
14347           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
14348 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
14349           # Check whether --enable-palette was given.
14350 if test "${enable_palette+set}" = set; then
14351   enableval=$enable_palette;
14352                           if test "$enableval" = yes; then
14353                             wx_cv_use_palette='wxUSE_PALETTE=yes'
14354                           else
14355                             wx_cv_use_palette='wxUSE_PALETTE=no'
14356                           fi
14357
14358 else
14359
14360                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
14361
14362 fi
14363
14364
14365           eval "$wx_cv_use_palette"
14366
14367           if test x"$enablestring" = xdisable; then
14368             if test $wxUSE_PALETTE = no; then
14369               result=yes
14370             else
14371               result=no
14372             fi
14373           else
14374             result=$wxUSE_PALETTE
14375           fi
14376
14377           { echo "$as_me:$LINENO: result: $result" >&5
14378 echo "${ECHO_T}$result" >&6; }
14379
14380
14381           enablestring=
14382           defaultval=$wxUSE_ALL_FEATURES
14383           if test -z "$defaultval"; then
14384               if test x"$enablestring" = xdisable; then
14385                   defaultval=yes
14386               else
14387                   defaultval=no
14388               fi
14389           fi
14390
14391           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
14392 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
14393           # Check whether --enable-image was given.
14394 if test "${enable_image+set}" = set; then
14395   enableval=$enable_image;
14396                           if test "$enableval" = yes; then
14397                             wx_cv_use_image='wxUSE_IMAGE=yes'
14398                           else
14399                             wx_cv_use_image='wxUSE_IMAGE=no'
14400                           fi
14401
14402 else
14403
14404                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
14405
14406 fi
14407
14408
14409           eval "$wx_cv_use_image"
14410
14411           if test x"$enablestring" = xdisable; then
14412             if test $wxUSE_IMAGE = no; then
14413               result=yes
14414             else
14415               result=no
14416             fi
14417           else
14418             result=$wxUSE_IMAGE
14419           fi
14420
14421           { echo "$as_me:$LINENO: result: $result" >&5
14422 echo "${ECHO_T}$result" >&6; }
14423
14424
14425           enablestring=
14426           defaultval=$wxUSE_ALL_FEATURES
14427           if test -z "$defaultval"; then
14428               if test x"$enablestring" = xdisable; then
14429                   defaultval=yes
14430               else
14431                   defaultval=no
14432               fi
14433           fi
14434
14435           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14436 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
14437           # Check whether --enable-gif was given.
14438 if test "${enable_gif+set}" = set; then
14439   enableval=$enable_gif;
14440                           if test "$enableval" = yes; then
14441                             wx_cv_use_gif='wxUSE_GIF=yes'
14442                           else
14443                             wx_cv_use_gif='wxUSE_GIF=no'
14444                           fi
14445
14446 else
14447
14448                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14449
14450 fi
14451
14452
14453           eval "$wx_cv_use_gif"
14454
14455           if test x"$enablestring" = xdisable; then
14456             if test $wxUSE_GIF = no; then
14457               result=yes
14458             else
14459               result=no
14460             fi
14461           else
14462             result=$wxUSE_GIF
14463           fi
14464
14465           { echo "$as_me:$LINENO: result: $result" >&5
14466 echo "${ECHO_T}$result" >&6; }
14467
14468
14469           enablestring=
14470           defaultval=$wxUSE_ALL_FEATURES
14471           if test -z "$defaultval"; then
14472               if test x"$enablestring" = xdisable; then
14473                   defaultval=yes
14474               else
14475                   defaultval=no
14476               fi
14477           fi
14478
14479           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14480 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
14481           # Check whether --enable-pcx was given.
14482 if test "${enable_pcx+set}" = set; then
14483   enableval=$enable_pcx;
14484                           if test "$enableval" = yes; then
14485                             wx_cv_use_pcx='wxUSE_PCX=yes'
14486                           else
14487                             wx_cv_use_pcx='wxUSE_PCX=no'
14488                           fi
14489
14490 else
14491
14492                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14493
14494 fi
14495
14496
14497           eval "$wx_cv_use_pcx"
14498
14499           if test x"$enablestring" = xdisable; then
14500             if test $wxUSE_PCX = no; then
14501               result=yes
14502             else
14503               result=no
14504             fi
14505           else
14506             result=$wxUSE_PCX
14507           fi
14508
14509           { echo "$as_me:$LINENO: result: $result" >&5
14510 echo "${ECHO_T}$result" >&6; }
14511
14512
14513           enablestring=
14514           defaultval=$wxUSE_ALL_FEATURES
14515           if test -z "$defaultval"; then
14516               if test x"$enablestring" = xdisable; then
14517                   defaultval=yes
14518               else
14519                   defaultval=no
14520               fi
14521           fi
14522
14523           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14524 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
14525           # Check whether --enable-tga was given.
14526 if test "${enable_tga+set}" = set; then
14527   enableval=$enable_tga;
14528                           if test "$enableval" = yes; then
14529                             wx_cv_use_tga='wxUSE_TGA=yes'
14530                           else
14531                             wx_cv_use_tga='wxUSE_TGA=no'
14532                           fi
14533
14534 else
14535
14536                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
14537
14538 fi
14539
14540
14541           eval "$wx_cv_use_tga"
14542
14543           if test x"$enablestring" = xdisable; then
14544             if test $wxUSE_TGA = no; then
14545               result=yes
14546             else
14547               result=no
14548             fi
14549           else
14550             result=$wxUSE_TGA
14551           fi
14552
14553           { echo "$as_me:$LINENO: result: $result" >&5
14554 echo "${ECHO_T}$result" >&6; }
14555
14556
14557           enablestring=
14558           defaultval=$wxUSE_ALL_FEATURES
14559           if test -z "$defaultval"; then
14560               if test x"$enablestring" = xdisable; then
14561                   defaultval=yes
14562               else
14563                   defaultval=no
14564               fi
14565           fi
14566
14567           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
14568 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
14569           # Check whether --enable-iff was given.
14570 if test "${enable_iff+set}" = set; then
14571   enableval=$enable_iff;
14572                           if test "$enableval" = yes; then
14573                             wx_cv_use_iff='wxUSE_IFF=yes'
14574                           else
14575                             wx_cv_use_iff='wxUSE_IFF=no'
14576                           fi
14577
14578 else
14579
14580                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
14581
14582 fi
14583
14584
14585           eval "$wx_cv_use_iff"
14586
14587           if test x"$enablestring" = xdisable; then
14588             if test $wxUSE_IFF = no; then
14589               result=yes
14590             else
14591               result=no
14592             fi
14593           else
14594             result=$wxUSE_IFF
14595           fi
14596
14597           { echo "$as_me:$LINENO: result: $result" >&5
14598 echo "${ECHO_T}$result" >&6; }
14599
14600
14601           enablestring=
14602           defaultval=$wxUSE_ALL_FEATURES
14603           if test -z "$defaultval"; then
14604               if test x"$enablestring" = xdisable; then
14605                   defaultval=yes
14606               else
14607                   defaultval=no
14608               fi
14609           fi
14610
14611           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
14612 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
14613           # Check whether --enable-pnm was given.
14614 if test "${enable_pnm+set}" = set; then
14615   enableval=$enable_pnm;
14616                           if test "$enableval" = yes; then
14617                             wx_cv_use_pnm='wxUSE_PNM=yes'
14618                           else
14619                             wx_cv_use_pnm='wxUSE_PNM=no'
14620                           fi
14621
14622 else
14623
14624                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
14625
14626 fi
14627
14628
14629           eval "$wx_cv_use_pnm"
14630
14631           if test x"$enablestring" = xdisable; then
14632             if test $wxUSE_PNM = no; then
14633               result=yes
14634             else
14635               result=no
14636             fi
14637           else
14638             result=$wxUSE_PNM
14639           fi
14640
14641           { echo "$as_me:$LINENO: result: $result" >&5
14642 echo "${ECHO_T}$result" >&6; }
14643
14644
14645           enablestring=
14646           defaultval=$wxUSE_ALL_FEATURES
14647           if test -z "$defaultval"; then
14648               if test x"$enablestring" = xdisable; then
14649                   defaultval=yes
14650               else
14651                   defaultval=no
14652               fi
14653           fi
14654
14655           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
14656 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
14657           # Check whether --enable-xpm was given.
14658 if test "${enable_xpm+set}" = set; then
14659   enableval=$enable_xpm;
14660                           if test "$enableval" = yes; then
14661                             wx_cv_use_xpm='wxUSE_XPM=yes'
14662                           else
14663                             wx_cv_use_xpm='wxUSE_XPM=no'
14664                           fi
14665
14666 else
14667
14668                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
14669
14670 fi
14671
14672
14673           eval "$wx_cv_use_xpm"
14674
14675           if test x"$enablestring" = xdisable; then
14676             if test $wxUSE_XPM = no; then
14677               result=yes
14678             else
14679               result=no
14680             fi
14681           else
14682             result=$wxUSE_XPM
14683           fi
14684
14685           { echo "$as_me:$LINENO: result: $result" >&5
14686 echo "${ECHO_T}$result" >&6; }
14687
14688
14689           enablestring=
14690           defaultval=$wxUSE_ALL_FEATURES
14691           if test -z "$defaultval"; then
14692               if test x"$enablestring" = xdisable; then
14693                   defaultval=yes
14694               else
14695                   defaultval=no
14696               fi
14697           fi
14698
14699           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14700 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
14701           # Check whether --enable-ico_cur was given.
14702 if test "${enable_ico_cur+set}" = set; then
14703   enableval=$enable_ico_cur;
14704                           if test "$enableval" = yes; then
14705                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14706                           else
14707                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14708                           fi
14709
14710 else
14711
14712                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14713
14714 fi
14715
14716
14717           eval "$wx_cv_use_ico_cur"
14718
14719           if test x"$enablestring" = xdisable; then
14720             if test $wxUSE_ICO_CUR = no; then
14721               result=yes
14722             else
14723               result=no
14724             fi
14725           else
14726             result=$wxUSE_ICO_CUR
14727           fi
14728
14729           { echo "$as_me:$LINENO: result: $result" >&5
14730 echo "${ECHO_T}$result" >&6; }
14731
14732
14733
14734
14735           enablestring=
14736           defaultval=$wxUSE_ALL_FEATURES
14737           if test -z "$defaultval"; then
14738               if test x"$enablestring" = xdisable; then
14739                   defaultval=yes
14740               else
14741                   defaultval=no
14742               fi
14743           fi
14744
14745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14746 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14747           # Check whether --enable-dccache was given.
14748 if test "${enable_dccache+set}" = set; then
14749   enableval=$enable_dccache;
14750                           if test "$enableval" = yes; then
14751                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14752                           else
14753                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14754                           fi
14755
14756 else
14757
14758                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14759
14760 fi
14761
14762
14763           eval "$wx_cv_use_dccache"
14764
14765           if test x"$enablestring" = xdisable; then
14766             if test $wxUSE_DC_CACHEING = no; then
14767               result=yes
14768             else
14769               result=no
14770             fi
14771           else
14772             result=$wxUSE_DC_CACHEING
14773           fi
14774
14775           { echo "$as_me:$LINENO: result: $result" >&5
14776 echo "${ECHO_T}$result" >&6; }
14777
14778
14779           enablestring=
14780           defaultval=$wxUSE_ALL_FEATURES
14781           if test -z "$defaultval"; then
14782               if test x"$enablestring" = xdisable; then
14783                   defaultval=yes
14784               else
14785                   defaultval=no
14786               fi
14787           fi
14788
14789           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14790 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14791           # Check whether --enable-ps-in-msw was given.
14792 if test "${enable_ps_in_msw+set}" = set; then
14793   enableval=$enable_ps_in_msw;
14794                           if test "$enableval" = yes; then
14795                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14796                           else
14797                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14798                           fi
14799
14800 else
14801
14802                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14803
14804 fi
14805
14806
14807           eval "$wx_cv_use_ps_in_msw"
14808
14809           if test x"$enablestring" = xdisable; then
14810             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14811               result=yes
14812             else
14813               result=no
14814             fi
14815           else
14816             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14817           fi
14818
14819           { echo "$as_me:$LINENO: result: $result" >&5
14820 echo "${ECHO_T}$result" >&6; }
14821
14822
14823           enablestring=
14824           defaultval=$wxUSE_ALL_FEATURES
14825           if test -z "$defaultval"; then
14826               if test x"$enablestring" = xdisable; then
14827                   defaultval=yes
14828               else
14829                   defaultval=no
14830               fi
14831           fi
14832
14833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14834 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14835           # Check whether --enable-ownerdrawn was given.
14836 if test "${enable_ownerdrawn+set}" = set; then
14837   enableval=$enable_ownerdrawn;
14838                           if test "$enableval" = yes; then
14839                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14840                           else
14841                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14842                           fi
14843
14844 else
14845
14846                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14847
14848 fi
14849
14850
14851           eval "$wx_cv_use_ownerdrawn"
14852
14853           if test x"$enablestring" = xdisable; then
14854             if test $wxUSE_OWNER_DRAWN = no; then
14855               result=yes
14856             else
14857               result=no
14858             fi
14859           else
14860             result=$wxUSE_OWNER_DRAWN
14861           fi
14862
14863           { echo "$as_me:$LINENO: result: $result" >&5
14864 echo "${ECHO_T}$result" >&6; }
14865
14866
14867           enablestring=
14868           defaultval=$wxUSE_ALL_FEATURES
14869           if test -z "$defaultval"; then
14870               if test x"$enablestring" = xdisable; then
14871                   defaultval=yes
14872               else
14873                   defaultval=no
14874               fi
14875           fi
14876
14877           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14878 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14879           # Check whether --enable-uxtheme was given.
14880 if test "${enable_uxtheme+set}" = set; then
14881   enableval=$enable_uxtheme;
14882                           if test "$enableval" = yes; then
14883                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14884                           else
14885                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14886                           fi
14887
14888 else
14889
14890                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14891
14892 fi
14893
14894
14895           eval "$wx_cv_use_uxtheme"
14896
14897           if test x"$enablestring" = xdisable; then
14898             if test $wxUSE_UXTHEME = no; then
14899               result=yes
14900             else
14901               result=no
14902             fi
14903           else
14904             result=$wxUSE_UXTHEME
14905           fi
14906
14907           { echo "$as_me:$LINENO: result: $result" >&5
14908 echo "${ECHO_T}$result" >&6; }
14909
14910
14911           enablestring=
14912           defaultval=$wxUSE_ALL_FEATURES
14913           if test -z "$defaultval"; then
14914               if test x"$enablestring" = xdisable; then
14915                   defaultval=yes
14916               else
14917                   defaultval=no
14918               fi
14919           fi
14920
14921           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14922 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14923           # Check whether --enable-wxdib was given.
14924 if test "${enable_wxdib+set}" = set; then
14925   enableval=$enable_wxdib;
14926                           if test "$enableval" = yes; then
14927                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14928                           else
14929                             wx_cv_use_wxdib='wxUSE_DIB=no'
14930                           fi
14931
14932 else
14933
14934                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14935
14936 fi
14937
14938
14939           eval "$wx_cv_use_wxdib"
14940
14941           if test x"$enablestring" = xdisable; then
14942             if test $wxUSE_DIB = no; then
14943               result=yes
14944             else
14945               result=no
14946             fi
14947           else
14948             result=$wxUSE_DIB
14949           fi
14950
14951           { echo "$as_me:$LINENO: result: $result" >&5
14952 echo "${ECHO_T}$result" >&6; }
14953
14954
14955           enablestring=
14956           defaultval=$wxUSE_ALL_FEATURES
14957           if test -z "$defaultval"; then
14958               if test x"$enablestring" = xdisable; then
14959                   defaultval=yes
14960               else
14961                   defaultval=no
14962               fi
14963           fi
14964
14965           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewie" >&5
14966 echo $ECHO_N "checking for --${enablestring:-enable}-webviewie... $ECHO_C" >&6; }
14967           # Check whether --enable-webviewie was given.
14968 if test "${enable_webviewie+set}" = set; then
14969   enableval=$enable_webviewie;
14970                           if test "$enableval" = yes; then
14971                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=yes'
14972                           else
14973                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=no'
14974                           fi
14975
14976 else
14977
14978                           wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=${'DEFAULT_wxUSE_WEBVIEW_IE":-$defaultval}"
14979
14980 fi
14981
14982
14983           eval "$wx_cv_use_webviewie"
14984
14985           if test x"$enablestring" = xdisable; then
14986             if test $wxUSE_WEBVIEW_IE = no; then
14987               result=yes
14988             else
14989               result=no
14990             fi
14991           else
14992             result=$wxUSE_WEBVIEW_IE
14993           fi
14994
14995           { echo "$as_me:$LINENO: result: $result" >&5
14996 echo "${ECHO_T}$result" >&6; }
14997
14998
14999 if test "$wxUSE_MSW" != 1; then
15000     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
15001 fi
15002
15003
15004           enablestring=
15005           defaultval=$wxUSE_ALL_FEATURES
15006           if test -z "$defaultval"; then
15007               if test x"$enablestring" = xdisable; then
15008                   defaultval=yes
15009               else
15010                   defaultval=no
15011               fi
15012           fi
15013
15014           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
15015 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
15016           # Check whether --enable-autoidman was given.
15017 if test "${enable_autoidman+set}" = set; then
15018   enableval=$enable_autoidman;
15019                           if test "$enableval" = yes; then
15020                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
15021                           else
15022                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
15023                           fi
15024
15025 else
15026
15027                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
15028
15029 fi
15030
15031
15032           eval "$wx_cv_use_autoidman"
15033
15034           if test x"$enablestring" = xdisable; then
15035             if test $wxUSE_AUTOID_MANAGEMENT = no; then
15036               result=yes
15037             else
15038               result=no
15039             fi
15040           else
15041             result=$wxUSE_AUTOID_MANAGEMENT
15042           fi
15043
15044           { echo "$as_me:$LINENO: result: $result" >&5
15045 echo "${ECHO_T}$result" >&6; }
15046
15047
15048 fi
15049
15050
15051 cat >confcache <<\_ACEOF
15052 # This file is a shell script that caches the results of configure
15053 # tests run on this system so they can be shared between configure
15054 # scripts and configure runs, see configure's option --config-cache.
15055 # It is not useful on other systems.  If it contains results you don't
15056 # want to keep, you may remove or edit it.
15057 #
15058 # config.status only pays attention to the cache file if you give it
15059 # the --recheck option to rerun configure.
15060 #
15061 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15062 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15063 # following values.
15064
15065 _ACEOF
15066
15067 # The following way of writing the cache mishandles newlines in values,
15068 # but we know of no workaround that is simple, portable, and efficient.
15069 # So, we kill variables containing newlines.
15070 # Ultrix sh set writes to stderr and can't be redirected directly,
15071 # and sets the high bit in the cache file unless we assign to the vars.
15072 (
15073   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15074     eval ac_val=\$$ac_var
15075     case $ac_val in #(
15076     *${as_nl}*)
15077       case $ac_var in #(
15078       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15079 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15080       esac
15081       case $ac_var in #(
15082       _ | IFS | as_nl) ;; #(
15083       *) $as_unset $ac_var ;;
15084       esac ;;
15085     esac
15086   done
15087
15088   (set) 2>&1 |
15089     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15090     *${as_nl}ac_space=\ *)
15091       # `set' does not quote correctly, so add quotes (double-quote
15092       # substitution turns \\\\ into \\, and sed turns \\ into \).
15093       sed -n \
15094         "s/'/'\\\\''/g;
15095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15096       ;; #(
15097     *)
15098       # `set' quotes correctly as required by POSIX, so do not add quotes.
15099       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15100       ;;
15101     esac |
15102     sort
15103 ) |
15104   sed '
15105      /^ac_cv_env_/b end
15106      t clear
15107      :clear
15108      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15109      t end
15110      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15111      :end' >>confcache
15112 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15113   if test -w "$cache_file"; then
15114     test "x$cache_file" != "x/dev/null" &&
15115       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15116 echo "$as_me: updating cache $cache_file" >&6;}
15117     cat confcache >$cache_file
15118   else
15119     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15120 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15121   fi
15122 fi
15123 rm -f confcache
15124
15125 CFLAGS=${CFLAGS:=}
15126 ac_ext=c
15127 ac_cpp='$CPP $CPPFLAGS'
15128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15131 if test -n "$ac_tool_prefix"; then
15132   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15133 set dummy ${ac_tool_prefix}gcc; ac_word=$2
15134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15136 if test "${ac_cv_prog_CC+set}" = set; then
15137   echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139   if test -n "$CC"; then
15140   ac_cv_prog_CC="$CC" # Let the user override the test.
15141 else
15142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15143 for as_dir in $PATH
15144 do
15145   IFS=$as_save_IFS
15146   test -z "$as_dir" && as_dir=.
15147   for ac_exec_ext in '' $ac_executable_extensions; do
15148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15149     ac_cv_prog_CC="${ac_tool_prefix}gcc"
15150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15151     break 2
15152   fi
15153 done
15154 done
15155 IFS=$as_save_IFS
15156
15157 fi
15158 fi
15159 CC=$ac_cv_prog_CC
15160 if test -n "$CC"; then
15161   { echo "$as_me:$LINENO: result: $CC" >&5
15162 echo "${ECHO_T}$CC" >&6; }
15163 else
15164   { echo "$as_me:$LINENO: result: no" >&5
15165 echo "${ECHO_T}no" >&6; }
15166 fi
15167
15168
15169 fi
15170 if test -z "$ac_cv_prog_CC"; then
15171   ac_ct_CC=$CC
15172   # Extract the first word of "gcc", so it can be a program name with args.
15173 set dummy gcc; ac_word=$2
15174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15177   echo $ECHO_N "(cached) $ECHO_C" >&6
15178 else
15179   if test -n "$ac_ct_CC"; then
15180   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15181 else
15182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15183 for as_dir in $PATH
15184 do
15185   IFS=$as_save_IFS
15186   test -z "$as_dir" && as_dir=.
15187   for ac_exec_ext in '' $ac_executable_extensions; do
15188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15189     ac_cv_prog_ac_ct_CC="gcc"
15190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15191     break 2
15192   fi
15193 done
15194 done
15195 IFS=$as_save_IFS
15196
15197 fi
15198 fi
15199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15200 if test -n "$ac_ct_CC"; then
15201   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15202 echo "${ECHO_T}$ac_ct_CC" >&6; }
15203 else
15204   { echo "$as_me:$LINENO: result: no" >&5
15205 echo "${ECHO_T}no" >&6; }
15206 fi
15207
15208   if test "x$ac_ct_CC" = x; then
15209     CC=""
15210   else
15211     case $cross_compiling:$ac_tool_warned in
15212 yes:)
15213 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15214 whose name does not start with the host triplet.  If you think this
15215 configuration is useful to you, please write to autoconf@gnu.org." >&5
15216 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15217 whose name does not start with the host triplet.  If you think this
15218 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15219 ac_tool_warned=yes ;;
15220 esac
15221     CC=$ac_ct_CC
15222   fi
15223 else
15224   CC="$ac_cv_prog_CC"
15225 fi
15226
15227 if test -z "$CC"; then
15228           if test -n "$ac_tool_prefix"; then
15229     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15230 set dummy ${ac_tool_prefix}cc; ac_word=$2
15231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15233 if test "${ac_cv_prog_CC+set}" = set; then
15234   echo $ECHO_N "(cached) $ECHO_C" >&6
15235 else
15236   if test -n "$CC"; then
15237   ac_cv_prog_CC="$CC" # Let the user override the test.
15238 else
15239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15240 for as_dir in $PATH
15241 do
15242   IFS=$as_save_IFS
15243   test -z "$as_dir" && as_dir=.
15244   for ac_exec_ext in '' $ac_executable_extensions; do
15245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15246     ac_cv_prog_CC="${ac_tool_prefix}cc"
15247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15248     break 2
15249   fi
15250 done
15251 done
15252 IFS=$as_save_IFS
15253
15254 fi
15255 fi
15256 CC=$ac_cv_prog_CC
15257 if test -n "$CC"; then
15258   { echo "$as_me:$LINENO: result: $CC" >&5
15259 echo "${ECHO_T}$CC" >&6; }
15260 else
15261   { echo "$as_me:$LINENO: result: no" >&5
15262 echo "${ECHO_T}no" >&6; }
15263 fi
15264
15265
15266   fi
15267 fi
15268 if test -z "$CC"; then
15269   # Extract the first word of "cc", so it can be a program name with args.
15270 set dummy cc; ac_word=$2
15271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15273 if test "${ac_cv_prog_CC+set}" = set; then
15274   echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276   if test -n "$CC"; then
15277   ac_cv_prog_CC="$CC" # Let the user override the test.
15278 else
15279   ac_prog_rejected=no
15280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15281 for as_dir in $PATH
15282 do
15283   IFS=$as_save_IFS
15284   test -z "$as_dir" && as_dir=.
15285   for ac_exec_ext in '' $ac_executable_extensions; do
15286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15287     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15288        ac_prog_rejected=yes
15289        continue
15290      fi
15291     ac_cv_prog_CC="cc"
15292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15293     break 2
15294   fi
15295 done
15296 done
15297 IFS=$as_save_IFS
15298
15299 if test $ac_prog_rejected = yes; then
15300   # We found a bogon in the path, so make sure we never use it.
15301   set dummy $ac_cv_prog_CC
15302   shift
15303   if test $# != 0; then
15304     # We chose a different compiler from the bogus one.
15305     # However, it has the same basename, so the bogon will be chosen
15306     # first if we set CC to just the basename; use the full file name.
15307     shift
15308     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15309   fi
15310 fi
15311 fi
15312 fi
15313 CC=$ac_cv_prog_CC
15314 if test -n "$CC"; then
15315   { echo "$as_me:$LINENO: result: $CC" >&5
15316 echo "${ECHO_T}$CC" >&6; }
15317 else
15318   { echo "$as_me:$LINENO: result: no" >&5
15319 echo "${ECHO_T}no" >&6; }
15320 fi
15321
15322
15323 fi
15324 if test -z "$CC"; then
15325   if test -n "$ac_tool_prefix"; then
15326   for ac_prog in cl.exe
15327   do
15328     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15332 if test "${ac_cv_prog_CC+set}" = set; then
15333   echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335   if test -n "$CC"; then
15336   ac_cv_prog_CC="$CC" # Let the user override the test.
15337 else
15338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15339 for as_dir in $PATH
15340 do
15341   IFS=$as_save_IFS
15342   test -z "$as_dir" && as_dir=.
15343   for ac_exec_ext in '' $ac_executable_extensions; do
15344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15345     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15347     break 2
15348   fi
15349 done
15350 done
15351 IFS=$as_save_IFS
15352
15353 fi
15354 fi
15355 CC=$ac_cv_prog_CC
15356 if test -n "$CC"; then
15357   { echo "$as_me:$LINENO: result: $CC" >&5
15358 echo "${ECHO_T}$CC" >&6; }
15359 else
15360   { echo "$as_me:$LINENO: result: no" >&5
15361 echo "${ECHO_T}no" >&6; }
15362 fi
15363
15364
15365     test -n "$CC" && break
15366   done
15367 fi
15368 if test -z "$CC"; then
15369   ac_ct_CC=$CC
15370   for ac_prog in cl.exe
15371 do
15372   # Extract the first word of "$ac_prog", so it can be a program name with args.
15373 set dummy $ac_prog; ac_word=$2
15374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15376 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15377   echo $ECHO_N "(cached) $ECHO_C" >&6
15378 else
15379   if test -n "$ac_ct_CC"; then
15380   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15381 else
15382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15383 for as_dir in $PATH
15384 do
15385   IFS=$as_save_IFS
15386   test -z "$as_dir" && as_dir=.
15387   for ac_exec_ext in '' $ac_executable_extensions; do
15388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15389     ac_cv_prog_ac_ct_CC="$ac_prog"
15390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15391     break 2
15392   fi
15393 done
15394 done
15395 IFS=$as_save_IFS
15396
15397 fi
15398 fi
15399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15400 if test -n "$ac_ct_CC"; then
15401   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15402 echo "${ECHO_T}$ac_ct_CC" >&6; }
15403 else
15404   { echo "$as_me:$LINENO: result: no" >&5
15405 echo "${ECHO_T}no" >&6; }
15406 fi
15407
15408
15409   test -n "$ac_ct_CC" && break
15410 done
15411
15412   if test "x$ac_ct_CC" = x; then
15413     CC=""
15414   else
15415     case $cross_compiling:$ac_tool_warned in
15416 yes:)
15417 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15418 whose name does not start with the host triplet.  If you think this
15419 configuration is useful to you, please write to autoconf@gnu.org." >&5
15420 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15421 whose name does not start with the host triplet.  If you think this
15422 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15423 ac_tool_warned=yes ;;
15424 esac
15425     CC=$ac_ct_CC
15426   fi
15427 fi
15428
15429 fi
15430
15431
15432 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15433 See \`config.log' for more details." >&5
15434 echo "$as_me: error: no acceptable C compiler found in \$PATH
15435 See \`config.log' for more details." >&2;}
15436    { (exit 1); exit 1; }; }
15437
15438 # Provide some information about the compiler.
15439 echo "$as_me:$LINENO: checking for C compiler version" >&5
15440 ac_compiler=`set X $ac_compile; echo $2`
15441 { (ac_try="$ac_compiler --version >&5"
15442 case "(($ac_try" in
15443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444   *) ac_try_echo=$ac_try;;
15445 esac
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447   (eval "$ac_compiler --version >&5") 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }
15451 { (ac_try="$ac_compiler -v >&5"
15452 case "(($ac_try" in
15453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454   *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457   (eval "$ac_compiler -v >&5") 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); }
15461 { (ac_try="$ac_compiler -V >&5"
15462 case "(($ac_try" in
15463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464   *) ac_try_echo=$ac_try;;
15465 esac
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467   (eval "$ac_compiler -V >&5") 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }
15471
15472 cat >conftest.$ac_ext <<_ACEOF
15473 /* confdefs.h.  */
15474 _ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h.  */
15478
15479 int
15480 main ()
15481 {
15482
15483   ;
15484   return 0;
15485 }
15486 _ACEOF
15487 ac_clean_files_save=$ac_clean_files
15488 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15489 # Try to create an executable without -o first, disregard a.out.
15490 # It will help us diagnose broken compilers, and finding out an intuition
15491 # of exeext.
15492 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15493 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
15494 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15495 #
15496 # List of possible output files, starting from the most likely.
15497 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
15498 # only as a last resort.  b.out is created by i960 compilers.
15499 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
15500 #
15501 # The IRIX 6 linker writes into existing files which may not be
15502 # executable, retaining their permissions.  Remove them first so a
15503 # subsequent execution test works.
15504 ac_rmfiles=
15505 for ac_file in $ac_files
15506 do
15507   case $ac_file in
15508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15509     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15510   esac
15511 done
15512 rm -f $ac_rmfiles
15513
15514 if { (ac_try="$ac_link_default"
15515 case "(($ac_try" in
15516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517   *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520   (eval "$ac_link_default") 2>&5
15521   ac_status=$?
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); }; then
15524   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
15525 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
15526 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
15527 # so that the user can short-circuit this test for compilers unknown to
15528 # Autoconf.
15529 for ac_file in $ac_files ''
15530 do
15531   test -f "$ac_file" || continue
15532   case $ac_file in
15533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
15534         ;;
15535     [ab].out )
15536         # We found the default executable, but exeext='' is most
15537         # certainly right.
15538         break;;
15539     *.* )
15540         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
15541         then :; else
15542            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15543         fi
15544         # We set ac_cv_exeext here because the later test for it is not
15545         # safe: cross compilers may not add the suffix if given an `-o'
15546         # argument, so we may need to know it at that point already.
15547         # Even if this section looks crufty: it has the advantage of
15548         # actually working.
15549         break;;
15550     * )
15551         break;;
15552   esac
15553 done
15554 test "$ac_cv_exeext" = no && ac_cv_exeext=
15555
15556 else
15557   ac_file=''
15558 fi
15559
15560 { echo "$as_me:$LINENO: result: $ac_file" >&5
15561 echo "${ECHO_T}$ac_file" >&6; }
15562 if test -z "$ac_file"; then
15563   echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15565
15566 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
15567 See \`config.log' for more details." >&5
15568 echo "$as_me: error: C compiler cannot create executables
15569 See \`config.log' for more details." >&2;}
15570    { (exit 77); exit 77; }; }
15571 fi
15572
15573 ac_exeext=$ac_cv_exeext
15574
15575 # Check that the compiler produces executables we can run.  If not, either
15576 # the compiler is broken, or we cross compile.
15577 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
15578 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
15579 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15580 # If not cross compiling, check that we can run a simple program.
15581 if test "$cross_compiling" != yes; then
15582   if { ac_try='./$ac_file'
15583   { (case "(($ac_try" in
15584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585   *) ac_try_echo=$ac_try;;
15586 esac
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588   (eval "$ac_try") 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; }; then
15592     cross_compiling=no
15593   else
15594     if test "$cross_compiling" = maybe; then
15595         cross_compiling=yes
15596     else
15597         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
15598 If you meant to cross compile, use \`--host'.
15599 See \`config.log' for more details." >&5
15600 echo "$as_me: error: cannot run C compiled programs.
15601 If you meant to cross compile, use \`--host'.
15602 See \`config.log' for more details." >&2;}
15603    { (exit 1); exit 1; }; }
15604     fi
15605   fi
15606 fi
15607 { echo "$as_me:$LINENO: result: yes" >&5
15608 echo "${ECHO_T}yes" >&6; }
15609
15610 rm -f a.out a.exe conftest$ac_cv_exeext b.out
15611 ac_clean_files=$ac_clean_files_save
15612 # Check that the compiler produces executables we can run.  If not, either
15613 # the compiler is broken, or we cross compile.
15614 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
15615 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
15616 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
15617 echo "${ECHO_T}$cross_compiling" >&6; }
15618
15619 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
15620 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
15621 if { (ac_try="$ac_link"
15622 case "(($ac_try" in
15623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624   *) ac_try_echo=$ac_try;;
15625 esac
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627   (eval "$ac_link") 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); }; then
15631   # If both `conftest.exe' and `conftest' are `present' (well, observable)
15632 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15633 # work properly (i.e., refer to `conftest.exe'), while it won't with
15634 # `rm'.
15635 for ac_file in conftest.exe conftest conftest.*; do
15636   test -f "$ac_file" || continue
15637   case $ac_file in
15638     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15639     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15640           break;;
15641     * ) break;;
15642   esac
15643 done
15644 else
15645   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
15646 See \`config.log' for more details." >&5
15647 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
15648 See \`config.log' for more details." >&2;}
15649    { (exit 1); exit 1; }; }
15650 fi
15651
15652 rm -f conftest$ac_cv_exeext
15653 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
15654 echo "${ECHO_T}$ac_cv_exeext" >&6; }
15655
15656 rm -f conftest.$ac_ext
15657 EXEEXT=$ac_cv_exeext
15658 ac_exeext=$EXEEXT
15659 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
15660 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
15661 if test "${ac_cv_objext+set}" = set; then
15662   echo $ECHO_N "(cached) $ECHO_C" >&6
15663 else
15664   cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h.  */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h.  */
15670
15671 int
15672 main ()
15673 {
15674
15675   ;
15676   return 0;
15677 }
15678 _ACEOF
15679 rm -f conftest.o conftest.obj
15680 if { (ac_try="$ac_compile"
15681 case "(($ac_try" in
15682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683   *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686   (eval "$ac_compile") 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; then
15690   for ac_file in conftest.o conftest.obj conftest.*; do
15691   test -f "$ac_file" || continue;
15692   case $ac_file in
15693     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
15694     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15695        break;;
15696   esac
15697 done
15698 else
15699   echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
15703 See \`config.log' for more details." >&5
15704 echo "$as_me: error: cannot compute suffix of object files: cannot compile
15705 See \`config.log' for more details." >&2;}
15706    { (exit 1); exit 1; }; }
15707 fi
15708
15709 rm -f conftest.$ac_cv_objext conftest.$ac_ext
15710 fi
15711 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
15712 echo "${ECHO_T}$ac_cv_objext" >&6; }
15713 OBJEXT=$ac_cv_objext
15714 ac_objext=$OBJEXT
15715 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15716 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
15717 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15718   echo $ECHO_N "(cached) $ECHO_C" >&6
15719 else
15720   cat >conftest.$ac_ext <<_ACEOF
15721 /* confdefs.h.  */
15722 _ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h.  */
15726
15727 int
15728 main ()
15729 {
15730 #ifndef __GNUC__
15731        choke me
15732 #endif
15733
15734   ;
15735   return 0;
15736 }
15737 _ACEOF
15738 rm -f conftest.$ac_objext
15739 if { (ac_try="$ac_compile"
15740 case "(($ac_try" in
15741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742   *) ac_try_echo=$ac_try;;
15743 esac
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745   (eval "$ac_compile") 2>conftest.er1
15746   ac_status=$?
15747   grep -v '^ *+' conftest.er1 >conftest.err
15748   rm -f conftest.er1
15749   cat conftest.err >&5
15750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751   (exit $ac_status); } && {
15752          test -z "$ac_c_werror_flag" ||
15753          test ! -s conftest.err
15754        } && test -s conftest.$ac_objext; then
15755   ac_compiler_gnu=yes
15756 else
15757   echo "$as_me: failed program was:" >&5
15758 sed 's/^/| /' conftest.$ac_ext >&5
15759
15760         ac_compiler_gnu=no
15761 fi
15762
15763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15765
15766 fi
15767 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15768 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15769 GCC=`test $ac_compiler_gnu = yes && echo yes`
15770 ac_test_CFLAGS=${CFLAGS+set}
15771 ac_save_CFLAGS=$CFLAGS
15772 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15773 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15774 if test "${ac_cv_prog_cc_g+set}" = set; then
15775   echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777   ac_save_c_werror_flag=$ac_c_werror_flag
15778    ac_c_werror_flag=yes
15779    ac_cv_prog_cc_g=no
15780    CFLAGS="-g"
15781    cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h.  */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h.  */
15787
15788 int
15789 main ()
15790 {
15791
15792   ;
15793   return 0;
15794 }
15795 _ACEOF
15796 rm -f conftest.$ac_objext
15797 if { (ac_try="$ac_compile"
15798 case "(($ac_try" in
15799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800   *) ac_try_echo=$ac_try;;
15801 esac
15802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803   (eval "$ac_compile") 2>conftest.er1
15804   ac_status=$?
15805   grep -v '^ *+' conftest.er1 >conftest.err
15806   rm -f conftest.er1
15807   cat conftest.err >&5
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); } && {
15810          test -z "$ac_c_werror_flag" ||
15811          test ! -s conftest.err
15812        } && test -s conftest.$ac_objext; then
15813   ac_cv_prog_cc_g=yes
15814 else
15815   echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15817
15818         CFLAGS=""
15819       cat >conftest.$ac_ext <<_ACEOF
15820 /* confdefs.h.  */
15821 _ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h.  */
15825
15826 int
15827 main ()
15828 {
15829
15830   ;
15831   return 0;
15832 }
15833 _ACEOF
15834 rm -f conftest.$ac_objext
15835 if { (ac_try="$ac_compile"
15836 case "(($ac_try" in
15837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838   *) ac_try_echo=$ac_try;;
15839 esac
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841   (eval "$ac_compile") 2>conftest.er1
15842   ac_status=$?
15843   grep -v '^ *+' conftest.er1 >conftest.err
15844   rm -f conftest.er1
15845   cat conftest.err >&5
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); } && {
15848          test -z "$ac_c_werror_flag" ||
15849          test ! -s conftest.err
15850        } && test -s conftest.$ac_objext; then
15851   :
15852 else
15853   echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15855
15856         ac_c_werror_flag=$ac_save_c_werror_flag
15857          CFLAGS="-g"
15858          cat >conftest.$ac_ext <<_ACEOF
15859 /* confdefs.h.  */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h.  */
15864
15865 int
15866 main ()
15867 {
15868
15869   ;
15870   return 0;
15871 }
15872 _ACEOF
15873 rm -f conftest.$ac_objext
15874 if { (ac_try="$ac_compile"
15875 case "(($ac_try" in
15876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877   *) ac_try_echo=$ac_try;;
15878 esac
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880   (eval "$ac_compile") 2>conftest.er1
15881   ac_status=$?
15882   grep -v '^ *+' conftest.er1 >conftest.err
15883   rm -f conftest.er1
15884   cat conftest.err >&5
15885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); } && {
15887          test -z "$ac_c_werror_flag" ||
15888          test ! -s conftest.err
15889        } && test -s conftest.$ac_objext; then
15890   ac_cv_prog_cc_g=yes
15891 else
15892   echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15894
15895
15896 fi
15897
15898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899 fi
15900
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 fi
15903
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905    ac_c_werror_flag=$ac_save_c_werror_flag
15906 fi
15907 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15908 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15909 if test "$ac_test_CFLAGS" = set; then
15910   CFLAGS=$ac_save_CFLAGS
15911 elif test $ac_cv_prog_cc_g = yes; then
15912   if test "$GCC" = yes; then
15913     CFLAGS="-g -O2"
15914   else
15915     CFLAGS="-g"
15916   fi
15917 else
15918   if test "$GCC" = yes; then
15919     CFLAGS="-O2"
15920   else
15921     CFLAGS=
15922   fi
15923 fi
15924 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15925 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15926 if test "${ac_cv_prog_cc_c89+set}" = set; then
15927   echo $ECHO_N "(cached) $ECHO_C" >&6
15928 else
15929   ac_cv_prog_cc_c89=no
15930 ac_save_CC=$CC
15931 cat >conftest.$ac_ext <<_ACEOF
15932 /* confdefs.h.  */
15933 _ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h.  */
15937 #include <stdarg.h>
15938 #include <stdio.h>
15939 #include <sys/types.h>
15940 #include <sys/stat.h>
15941 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15942 struct buf { int x; };
15943 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15944 static char *e (p, i)
15945      char **p;
15946      int i;
15947 {
15948   return p[i];
15949 }
15950 static char *f (char * (*g) (char **, int), char **p, ...)
15951 {
15952   char *s;
15953   va_list v;
15954   va_start (v,p);
15955   s = g (p, va_arg (v,int));
15956   va_end (v);
15957   return s;
15958 }
15959
15960 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15961    function prototypes and stuff, but not '\xHH' hex character constants.
15962    These don't provoke an error unfortunately, instead are silently treated
15963    as 'x'.  The following induces an error, until -std is added to get
15964    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15965    array size at least.  It's necessary to write '\x00'==0 to get something
15966    that's true only with -std.  */
15967 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15968
15969 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15970    inside strings and character constants.  */
15971 #define FOO(x) 'x'
15972 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15973
15974 int test (int i, double x);
15975 struct s1 {int (*f) (int a);};
15976 struct s2 {int (*f) (double a);};
15977 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15978 int argc;
15979 char **argv;
15980 int
15981 main ()
15982 {
15983 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15984   ;
15985   return 0;
15986 }
15987 _ACEOF
15988 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15989         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15990 do
15991   CC="$ac_save_CC $ac_arg"
15992   rm -f conftest.$ac_objext
15993 if { (ac_try="$ac_compile"
15994 case "(($ac_try" in
15995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996   *) ac_try_echo=$ac_try;;
15997 esac
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999   (eval "$ac_compile") 2>conftest.er1
16000   ac_status=$?
16001   grep -v '^ *+' conftest.er1 >conftest.err
16002   rm -f conftest.er1
16003   cat conftest.err >&5
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); } && {
16006          test -z "$ac_c_werror_flag" ||
16007          test ! -s conftest.err
16008        } && test -s conftest.$ac_objext; then
16009   ac_cv_prog_cc_c89=$ac_arg
16010 else
16011   echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014
16015 fi
16016
16017 rm -f core conftest.err conftest.$ac_objext
16018   test "x$ac_cv_prog_cc_c89" != "xno" && break
16019 done
16020 rm -f conftest.$ac_ext
16021 CC=$ac_save_CC
16022
16023 fi
16024 # AC_CACHE_VAL
16025 case "x$ac_cv_prog_cc_c89" in
16026   x)
16027     { echo "$as_me:$LINENO: result: none needed" >&5
16028 echo "${ECHO_T}none needed" >&6; } ;;
16029   xno)
16030     { echo "$as_me:$LINENO: result: unsupported" >&5
16031 echo "${ECHO_T}unsupported" >&6; } ;;
16032   *)
16033     CC="$CC $ac_cv_prog_cc_c89"
16034     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
16035 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
16036 esac
16037
16038
16039 ac_ext=c
16040 ac_cpp='$CPP $CPPFLAGS'
16041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16044
16045
16046
16047
16048
16049
16050
16051
16052     ac_ext=c
16053 ac_cpp='$CPP $CPPFLAGS'
16054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16057
16058     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
16059 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
16060 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
16061   echo $ECHO_N "(cached) $ECHO_C" >&6
16062 else
16063   cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h.  */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h.  */
16069
16070 int
16071 main ()
16072 {
16073
16074              #ifndef __INTEL_COMPILER
16075                 choke me
16076              #endif
16077
16078   ;
16079   return 0;
16080 }
16081 _ACEOF
16082 rm -f conftest.$ac_objext
16083 if { (ac_try="$ac_compile"
16084 case "(($ac_try" in
16085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086   *) ac_try_echo=$ac_try;;
16087 esac
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089   (eval "$ac_compile") 2>conftest.er1
16090   ac_status=$?
16091   grep -v '^ *+' conftest.er1 >conftest.err
16092   rm -f conftest.er1
16093   cat conftest.err >&5
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); } && {
16096          test -z "$ac_c_werror_flag" ||
16097          test ! -s conftest.err
16098        } && test -s conftest.$ac_objext; then
16099   bakefile_cv_c_compiler___INTEL_COMPILER=yes
16100 else
16101   echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104         bakefile_cv_c_compiler___INTEL_COMPILER=no
16105
16106 fi
16107
16108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16109
16110
16111 fi
16112 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
16113 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
16114     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
16115         :; INTELCC=yes
16116     else
16117         :;
16118     fi
16119     ac_ext=c
16120 ac_cpp='$CPP $CPPFLAGS'
16121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16124
16125
16126
16127
16128         if test "$INTELCC" = "yes"; then
16129
16130
16131     ac_ext=c
16132 ac_cpp='$CPP $CPPFLAGS'
16133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16136
16137     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
16138 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
16139 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16140   echo $ECHO_N "(cached) $ECHO_C" >&6
16141 else
16142   cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148
16149 int
16150 main ()
16151 {
16152
16153              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
16154                 choke me
16155              #endif
16156
16157   ;
16158   return 0;
16159 }
16160 _ACEOF
16161 rm -f conftest.$ac_objext
16162 if { (ac_try="$ac_compile"
16163 case "(($ac_try" in
16164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165   *) ac_try_echo=$ac_try;;
16166 esac
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168   (eval "$ac_compile") 2>conftest.er1
16169   ac_status=$?
16170   grep -v '^ *+' conftest.er1 >conftest.err
16171   rm -f conftest.er1
16172   cat conftest.err >&5
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); } && {
16175          test -z "$ac_c_werror_flag" ||
16176          test ! -s conftest.err
16177        } && test -s conftest.$ac_objext; then
16178   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
16179 else
16180   echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16182
16183         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
16184
16185 fi
16186
16187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188
16189
16190 fi
16191 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
16192 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
16193     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
16194         :; INTELCC8=yes
16195     else
16196         :;
16197     fi
16198     ac_ext=c
16199 ac_cpp='$CPP $CPPFLAGS'
16200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16203
16204
16205
16206
16207
16208     ac_ext=c
16209 ac_cpp='$CPP $CPPFLAGS'
16210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16213
16214     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
16215 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
16216 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
16217   echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219   cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h.  */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h.  */
16225
16226 int
16227 main ()
16228 {
16229
16230              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
16231                 choke me
16232              #endif
16233
16234   ;
16235   return 0;
16236 }
16237 _ACEOF
16238 rm -f conftest.$ac_objext
16239 if { (ac_try="$ac_compile"
16240 case "(($ac_try" in
16241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242   *) ac_try_echo=$ac_try;;
16243 esac
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245   (eval "$ac_compile") 2>conftest.er1
16246   ac_status=$?
16247   grep -v '^ *+' conftest.er1 >conftest.err
16248   rm -f conftest.er1
16249   cat conftest.err >&5
16250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251   (exit $ac_status); } && {
16252          test -z "$ac_c_werror_flag" ||
16253          test ! -s conftest.err
16254        } && test -s conftest.$ac_objext; then
16255   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
16256 else
16257   echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16259
16260         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
16261
16262 fi
16263
16264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16265
16266
16267 fi
16268 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
16269 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
16270     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
16271         :; INTELCC10=yes
16272     else
16273         :;
16274     fi
16275     ac_ext=c
16276 ac_cpp='$CPP $CPPFLAGS'
16277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16280
16281
16282
16283     fi
16284
16285         if test "x$GCC" != "xyes"; then
16286         if test "xCC" = "xC"; then
16287             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16288 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16289 if test "${bakefile_cv_c_exto+set}" = set; then
16290   echo $ECHO_N "(cached) $ECHO_C" >&6
16291 else
16292   cat >conftest.$ac_ext <<_ACEOF
16293 /* confdefs.h.  */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h.  */
16298
16299 int
16300 main ()
16301 {
16302
16303   ;
16304   return 0;
16305 }
16306 _ACEOF
16307 rm -f conftest.$ac_objext conftest.$ac_ext.o
16308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16309   (eval $ac_compile) 2>&5
16310   ac_status=$?
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); }; then
16313   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16314     case $ac_file in
16315         conftest.$ac_ext.o)
16316             bakefile_cv_c_exto="-ext o"
16317             ;;
16318         *)
16319             ;;
16320     esac
16321 done
16322 else
16323   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16324 See \`config.log' for more details." >&5
16325 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16326 See \`config.log' for more details." >&2;}
16327    { (exit 1); exit 1; }; }
16328
16329 fi
16330
16331 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16332
16333 fi
16334 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16335 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16336 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16337     if test "c" = "c"; then
16338         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16339     fi
16340     if test "c" = "cxx"; then
16341         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16342     fi
16343 fi
16344
16345             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16346                 unset ac_cv_prog_cc_g
16347                 ac_test_CFLAGS=${CFLAGS+set}
16348 ac_save_CFLAGS=$CFLAGS
16349 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16350 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16351 if test "${ac_cv_prog_cc_g+set}" = set; then
16352   echo $ECHO_N "(cached) $ECHO_C" >&6
16353 else
16354   ac_save_c_werror_flag=$ac_c_werror_flag
16355    ac_c_werror_flag=yes
16356    ac_cv_prog_cc_g=no
16357    CFLAGS="-g"
16358    cat >conftest.$ac_ext <<_ACEOF
16359 /* confdefs.h.  */
16360 _ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h.  */
16364
16365 int
16366 main ()
16367 {
16368
16369   ;
16370   return 0;
16371 }
16372 _ACEOF
16373 rm -f conftest.$ac_objext
16374 if { (ac_try="$ac_compile"
16375 case "(($ac_try" in
16376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377   *) ac_try_echo=$ac_try;;
16378 esac
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380   (eval "$ac_compile") 2>conftest.er1
16381   ac_status=$?
16382   grep -v '^ *+' conftest.er1 >conftest.err
16383   rm -f conftest.er1
16384   cat conftest.err >&5
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); } && {
16387          test -z "$ac_c_werror_flag" ||
16388          test ! -s conftest.err
16389        } && test -s conftest.$ac_objext; then
16390   ac_cv_prog_cc_g=yes
16391 else
16392   echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16394
16395         CFLAGS=""
16396       cat >conftest.$ac_ext <<_ACEOF
16397 /* confdefs.h.  */
16398 _ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h.  */
16402
16403 int
16404 main ()
16405 {
16406
16407   ;
16408   return 0;
16409 }
16410 _ACEOF
16411 rm -f conftest.$ac_objext
16412 if { (ac_try="$ac_compile"
16413 case "(($ac_try" in
16414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415   *) ac_try_echo=$ac_try;;
16416 esac
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418   (eval "$ac_compile") 2>conftest.er1
16419   ac_status=$?
16420   grep -v '^ *+' conftest.er1 >conftest.err
16421   rm -f conftest.er1
16422   cat conftest.err >&5
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); } && {
16425          test -z "$ac_c_werror_flag" ||
16426          test ! -s conftest.err
16427        } && test -s conftest.$ac_objext; then
16428   :
16429 else
16430   echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16432
16433         ac_c_werror_flag=$ac_save_c_werror_flag
16434          CFLAGS="-g"
16435          cat >conftest.$ac_ext <<_ACEOF
16436 /* confdefs.h.  */
16437 _ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h.  */
16441
16442 int
16443 main ()
16444 {
16445
16446   ;
16447   return 0;
16448 }
16449 _ACEOF
16450 rm -f conftest.$ac_objext
16451 if { (ac_try="$ac_compile"
16452 case "(($ac_try" in
16453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454   *) ac_try_echo=$ac_try;;
16455 esac
16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457   (eval "$ac_compile") 2>conftest.er1
16458   ac_status=$?
16459   grep -v '^ *+' conftest.er1 >conftest.err
16460   rm -f conftest.er1
16461   cat conftest.err >&5
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); } && {
16464          test -z "$ac_c_werror_flag" ||
16465          test ! -s conftest.err
16466        } && test -s conftest.$ac_objext; then
16467   ac_cv_prog_cc_g=yes
16468 else
16469   echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16471
16472
16473 fi
16474
16475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476 fi
16477
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16479 fi
16480
16481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16482    ac_c_werror_flag=$ac_save_c_werror_flag
16483 fi
16484 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16486 if test "$ac_test_CFLAGS" = set; then
16487   CFLAGS=$ac_save_CFLAGS
16488 elif test $ac_cv_prog_cc_g = yes; then
16489   if test "$GCC" = yes; then
16490     CFLAGS="-g -O2"
16491   else
16492     CFLAGS="-g"
16493   fi
16494 else
16495   if test "$GCC" = yes; then
16496     CFLAGS="-O2"
16497   else
16498     CFLAGS=
16499   fi
16500 fi
16501             fi
16502         fi
16503
16504                         case `uname -s` in
16505             AIX*)
16506
16507
16508     ac_ext=c
16509 ac_cpp='$CPP $CPPFLAGS'
16510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16513
16514     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16515 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16516 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16517   echo $ECHO_N "(cached) $ECHO_C" >&6
16518 else
16519   cat >conftest.$ac_ext <<_ACEOF
16520 /* confdefs.h.  */
16521 _ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h.  */
16525
16526 int
16527 main ()
16528 {
16529
16530              #ifndef __xlC__
16531                 choke me
16532              #endif
16533
16534   ;
16535   return 0;
16536 }
16537 _ACEOF
16538 rm -f conftest.$ac_objext
16539 if { (ac_try="$ac_compile"
16540 case "(($ac_try" in
16541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542   *) ac_try_echo=$ac_try;;
16543 esac
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545   (eval "$ac_compile") 2>conftest.er1
16546   ac_status=$?
16547   grep -v '^ *+' conftest.er1 >conftest.err
16548   rm -f conftest.er1
16549   cat conftest.err >&5
16550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551   (exit $ac_status); } && {
16552          test -z "$ac_c_werror_flag" ||
16553          test ! -s conftest.err
16554        } && test -s conftest.$ac_objext; then
16555   bakefile_cv_c_compiler___xlC__=yes
16556 else
16557   echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560         bakefile_cv_c_compiler___xlC__=no
16561
16562 fi
16563
16564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565
16566
16567 fi
16568 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16569 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16570     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16571         :; XLCC=yes
16572     else
16573         :;
16574     fi
16575     ac_ext=c
16576 ac_cpp='$CPP $CPPFLAGS'
16577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16580
16581
16582
16583                 ;;
16584
16585             Darwin)
16586
16587
16588     ac_ext=c
16589 ac_cpp='$CPP $CPPFLAGS'
16590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16593
16594     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
16595 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
16596 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
16597   echo $ECHO_N "(cached) $ECHO_C" >&6
16598 else
16599   cat >conftest.$ac_ext <<_ACEOF
16600 /* confdefs.h.  */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h.  */
16605
16606 int
16607 main ()
16608 {
16609
16610              #ifndef __MWERKS__
16611                 choke me
16612              #endif
16613
16614   ;
16615   return 0;
16616 }
16617 _ACEOF
16618 rm -f conftest.$ac_objext
16619 if { (ac_try="$ac_compile"
16620 case "(($ac_try" in
16621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622   *) ac_try_echo=$ac_try;;
16623 esac
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625   (eval "$ac_compile") 2>conftest.er1
16626   ac_status=$?
16627   grep -v '^ *+' conftest.er1 >conftest.err
16628   rm -f conftest.er1
16629   cat conftest.err >&5
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); } && {
16632          test -z "$ac_c_werror_flag" ||
16633          test ! -s conftest.err
16634        } && test -s conftest.$ac_objext; then
16635   bakefile_cv_c_compiler___MWERKS__=yes
16636 else
16637   echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16639
16640         bakefile_cv_c_compiler___MWERKS__=no
16641
16642 fi
16643
16644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16645
16646
16647 fi
16648 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16649 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
16650     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16651         :; MWCC=yes
16652     else
16653         :;
16654     fi
16655     ac_ext=c
16656 ac_cpp='$CPP $CPPFLAGS'
16657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16660
16661
16662
16663                 if test "$MWCC" != "yes"; then
16664
16665
16666     ac_ext=c
16667 ac_cpp='$CPP $CPPFLAGS'
16668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16671
16672     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16673 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16674 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16675   echo $ECHO_N "(cached) $ECHO_C" >&6
16676 else
16677   cat >conftest.$ac_ext <<_ACEOF
16678 /* confdefs.h.  */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h.  */
16683
16684 int
16685 main ()
16686 {
16687
16688              #ifndef __xlC__
16689                 choke me
16690              #endif
16691
16692   ;
16693   return 0;
16694 }
16695 _ACEOF
16696 rm -f conftest.$ac_objext
16697 if { (ac_try="$ac_compile"
16698 case "(($ac_try" in
16699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700   *) ac_try_echo=$ac_try;;
16701 esac
16702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703   (eval "$ac_compile") 2>conftest.er1
16704   ac_status=$?
16705   grep -v '^ *+' conftest.er1 >conftest.err
16706   rm -f conftest.er1
16707   cat conftest.err >&5
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); } && {
16710          test -z "$ac_c_werror_flag" ||
16711          test ! -s conftest.err
16712        } && test -s conftest.$ac_objext; then
16713   bakefile_cv_c_compiler___xlC__=yes
16714 else
16715   echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16717
16718         bakefile_cv_c_compiler___xlC__=no
16719
16720 fi
16721
16722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723
16724
16725 fi
16726 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16727 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16728     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16729         :; XLCC=yes
16730     else
16731         :;
16732     fi
16733     ac_ext=c
16734 ac_cpp='$CPP $CPPFLAGS'
16735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16738
16739
16740
16741                 fi
16742                 ;;
16743
16744             IRIX*)
16745
16746
16747     ac_ext=c
16748 ac_cpp='$CPP $CPPFLAGS'
16749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16752
16753     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16754 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
16755 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16756   echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758   cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h.  */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h.  */
16764
16765 int
16766 main ()
16767 {
16768
16769              #ifndef _SGI_COMPILER_VERSION
16770                 choke me
16771              #endif
16772
16773   ;
16774   return 0;
16775 }
16776 _ACEOF
16777 rm -f conftest.$ac_objext
16778 if { (ac_try="$ac_compile"
16779 case "(($ac_try" in
16780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781   *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784   (eval "$ac_compile") 2>conftest.er1
16785   ac_status=$?
16786   grep -v '^ *+' conftest.er1 >conftest.err
16787   rm -f conftest.er1
16788   cat conftest.err >&5
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); } && {
16791          test -z "$ac_c_werror_flag" ||
16792          test ! -s conftest.err
16793        } && test -s conftest.$ac_objext; then
16794   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16795 else
16796   echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16798
16799         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16800
16801 fi
16802
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804
16805
16806 fi
16807 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16808 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16809     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16810         :; SGICC=yes
16811     else
16812         :;
16813     fi
16814     ac_ext=c
16815 ac_cpp='$CPP $CPPFLAGS'
16816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16819
16820
16821
16822                 ;;
16823
16824             Linux*)
16825                                                 if test "$INTELCC" != "yes"; then
16826
16827
16828     ac_ext=c
16829 ac_cpp='$CPP $CPPFLAGS'
16830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16833
16834     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16835 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16836 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16837   echo $ECHO_N "(cached) $ECHO_C" >&6
16838 else
16839   cat >conftest.$ac_ext <<_ACEOF
16840 /* confdefs.h.  */
16841 _ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h.  */
16845
16846 int
16847 main ()
16848 {
16849
16850              #ifndef __SUNPRO_C
16851                 choke me
16852              #endif
16853
16854   ;
16855   return 0;
16856 }
16857 _ACEOF
16858 rm -f conftest.$ac_objext
16859 if { (ac_try="$ac_compile"
16860 case "(($ac_try" in
16861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862   *) ac_try_echo=$ac_try;;
16863 esac
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865   (eval "$ac_compile") 2>conftest.er1
16866   ac_status=$?
16867   grep -v '^ *+' conftest.er1 >conftest.err
16868   rm -f conftest.er1
16869   cat conftest.err >&5
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); } && {
16872          test -z "$ac_c_werror_flag" ||
16873          test ! -s conftest.err
16874        } && test -s conftest.$ac_objext; then
16875   bakefile_cv_c_compiler___SUNPRO_C=yes
16876 else
16877   echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16879
16880         bakefile_cv_c_compiler___SUNPRO_C=no
16881
16882 fi
16883
16884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885
16886
16887 fi
16888 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16889 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16890     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16891         :; SUNCC=yes
16892     else
16893         :;
16894     fi
16895     ac_ext=c
16896 ac_cpp='$CPP $CPPFLAGS'
16897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16900
16901
16902
16903                 fi
16904                 ;;
16905
16906             HP-UX*)
16907
16908
16909     ac_ext=c
16910 ac_cpp='$CPP $CPPFLAGS'
16911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16914
16915     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16916 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16917 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16918   echo $ECHO_N "(cached) $ECHO_C" >&6
16919 else
16920   cat >conftest.$ac_ext <<_ACEOF
16921 /* confdefs.h.  */
16922 _ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h.  */
16926
16927 int
16928 main ()
16929 {
16930
16931              #ifndef __HP_cc
16932                 choke me
16933              #endif
16934
16935   ;
16936   return 0;
16937 }
16938 _ACEOF
16939 rm -f conftest.$ac_objext
16940 if { (ac_try="$ac_compile"
16941 case "(($ac_try" in
16942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943   *) ac_try_echo=$ac_try;;
16944 esac
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946   (eval "$ac_compile") 2>conftest.er1
16947   ac_status=$?
16948   grep -v '^ *+' conftest.er1 >conftest.err
16949   rm -f conftest.er1
16950   cat conftest.err >&5
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); } && {
16953          test -z "$ac_c_werror_flag" ||
16954          test ! -s conftest.err
16955        } && test -s conftest.$ac_objext; then
16956   bakefile_cv_c_compiler___HP_cc=yes
16957 else
16958   echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961         bakefile_cv_c_compiler___HP_cc=no
16962
16963 fi
16964
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966
16967
16968 fi
16969 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16970 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
16971     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16972         :; HPCC=yes
16973     else
16974         :;
16975     fi
16976     ac_ext=c
16977 ac_cpp='$CPP $CPPFLAGS'
16978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16981
16982
16983
16984                 ;;
16985
16986             OSF1)
16987
16988
16989     ac_ext=c
16990 ac_cpp='$CPP $CPPFLAGS'
16991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16994
16995     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16996 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
16997 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16998   echo $ECHO_N "(cached) $ECHO_C" >&6
16999 else
17000   cat >conftest.$ac_ext <<_ACEOF
17001 /* confdefs.h.  */
17002 _ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h.  */
17006
17007 int
17008 main ()
17009 {
17010
17011              #ifndef __DECC
17012                 choke me
17013              #endif
17014
17015   ;
17016   return 0;
17017 }
17018 _ACEOF
17019 rm -f conftest.$ac_objext
17020 if { (ac_try="$ac_compile"
17021 case "(($ac_try" in
17022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023   *) ac_try_echo=$ac_try;;
17024 esac
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026   (eval "$ac_compile") 2>conftest.er1
17027   ac_status=$?
17028   grep -v '^ *+' conftest.er1 >conftest.err
17029   rm -f conftest.er1
17030   cat conftest.err >&5
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); } && {
17033          test -z "$ac_c_werror_flag" ||
17034          test ! -s conftest.err
17035        } && test -s conftest.$ac_objext; then
17036   bakefile_cv_c_compiler___DECC=yes
17037 else
17038   echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17040
17041         bakefile_cv_c_compiler___DECC=no
17042
17043 fi
17044
17045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046
17047
17048 fi
17049 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
17050 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
17051     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
17052         :; COMPAQCC=yes
17053     else
17054         :;
17055     fi
17056     ac_ext=c
17057 ac_cpp='$CPP $CPPFLAGS'
17058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17061
17062
17063
17064                 ;;
17065
17066             SunOS)
17067
17068
17069     ac_ext=c
17070 ac_cpp='$CPP $CPPFLAGS'
17071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17074
17075     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17076 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17077 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17078   echo $ECHO_N "(cached) $ECHO_C" >&6
17079 else
17080   cat >conftest.$ac_ext <<_ACEOF
17081 /* confdefs.h.  */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h.  */
17086
17087 int
17088 main ()
17089 {
17090
17091              #ifndef __SUNPRO_C
17092                 choke me
17093              #endif
17094
17095   ;
17096   return 0;
17097 }
17098 _ACEOF
17099 rm -f conftest.$ac_objext
17100 if { (ac_try="$ac_compile"
17101 case "(($ac_try" in
17102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103   *) ac_try_echo=$ac_try;;
17104 esac
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106   (eval "$ac_compile") 2>conftest.er1
17107   ac_status=$?
17108   grep -v '^ *+' conftest.er1 >conftest.err
17109   rm -f conftest.er1
17110   cat conftest.err >&5
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); } && {
17113          test -z "$ac_c_werror_flag" ||
17114          test ! -s conftest.err
17115        } && test -s conftest.$ac_objext; then
17116   bakefile_cv_c_compiler___SUNPRO_C=yes
17117 else
17118   echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121         bakefile_cv_c_compiler___SUNPRO_C=no
17122
17123 fi
17124
17125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126
17127
17128 fi
17129 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17130 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17131     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17132         :; SUNCC=yes
17133     else
17134         :;
17135     fi
17136     ac_ext=c
17137 ac_cpp='$CPP $CPPFLAGS'
17138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17141
17142
17143
17144                 ;;
17145         esac
17146     fi
17147
17148
17149
17150 ac_ext=c
17151 ac_cpp='$CPP $CPPFLAGS'
17152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17155 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
17156 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
17157 # On Suns, sometimes $CPP names a directory.
17158 if test -n "$CPP" && test -d "$CPP"; then
17159   CPP=
17160 fi
17161 if test -z "$CPP"; then
17162   if test "${ac_cv_prog_CPP+set}" = set; then
17163   echo $ECHO_N "(cached) $ECHO_C" >&6
17164 else
17165       # Double quotes because CPP needs to be expanded
17166     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17167     do
17168       ac_preproc_ok=false
17169 for ac_c_preproc_warn_flag in '' yes
17170 do
17171   # Use a header file that comes with gcc, so configuring glibc
17172   # with a fresh cross-compiler works.
17173   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17174   # <limits.h> exists even on freestanding compilers.
17175   # On the NeXT, cc -E runs the code through the compiler's parser,
17176   # not just through cpp. "Syntax error" is here to catch this case.
17177   cat >conftest.$ac_ext <<_ACEOF
17178 /* confdefs.h.  */
17179 _ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h.  */
17183 #ifdef __STDC__
17184 # include <limits.h>
17185 #else
17186 # include <assert.h>
17187 #endif
17188                      Syntax error
17189 _ACEOF
17190 if { (ac_try="$ac_cpp conftest.$ac_ext"
17191 case "(($ac_try" in
17192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193   *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17197   ac_status=$?
17198   grep -v '^ *+' conftest.er1 >conftest.err
17199   rm -f conftest.er1
17200   cat conftest.err >&5
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); } >/dev/null && {
17203          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17204          test ! -s conftest.err
17205        }; then
17206   :
17207 else
17208   echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17210
17211   # Broken: fails on valid input.
17212 continue
17213 fi
17214
17215 rm -f conftest.err conftest.$ac_ext
17216
17217   # OK, works on sane cases.  Now check whether nonexistent headers
17218   # can be detected and how.
17219   cat >conftest.$ac_ext <<_ACEOF
17220 /* confdefs.h.  */
17221 _ACEOF
17222 cat confdefs.h >>conftest.$ac_ext
17223 cat >>conftest.$ac_ext <<_ACEOF
17224 /* end confdefs.h.  */
17225 #include <ac_nonexistent.h>
17226 _ACEOF
17227 if { (ac_try="$ac_cpp conftest.$ac_ext"
17228 case "(($ac_try" in
17229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230   *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17234   ac_status=$?
17235   grep -v '^ *+' conftest.er1 >conftest.err
17236   rm -f conftest.er1
17237   cat conftest.err >&5
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); } >/dev/null && {
17240          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17241          test ! -s conftest.err
17242        }; then
17243   # Broken: success on invalid input.
17244 continue
17245 else
17246   echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249   # Passes both tests.
17250 ac_preproc_ok=:
17251 break
17252 fi
17253
17254 rm -f conftest.err conftest.$ac_ext
17255
17256 done
17257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17258 rm -f conftest.err conftest.$ac_ext
17259 if $ac_preproc_ok; then
17260   break
17261 fi
17262
17263     done
17264     ac_cv_prog_CPP=$CPP
17265
17266 fi
17267   CPP=$ac_cv_prog_CPP
17268 else
17269   ac_cv_prog_CPP=$CPP
17270 fi
17271 { echo "$as_me:$LINENO: result: $CPP" >&5
17272 echo "${ECHO_T}$CPP" >&6; }
17273 ac_preproc_ok=false
17274 for ac_c_preproc_warn_flag in '' yes
17275 do
17276   # Use a header file that comes with gcc, so configuring glibc
17277   # with a fresh cross-compiler works.
17278   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17279   # <limits.h> exists even on freestanding compilers.
17280   # On the NeXT, cc -E runs the code through the compiler's parser,
17281   # not just through cpp. "Syntax error" is here to catch this case.
17282   cat >conftest.$ac_ext <<_ACEOF
17283 /* confdefs.h.  */
17284 _ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h.  */
17288 #ifdef __STDC__
17289 # include <limits.h>
17290 #else
17291 # include <assert.h>
17292 #endif
17293                      Syntax error
17294 _ACEOF
17295 if { (ac_try="$ac_cpp conftest.$ac_ext"
17296 case "(($ac_try" in
17297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298   *) ac_try_echo=$ac_try;;
17299 esac
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17302   ac_status=$?
17303   grep -v '^ *+' conftest.er1 >conftest.err
17304   rm -f conftest.er1
17305   cat conftest.err >&5
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); } >/dev/null && {
17308          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17309          test ! -s conftest.err
17310        }; then
17311   :
17312 else
17313   echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17315
17316   # Broken: fails on valid input.
17317 continue
17318 fi
17319
17320 rm -f conftest.err conftest.$ac_ext
17321
17322   # OK, works on sane cases.  Now check whether nonexistent headers
17323   # can be detected and how.
17324   cat >conftest.$ac_ext <<_ACEOF
17325 /* confdefs.h.  */
17326 _ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h.  */
17330 #include <ac_nonexistent.h>
17331 _ACEOF
17332 if { (ac_try="$ac_cpp conftest.$ac_ext"
17333 case "(($ac_try" in
17334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335   *) ac_try_echo=$ac_try;;
17336 esac
17337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17339   ac_status=$?
17340   grep -v '^ *+' conftest.er1 >conftest.err
17341   rm -f conftest.er1
17342   cat conftest.err >&5
17343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); } >/dev/null && {
17345          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17346          test ! -s conftest.err
17347        }; then
17348   # Broken: success on invalid input.
17349 continue
17350 else
17351   echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17353
17354   # Passes both tests.
17355 ac_preproc_ok=:
17356 break
17357 fi
17358
17359 rm -f conftest.err conftest.$ac_ext
17360
17361 done
17362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17363 rm -f conftest.err conftest.$ac_ext
17364 if $ac_preproc_ok; then
17365   :
17366 else
17367   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17368 See \`config.log' for more details." >&5
17369 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17370 See \`config.log' for more details." >&2;}
17371    { (exit 1); exit 1; }; }
17372 fi
17373
17374 ac_ext=c
17375 ac_cpp='$CPP $CPPFLAGS'
17376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17379
17380
17381 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17382 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17383 if test "${ac_cv_path_GREP+set}" = set; then
17384   echo $ECHO_N "(cached) $ECHO_C" >&6
17385 else
17386   # Extract the first word of "grep ggrep" to use in msg output
17387 if test -z "$GREP"; then
17388 set dummy grep ggrep; ac_prog_name=$2
17389 if test "${ac_cv_path_GREP+set}" = set; then
17390   echo $ECHO_N "(cached) $ECHO_C" >&6
17391 else
17392   ac_path_GREP_found=false
17393 # Loop through the user's path and test for each of PROGNAME-LIST
17394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17396 do
17397   IFS=$as_save_IFS
17398   test -z "$as_dir" && as_dir=.
17399   for ac_prog in grep ggrep; do
17400   for ac_exec_ext in '' $ac_executable_extensions; do
17401     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17402     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17403     # Check for GNU ac_path_GREP and select it if it is found.
17404   # Check for GNU $ac_path_GREP
17405 case `"$ac_path_GREP" --version 2>&1` in
17406 *GNU*)
17407   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17408 *)
17409   ac_count=0
17410   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17411   while :
17412   do
17413     cat "conftest.in" "conftest.in" >"conftest.tmp"
17414     mv "conftest.tmp" "conftest.in"
17415     cp "conftest.in" "conftest.nl"
17416     echo 'GREP' >> "conftest.nl"
17417     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17418     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17419     ac_count=`expr $ac_count + 1`
17420     if test $ac_count -gt ${ac_path_GREP_max-0}; then
17421       # Best one so far, save it but keep looking for a better one
17422       ac_cv_path_GREP="$ac_path_GREP"
17423       ac_path_GREP_max=$ac_count
17424     fi
17425     # 10*(2^10) chars as input seems more than enough
17426     test $ac_count -gt 10 && break
17427   done
17428   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17429 esac
17430
17431
17432     $ac_path_GREP_found && break 3
17433   done
17434 done
17435
17436 done
17437 IFS=$as_save_IFS
17438
17439
17440 fi
17441
17442 GREP="$ac_cv_path_GREP"
17443 if test -z "$GREP"; then
17444   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17445 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17446    { (exit 1); exit 1; }; }
17447 fi
17448
17449 else
17450   ac_cv_path_GREP=$GREP
17451 fi
17452
17453
17454 fi
17455 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
17456 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
17457  GREP="$ac_cv_path_GREP"
17458
17459
17460 { echo "$as_me:$LINENO: checking for egrep" >&5
17461 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
17462 if test "${ac_cv_path_EGREP+set}" = set; then
17463   echo $ECHO_N "(cached) $ECHO_C" >&6
17464 else
17465   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17466    then ac_cv_path_EGREP="$GREP -E"
17467    else
17468      # Extract the first word of "egrep" to use in msg output
17469 if test -z "$EGREP"; then
17470 set dummy egrep; ac_prog_name=$2
17471 if test "${ac_cv_path_EGREP+set}" = set; then
17472   echo $ECHO_N "(cached) $ECHO_C" >&6
17473 else
17474   ac_path_EGREP_found=false
17475 # Loop through the user's path and test for each of PROGNAME-LIST
17476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17478 do
17479   IFS=$as_save_IFS
17480   test -z "$as_dir" && as_dir=.
17481   for ac_prog in egrep; do
17482   for ac_exec_ext in '' $ac_executable_extensions; do
17483     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
17484     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
17485     # Check for GNU ac_path_EGREP and select it if it is found.
17486   # Check for GNU $ac_path_EGREP
17487 case `"$ac_path_EGREP" --version 2>&1` in
17488 *GNU*)
17489   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17490 *)
17491   ac_count=0
17492   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17493   while :
17494   do
17495     cat "conftest.in" "conftest.in" >"conftest.tmp"
17496     mv "conftest.tmp" "conftest.in"
17497     cp "conftest.in" "conftest.nl"
17498     echo 'EGREP' >> "conftest.nl"
17499     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17500     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17501     ac_count=`expr $ac_count + 1`
17502     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17503       # Best one so far, save it but keep looking for a better one
17504       ac_cv_path_EGREP="$ac_path_EGREP"
17505       ac_path_EGREP_max=$ac_count
17506     fi
17507     # 10*(2^10) chars as input seems more than enough
17508     test $ac_count -gt 10 && break
17509   done
17510   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17511 esac
17512
17513
17514     $ac_path_EGREP_found && break 3
17515   done
17516 done
17517
17518 done
17519 IFS=$as_save_IFS
17520
17521
17522 fi
17523
17524 EGREP="$ac_cv_path_EGREP"
17525 if test -z "$EGREP"; then
17526   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17527 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17528    { (exit 1); exit 1; }; }
17529 fi
17530
17531 else
17532   ac_cv_path_EGREP=$EGREP
17533 fi
17534
17535
17536    fi
17537 fi
17538 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
17539 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
17540  EGREP="$ac_cv_path_EGREP"
17541
17542
17543 if test $ac_cv_c_compiler_gnu = yes; then
17544     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
17545 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
17546 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
17547   echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549     ac_pattern="Autoconf.*'x'"
17550   cat >conftest.$ac_ext <<_ACEOF
17551 /* confdefs.h.  */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h.  */
17556 #include <sgtty.h>
17557 Autoconf TIOCGETP
17558 _ACEOF
17559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17560   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17561   ac_cv_prog_gcc_traditional=yes
17562 else
17563   ac_cv_prog_gcc_traditional=no
17564 fi
17565 rm -f conftest*
17566
17567
17568   if test $ac_cv_prog_gcc_traditional = no; then
17569     cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h.  */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h.  */
17575 #include <termio.h>
17576 Autoconf TCGETA
17577 _ACEOF
17578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17579   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17580   ac_cv_prog_gcc_traditional=yes
17581 fi
17582 rm -f conftest*
17583
17584   fi
17585 fi
17586 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
17587 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
17588   if test $ac_cv_prog_gcc_traditional = yes; then
17589     CC="$CC -traditional"
17590   fi
17591 fi
17592
17593
17594 CXXFLAGS=${CXXFLAGS:=}
17595 ac_ext=cpp
17596 ac_cpp='$CXXCPP $CPPFLAGS'
17597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17600 if test -z "$CXX"; then
17601   if test -n "$CCC"; then
17602     CXX=$CCC
17603   else
17604     if test -n "$ac_tool_prefix"; then
17605   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17606   do
17607     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17611 if test "${ac_cv_prog_CXX+set}" = set; then
17612   echo $ECHO_N "(cached) $ECHO_C" >&6
17613 else
17614   if test -n "$CXX"; then
17615   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17616 else
17617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17618 for as_dir in $PATH
17619 do
17620   IFS=$as_save_IFS
17621   test -z "$as_dir" && as_dir=.
17622   for ac_exec_ext in '' $ac_executable_extensions; do
17623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17624     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17626     break 2
17627   fi
17628 done
17629 done
17630 IFS=$as_save_IFS
17631
17632 fi
17633 fi
17634 CXX=$ac_cv_prog_CXX
17635 if test -n "$CXX"; then
17636   { echo "$as_me:$LINENO: result: $CXX" >&5
17637 echo "${ECHO_T}$CXX" >&6; }
17638 else
17639   { echo "$as_me:$LINENO: result: no" >&5
17640 echo "${ECHO_T}no" >&6; }
17641 fi
17642
17643
17644     test -n "$CXX" && break
17645   done
17646 fi
17647 if test -z "$CXX"; then
17648   ac_ct_CXX=$CXX
17649   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17650 do
17651   # Extract the first word of "$ac_prog", so it can be a program name with args.
17652 set dummy $ac_prog; ac_word=$2
17653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17655 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17656   echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658   if test -n "$ac_ct_CXX"; then
17659   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17660 else
17661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17662 for as_dir in $PATH
17663 do
17664   IFS=$as_save_IFS
17665   test -z "$as_dir" && as_dir=.
17666   for ac_exec_ext in '' $ac_executable_extensions; do
17667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17668     ac_cv_prog_ac_ct_CXX="$ac_prog"
17669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17670     break 2
17671   fi
17672 done
17673 done
17674 IFS=$as_save_IFS
17675
17676 fi
17677 fi
17678 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17679 if test -n "$ac_ct_CXX"; then
17680   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17681 echo "${ECHO_T}$ac_ct_CXX" >&6; }
17682 else
17683   { echo "$as_me:$LINENO: result: no" >&5
17684 echo "${ECHO_T}no" >&6; }
17685 fi
17686
17687
17688   test -n "$ac_ct_CXX" && break
17689 done
17690
17691   if test "x$ac_ct_CXX" = x; then
17692     CXX="g++"
17693   else
17694     case $cross_compiling:$ac_tool_warned in
17695 yes:)
17696 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17697 whose name does not start with the host triplet.  If you think this
17698 configuration is useful to you, please write to autoconf@gnu.org." >&5
17699 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17700 whose name does not start with the host triplet.  If you think this
17701 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17702 ac_tool_warned=yes ;;
17703 esac
17704     CXX=$ac_ct_CXX
17705   fi
17706 fi
17707
17708   fi
17709 fi
17710 # Provide some information about the compiler.
17711 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
17712 ac_compiler=`set X $ac_compile; echo $2`
17713 { (ac_try="$ac_compiler --version >&5"
17714 case "(($ac_try" in
17715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716   *) ac_try_echo=$ac_try;;
17717 esac
17718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17719   (eval "$ac_compiler --version >&5") 2>&5
17720   ac_status=$?
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); }
17723 { (ac_try="$ac_compiler -v >&5"
17724 case "(($ac_try" in
17725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726   *) ac_try_echo=$ac_try;;
17727 esac
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729   (eval "$ac_compiler -v >&5") 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }
17733 { (ac_try="$ac_compiler -V >&5"
17734 case "(($ac_try" in
17735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736   *) ac_try_echo=$ac_try;;
17737 esac
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739   (eval "$ac_compiler -V >&5") 2>&5
17740   ac_status=$?
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); }
17743
17744 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17745 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17746 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17747   echo $ECHO_N "(cached) $ECHO_C" >&6
17748 else
17749   cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h.  */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h.  */
17755
17756 int
17757 main ()
17758 {
17759 #ifndef __GNUC__
17760        choke me
17761 #endif
17762
17763   ;
17764   return 0;
17765 }
17766 _ACEOF
17767 rm -f conftest.$ac_objext
17768 if { (ac_try="$ac_compile"
17769 case "(($ac_try" in
17770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771   *) ac_try_echo=$ac_try;;
17772 esac
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774   (eval "$ac_compile") 2>conftest.er1
17775   ac_status=$?
17776   grep -v '^ *+' conftest.er1 >conftest.err
17777   rm -f conftest.er1
17778   cat conftest.err >&5
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); } && {
17781          test -z "$ac_cxx_werror_flag" ||
17782          test ! -s conftest.err
17783        } && test -s conftest.$ac_objext; then
17784   ac_compiler_gnu=yes
17785 else
17786   echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17788
17789         ac_compiler_gnu=no
17790 fi
17791
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17794
17795 fi
17796 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17797 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17798 GXX=`test $ac_compiler_gnu = yes && echo yes`
17799 ac_test_CXXFLAGS=${CXXFLAGS+set}
17800 ac_save_CXXFLAGS=$CXXFLAGS
17801 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17802 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17803 if test "${ac_cv_prog_cxx_g+set}" = set; then
17804   echo $ECHO_N "(cached) $ECHO_C" >&6
17805 else
17806   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17807    ac_cxx_werror_flag=yes
17808    ac_cv_prog_cxx_g=no
17809    CXXFLAGS="-g"
17810    cat >conftest.$ac_ext <<_ACEOF
17811 /* confdefs.h.  */
17812 _ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h.  */
17816
17817 int
17818 main ()
17819 {
17820
17821   ;
17822   return 0;
17823 }
17824 _ACEOF
17825 rm -f conftest.$ac_objext
17826 if { (ac_try="$ac_compile"
17827 case "(($ac_try" in
17828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829   *) ac_try_echo=$ac_try;;
17830 esac
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832   (eval "$ac_compile") 2>conftest.er1
17833   ac_status=$?
17834   grep -v '^ *+' conftest.er1 >conftest.err
17835   rm -f conftest.er1
17836   cat conftest.err >&5
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); } && {
17839          test -z "$ac_cxx_werror_flag" ||
17840          test ! -s conftest.err
17841        } && test -s conftest.$ac_objext; then
17842   ac_cv_prog_cxx_g=yes
17843 else
17844   echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847         CXXFLAGS=""
17848       cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h.  */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h.  */
17854
17855 int
17856 main ()
17857 {
17858
17859   ;
17860   return 0;
17861 }
17862 _ACEOF
17863 rm -f conftest.$ac_objext
17864 if { (ac_try="$ac_compile"
17865 case "(($ac_try" in
17866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867   *) ac_try_echo=$ac_try;;
17868 esac
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870   (eval "$ac_compile") 2>conftest.er1
17871   ac_status=$?
17872   grep -v '^ *+' conftest.er1 >conftest.err
17873   rm -f conftest.er1
17874   cat conftest.err >&5
17875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876   (exit $ac_status); } && {
17877          test -z "$ac_cxx_werror_flag" ||
17878          test ! -s conftest.err
17879        } && test -s conftest.$ac_objext; then
17880   :
17881 else
17882   echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17884
17885         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17886          CXXFLAGS="-g"
17887          cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h.  */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h.  */
17893
17894 int
17895 main ()
17896 {
17897
17898   ;
17899   return 0;
17900 }
17901 _ACEOF
17902 rm -f conftest.$ac_objext
17903 if { (ac_try="$ac_compile"
17904 case "(($ac_try" in
17905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906   *) ac_try_echo=$ac_try;;
17907 esac
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909   (eval "$ac_compile") 2>conftest.er1
17910   ac_status=$?
17911   grep -v '^ *+' conftest.er1 >conftest.err
17912   rm -f conftest.er1
17913   cat conftest.err >&5
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); } && {
17916          test -z "$ac_cxx_werror_flag" ||
17917          test ! -s conftest.err
17918        } && test -s conftest.$ac_objext; then
17919   ac_cv_prog_cxx_g=yes
17920 else
17921   echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17923
17924
17925 fi
17926
17927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17928 fi
17929
17930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17931 fi
17932
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17935 fi
17936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17937 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17938 if test "$ac_test_CXXFLAGS" = set; then
17939   CXXFLAGS=$ac_save_CXXFLAGS
17940 elif test $ac_cv_prog_cxx_g = yes; then
17941   if test "$GXX" = yes; then
17942     CXXFLAGS="-g -O2"
17943   else
17944     CXXFLAGS="-g"
17945   fi
17946 else
17947   if test "$GXX" = yes; then
17948     CXXFLAGS="-O2"
17949   else
17950     CXXFLAGS=
17951   fi
17952 fi
17953 ac_ext=c
17954 ac_cpp='$CPP $CPPFLAGS'
17955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17958
17959
17960
17961
17962
17963
17964
17965
17966     ac_ext=cpp
17967 ac_cpp='$CXXCPP $CPPFLAGS'
17968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17971
17972     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17973 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
17974 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
17975   echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17977   cat >conftest.$ac_ext <<_ACEOF
17978 /* confdefs.h.  */
17979 _ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h.  */
17983
17984 int
17985 main ()
17986 {
17987
17988              #ifndef __INTEL_COMPILER
17989                 choke me
17990              #endif
17991
17992   ;
17993   return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003   (eval "$ac_compile") 2>conftest.er1
18004   ac_status=$?
18005   grep -v '^ *+' conftest.er1 >conftest.err
18006   rm -f conftest.er1
18007   cat conftest.err >&5
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); } && {
18010          test -z "$ac_cxx_werror_flag" ||
18011          test ! -s conftest.err
18012        } && test -s conftest.$ac_objext; then
18013   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
18014 else
18015   echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18017
18018         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
18019
18020 fi
18021
18022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023
18024
18025 fi
18026 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
18027 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
18028     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
18029         :; INTELCXX=yes
18030     else
18031         :;
18032     fi
18033     ac_ext=c
18034 ac_cpp='$CPP $CPPFLAGS'
18035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18038
18039
18040
18041
18042         if test "$INTELCXX" = "yes"; then
18043
18044
18045     ac_ext=cpp
18046 ac_cpp='$CXXCPP $CPPFLAGS'
18047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18050
18051     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
18052 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
18053 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
18054   echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056   cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h.  */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h.  */
18062
18063 int
18064 main ()
18065 {
18066
18067              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
18068                 choke me
18069              #endif
18070
18071   ;
18072   return 0;
18073 }
18074 _ACEOF
18075 rm -f conftest.$ac_objext
18076 if { (ac_try="$ac_compile"
18077 case "(($ac_try" in
18078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079   *) ac_try_echo=$ac_try;;
18080 esac
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082   (eval "$ac_compile") 2>conftest.er1
18083   ac_status=$?
18084   grep -v '^ *+' conftest.er1 >conftest.err
18085   rm -f conftest.er1
18086   cat conftest.err >&5
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); } && {
18089          test -z "$ac_cxx_werror_flag" ||
18090          test ! -s conftest.err
18091        } && test -s conftest.$ac_objext; then
18092   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
18093 else
18094   echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18096
18097         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
18098
18099 fi
18100
18101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18102
18103
18104 fi
18105 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
18106 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
18107     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
18108         :; INTELCXX8=yes
18109     else
18110         :;
18111     fi
18112     ac_ext=c
18113 ac_cpp='$CPP $CPPFLAGS'
18114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18117
18118
18119
18120
18121
18122     ac_ext=cpp
18123 ac_cpp='$CXXCPP $CPPFLAGS'
18124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18127
18128     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
18129 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
18130 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
18131   echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133   cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h.  */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h.  */
18139
18140 int
18141 main ()
18142 {
18143
18144              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
18145                 choke me
18146              #endif
18147
18148   ;
18149   return 0;
18150 }
18151 _ACEOF
18152 rm -f conftest.$ac_objext
18153 if { (ac_try="$ac_compile"
18154 case "(($ac_try" in
18155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156   *) ac_try_echo=$ac_try;;
18157 esac
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159   (eval "$ac_compile") 2>conftest.er1
18160   ac_status=$?
18161   grep -v '^ *+' conftest.er1 >conftest.err
18162   rm -f conftest.er1
18163   cat conftest.err >&5
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); } && {
18166          test -z "$ac_cxx_werror_flag" ||
18167          test ! -s conftest.err
18168        } && test -s conftest.$ac_objext; then
18169   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
18170 else
18171   echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18173
18174         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
18175
18176 fi
18177
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179
18180
18181 fi
18182 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
18183 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
18184     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
18185         :; INTELCXX10=yes
18186     else
18187         :;
18188     fi
18189     ac_ext=c
18190 ac_cpp='$CPP $CPPFLAGS'
18191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18194
18195
18196
18197     fi
18198
18199         if test "x$GCXX" != "xyes"; then
18200         if test "xCXX" = "xC"; then
18201             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18202 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18203 if test "${bakefile_cv_c_exto+set}" = set; then
18204   echo $ECHO_N "(cached) $ECHO_C" >&6
18205 else
18206   cat >conftest.$ac_ext <<_ACEOF
18207 /* confdefs.h.  */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h.  */
18212
18213 int
18214 main ()
18215 {
18216
18217   ;
18218   return 0;
18219 }
18220 _ACEOF
18221 rm -f conftest.$ac_objext conftest.$ac_ext.o
18222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18223   (eval $ac_compile) 2>&5
18224   ac_status=$?
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); }; then
18227   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18228     case $ac_file in
18229         conftest.$ac_ext.o)
18230             bakefile_cv_c_exto="-ext o"
18231             ;;
18232         *)
18233             ;;
18234     esac
18235 done
18236 else
18237   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18238 See \`config.log' for more details." >&5
18239 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18240 See \`config.log' for more details." >&2;}
18241    { (exit 1); exit 1; }; }
18242
18243 fi
18244
18245 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18246
18247 fi
18248 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18249 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18250 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18251     if test "c" = "c"; then
18252         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18253     fi
18254     if test "c" = "cxx"; then
18255         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18256     fi
18257 fi
18258
18259             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18260                 unset ac_cv_prog_cc_g
18261                 ac_test_CFLAGS=${CFLAGS+set}
18262 ac_save_CFLAGS=$CFLAGS
18263 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18264 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18265 if test "${ac_cv_prog_cc_g+set}" = set; then
18266   echo $ECHO_N "(cached) $ECHO_C" >&6
18267 else
18268   ac_save_c_werror_flag=$ac_c_werror_flag
18269    ac_c_werror_flag=yes
18270    ac_cv_prog_cc_g=no
18271    CFLAGS="-g"
18272    cat >conftest.$ac_ext <<_ACEOF
18273 /* confdefs.h.  */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h.  */
18278
18279 int
18280 main ()
18281 {
18282
18283   ;
18284   return 0;
18285 }
18286 _ACEOF
18287 rm -f conftest.$ac_objext
18288 if { (ac_try="$ac_compile"
18289 case "(($ac_try" in
18290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291   *) ac_try_echo=$ac_try;;
18292 esac
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294   (eval "$ac_compile") 2>conftest.er1
18295   ac_status=$?
18296   grep -v '^ *+' conftest.er1 >conftest.err
18297   rm -f conftest.er1
18298   cat conftest.err >&5
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); } && {
18301          test -z "$ac_c_werror_flag" ||
18302          test ! -s conftest.err
18303        } && test -s conftest.$ac_objext; then
18304   ac_cv_prog_cc_g=yes
18305 else
18306   echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18308
18309         CFLAGS=""
18310       cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h.  */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h.  */
18316
18317 int
18318 main ()
18319 {
18320
18321   ;
18322   return 0;
18323 }
18324 _ACEOF
18325 rm -f conftest.$ac_objext
18326 if { (ac_try="$ac_compile"
18327 case "(($ac_try" in
18328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329   *) ac_try_echo=$ac_try;;
18330 esac
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332   (eval "$ac_compile") 2>conftest.er1
18333   ac_status=$?
18334   grep -v '^ *+' conftest.er1 >conftest.err
18335   rm -f conftest.er1
18336   cat conftest.err >&5
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); } && {
18339          test -z "$ac_c_werror_flag" ||
18340          test ! -s conftest.err
18341        } && test -s conftest.$ac_objext; then
18342   :
18343 else
18344   echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18346
18347         ac_c_werror_flag=$ac_save_c_werror_flag
18348          CFLAGS="-g"
18349          cat >conftest.$ac_ext <<_ACEOF
18350 /* confdefs.h.  */
18351 _ACEOF
18352 cat confdefs.h >>conftest.$ac_ext
18353 cat >>conftest.$ac_ext <<_ACEOF
18354 /* end confdefs.h.  */
18355
18356 int
18357 main ()
18358 {
18359
18360   ;
18361   return 0;
18362 }
18363 _ACEOF
18364 rm -f conftest.$ac_objext
18365 if { (ac_try="$ac_compile"
18366 case "(($ac_try" in
18367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368   *) ac_try_echo=$ac_try;;
18369 esac
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371   (eval "$ac_compile") 2>conftest.er1
18372   ac_status=$?
18373   grep -v '^ *+' conftest.er1 >conftest.err
18374   rm -f conftest.er1
18375   cat conftest.err >&5
18376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377   (exit $ac_status); } && {
18378          test -z "$ac_c_werror_flag" ||
18379          test ! -s conftest.err
18380        } && test -s conftest.$ac_objext; then
18381   ac_cv_prog_cc_g=yes
18382 else
18383   echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386
18387 fi
18388
18389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18390 fi
18391
18392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18393 fi
18394
18395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18396    ac_c_werror_flag=$ac_save_c_werror_flag
18397 fi
18398 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18399 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18400 if test "$ac_test_CFLAGS" = set; then
18401   CFLAGS=$ac_save_CFLAGS
18402 elif test $ac_cv_prog_cc_g = yes; then
18403   if test "$GCC" = yes; then
18404     CFLAGS="-g -O2"
18405   else
18406     CFLAGS="-g"
18407   fi
18408 else
18409   if test "$GCC" = yes; then
18410     CFLAGS="-O2"
18411   else
18412     CFLAGS=
18413   fi
18414 fi
18415             fi
18416         fi
18417
18418                         case `uname -s` in
18419             AIX*)
18420
18421
18422     ac_ext=cpp
18423 ac_cpp='$CXXCPP $CPPFLAGS'
18424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18427
18428     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18429 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18430 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18431   echo $ECHO_N "(cached) $ECHO_C" >&6
18432 else
18433   cat >conftest.$ac_ext <<_ACEOF
18434 /* confdefs.h.  */
18435 _ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h.  */
18439
18440 int
18441 main ()
18442 {
18443
18444              #ifndef __xlC__
18445                 choke me
18446              #endif
18447
18448   ;
18449   return 0;
18450 }
18451 _ACEOF
18452 rm -f conftest.$ac_objext
18453 if { (ac_try="$ac_compile"
18454 case "(($ac_try" in
18455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456   *) ac_try_echo=$ac_try;;
18457 esac
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459   (eval "$ac_compile") 2>conftest.er1
18460   ac_status=$?
18461   grep -v '^ *+' conftest.er1 >conftest.err
18462   rm -f conftest.er1
18463   cat conftest.err >&5
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); } && {
18466          test -z "$ac_cxx_werror_flag" ||
18467          test ! -s conftest.err
18468        } && test -s conftest.$ac_objext; then
18469   bakefile_cv_cxx_compiler___xlC__=yes
18470 else
18471   echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18473
18474         bakefile_cv_cxx_compiler___xlC__=no
18475
18476 fi
18477
18478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479
18480
18481 fi
18482 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18483 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18484     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18485         :; XLCXX=yes
18486     else
18487         :;
18488     fi
18489     ac_ext=c
18490 ac_cpp='$CPP $CPPFLAGS'
18491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18494
18495
18496
18497                 ;;
18498
18499             Darwin)
18500
18501
18502     ac_ext=cpp
18503 ac_cpp='$CXXCPP $CPPFLAGS'
18504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18507
18508     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18509 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18510 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18511   echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513   cat >conftest.$ac_ext <<_ACEOF
18514 /* confdefs.h.  */
18515 _ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h.  */
18519
18520 int
18521 main ()
18522 {
18523
18524              #ifndef __MWERKS__
18525                 choke me
18526              #endif
18527
18528   ;
18529   return 0;
18530 }
18531 _ACEOF
18532 rm -f conftest.$ac_objext
18533 if { (ac_try="$ac_compile"
18534 case "(($ac_try" in
18535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536   *) ac_try_echo=$ac_try;;
18537 esac
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539   (eval "$ac_compile") 2>conftest.er1
18540   ac_status=$?
18541   grep -v '^ *+' conftest.er1 >conftest.err
18542   rm -f conftest.er1
18543   cat conftest.err >&5
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); } && {
18546          test -z "$ac_cxx_werror_flag" ||
18547          test ! -s conftest.err
18548        } && test -s conftest.$ac_objext; then
18549   bakefile_cv_cxx_compiler___MWERKS__=yes
18550 else
18551   echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18553
18554         bakefile_cv_cxx_compiler___MWERKS__=no
18555
18556 fi
18557
18558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18559
18560
18561 fi
18562 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18563 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18564     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18565         :; MWCXX=yes
18566     else
18567         :;
18568     fi
18569     ac_ext=c
18570 ac_cpp='$CPP $CPPFLAGS'
18571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18574
18575
18576
18577                 if test "$MWCXX" != "yes"; then
18578
18579
18580     ac_ext=cpp
18581 ac_cpp='$CXXCPP $CPPFLAGS'
18582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18585
18586     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18587 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18588 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18589   echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591   cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597
18598 int
18599 main ()
18600 {
18601
18602              #ifndef __xlC__
18603                 choke me
18604              #endif
18605
18606   ;
18607   return 0;
18608 }
18609 _ACEOF
18610 rm -f conftest.$ac_objext
18611 if { (ac_try="$ac_compile"
18612 case "(($ac_try" in
18613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614   *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617   (eval "$ac_compile") 2>conftest.er1
18618   ac_status=$?
18619   grep -v '^ *+' conftest.er1 >conftest.err
18620   rm -f conftest.er1
18621   cat conftest.err >&5
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); } && {
18624          test -z "$ac_cxx_werror_flag" ||
18625          test ! -s conftest.err
18626        } && test -s conftest.$ac_objext; then
18627   bakefile_cv_cxx_compiler___xlC__=yes
18628 else
18629   echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18631
18632         bakefile_cv_cxx_compiler___xlC__=no
18633
18634 fi
18635
18636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18637
18638
18639 fi
18640 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18641 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18642     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18643         :; XLCXX=yes
18644     else
18645         :;
18646     fi
18647     ac_ext=c
18648 ac_cpp='$CPP $CPPFLAGS'
18649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18652
18653
18654
18655                 fi
18656                 ;;
18657
18658             IRIX*)
18659
18660
18661     ac_ext=cpp
18662 ac_cpp='$CXXCPP $CPPFLAGS'
18663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18666
18667     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
18668 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
18669 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
18670   echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672   cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h.  */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h.  */
18678
18679 int
18680 main ()
18681 {
18682
18683              #ifndef _SGI_COMPILER_VERSION
18684                 choke me
18685              #endif
18686
18687   ;
18688   return 0;
18689 }
18690 _ACEOF
18691 rm -f conftest.$ac_objext
18692 if { (ac_try="$ac_compile"
18693 case "(($ac_try" in
18694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695   *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698   (eval "$ac_compile") 2>conftest.er1
18699   ac_status=$?
18700   grep -v '^ *+' conftest.er1 >conftest.err
18701   rm -f conftest.er1
18702   cat conftest.err >&5
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); } && {
18705          test -z "$ac_cxx_werror_flag" ||
18706          test ! -s conftest.err
18707        } && test -s conftest.$ac_objext; then
18708   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18709 else
18710   echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18712
18713         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18714
18715 fi
18716
18717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18718
18719
18720 fi
18721 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18722 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18723     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18724         :; SGICXX=yes
18725     else
18726         :;
18727     fi
18728     ac_ext=c
18729 ac_cpp='$CPP $CPPFLAGS'
18730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18733
18734
18735
18736                 ;;
18737
18738             Linux*)
18739                                                 if test "$INTELCXX" != "yes"; then
18740
18741
18742     ac_ext=cpp
18743 ac_cpp='$CXXCPP $CPPFLAGS'
18744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18747
18748     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18749 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18750 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18751   echo $ECHO_N "(cached) $ECHO_C" >&6
18752 else
18753   cat >conftest.$ac_ext <<_ACEOF
18754 /* confdefs.h.  */
18755 _ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h.  */
18759
18760 int
18761 main ()
18762 {
18763
18764              #ifndef __SUNPRO_CC
18765                 choke me
18766              #endif
18767
18768   ;
18769   return 0;
18770 }
18771 _ACEOF
18772 rm -f conftest.$ac_objext
18773 if { (ac_try="$ac_compile"
18774 case "(($ac_try" in
18775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776   *) ac_try_echo=$ac_try;;
18777 esac
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779   (eval "$ac_compile") 2>conftest.er1
18780   ac_status=$?
18781   grep -v '^ *+' conftest.er1 >conftest.err
18782   rm -f conftest.er1
18783   cat conftest.err >&5
18784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785   (exit $ac_status); } && {
18786          test -z "$ac_cxx_werror_flag" ||
18787          test ! -s conftest.err
18788        } && test -s conftest.$ac_objext; then
18789   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18790 else
18791   echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18793
18794         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18795
18796 fi
18797
18798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18799
18800
18801 fi
18802 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18803 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18804     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18805         :; SUNCXX=yes
18806     else
18807         :;
18808     fi
18809     ac_ext=c
18810 ac_cpp='$CPP $CPPFLAGS'
18811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18814
18815
18816
18817                 fi
18818                 ;;
18819
18820             HP-UX*)
18821
18822
18823     ac_ext=cpp
18824 ac_cpp='$CXXCPP $CPPFLAGS'
18825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18828
18829     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18830 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18831 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18832   echo $ECHO_N "(cached) $ECHO_C" >&6
18833 else
18834   cat >conftest.$ac_ext <<_ACEOF
18835 /* confdefs.h.  */
18836 _ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h.  */
18840
18841 int
18842 main ()
18843 {
18844
18845              #ifndef __HP_aCC
18846                 choke me
18847              #endif
18848
18849   ;
18850   return 0;
18851 }
18852 _ACEOF
18853 rm -f conftest.$ac_objext
18854 if { (ac_try="$ac_compile"
18855 case "(($ac_try" in
18856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857   *) ac_try_echo=$ac_try;;
18858 esac
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860   (eval "$ac_compile") 2>conftest.er1
18861   ac_status=$?
18862   grep -v '^ *+' conftest.er1 >conftest.err
18863   rm -f conftest.er1
18864   cat conftest.err >&5
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); } && {
18867          test -z "$ac_cxx_werror_flag" ||
18868          test ! -s conftest.err
18869        } && test -s conftest.$ac_objext; then
18870   bakefile_cv_cxx_compiler___HP_aCC=yes
18871 else
18872   echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18874
18875         bakefile_cv_cxx_compiler___HP_aCC=no
18876
18877 fi
18878
18879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18880
18881
18882 fi
18883 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18884 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18885     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18886         :; HPCXX=yes
18887     else
18888         :;
18889     fi
18890     ac_ext=c
18891 ac_cpp='$CPP $CPPFLAGS'
18892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18895
18896
18897
18898                 ;;
18899
18900             OSF1)
18901
18902
18903     ac_ext=cpp
18904 ac_cpp='$CXXCPP $CPPFLAGS'
18905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18908
18909     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18910 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18911 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18912   echo $ECHO_N "(cached) $ECHO_C" >&6
18913 else
18914   cat >conftest.$ac_ext <<_ACEOF
18915 /* confdefs.h.  */
18916 _ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h.  */
18920
18921 int
18922 main ()
18923 {
18924
18925              #ifndef __DECCXX
18926                 choke me
18927              #endif
18928
18929   ;
18930   return 0;
18931 }
18932 _ACEOF
18933 rm -f conftest.$ac_objext
18934 if { (ac_try="$ac_compile"
18935 case "(($ac_try" in
18936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937   *) ac_try_echo=$ac_try;;
18938 esac
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940   (eval "$ac_compile") 2>conftest.er1
18941   ac_status=$?
18942   grep -v '^ *+' conftest.er1 >conftest.err
18943   rm -f conftest.er1
18944   cat conftest.err >&5
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } && {
18947          test -z "$ac_cxx_werror_flag" ||
18948          test ! -s conftest.err
18949        } && test -s conftest.$ac_objext; then
18950   bakefile_cv_cxx_compiler___DECCXX=yes
18951 else
18952   echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18954
18955         bakefile_cv_cxx_compiler___DECCXX=no
18956
18957 fi
18958
18959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18960
18961
18962 fi
18963 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18964 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
18965     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
18966         :; COMPAQCXX=yes
18967     else
18968         :;
18969     fi
18970     ac_ext=c
18971 ac_cpp='$CPP $CPPFLAGS'
18972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18975
18976
18977
18978                 ;;
18979
18980             SunOS)
18981
18982
18983     ac_ext=cpp
18984 ac_cpp='$CXXCPP $CPPFLAGS'
18985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18988
18989     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18990 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18991 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18992   echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994   cat >conftest.$ac_ext <<_ACEOF
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000
19001 int
19002 main ()
19003 {
19004
19005              #ifndef __SUNPRO_CC
19006                 choke me
19007              #endif
19008
19009   ;
19010   return 0;
19011 }
19012 _ACEOF
19013 rm -f conftest.$ac_objext
19014 if { (ac_try="$ac_compile"
19015 case "(($ac_try" in
19016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017   *) ac_try_echo=$ac_try;;
19018 esac
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020   (eval "$ac_compile") 2>conftest.er1
19021   ac_status=$?
19022   grep -v '^ *+' conftest.er1 >conftest.err
19023   rm -f conftest.er1
19024   cat conftest.err >&5
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); } && {
19027          test -z "$ac_cxx_werror_flag" ||
19028          test ! -s conftest.err
19029        } && test -s conftest.$ac_objext; then
19030   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19031 else
19032   echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19034
19035         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19036
19037 fi
19038
19039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19040
19041
19042 fi
19043 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19044 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19045     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19046         :; SUNCXX=yes
19047     else
19048         :;
19049     fi
19050     ac_ext=c
19051 ac_cpp='$CPP $CPPFLAGS'
19052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19055
19056
19057
19058                 ;;
19059         esac
19060     fi
19061
19062
19063
19064 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
19065     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
19066 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
19067    { (exit 1); exit 1; }; }
19068 fi
19069
19070 if test "x$SUNCXX" != xyes; then
19071     if test -n "$ac_tool_prefix"; then
19072   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19073 set dummy ${ac_tool_prefix}ar; ac_word=$2
19074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19076 if test "${ac_cv_prog_AR+set}" = set; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079   if test -n "$AR"; then
19080   ac_cv_prog_AR="$AR" # Let the user override the test.
19081 else
19082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19083 for as_dir in $PATH
19084 do
19085   IFS=$as_save_IFS
19086   test -z "$as_dir" && as_dir=.
19087   for ac_exec_ext in '' $ac_executable_extensions; do
19088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19089     ac_cv_prog_AR="${ac_tool_prefix}ar"
19090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19091     break 2
19092   fi
19093 done
19094 done
19095 IFS=$as_save_IFS
19096
19097 fi
19098 fi
19099 AR=$ac_cv_prog_AR
19100 if test -n "$AR"; then
19101   { echo "$as_me:$LINENO: result: $AR" >&5
19102 echo "${ECHO_T}$AR" >&6; }
19103 else
19104   { echo "$as_me:$LINENO: result: no" >&5
19105 echo "${ECHO_T}no" >&6; }
19106 fi
19107
19108
19109 fi
19110 if test -z "$ac_cv_prog_AR"; then
19111   ac_ct_AR=$AR
19112   # Extract the first word of "ar", so it can be a program name with args.
19113 set dummy ar; ac_word=$2
19114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19116 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19117   echo $ECHO_N "(cached) $ECHO_C" >&6
19118 else
19119   if test -n "$ac_ct_AR"; then
19120   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19121 else
19122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19123 for as_dir in $PATH
19124 do
19125   IFS=$as_save_IFS
19126   test -z "$as_dir" && as_dir=.
19127   for ac_exec_ext in '' $ac_executable_extensions; do
19128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19129     ac_cv_prog_ac_ct_AR="ar"
19130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19131     break 2
19132   fi
19133 done
19134 done
19135 IFS=$as_save_IFS
19136
19137 fi
19138 fi
19139 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19140 if test -n "$ac_ct_AR"; then
19141   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19142 echo "${ECHO_T}$ac_ct_AR" >&6; }
19143 else
19144   { echo "$as_me:$LINENO: result: no" >&5
19145 echo "${ECHO_T}no" >&6; }
19146 fi
19147
19148   if test "x$ac_ct_AR" = x; then
19149     AR=""
19150   else
19151     case $cross_compiling:$ac_tool_warned in
19152 yes:)
19153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19154 whose name does not start with the host triplet.  If you think this
19155 configuration is useful to you, please write to autoconf@gnu.org." >&5
19156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19157 whose name does not start with the host triplet.  If you think this
19158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19159 ac_tool_warned=yes ;;
19160 esac
19161     AR=$ac_ct_AR
19162   fi
19163 else
19164   AR="$ac_cv_prog_AR"
19165 fi
19166
19167     if test "x$AR" = "x" ; then
19168         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
19169 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
19170    { (exit 1); exit 1; }; }
19171     fi
19172 fi
19173
19174
19175 if test "$wxUSE_MAC" = 1; then
19176
19177 retest_macosx_linking=no
19178
19179 OSX_ARCH_OPTS=""
19180 if test "x$wxUSE_MAC_ARCH" != xno; then
19181     OSX_ARCH_OPTS="-arch $wxUSE_MAC_ARCH"
19182 fi
19183
19184     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
19185                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
19186             # Implicitly turn on the new --with-macosx-sdk using the default
19187             # SDK which provides the behaviour this option has always had.
19188             if test "x$wxUSE_MACOSX_SDK" = "x"; then
19189                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
19190 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
19191                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
19192 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
19193                 wxUSE_MACOSX_SDK=yes
19194             fi
19195         else
19196             # Complain to user if he specified an argument to --enable-universal_binary
19197             # and also 1) specified --with-macosx-sdk using the default (yes) or
19198             # 2) specified --with-macosx-sdk using a path or 3) specified
19199             # --without-macosx-sdk (no).
19200             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
19201                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19202 See \`config.log' for more details." >&5
19203 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19204 See \`config.log' for more details." >&2;}
19205    { (exit 1); exit 1; }; }
19206             else
19207                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
19208                 # special-case the empty string because the below test simply
19209                 # converts "no" to the empty string anyway.
19210                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
19211                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
19212 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
19213             fi
19214         fi
19215                 OSX_ARCH_OPTS="-arch ppc -arch i386"
19216         if test "$wxUSE_OSX_COCOA" = 1; then
19217             OSX_ARCH_OPTS="$OSX_ARCH_OPTS -arch x86_64"
19218         fi
19219         { echo "$as_me:$LINENO: checking for universal binary architectures" >&5
19220 echo $ECHO_N "checking for universal binary architectures... $ECHO_C" >&6; }
19221         { echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
19222 echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
19223
19224                                                                                                                 retest_macosx_linking=yes
19225
19226                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
19227 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
19228         bk_use_pch=no
19229     fi
19230
19231 CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
19232 CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
19233 OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
19234 OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
19235 LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
19236
19237 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
19238     wxUSE_MACOSX_SDK=
19239 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
19240     # TODO: Search for most recent SDK and use it.
19241     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
19242 fi
19243
19244
19245 if test "x$wxUSE_MACOSX_SDK" != "x"; then
19246     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
19247 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
19248     if ! test -d "$wxUSE_MACOSX_SDK"; then
19249         { { echo "$as_me:$LINENO: error: not found
19250 See \`config.log' for more details." >&5
19251 echo "$as_me: error: not found
19252 See \`config.log' for more details." >&2;}
19253    { (exit 1); exit 1; }; }
19254     else
19255         { echo "$as_me:$LINENO: result: exists" >&5
19256 echo "${ECHO_T}exists" >&6; }
19257     fi
19258         MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
19259     retest_macosx_linking=yes
19260             fi
19261
19262 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
19263     wxUSE_MACOSX_VERSION_MIN=
19264 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
19265     if test "x$wxUSE_MACOSX_SDK" != "x"; then
19266         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
19267 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
19268
19269         MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
19270
19271         # If that failed, try again with the new key
19272         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
19273
19274             MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
19275
19276         fi
19277
19278         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
19279             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
19280             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
19281 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
19282         else
19283             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
19284 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
19285             wxUSE_MACOSX_VERSION_MIN=
19286         fi
19287     else
19288         wxUSE_MACOSX_VERSION_MIN=
19289     fi
19290 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
19291     for ac_prog in sw_vers
19292 do
19293   # Extract the first word of "$ac_prog", so it can be a program name with args.
19294 set dummy $ac_prog; ac_word=$2
19295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19297 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
19298   echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300   if test -n "$OSX_SW_VERS"; then
19301   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
19302 else
19303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19304 for as_dir in $PATH
19305 do
19306   IFS=$as_save_IFS
19307   test -z "$as_dir" && as_dir=.
19308   for ac_exec_ext in '' $ac_executable_extensions; do
19309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19310     ac_cv_prog_OSX_SW_VERS="$ac_prog"
19311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19312     break 2
19313   fi
19314 done
19315 done
19316 IFS=$as_save_IFS
19317
19318 fi
19319 fi
19320 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
19321 if test -n "$OSX_SW_VERS"; then
19322   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
19323 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
19324 else
19325   { echo "$as_me:$LINENO: result: no" >&5
19326 echo "${ECHO_T}no" >&6; }
19327 fi
19328
19329
19330   test -n "$OSX_SW_VERS" && break
19331 done
19332
19333     if test "$OSX_SW_VERS" != ""; then
19334         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
19335     else
19336                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
19337 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
19338         OSX_VERSION="10.4"
19339     fi
19340
19341     case "$OSX_VERSION" in
19342         10.4* )
19343             wxUSE_MACOSX_VERSION_MIN=10.4
19344             ;;
19345
19346         * )
19347             if test "$wxUSE_OSX_CARBON" = 1; then
19348                 # otherwise configure stops on leopard for universal_binary
19349                 wxUSE_MACOSX_VERSION_MIN=10.4
19350             else
19351                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
19352                 wxUSE_MACOSX_VERSION_MIN=10.5
19353             fi
19354             ;;
19355     esac
19356 fi
19357
19358 NEEDS_GCC40="no"
19359 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
19360     NEEDS_GCC40="yes"
19361 fi
19362
19363 if test "$wxUSE_OSX_CARBON" = 1; then
19364     NEEDS_GCC40="yes"
19365 fi
19366
19367 if test "x$NEEDS_GCC40" == "xyes"; then
19368     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
19369     # and wants 10.4 compatible code, then 'downgrade' to 4.0
19370     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
19371     if test "x$CC" = "xgcc"; then
19372         CCVERSION=`$CC --version | grep 4.[2-9].`
19373         if test "x$CCVERSION" != "x"; then
19374             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
19375             CC="gcc-4.0"
19376         fi
19377     fi
19378
19379     if test "x$CXX" = "xg++"; then
19380         CCVERSION=`$CXX --version | grep 4.[2-9].`
19381         if test "x$CCVERSION" != "x"; then
19382             CXX="g++-4.0"
19383         fi
19384     fi
19385 fi
19386
19387 if test "x$MACOSX_SDK_OPTS" != "x"; then
19388     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
19389     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
19390     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
19391 fi
19392
19393 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
19394     if test "$wxUSE_OSX_IPHONE" = 1; then
19395         MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN"
19396     else
19397         MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
19398     fi
19399     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
19400     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
19401     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
19402     retest_macosx_linking=yes
19403 fi
19404
19405 if test "x$retest_macosx_linking" = "xyes"; then
19406     ac_ext=c
19407 ac_cpp='$CPP $CPPFLAGS'
19408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411
19412     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
19413 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
19414     cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h.  */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h.  */
19420
19421 int
19422 main ()
19423 {
19424
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430 if { (ac_try="$ac_link"
19431 case "(($ac_try" in
19432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433   *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436   (eval "$ac_link") 2>conftest.er1
19437   ac_status=$?
19438   grep -v '^ *+' conftest.er1 >conftest.err
19439   rm -f conftest.er1
19440   cat conftest.err >&5
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } && {
19443          test -z "$ac_c_werror_flag" ||
19444          test ! -s conftest.err
19445        } && test -s conftest$ac_exeext &&
19446        $as_test_x conftest$ac_exeext; then
19447   { echo "$as_me:$LINENO: result: yes" >&5
19448 echo "${ECHO_T}yes" >&6; }
19449 else
19450   echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19452
19453         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19454 See \`config.log' for more details." >&5
19455 echo "$as_me: error: no.  Try a different SDK
19456 See \`config.log' for more details." >&2;}
19457    { (exit 1); exit 1; }; }; exit 1
19458 fi
19459
19460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19461       conftest$ac_exeext conftest.$ac_ext
19462     ac_ext=c
19463 ac_cpp='$CPP $CPPFLAGS'
19464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19467
19468
19469     ac_ext=cpp
19470 ac_cpp='$CXXCPP $CPPFLAGS'
19471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19474
19475     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
19476 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
19477     cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h.  */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h.  */
19483
19484 int
19485 main ()
19486 {
19487
19488   ;
19489   return 0;
19490 }
19491 _ACEOF
19492 rm -f conftest.$ac_objext conftest$ac_exeext
19493 if { (ac_try="$ac_link"
19494 case "(($ac_try" in
19495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496   *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499   (eval "$ac_link") 2>conftest.er1
19500   ac_status=$?
19501   grep -v '^ *+' conftest.er1 >conftest.err
19502   rm -f conftest.er1
19503   cat conftest.err >&5
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); } && {
19506          test -z "$ac_cxx_werror_flag" ||
19507          test ! -s conftest.err
19508        } && test -s conftest$ac_exeext &&
19509        $as_test_x conftest$ac_exeext; then
19510   { echo "$as_me:$LINENO: result: yes" >&5
19511 echo "${ECHO_T}yes" >&6; }
19512 else
19513   echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19515
19516         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19517 See \`config.log' for more details." >&5
19518 echo "$as_me: error: no.  Try a different SDK
19519 See \`config.log' for more details." >&2;}
19520    { (exit 1); exit 1; }; }; exit 1
19521 fi
19522
19523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19524       conftest$ac_exeext conftest.$ac_ext
19525     ac_ext=c
19526 ac_cpp='$CPP $CPPFLAGS'
19527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19530
19531 fi
19532
19533 fi
19534 case "${host}" in
19535
19536                 *-*-darwin* )
19537         INSTALL_PROGRAM="cp -fp"
19538         INSTALL_DATA="cp -fp"
19539         ;;
19540     *)
19541         ;;
19542 esac
19543
19544
19545 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
19546     CXXFLAGS="-qunique $CXXFLAGS"
19547 fi
19548
19549 case "${host}" in
19550   powerpc-*-darwin* )
19551     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
19552 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
19553     cat >conftest.$ac_ext <<_ACEOF
19554 /* confdefs.h.  */
19555 _ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h.  */
19559
19560 int
19561 main ()
19562 {
19563 #ifndef __POWERPC__
19564         choke me for lack of PowerPC
19565 #endif
19566
19567   ;
19568   return 0;
19569 }
19570 _ACEOF
19571 rm -f conftest.$ac_objext
19572 if { (ac_try="$ac_compile"
19573 case "(($ac_try" in
19574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575   *) ac_try_echo=$ac_try;;
19576 esac
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578   (eval "$ac_compile") 2>conftest.er1
19579   ac_status=$?
19580   grep -v '^ *+' conftest.er1 >conftest.err
19581   rm -f conftest.er1
19582   cat conftest.err >&5
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); } && {
19585          test -z "$ac_c_werror_flag" ||
19586          test ! -s conftest.err
19587        } && test -s conftest.$ac_objext; then
19588   { echo "$as_me:$LINENO: result: yes" >&5
19589 echo "${ECHO_T}yes" >&6; }
19590 else
19591   echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594         { echo "$as_me:$LINENO: result: no" >&5
19595 echo "${ECHO_T}no" >&6; }
19596         cat >>confdefs.h <<\_ACEOF
19597 #define __POWERPC__ 1
19598 _ACEOF
19599
19600
19601 fi
19602
19603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19604   ;;
19605 esac
19606
19607 case "${host}" in
19608   *-*-darwin* )
19609     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
19610 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
19611     cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h.  */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h.  */
19617 #include <CoreFoundation/CFBase.h>
19618
19619 int
19620 main ()
19621 {
19622
19623   ;
19624   return 0;
19625 }
19626 _ACEOF
19627 rm -f conftest.$ac_objext
19628 if { (ac_try="$ac_compile"
19629 case "(($ac_try" in
19630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631   *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634   (eval "$ac_compile") 2>conftest.er1
19635   ac_status=$?
19636   grep -v '^ *+' conftest.er1 >conftest.err
19637   rm -f conftest.er1
19638   cat conftest.err >&5
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); } && {
19641          test -z "$ac_c_werror_flag" ||
19642          test ! -s conftest.err
19643        } && test -s conftest.$ac_objext; then
19644   { echo "$as_me:$LINENO: result: yes" >&5
19645 echo "${ECHO_T}yes" >&6; }
19646 else
19647   echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19649
19650         { echo "$as_me:$LINENO: result: no" >&5
19651 echo "${ECHO_T}no" >&6; }
19652         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
19653 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
19654         cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h.  */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h.  */
19660 #define __CF_USE_FRAMEWORK_INCLUDES__
19661 #include <CoreFoundation/CFBase.h>
19662
19663 int
19664 main ()
19665 {
19666
19667   ;
19668   return 0;
19669 }
19670 _ACEOF
19671 rm -f conftest.$ac_objext
19672 if { (ac_try="$ac_compile"
19673 case "(($ac_try" in
19674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675   *) ac_try_echo=$ac_try;;
19676 esac
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678   (eval "$ac_compile") 2>conftest.er1
19679   ac_status=$?
19680   grep -v '^ *+' conftest.er1 >conftest.err
19681   rm -f conftest.er1
19682   cat conftest.err >&5
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); } && {
19685          test -z "$ac_c_werror_flag" ||
19686          test ! -s conftest.err
19687        } && test -s conftest.$ac_objext; then
19688   { echo "$as_me:$LINENO: result: yes" >&5
19689 echo "${ECHO_T}yes" >&6; }
19690                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
19691 else
19692   echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19694
19695         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
19696 See \`config.log' for more details." >&5
19697 echo "$as_me: error: no.  CoreFoundation not available.
19698 See \`config.log' for more details." >&2;}
19699    { (exit 1); exit 1; }; }
19700
19701 fi
19702
19703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19704
19705
19706 fi
19707
19708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19709   ;;
19710 esac
19711
19712 wants_win32=0
19713 doesnt_want_win32=0
19714 case "${host}" in
19715   *-*-cygwin*)
19716       if test "$wxUSE_MSW" = 1 ; then
19717         wants_win32=1
19718       else
19719                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
19720 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
19721 if test "${wx_cv_nocygwin+set}" = set; then
19722   echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724
19725                 cat >conftest.$ac_ext <<_ACEOF
19726 /* confdefs.h.  */
19727 _ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h.  */
19731
19732 int
19733 main ()
19734 {
19735
19736                         #ifdef __MINGW32__
19737                             choke me
19738                         #endif
19739
19740   ;
19741   return 0;
19742 }
19743 _ACEOF
19744 rm -f conftest.$ac_objext
19745 if { (ac_try="$ac_compile"
19746 case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751   (eval "$ac_compile") 2>conftest.er1
19752   ac_status=$?
19753   grep -v '^ *+' conftest.er1 >conftest.err
19754   rm -f conftest.er1
19755   cat conftest.err >&5
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); } && {
19758          test -z "$ac_c_werror_flag" ||
19759          test ! -s conftest.err
19760        } && test -s conftest.$ac_objext; then
19761   wx_cv_nocygwin=no
19762 else
19763   echo "$as_me: failed program was:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19765
19766         wx_cv_nocygwin=yes
19767
19768 fi
19769
19770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19771
19772
19773 fi
19774 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19775 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19776
19777         if test "$wx_cv_nocygwin" = "yes"; then
19778             wants_win32=1
19779         else
19780             doesnt_want_win32=1
19781         fi
19782       fi
19783       if test "$wants_win32" = 1 ; then
19784         BAKEFILE_FORCE_PLATFORM=win32
19785       fi
19786   ;;
19787   *-*-mingw*)
19788       wants_win32=1
19789   ;;
19790 esac
19791
19792 if test "$wxUSE_WINE" = "yes"; then
19793     wants_win32=1
19794     LDFLAGS_GUI="-mwindows"
19795 fi
19796
19797 if test "$wants_win32" = 1 ; then
19798     USE_UNIX=0
19799     USE_WIN32=1
19800     cat >>confdefs.h <<\_ACEOF
19801 #define __WIN32__ 1
19802 _ACEOF
19803
19804     cat >>confdefs.h <<\_ACEOF
19805 #define __WIN95__ 1
19806 _ACEOF
19807
19808     cat >>confdefs.h <<\_ACEOF
19809 #define __WINDOWS__ 1
19810 _ACEOF
19811
19812     cat >>confdefs.h <<\_ACEOF
19813 #define __GNUWIN32__ 1
19814 _ACEOF
19815
19816     cat >>confdefs.h <<\_ACEOF
19817 #define STRICT 1
19818 _ACEOF
19819
19820 fi
19821 if test "$doesnt_want_win32" = 1 ; then
19822     USE_UNIX=1
19823     USE_WIN32=0
19824 fi
19825
19826 if test "$USE_UNIX" = 1 ; then
19827     wxUSE_UNIX=yes
19828     cat >>confdefs.h <<\_ACEOF
19829 #define __UNIX__ 1
19830 _ACEOF
19831
19832 fi
19833
19834 case "${host}" in
19835   *-pc-os2_emx | *-pc-os2-emx )
19836                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19837                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19838 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19839 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19840   echo $ECHO_N "(cached) $ECHO_C" >&6
19841 else
19842   ac_check_lib_save_LIBS=$LIBS
19843 LIBS="-lcExt  $LIBS"
19844 cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h.  */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h.  */
19850
19851 /* Override any GCC internal prototype to avoid an error.
19852    Use char because int might match the return type of a GCC
19853    builtin and then its argument prototype would still apply.  */
19854 #ifdef __cplusplus
19855 extern "C"
19856 #endif
19857 char drand48 ();
19858 int
19859 main ()
19860 {
19861 return drand48 ();
19862   ;
19863   return 0;
19864 }
19865 _ACEOF
19866 rm -f conftest.$ac_objext conftest$ac_exeext
19867 if { (ac_try="$ac_link"
19868 case "(($ac_try" in
19869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870   *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873   (eval "$ac_link") 2>conftest.er1
19874   ac_status=$?
19875   grep -v '^ *+' conftest.er1 >conftest.err
19876   rm -f conftest.er1
19877   cat conftest.err >&5
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); } && {
19880          test -z "$ac_c_werror_flag" ||
19881          test ! -s conftest.err
19882        } && test -s conftest$ac_exeext &&
19883        $as_test_x conftest$ac_exeext; then
19884   ac_cv_lib_cExt_drand48=yes
19885 else
19886   echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889         ac_cv_lib_cExt_drand48=no
19890 fi
19891
19892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19893       conftest$ac_exeext conftest.$ac_ext
19894 LIBS=$ac_check_lib_save_LIBS
19895 fi
19896 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19897 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19898 if test $ac_cv_lib_cExt_drand48 = yes; then
19899   LIBS="$LIBS -lcExt"
19900 fi
19901
19902       else
19903                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19904       fi
19905                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19906 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19907 if test "${wx_cv_gccversion+set}" = set; then
19908   echo $ECHO_N "(cached) $ECHO_C" >&6
19909 else
19910
19911           if test "$cross_compiling" = yes; then
19912                 wx_cv_gccversion="EMX2"
19913
19914 else
19915   cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h.  */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h.  */
19921
19922                   #include <stdio.h>
19923
19924                   int main()
19925                   {
19926                       FILE *f=fopen("conftestval", "w");
19927                       if (!f) exit(1);
19928                       fprintf(f,
19929                   #if (__GNUC__ < 3)
19930                               "EMX2"
19931                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19932                               "EMX3"
19933                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19934                               "Innotek5"
19935                   #else
19936                               "Innotek6"
19937                   #endif
19938                       );
19939                       exit(0);
19940                   }
19941
19942 _ACEOF
19943 rm -f conftest$ac_exeext
19944 if { (ac_try="$ac_link"
19945 case "(($ac_try" in
19946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947   *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950   (eval "$ac_link") 2>&5
19951   ac_status=$?
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19954   { (case "(($ac_try" in
19955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19956   *) ac_try_echo=$ac_try;;
19957 esac
19958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19959   (eval "$ac_try") 2>&5
19960   ac_status=$?
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); }; }; then
19963   wx_cv_gccversion=`cat conftestval`
19964 else
19965   echo "$as_me: program exited with status $ac_status" >&5
19966 echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19968
19969 ( exit $ac_status )
19970 wx_cv_gccversion="EMX2"
19971 fi
19972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19973 fi
19974
19975
19976
19977 fi
19978 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19979 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
19980       if test "$wx_cv_gccversion" = "EMX2"; then
19981           LIBS="$LIBS -lstdcpp"
19982           LDFLAGS="$LDFLAGS -Zsysv-signals"
19983       else
19984           if test "$wx_cv_gccversion" = "EMX3"; then
19985               LIBS="$LIBS -lstdcxx -lgcc"
19986               LDFLAGS="$LDFLAGS -Zsysv-signals"
19987           else
19988               LIBS="$LIBS -lstdc++"
19989           fi
19990       fi
19991       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
19992         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19993 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
19994         wxUSE_OMF=yes
19995         enable_omf=yes
19996       fi
19997         ;;
19998   *)
19999
20000       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
20001 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
20002 if test "${ac_cv_string_strcasecmp+set}" = set; then
20003   echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005
20006           cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h.  */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h.  */
20012
20013               #include <string.h>
20014
20015 int
20016 main ()
20017 {
20018
20019                   strcasecmp("foo", "bar");
20020
20021   ;
20022   return 0;
20023 }
20024 _ACEOF
20025 rm -f conftest.$ac_objext conftest$ac_exeext
20026 if { (ac_try="$ac_link"
20027 case "(($ac_try" in
20028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029   *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032   (eval "$ac_link") 2>conftest.er1
20033   ac_status=$?
20034   grep -v '^ *+' conftest.er1 >conftest.err
20035   rm -f conftest.er1
20036   cat conftest.err >&5
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); } && {
20039          test -z "$ac_c_werror_flag" ||
20040          test ! -s conftest.err
20041        } && test -s conftest$ac_exeext &&
20042        $as_test_x conftest$ac_exeext; then
20043   ac_cv_string_strcasecmp=yes
20044 else
20045   echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20047
20048         ac_cv_string_strcasecmp=no
20049
20050 fi
20051
20052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20053       conftest$ac_exeext conftest.$ac_ext
20054
20055 fi
20056 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
20057 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
20058
20059       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
20060           cat >>confdefs.h <<\_ACEOF
20061 #define HAVE_STRCASECMP_IN_STRING_H 1
20062 _ACEOF
20063
20064       else
20065           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
20066 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
20067 if test "${ac_cv_strings_strcasecmp+set}" = set; then
20068   echo $ECHO_N "(cached) $ECHO_C" >&6
20069 else
20070
20071               cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h.  */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h.  */
20077
20078                   #include <strings.h>
20079
20080 int
20081 main ()
20082 {
20083
20084                       strcasecmp("foo", "bar");
20085
20086   ;
20087   return 0;
20088 }
20089 _ACEOF
20090 rm -f conftest.$ac_objext conftest$ac_exeext
20091 if { (ac_try="$ac_link"
20092 case "(($ac_try" in
20093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094   *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097   (eval "$ac_link") 2>conftest.er1
20098   ac_status=$?
20099   grep -v '^ *+' conftest.er1 >conftest.err
20100   rm -f conftest.er1
20101   cat conftest.err >&5
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); } && {
20104          test -z "$ac_c_werror_flag" ||
20105          test ! -s conftest.err
20106        } && test -s conftest$ac_exeext &&
20107        $as_test_x conftest$ac_exeext; then
20108   ac_cv_strings_strcasecmp=yes
20109 else
20110   echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20112
20113         ac_cv_strings_strcasecmp=no
20114
20115 fi
20116
20117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20118       conftest$ac_exeext conftest.$ac_ext
20119
20120 fi
20121 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
20122 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
20123
20124           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
20125               cat >>confdefs.h <<\_ACEOF
20126 #define HAVE_STRCASECMP_IN_STRINGS_H 1
20127 _ACEOF
20128
20129           else
20130               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
20131 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
20132    { (exit 1); exit 1; }; }
20133           fi
20134       fi
20135
20136         ;;
20137 esac
20138
20139
20140 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20142 if test "${ac_cv_header_stdc+set}" = set; then
20143   echo $ECHO_N "(cached) $ECHO_C" >&6
20144 else
20145   cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h.  */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h.  */
20151 #include <stdlib.h>
20152 #include <stdarg.h>
20153 #include <string.h>
20154 #include <float.h>
20155
20156 int
20157 main ()
20158 {
20159
20160   ;
20161   return 0;
20162 }
20163 _ACEOF
20164 rm -f conftest.$ac_objext
20165 if { (ac_try="$ac_compile"
20166 case "(($ac_try" in
20167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168   *) ac_try_echo=$ac_try;;
20169 esac
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171   (eval "$ac_compile") 2>conftest.er1
20172   ac_status=$?
20173   grep -v '^ *+' conftest.er1 >conftest.err
20174   rm -f conftest.er1
20175   cat conftest.err >&5
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); } && {
20178          test -z "$ac_c_werror_flag" ||
20179          test ! -s conftest.err
20180        } && test -s conftest.$ac_objext; then
20181   ac_cv_header_stdc=yes
20182 else
20183   echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20185
20186         ac_cv_header_stdc=no
20187 fi
20188
20189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20190
20191 if test $ac_cv_header_stdc = yes; then
20192   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20193   cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h.  */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h.  */
20199 #include <string.h>
20200
20201 _ACEOF
20202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20203   $EGREP "memchr" >/dev/null 2>&1; then
20204   :
20205 else
20206   ac_cv_header_stdc=no
20207 fi
20208 rm -f conftest*
20209
20210 fi
20211
20212 if test $ac_cv_header_stdc = yes; then
20213   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20214   cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h.  */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h.  */
20220 #include <stdlib.h>
20221
20222 _ACEOF
20223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20224   $EGREP "free" >/dev/null 2>&1; then
20225   :
20226 else
20227   ac_cv_header_stdc=no
20228 fi
20229 rm -f conftest*
20230
20231 fi
20232
20233 if test $ac_cv_header_stdc = yes; then
20234   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20235   if test "$cross_compiling" = yes; then
20236   :
20237 else
20238   cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h.  */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h.  */
20244 #include <ctype.h>
20245 #include <stdlib.h>
20246 #if ((' ' & 0x0FF) == 0x020)
20247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20249 #else
20250 # define ISLOWER(c) \
20251                    (('a' <= (c) && (c) <= 'i') \
20252                      || ('j' <= (c) && (c) <= 'r') \
20253                      || ('s' <= (c) && (c) <= 'z'))
20254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20255 #endif
20256
20257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20258 int
20259 main ()
20260 {
20261   int i;
20262   for (i = 0; i < 256; i++)
20263     if (XOR (islower (i), ISLOWER (i))
20264         || toupper (i) != TOUPPER (i))
20265       return 2;
20266   return 0;
20267 }
20268 _ACEOF
20269 rm -f conftest$ac_exeext
20270 if { (ac_try="$ac_link"
20271 case "(($ac_try" in
20272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273   *) ac_try_echo=$ac_try;;
20274 esac
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276   (eval "$ac_link") 2>&5
20277   ac_status=$?
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20280   { (case "(($ac_try" in
20281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282   *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285   (eval "$ac_try") 2>&5
20286   ac_status=$?
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); }; }; then
20289   :
20290 else
20291   echo "$as_me: program exited with status $ac_status" >&5
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20294
20295 ( exit $ac_status )
20296 ac_cv_header_stdc=no
20297 fi
20298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20299 fi
20300
20301
20302 fi
20303 fi
20304 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20305 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20306 if test $ac_cv_header_stdc = yes; then
20307
20308 cat >>confdefs.h <<\_ACEOF
20309 #define STDC_HEADERS 1
20310 _ACEOF
20311
20312 fi
20313
20314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
20325                   inttypes.h stdint.h unistd.h
20326 do
20327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20331   echo $ECHO_N "(cached) $ECHO_C" >&6
20332 else
20333   cat >conftest.$ac_ext <<_ACEOF
20334 /* confdefs.h.  */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h.  */
20339 $ac_includes_default
20340
20341 #include <$ac_header>
20342 _ACEOF
20343 rm -f conftest.$ac_objext
20344 if { (ac_try="$ac_compile"
20345 case "(($ac_try" in
20346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347   *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350   (eval "$ac_compile") 2>conftest.er1
20351   ac_status=$?
20352   grep -v '^ *+' conftest.er1 >conftest.err
20353   rm -f conftest.er1
20354   cat conftest.err >&5
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); } && {
20357          test -z "$ac_c_werror_flag" ||
20358          test ! -s conftest.err
20359        } && test -s conftest.$ac_objext; then
20360   eval "$as_ac_Header=yes"
20361 else
20362   echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20364
20365         eval "$as_ac_Header=no"
20366 fi
20367
20368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20369 fi
20370 ac_res=`eval echo '${'$as_ac_Header'}'`
20371                { echo "$as_me:$LINENO: result: $ac_res" >&5
20372 echo "${ECHO_T}$ac_res" >&6; }
20373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20374   cat >>confdefs.h <<_ACEOF
20375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20376 _ACEOF
20377
20378 fi
20379
20380 done
20381
20382
20383
20384
20385 for ac_header in langinfo.h wchar.h
20386 do
20387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20391   echo $ECHO_N "(cached) $ECHO_C" >&6
20392 else
20393   cat >conftest.$ac_ext <<_ACEOF
20394 /* confdefs.h.  */
20395 _ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h.  */
20399 $ac_includes_default
20400
20401 #include <$ac_header>
20402 _ACEOF
20403 rm -f conftest.$ac_objext
20404 if { (ac_try="$ac_compile"
20405 case "(($ac_try" in
20406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407   *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410   (eval "$ac_compile") 2>conftest.er1
20411   ac_status=$?
20412   grep -v '^ *+' conftest.er1 >conftest.err
20413   rm -f conftest.er1
20414   cat conftest.err >&5
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); } && {
20417          test -z "$ac_c_werror_flag" ||
20418          test ! -s conftest.err
20419        } && test -s conftest.$ac_objext; then
20420   eval "$as_ac_Header=yes"
20421 else
20422   echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20424
20425         eval "$as_ac_Header=no"
20426 fi
20427
20428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20429 fi
20430 ac_res=`eval echo '${'$as_ac_Header'}'`
20431                { echo "$as_me:$LINENO: result: $ac_res" >&5
20432 echo "${ECHO_T}$ac_res" >&6; }
20433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20434   cat >>confdefs.h <<_ACEOF
20435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20436 _ACEOF
20437
20438 fi
20439
20440 done
20441
20442
20443 if test "$ac_cv_header_wchar_h" != "yes"; then
20444
20445 for ac_header in wcstr.h
20446 do
20447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20451   echo $ECHO_N "(cached) $ECHO_C" >&6
20452 else
20453   cat >conftest.$ac_ext <<_ACEOF
20454 /* confdefs.h.  */
20455 _ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h.  */
20459 $ac_includes_default
20460
20461 #include <$ac_header>
20462 _ACEOF
20463 rm -f conftest.$ac_objext
20464 if { (ac_try="$ac_compile"
20465 case "(($ac_try" in
20466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467   *) ac_try_echo=$ac_try;;
20468 esac
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470   (eval "$ac_compile") 2>conftest.er1
20471   ac_status=$?
20472   grep -v '^ *+' conftest.er1 >conftest.err
20473   rm -f conftest.er1
20474   cat conftest.err >&5
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); } && {
20477          test -z "$ac_c_werror_flag" ||
20478          test ! -s conftest.err
20479        } && test -s conftest.$ac_objext; then
20480   eval "$as_ac_Header=yes"
20481 else
20482   echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20484
20485         eval "$as_ac_Header=no"
20486 fi
20487
20488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20489 fi
20490 ac_res=`eval echo '${'$as_ac_Header'}'`
20491                { echo "$as_me:$LINENO: result: $ac_res" >&5
20492 echo "${ECHO_T}$ac_res" >&6; }
20493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20494   cat >>confdefs.h <<_ACEOF
20495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20496 _ACEOF
20497
20498 fi
20499
20500 done
20501
20502 fi
20503
20504 case "${host}" in
20505   *-pc-os2_emx | *-pc-os2-emx )
20506                   if test $ac_cv_header_langinfo_h = "yes" \
20507                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20508                      -o "$wx_cv_gccversion" = "EMX3" \
20509                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20510           LIBS="$LIBS -lintl"
20511       fi
20512   ;;
20513 esac
20514
20515 if test "$USE_UNIX" = 1 ; then
20516
20517 for ac_header in sys/select.h
20518 do
20519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20523   echo $ECHO_N "(cached) $ECHO_C" >&6
20524 else
20525   cat >conftest.$ac_ext <<_ACEOF
20526 /* confdefs.h.  */
20527 _ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h.  */
20531 $ac_includes_default
20532
20533 #include <$ac_header>
20534 _ACEOF
20535 rm -f conftest.$ac_objext
20536 if { (ac_try="$ac_compile"
20537 case "(($ac_try" in
20538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539   *) ac_try_echo=$ac_try;;
20540 esac
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542   (eval "$ac_compile") 2>conftest.er1
20543   ac_status=$?
20544   grep -v '^ *+' conftest.er1 >conftest.err
20545   rm -f conftest.er1
20546   cat conftest.err >&5
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } && {
20549          test -z "$ac_c_werror_flag" ||
20550          test ! -s conftest.err
20551        } && test -s conftest.$ac_objext; then
20552   eval "$as_ac_Header=yes"
20553 else
20554   echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20556
20557         eval "$as_ac_Header=no"
20558 fi
20559
20560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20561 fi
20562 ac_res=`eval echo '${'$as_ac_Header'}'`
20563                { echo "$as_me:$LINENO: result: $ac_res" >&5
20564 echo "${ECHO_T}$ac_res" >&6; }
20565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20566   cat >>confdefs.h <<_ACEOF
20567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20568 _ACEOF
20569
20570 fi
20571
20572 done
20573
20574 fi
20575
20576
20577 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20578 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20579 if test "${ac_cv_c_const+set}" = set; then
20580   echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582   cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h.  */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h.  */
20588
20589 int
20590 main ()
20591 {
20592 /* FIXME: Include the comments suggested by Paul. */
20593 #ifndef __cplusplus
20594   /* Ultrix mips cc rejects this.  */
20595   typedef int charset[2];
20596   const charset cs;
20597   /* SunOS 4.1.1 cc rejects this.  */
20598   char const *const *pcpcc;
20599   char **ppc;
20600   /* NEC SVR4.0.2 mips cc rejects this.  */
20601   struct point {int x, y;};
20602   static struct point const zero = {0,0};
20603   /* AIX XL C 1.02.0.0 rejects this.
20604      It does not let you subtract one const X* pointer from another in
20605      an arm of an if-expression whose if-part is not a constant
20606      expression */
20607   const char *g = "string";
20608   pcpcc = &g + (g ? g-g : 0);
20609   /* HPUX 7.0 cc rejects these. */
20610   ++pcpcc;
20611   ppc = (char**) pcpcc;
20612   pcpcc = (char const *const *) ppc;
20613   { /* SCO 3.2v4 cc rejects this.  */
20614     char *t;
20615     char const *s = 0 ? (char *) 0 : (char const *) 0;
20616
20617     *t++ = 0;
20618     if (s) return 0;
20619   }
20620   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20621     int x[] = {25, 17};
20622     const int *foo = &x[0];
20623     ++foo;
20624   }
20625   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20626     typedef const int *iptr;
20627     iptr p = 0;
20628     ++p;
20629   }
20630   { /* AIX XL C 1.02.0.0 rejects this saying
20631        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20632     struct s { int j; const int *ap[3]; };
20633     struct s *b; b->j = 5;
20634   }
20635   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20636     const int foo = 10;
20637     if (!foo) return 0;
20638   }
20639   return !cs[0] && !zero.x;
20640 #endif
20641
20642   ;
20643   return 0;
20644 }
20645 _ACEOF
20646 rm -f conftest.$ac_objext
20647 if { (ac_try="$ac_compile"
20648 case "(($ac_try" in
20649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650   *) ac_try_echo=$ac_try;;
20651 esac
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653   (eval "$ac_compile") 2>conftest.er1
20654   ac_status=$?
20655   grep -v '^ *+' conftest.er1 >conftest.err
20656   rm -f conftest.er1
20657   cat conftest.err >&5
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); } && {
20660          test -z "$ac_c_werror_flag" ||
20661          test ! -s conftest.err
20662        } && test -s conftest.$ac_objext; then
20663   ac_cv_c_const=yes
20664 else
20665   echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20667
20668         ac_cv_c_const=no
20669 fi
20670
20671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20672 fi
20673 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20674 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20675 if test $ac_cv_c_const = no; then
20676
20677 cat >>confdefs.h <<\_ACEOF
20678 #define const
20679 _ACEOF
20680
20681 fi
20682
20683 { echo "$as_me:$LINENO: checking for inline" >&5
20684 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20685 if test "${ac_cv_c_inline+set}" = set; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
20688   ac_cv_c_inline=no
20689 for ac_kw in inline __inline__ __inline; do
20690   cat >conftest.$ac_ext <<_ACEOF
20691 /* confdefs.h.  */
20692 _ACEOF
20693 cat confdefs.h >>conftest.$ac_ext
20694 cat >>conftest.$ac_ext <<_ACEOF
20695 /* end confdefs.h.  */
20696 #ifndef __cplusplus
20697 typedef int foo_t;
20698 static $ac_kw foo_t static_foo () {return 0; }
20699 $ac_kw foo_t foo () {return 0; }
20700 #endif
20701
20702 _ACEOF
20703 rm -f conftest.$ac_objext
20704 if { (ac_try="$ac_compile"
20705 case "(($ac_try" in
20706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707   *) ac_try_echo=$ac_try;;
20708 esac
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710   (eval "$ac_compile") 2>conftest.er1
20711   ac_status=$?
20712   grep -v '^ *+' conftest.er1 >conftest.err
20713   rm -f conftest.er1
20714   cat conftest.err >&5
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); } && {
20717          test -z "$ac_c_werror_flag" ||
20718          test ! -s conftest.err
20719        } && test -s conftest.$ac_objext; then
20720   ac_cv_c_inline=$ac_kw
20721 else
20722   echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725
20726 fi
20727
20728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20729   test "$ac_cv_c_inline" != no && break
20730 done
20731
20732 fi
20733 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20734 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20735
20736
20737 case $ac_cv_c_inline in
20738   inline | yes) ;;
20739   *)
20740     case $ac_cv_c_inline in
20741       no) ac_val=;;
20742       *) ac_val=$ac_cv_c_inline;;
20743     esac
20744     cat >>confdefs.h <<_ACEOF
20745 #ifndef __cplusplus
20746 #define inline $ac_val
20747 #endif
20748 _ACEOF
20749     ;;
20750 esac
20751
20752
20753 { echo "$as_me:$LINENO: checking for short" >&5
20754 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20755 if test "${ac_cv_type_short+set}" = set; then
20756   echo $ECHO_N "(cached) $ECHO_C" >&6
20757 else
20758   cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764 $ac_includes_default
20765 typedef short ac__type_new_;
20766 int
20767 main ()
20768 {
20769 if ((ac__type_new_ *) 0)
20770   return 0;
20771 if (sizeof (ac__type_new_))
20772   return 0;
20773   ;
20774   return 0;
20775 }
20776 _ACEOF
20777 rm -f conftest.$ac_objext
20778 if { (ac_try="$ac_compile"
20779 case "(($ac_try" in
20780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781   *) ac_try_echo=$ac_try;;
20782 esac
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784   (eval "$ac_compile") 2>conftest.er1
20785   ac_status=$?
20786   grep -v '^ *+' conftest.er1 >conftest.err
20787   rm -f conftest.er1
20788   cat conftest.err >&5
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); } && {
20791          test -z "$ac_c_werror_flag" ||
20792          test ! -s conftest.err
20793        } && test -s conftest.$ac_objext; then
20794   ac_cv_type_short=yes
20795 else
20796   echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799         ac_cv_type_short=no
20800 fi
20801
20802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20803 fi
20804 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20805 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20806
20807 # The cast to long int works around a bug in the HP C Compiler
20808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20810 # This bug is HP SR number 8606223364.
20811 { echo "$as_me:$LINENO: checking size of short" >&5
20812 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20813 if test "${ac_cv_sizeof_short+set}" = set; then
20814   echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816   if test "$cross_compiling" = yes; then
20817   # Depending upon the size, compute the lo and hi bounds.
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824 $ac_includes_default
20825    typedef short ac__type_sizeof_;
20826 int
20827 main ()
20828 {
20829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20830 test_array [0] = 0
20831
20832   ;
20833   return 0;
20834 }
20835 _ACEOF
20836 rm -f conftest.$ac_objext
20837 if { (ac_try="$ac_compile"
20838 case "(($ac_try" in
20839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840   *) ac_try_echo=$ac_try;;
20841 esac
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843   (eval "$ac_compile") 2>conftest.er1
20844   ac_status=$?
20845   grep -v '^ *+' conftest.er1 >conftest.err
20846   rm -f conftest.er1
20847   cat conftest.err >&5
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); } && {
20850          test -z "$ac_c_werror_flag" ||
20851          test ! -s conftest.err
20852        } && test -s conftest.$ac_objext; then
20853   ac_lo=0 ac_mid=0
20854   while :; do
20855     cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h.  */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h.  */
20861 $ac_includes_default
20862    typedef short ac__type_sizeof_;
20863 int
20864 main ()
20865 {
20866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20867 test_array [0] = 0
20868
20869   ;
20870   return 0;
20871 }
20872 _ACEOF
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_compile") 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } && {
20887          test -z "$ac_c_werror_flag" ||
20888          test ! -s conftest.err
20889        } && test -s conftest.$ac_objext; then
20890   ac_hi=$ac_mid; break
20891 else
20892   echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895         ac_lo=`expr $ac_mid + 1`
20896                         if test $ac_lo -le $ac_mid; then
20897                           ac_lo= ac_hi=
20898                           break
20899                         fi
20900                         ac_mid=`expr 2 '*' $ac_mid + 1`
20901 fi
20902
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904   done
20905 else
20906   echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909         cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h.  */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h.  */
20915 $ac_includes_default
20916    typedef short ac__type_sizeof_;
20917 int
20918 main ()
20919 {
20920 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20921 test_array [0] = 0
20922
20923   ;
20924   return 0;
20925 }
20926 _ACEOF
20927 rm -f conftest.$ac_objext
20928 if { (ac_try="$ac_compile"
20929 case "(($ac_try" in
20930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931   *) ac_try_echo=$ac_try;;
20932 esac
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934   (eval "$ac_compile") 2>conftest.er1
20935   ac_status=$?
20936   grep -v '^ *+' conftest.er1 >conftest.err
20937   rm -f conftest.er1
20938   cat conftest.err >&5
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); } && {
20941          test -z "$ac_c_werror_flag" ||
20942          test ! -s conftest.err
20943        } && test -s conftest.$ac_objext; then
20944   ac_hi=-1 ac_mid=-1
20945   while :; do
20946     cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952 $ac_includes_default
20953    typedef short ac__type_sizeof_;
20954 int
20955 main ()
20956 {
20957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20958 test_array [0] = 0
20959
20960   ;
20961   return 0;
20962 }
20963 _ACEOF
20964 rm -f conftest.$ac_objext
20965 if { (ac_try="$ac_compile"
20966 case "(($ac_try" in
20967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968   *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971   (eval "$ac_compile") 2>conftest.er1
20972   ac_status=$?
20973   grep -v '^ *+' conftest.er1 >conftest.err
20974   rm -f conftest.er1
20975   cat conftest.err >&5
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); } && {
20978          test -z "$ac_c_werror_flag" ||
20979          test ! -s conftest.err
20980        } && test -s conftest.$ac_objext; then
20981   ac_lo=$ac_mid; break
20982 else
20983   echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20985
20986         ac_hi=`expr '(' $ac_mid ')' - 1`
20987                         if test $ac_mid -le $ac_hi; then
20988                           ac_lo= ac_hi=
20989                           break
20990                         fi
20991                         ac_mid=`expr 2 '*' $ac_mid`
20992 fi
20993
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995   done
20996 else
20997   echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000         ac_lo= ac_hi=
21001 fi
21002
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 fi
21005
21006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007 # Binary search between lo and hi bounds.
21008 while test "x$ac_lo" != "x$ac_hi"; do
21009   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21010   cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h.  */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h.  */
21016 $ac_includes_default
21017    typedef short ac__type_sizeof_;
21018 int
21019 main ()
21020 {
21021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21022 test_array [0] = 0
21023
21024   ;
21025   return 0;
21026 }
21027 _ACEOF
21028 rm -f conftest.$ac_objext
21029 if { (ac_try="$ac_compile"
21030 case "(($ac_try" in
21031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032   *) ac_try_echo=$ac_try;;
21033 esac
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035   (eval "$ac_compile") 2>conftest.er1
21036   ac_status=$?
21037   grep -v '^ *+' conftest.er1 >conftest.err
21038   rm -f conftest.er1
21039   cat conftest.err >&5
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); } && {
21042          test -z "$ac_c_werror_flag" ||
21043          test ! -s conftest.err
21044        } && test -s conftest.$ac_objext; then
21045   ac_hi=$ac_mid
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050         ac_lo=`expr '(' $ac_mid ')' + 1`
21051 fi
21052
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054 done
21055 case $ac_lo in
21056 ?*) ac_cv_sizeof_short=$ac_lo;;
21057 '') if test "$ac_cv_type_short" = yes; then
21058      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21059 See \`config.log' for more details." >&5
21060 echo "$as_me: error: cannot compute sizeof (short)
21061 See \`config.log' for more details." >&2;}
21062    { (exit 77); exit 77; }; }
21063    else
21064      ac_cv_sizeof_short=0
21065    fi ;;
21066 esac
21067 else
21068   cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074 $ac_includes_default
21075    typedef short ac__type_sizeof_;
21076 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21077 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21078 #include <stdio.h>
21079 #include <stdlib.h>
21080 int
21081 main ()
21082 {
21083
21084   FILE *f = fopen ("conftest.val", "w");
21085   if (! f)
21086     return 1;
21087   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21088     {
21089       long int i = longval ();
21090       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21091         return 1;
21092       fprintf (f, "%ld\n", i);
21093     }
21094   else
21095     {
21096       unsigned long int i = ulongval ();
21097       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21098         return 1;
21099       fprintf (f, "%lu\n", i);
21100     }
21101   return ferror (f) || fclose (f) != 0;
21102
21103   ;
21104   return 0;
21105 }
21106 _ACEOF
21107 rm -f conftest$ac_exeext
21108 if { (ac_try="$ac_link"
21109 case "(($ac_try" in
21110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111   *) ac_try_echo=$ac_try;;
21112 esac
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114   (eval "$ac_link") 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21118   { (case "(($ac_try" in
21119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120   *) ac_try_echo=$ac_try;;
21121 esac
21122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123   (eval "$ac_try") 2>&5
21124   ac_status=$?
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); }; }; then
21127   ac_cv_sizeof_short=`cat conftest.val`
21128 else
21129   echo "$as_me: program exited with status $ac_status" >&5
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21132
21133 ( exit $ac_status )
21134 if test "$ac_cv_type_short" = yes; then
21135      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21136 See \`config.log' for more details." >&5
21137 echo "$as_me: error: cannot compute sizeof (short)
21138 See \`config.log' for more details." >&2;}
21139    { (exit 77); exit 77; }; }
21140    else
21141      ac_cv_sizeof_short=0
21142    fi
21143 fi
21144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21145 fi
21146 rm -f conftest.val
21147 fi
21148 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21149 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21150
21151
21152
21153 cat >>confdefs.h <<_ACEOF
21154 #define SIZEOF_SHORT $ac_cv_sizeof_short
21155 _ACEOF
21156
21157
21158 { echo "$as_me:$LINENO: checking for void *" >&5
21159 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21160 if test "${ac_cv_type_void_p+set}" = set; then
21161   echo $ECHO_N "(cached) $ECHO_C" >&6
21162 else
21163   cat >conftest.$ac_ext <<_ACEOF
21164 /* confdefs.h.  */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h.  */
21169 $ac_includes_default
21170 typedef void * ac__type_new_;
21171 int
21172 main ()
21173 {
21174 if ((ac__type_new_ *) 0)
21175   return 0;
21176 if (sizeof (ac__type_new_))
21177   return 0;
21178   ;
21179   return 0;
21180 }
21181 _ACEOF
21182 rm -f conftest.$ac_objext
21183 if { (ac_try="$ac_compile"
21184 case "(($ac_try" in
21185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186   *) ac_try_echo=$ac_try;;
21187 esac
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189   (eval "$ac_compile") 2>conftest.er1
21190   ac_status=$?
21191   grep -v '^ *+' conftest.er1 >conftest.err
21192   rm -f conftest.er1
21193   cat conftest.err >&5
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); } && {
21196          test -z "$ac_c_werror_flag" ||
21197          test ! -s conftest.err
21198        } && test -s conftest.$ac_objext; then
21199   ac_cv_type_void_p=yes
21200 else
21201   echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21203
21204         ac_cv_type_void_p=no
21205 fi
21206
21207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21208 fi
21209 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21210 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21211
21212 # The cast to long int works around a bug in the HP C Compiler
21213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21215 # This bug is HP SR number 8606223364.
21216 { echo "$as_me:$LINENO: checking size of void *" >&5
21217 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21218 if test "${ac_cv_sizeof_void_p+set}" = set; then
21219   echo $ECHO_N "(cached) $ECHO_C" >&6
21220 else
21221   if test "$cross_compiling" = yes; then
21222   # Depending upon the size, compute the lo and hi bounds.
21223 cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h.  */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h.  */
21229 $ac_includes_default
21230    typedef void * ac__type_sizeof_;
21231 int
21232 main ()
21233 {
21234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21235 test_array [0] = 0
21236
21237   ;
21238   return 0;
21239 }
21240 _ACEOF
21241 rm -f conftest.$ac_objext
21242 if { (ac_try="$ac_compile"
21243 case "(($ac_try" in
21244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245   *) ac_try_echo=$ac_try;;
21246 esac
21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248   (eval "$ac_compile") 2>conftest.er1
21249   ac_status=$?
21250   grep -v '^ *+' conftest.er1 >conftest.err
21251   rm -f conftest.er1
21252   cat conftest.err >&5
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); } && {
21255          test -z "$ac_c_werror_flag" ||
21256          test ! -s conftest.err
21257        } && test -s conftest.$ac_objext; then
21258   ac_lo=0 ac_mid=0
21259   while :; do
21260     cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h.  */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h.  */
21266 $ac_includes_default
21267    typedef void * ac__type_sizeof_;
21268 int
21269 main ()
21270 {
21271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21272 test_array [0] = 0
21273
21274   ;
21275   return 0;
21276 }
21277 _ACEOF
21278 rm -f conftest.$ac_objext
21279 if { (ac_try="$ac_compile"
21280 case "(($ac_try" in
21281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282   *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285   (eval "$ac_compile") 2>conftest.er1
21286   ac_status=$?
21287   grep -v '^ *+' conftest.er1 >conftest.err
21288   rm -f conftest.er1
21289   cat conftest.err >&5
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); } && {
21292          test -z "$ac_c_werror_flag" ||
21293          test ! -s conftest.err
21294        } && test -s conftest.$ac_objext; then
21295   ac_hi=$ac_mid; break
21296 else
21297   echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21299
21300         ac_lo=`expr $ac_mid + 1`
21301                         if test $ac_lo -le $ac_mid; then
21302                           ac_lo= ac_hi=
21303                           break
21304                         fi
21305                         ac_mid=`expr 2 '*' $ac_mid + 1`
21306 fi
21307
21308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21309   done
21310 else
21311   echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21313
21314         cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h.  */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h.  */
21320 $ac_includes_default
21321    typedef void * ac__type_sizeof_;
21322 int
21323 main ()
21324 {
21325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21326 test_array [0] = 0
21327
21328   ;
21329   return 0;
21330 }
21331 _ACEOF
21332 rm -f conftest.$ac_objext
21333 if { (ac_try="$ac_compile"
21334 case "(($ac_try" in
21335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336   *) ac_try_echo=$ac_try;;
21337 esac
21338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339   (eval "$ac_compile") 2>conftest.er1
21340   ac_status=$?
21341   grep -v '^ *+' conftest.er1 >conftest.err
21342   rm -f conftest.er1
21343   cat conftest.err >&5
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); } && {
21346          test -z "$ac_c_werror_flag" ||
21347          test ! -s conftest.err
21348        } && test -s conftest.$ac_objext; then
21349   ac_hi=-1 ac_mid=-1
21350   while :; do
21351     cat >conftest.$ac_ext <<_ACEOF
21352 /* confdefs.h.  */
21353 _ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h.  */
21357 $ac_includes_default
21358    typedef void * ac__type_sizeof_;
21359 int
21360 main ()
21361 {
21362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21363 test_array [0] = 0
21364
21365   ;
21366   return 0;
21367 }
21368 _ACEOF
21369 rm -f conftest.$ac_objext
21370 if { (ac_try="$ac_compile"
21371 case "(($ac_try" in
21372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373   *) ac_try_echo=$ac_try;;
21374 esac
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376   (eval "$ac_compile") 2>conftest.er1
21377   ac_status=$?
21378   grep -v '^ *+' conftest.er1 >conftest.err
21379   rm -f conftest.er1
21380   cat conftest.err >&5
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); } && {
21383          test -z "$ac_c_werror_flag" ||
21384          test ! -s conftest.err
21385        } && test -s conftest.$ac_objext; then
21386   ac_lo=$ac_mid; break
21387 else
21388   echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391         ac_hi=`expr '(' $ac_mid ')' - 1`
21392                         if test $ac_mid -le $ac_hi; then
21393                           ac_lo= ac_hi=
21394                           break
21395                         fi
21396                         ac_mid=`expr 2 '*' $ac_mid`
21397 fi
21398
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400   done
21401 else
21402   echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21404
21405         ac_lo= ac_hi=
21406 fi
21407
21408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409 fi
21410
21411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412 # Binary search between lo and hi bounds.
21413 while test "x$ac_lo" != "x$ac_hi"; do
21414   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21415   cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h.  */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h.  */
21421 $ac_includes_default
21422    typedef void * ac__type_sizeof_;
21423 int
21424 main ()
21425 {
21426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21427 test_array [0] = 0
21428
21429   ;
21430   return 0;
21431 }
21432 _ACEOF
21433 rm -f conftest.$ac_objext
21434 if { (ac_try="$ac_compile"
21435 case "(($ac_try" in
21436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437   *) ac_try_echo=$ac_try;;
21438 esac
21439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440   (eval "$ac_compile") 2>conftest.er1
21441   ac_status=$?
21442   grep -v '^ *+' conftest.er1 >conftest.err
21443   rm -f conftest.er1
21444   cat conftest.err >&5
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); } && {
21447          test -z "$ac_c_werror_flag" ||
21448          test ! -s conftest.err
21449        } && test -s conftest.$ac_objext; then
21450   ac_hi=$ac_mid
21451 else
21452   echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455         ac_lo=`expr '(' $ac_mid ')' + 1`
21456 fi
21457
21458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21459 done
21460 case $ac_lo in
21461 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21462 '') if test "$ac_cv_type_void_p" = yes; then
21463      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21464 See \`config.log' for more details." >&5
21465 echo "$as_me: error: cannot compute sizeof (void *)
21466 See \`config.log' for more details." >&2;}
21467    { (exit 77); exit 77; }; }
21468    else
21469      ac_cv_sizeof_void_p=0
21470    fi ;;
21471 esac
21472 else
21473   cat >conftest.$ac_ext <<_ACEOF
21474 /* confdefs.h.  */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h.  */
21479 $ac_includes_default
21480    typedef void * ac__type_sizeof_;
21481 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21482 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21483 #include <stdio.h>
21484 #include <stdlib.h>
21485 int
21486 main ()
21487 {
21488
21489   FILE *f = fopen ("conftest.val", "w");
21490   if (! f)
21491     return 1;
21492   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21493     {
21494       long int i = longval ();
21495       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21496         return 1;
21497       fprintf (f, "%ld\n", i);
21498     }
21499   else
21500     {
21501       unsigned long int i = ulongval ();
21502       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21503         return 1;
21504       fprintf (f, "%lu\n", i);
21505     }
21506   return ferror (f) || fclose (f) != 0;
21507
21508   ;
21509   return 0;
21510 }
21511 _ACEOF
21512 rm -f conftest$ac_exeext
21513 if { (ac_try="$ac_link"
21514 case "(($ac_try" in
21515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516   *) ac_try_echo=$ac_try;;
21517 esac
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519   (eval "$ac_link") 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21523   { (case "(($ac_try" in
21524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525   *) ac_try_echo=$ac_try;;
21526 esac
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528   (eval "$ac_try") 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); }; }; then
21532   ac_cv_sizeof_void_p=`cat conftest.val`
21533 else
21534   echo "$as_me: program exited with status $ac_status" >&5
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538 ( exit $ac_status )
21539 if test "$ac_cv_type_void_p" = yes; then
21540      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21541 See \`config.log' for more details." >&5
21542 echo "$as_me: error: cannot compute sizeof (void *)
21543 See \`config.log' for more details." >&2;}
21544    { (exit 77); exit 77; }; }
21545    else
21546      ac_cv_sizeof_void_p=0
21547    fi
21548 fi
21549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21550 fi
21551 rm -f conftest.val
21552 fi
21553 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21554 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21555
21556
21557
21558 cat >>confdefs.h <<_ACEOF
21559 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21560 _ACEOF
21561
21562
21563 { echo "$as_me:$LINENO: checking for int" >&5
21564 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21565 if test "${ac_cv_type_int+set}" = set; then
21566   echo $ECHO_N "(cached) $ECHO_C" >&6
21567 else
21568   cat >conftest.$ac_ext <<_ACEOF
21569 /* confdefs.h.  */
21570 _ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h.  */
21574 $ac_includes_default
21575 typedef int ac__type_new_;
21576 int
21577 main ()
21578 {
21579 if ((ac__type_new_ *) 0)
21580   return 0;
21581 if (sizeof (ac__type_new_))
21582   return 0;
21583   ;
21584   return 0;
21585 }
21586 _ACEOF
21587 rm -f conftest.$ac_objext
21588 if { (ac_try="$ac_compile"
21589 case "(($ac_try" in
21590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591   *) ac_try_echo=$ac_try;;
21592 esac
21593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594   (eval "$ac_compile") 2>conftest.er1
21595   ac_status=$?
21596   grep -v '^ *+' conftest.er1 >conftest.err
21597   rm -f conftest.er1
21598   cat conftest.err >&5
21599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600   (exit $ac_status); } && {
21601          test -z "$ac_c_werror_flag" ||
21602          test ! -s conftest.err
21603        } && test -s conftest.$ac_objext; then
21604   ac_cv_type_int=yes
21605 else
21606   echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21608
21609         ac_cv_type_int=no
21610 fi
21611
21612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21613 fi
21614 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21615 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21616
21617 # The cast to long int works around a bug in the HP C Compiler
21618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21620 # This bug is HP SR number 8606223364.
21621 { echo "$as_me:$LINENO: checking size of int" >&5
21622 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21623 if test "${ac_cv_sizeof_int+set}" = set; then
21624   echo $ECHO_N "(cached) $ECHO_C" >&6
21625 else
21626   if test "$cross_compiling" = yes; then
21627   # Depending upon the size, compute the lo and hi bounds.
21628 cat >conftest.$ac_ext <<_ACEOF
21629 /* confdefs.h.  */
21630 _ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h.  */
21634 $ac_includes_default
21635    typedef int ac__type_sizeof_;
21636 int
21637 main ()
21638 {
21639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21640 test_array [0] = 0
21641
21642   ;
21643   return 0;
21644 }
21645 _ACEOF
21646 rm -f conftest.$ac_objext
21647 if { (ac_try="$ac_compile"
21648 case "(($ac_try" in
21649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650   *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653   (eval "$ac_compile") 2>conftest.er1
21654   ac_status=$?
21655   grep -v '^ *+' conftest.er1 >conftest.err
21656   rm -f conftest.er1
21657   cat conftest.err >&5
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); } && {
21660          test -z "$ac_c_werror_flag" ||
21661          test ! -s conftest.err
21662        } && test -s conftest.$ac_objext; then
21663   ac_lo=0 ac_mid=0
21664   while :; do
21665     cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h.  */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h.  */
21671 $ac_includes_default
21672    typedef int ac__type_sizeof_;
21673 int
21674 main ()
21675 {
21676 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21677 test_array [0] = 0
21678
21679   ;
21680   return 0;
21681 }
21682 _ACEOF
21683 rm -f conftest.$ac_objext
21684 if { (ac_try="$ac_compile"
21685 case "(($ac_try" in
21686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687   *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690   (eval "$ac_compile") 2>conftest.er1
21691   ac_status=$?
21692   grep -v '^ *+' conftest.er1 >conftest.err
21693   rm -f conftest.er1
21694   cat conftest.err >&5
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); } && {
21697          test -z "$ac_c_werror_flag" ||
21698          test ! -s conftest.err
21699        } && test -s conftest.$ac_objext; then
21700   ac_hi=$ac_mid; break
21701 else
21702   echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21704
21705         ac_lo=`expr $ac_mid + 1`
21706                         if test $ac_lo -le $ac_mid; then
21707                           ac_lo= ac_hi=
21708                           break
21709                         fi
21710                         ac_mid=`expr 2 '*' $ac_mid + 1`
21711 fi
21712
21713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21714   done
21715 else
21716   echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21718
21719         cat >conftest.$ac_ext <<_ACEOF
21720 /* confdefs.h.  */
21721 _ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h.  */
21725 $ac_includes_default
21726    typedef int ac__type_sizeof_;
21727 int
21728 main ()
21729 {
21730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21731 test_array [0] = 0
21732
21733   ;
21734   return 0;
21735 }
21736 _ACEOF
21737 rm -f conftest.$ac_objext
21738 if { (ac_try="$ac_compile"
21739 case "(($ac_try" in
21740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741   *) ac_try_echo=$ac_try;;
21742 esac
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744   (eval "$ac_compile") 2>conftest.er1
21745   ac_status=$?
21746   grep -v '^ *+' conftest.er1 >conftest.err
21747   rm -f conftest.er1
21748   cat conftest.err >&5
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); } && {
21751          test -z "$ac_c_werror_flag" ||
21752          test ! -s conftest.err
21753        } && test -s conftest.$ac_objext; then
21754   ac_hi=-1 ac_mid=-1
21755   while :; do
21756     cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h.  */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h.  */
21762 $ac_includes_default
21763    typedef int ac__type_sizeof_;
21764 int
21765 main ()
21766 {
21767 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21768 test_array [0] = 0
21769
21770   ;
21771   return 0;
21772 }
21773 _ACEOF
21774 rm -f conftest.$ac_objext
21775 if { (ac_try="$ac_compile"
21776 case "(($ac_try" in
21777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778   *) ac_try_echo=$ac_try;;
21779 esac
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781   (eval "$ac_compile") 2>conftest.er1
21782   ac_status=$?
21783   grep -v '^ *+' conftest.er1 >conftest.err
21784   rm -f conftest.er1
21785   cat conftest.err >&5
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); } && {
21788          test -z "$ac_c_werror_flag" ||
21789          test ! -s conftest.err
21790        } && test -s conftest.$ac_objext; then
21791   ac_lo=$ac_mid; break
21792 else
21793   echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21795
21796         ac_hi=`expr '(' $ac_mid ')' - 1`
21797                         if test $ac_mid -le $ac_hi; then
21798                           ac_lo= ac_hi=
21799                           break
21800                         fi
21801                         ac_mid=`expr 2 '*' $ac_mid`
21802 fi
21803
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805   done
21806 else
21807   echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810         ac_lo= ac_hi=
21811 fi
21812
21813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21814 fi
21815
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 # Binary search between lo and hi bounds.
21818 while test "x$ac_lo" != "x$ac_hi"; do
21819   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21820   cat >conftest.$ac_ext <<_ACEOF
21821 /* confdefs.h.  */
21822 _ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h.  */
21826 $ac_includes_default
21827    typedef int ac__type_sizeof_;
21828 int
21829 main ()
21830 {
21831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21832 test_array [0] = 0
21833
21834   ;
21835   return 0;
21836 }
21837 _ACEOF
21838 rm -f conftest.$ac_objext
21839 if { (ac_try="$ac_compile"
21840 case "(($ac_try" in
21841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842   *) ac_try_echo=$ac_try;;
21843 esac
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845   (eval "$ac_compile") 2>conftest.er1
21846   ac_status=$?
21847   grep -v '^ *+' conftest.er1 >conftest.err
21848   rm -f conftest.er1
21849   cat conftest.err >&5
21850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851   (exit $ac_status); } && {
21852          test -z "$ac_c_werror_flag" ||
21853          test ! -s conftest.err
21854        } && test -s conftest.$ac_objext; then
21855   ac_hi=$ac_mid
21856 else
21857   echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21859
21860         ac_lo=`expr '(' $ac_mid ')' + 1`
21861 fi
21862
21863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21864 done
21865 case $ac_lo in
21866 ?*) ac_cv_sizeof_int=$ac_lo;;
21867 '') if test "$ac_cv_type_int" = yes; then
21868      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21869 See \`config.log' for more details." >&5
21870 echo "$as_me: error: cannot compute sizeof (int)
21871 See \`config.log' for more details." >&2;}
21872    { (exit 77); exit 77; }; }
21873    else
21874      ac_cv_sizeof_int=0
21875    fi ;;
21876 esac
21877 else
21878   cat >conftest.$ac_ext <<_ACEOF
21879 /* confdefs.h.  */
21880 _ACEOF
21881 cat confdefs.h >>conftest.$ac_ext
21882 cat >>conftest.$ac_ext <<_ACEOF
21883 /* end confdefs.h.  */
21884 $ac_includes_default
21885    typedef int ac__type_sizeof_;
21886 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21887 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21888 #include <stdio.h>
21889 #include <stdlib.h>
21890 int
21891 main ()
21892 {
21893
21894   FILE *f = fopen ("conftest.val", "w");
21895   if (! f)
21896     return 1;
21897   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21898     {
21899       long int i = longval ();
21900       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21901         return 1;
21902       fprintf (f, "%ld\n", i);
21903     }
21904   else
21905     {
21906       unsigned long int i = ulongval ();
21907       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21908         return 1;
21909       fprintf (f, "%lu\n", i);
21910     }
21911   return ferror (f) || fclose (f) != 0;
21912
21913   ;
21914   return 0;
21915 }
21916 _ACEOF
21917 rm -f conftest$ac_exeext
21918 if { (ac_try="$ac_link"
21919 case "(($ac_try" in
21920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921   *) ac_try_echo=$ac_try;;
21922 esac
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924   (eval "$ac_link") 2>&5
21925   ac_status=$?
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21928   { (case "(($ac_try" in
21929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930   *) ac_try_echo=$ac_try;;
21931 esac
21932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21933   (eval "$ac_try") 2>&5
21934   ac_status=$?
21935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936   (exit $ac_status); }; }; then
21937   ac_cv_sizeof_int=`cat conftest.val`
21938 else
21939   echo "$as_me: program exited with status $ac_status" >&5
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943 ( exit $ac_status )
21944 if test "$ac_cv_type_int" = yes; then
21945      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21946 See \`config.log' for more details." >&5
21947 echo "$as_me: error: cannot compute sizeof (int)
21948 See \`config.log' for more details." >&2;}
21949    { (exit 77); exit 77; }; }
21950    else
21951      ac_cv_sizeof_int=0
21952    fi
21953 fi
21954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21955 fi
21956 rm -f conftest.val
21957 fi
21958 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21959 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21960
21961
21962
21963 cat >>confdefs.h <<_ACEOF
21964 #define SIZEOF_INT $ac_cv_sizeof_int
21965 _ACEOF
21966
21967
21968 { echo "$as_me:$LINENO: checking for long" >&5
21969 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21970 if test "${ac_cv_type_long+set}" = set; then
21971   echo $ECHO_N "(cached) $ECHO_C" >&6
21972 else
21973   cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h.  */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h.  */
21979 $ac_includes_default
21980 typedef long ac__type_new_;
21981 int
21982 main ()
21983 {
21984 if ((ac__type_new_ *) 0)
21985   return 0;
21986 if (sizeof (ac__type_new_))
21987   return 0;
21988   ;
21989   return 0;
21990 }
21991 _ACEOF
21992 rm -f conftest.$ac_objext
21993 if { (ac_try="$ac_compile"
21994 case "(($ac_try" in
21995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996   *) ac_try_echo=$ac_try;;
21997 esac
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999   (eval "$ac_compile") 2>conftest.er1
22000   ac_status=$?
22001   grep -v '^ *+' conftest.er1 >conftest.err
22002   rm -f conftest.er1
22003   cat conftest.err >&5
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); } && {
22006          test -z "$ac_c_werror_flag" ||
22007          test ! -s conftest.err
22008        } && test -s conftest.$ac_objext; then
22009   ac_cv_type_long=yes
22010 else
22011   echo "$as_me: failed program was:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22013
22014         ac_cv_type_long=no
22015 fi
22016
22017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22018 fi
22019 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22020 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22021
22022 # The cast to long int works around a bug in the HP C Compiler
22023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22025 # This bug is HP SR number 8606223364.
22026 { echo "$as_me:$LINENO: checking size of long" >&5
22027 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22028 if test "${ac_cv_sizeof_long+set}" = set; then
22029   echo $ECHO_N "(cached) $ECHO_C" >&6
22030 else
22031   if test "$cross_compiling" = yes; then
22032   # Depending upon the size, compute the lo and hi bounds.
22033 cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h.  */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h.  */
22039 $ac_includes_default
22040    typedef long ac__type_sizeof_;
22041 int
22042 main ()
22043 {
22044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22045 test_array [0] = 0
22046
22047   ;
22048   return 0;
22049 }
22050 _ACEOF
22051 rm -f conftest.$ac_objext
22052 if { (ac_try="$ac_compile"
22053 case "(($ac_try" in
22054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055   *) ac_try_echo=$ac_try;;
22056 esac
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058   (eval "$ac_compile") 2>conftest.er1
22059   ac_status=$?
22060   grep -v '^ *+' conftest.er1 >conftest.err
22061   rm -f conftest.er1
22062   cat conftest.err >&5
22063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064   (exit $ac_status); } && {
22065          test -z "$ac_c_werror_flag" ||
22066          test ! -s conftest.err
22067        } && test -s conftest.$ac_objext; then
22068   ac_lo=0 ac_mid=0
22069   while :; do
22070     cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h.  */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h.  */
22076 $ac_includes_default
22077    typedef long ac__type_sizeof_;
22078 int
22079 main ()
22080 {
22081 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22082 test_array [0] = 0
22083
22084   ;
22085   return 0;
22086 }
22087 _ACEOF
22088 rm -f conftest.$ac_objext
22089 if { (ac_try="$ac_compile"
22090 case "(($ac_try" in
22091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092   *) ac_try_echo=$ac_try;;
22093 esac
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095   (eval "$ac_compile") 2>conftest.er1
22096   ac_status=$?
22097   grep -v '^ *+' conftest.er1 >conftest.err
22098   rm -f conftest.er1
22099   cat conftest.err >&5
22100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101   (exit $ac_status); } && {
22102          test -z "$ac_c_werror_flag" ||
22103          test ! -s conftest.err
22104        } && test -s conftest.$ac_objext; then
22105   ac_hi=$ac_mid; break
22106 else
22107   echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22109
22110         ac_lo=`expr $ac_mid + 1`
22111                         if test $ac_lo -le $ac_mid; then
22112                           ac_lo= ac_hi=
22113                           break
22114                         fi
22115                         ac_mid=`expr 2 '*' $ac_mid + 1`
22116 fi
22117
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119   done
22120 else
22121   echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22123
22124         cat >conftest.$ac_ext <<_ACEOF
22125 /* confdefs.h.  */
22126 _ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h.  */
22130 $ac_includes_default
22131    typedef long ac__type_sizeof_;
22132 int
22133 main ()
22134 {
22135 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22136 test_array [0] = 0
22137
22138   ;
22139   return 0;
22140 }
22141 _ACEOF
22142 rm -f conftest.$ac_objext
22143 if { (ac_try="$ac_compile"
22144 case "(($ac_try" in
22145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22146   *) ac_try_echo=$ac_try;;
22147 esac
22148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22149   (eval "$ac_compile") 2>conftest.er1
22150   ac_status=$?
22151   grep -v '^ *+' conftest.er1 >conftest.err
22152   rm -f conftest.er1
22153   cat conftest.err >&5
22154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155   (exit $ac_status); } && {
22156          test -z "$ac_c_werror_flag" ||
22157          test ! -s conftest.err
22158        } && test -s conftest.$ac_objext; then
22159   ac_hi=-1 ac_mid=-1
22160   while :; do
22161     cat >conftest.$ac_ext <<_ACEOF
22162 /* confdefs.h.  */
22163 _ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h.  */
22167 $ac_includes_default
22168    typedef long ac__type_sizeof_;
22169 int
22170 main ()
22171 {
22172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22173 test_array [0] = 0
22174
22175   ;
22176   return 0;
22177 }
22178 _ACEOF
22179 rm -f conftest.$ac_objext
22180 if { (ac_try="$ac_compile"
22181 case "(($ac_try" in
22182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183   *) ac_try_echo=$ac_try;;
22184 esac
22185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22186   (eval "$ac_compile") 2>conftest.er1
22187   ac_status=$?
22188   grep -v '^ *+' conftest.er1 >conftest.err
22189   rm -f conftest.er1
22190   cat conftest.err >&5
22191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192   (exit $ac_status); } && {
22193          test -z "$ac_c_werror_flag" ||
22194          test ! -s conftest.err
22195        } && test -s conftest.$ac_objext; then
22196   ac_lo=$ac_mid; break
22197 else
22198   echo "$as_me: failed program was:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22200
22201         ac_hi=`expr '(' $ac_mid ')' - 1`
22202                         if test $ac_mid -le $ac_hi; then
22203                           ac_lo= ac_hi=
22204                           break
22205                         fi
22206                         ac_mid=`expr 2 '*' $ac_mid`
22207 fi
22208
22209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22210   done
22211 else
22212   echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22214
22215         ac_lo= ac_hi=
22216 fi
22217
22218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22219 fi
22220
22221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22222 # Binary search between lo and hi bounds.
22223 while test "x$ac_lo" != "x$ac_hi"; do
22224   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22225   cat >conftest.$ac_ext <<_ACEOF
22226 /* confdefs.h.  */
22227 _ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h.  */
22231 $ac_includes_default
22232    typedef long ac__type_sizeof_;
22233 int
22234 main ()
22235 {
22236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22237 test_array [0] = 0
22238
22239   ;
22240   return 0;
22241 }
22242 _ACEOF
22243 rm -f conftest.$ac_objext
22244 if { (ac_try="$ac_compile"
22245 case "(($ac_try" in
22246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247   *) ac_try_echo=$ac_try;;
22248 esac
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250   (eval "$ac_compile") 2>conftest.er1
22251   ac_status=$?
22252   grep -v '^ *+' conftest.er1 >conftest.err
22253   rm -f conftest.er1
22254   cat conftest.err >&5
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); } && {
22257          test -z "$ac_c_werror_flag" ||
22258          test ! -s conftest.err
22259        } && test -s conftest.$ac_objext; then
22260   ac_hi=$ac_mid
22261 else
22262   echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22264
22265         ac_lo=`expr '(' $ac_mid ')' + 1`
22266 fi
22267
22268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 done
22270 case $ac_lo in
22271 ?*) ac_cv_sizeof_long=$ac_lo;;
22272 '') if test "$ac_cv_type_long" = yes; then
22273      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22274 See \`config.log' for more details." >&5
22275 echo "$as_me: error: cannot compute sizeof (long)
22276 See \`config.log' for more details." >&2;}
22277    { (exit 77); exit 77; }; }
22278    else
22279      ac_cv_sizeof_long=0
22280    fi ;;
22281 esac
22282 else
22283   cat >conftest.$ac_ext <<_ACEOF
22284 /* confdefs.h.  */
22285 _ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h.  */
22289 $ac_includes_default
22290    typedef long ac__type_sizeof_;
22291 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22292 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22293 #include <stdio.h>
22294 #include <stdlib.h>
22295 int
22296 main ()
22297 {
22298
22299   FILE *f = fopen ("conftest.val", "w");
22300   if (! f)
22301     return 1;
22302   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22303     {
22304       long int i = longval ();
22305       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22306         return 1;
22307       fprintf (f, "%ld\n", i);
22308     }
22309   else
22310     {
22311       unsigned long int i = ulongval ();
22312       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22313         return 1;
22314       fprintf (f, "%lu\n", i);
22315     }
22316   return ferror (f) || fclose (f) != 0;
22317
22318   ;
22319   return 0;
22320 }
22321 _ACEOF
22322 rm -f conftest$ac_exeext
22323 if { (ac_try="$ac_link"
22324 case "(($ac_try" in
22325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326   *) ac_try_echo=$ac_try;;
22327 esac
22328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22329   (eval "$ac_link") 2>&5
22330   ac_status=$?
22331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22333   { (case "(($ac_try" in
22334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335   *) ac_try_echo=$ac_try;;
22336 esac
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338   (eval "$ac_try") 2>&5
22339   ac_status=$?
22340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341   (exit $ac_status); }; }; then
22342   ac_cv_sizeof_long=`cat conftest.val`
22343 else
22344   echo "$as_me: program exited with status $ac_status" >&5
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348 ( exit $ac_status )
22349 if test "$ac_cv_type_long" = yes; then
22350      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22351 See \`config.log' for more details." >&5
22352 echo "$as_me: error: cannot compute sizeof (long)
22353 See \`config.log' for more details." >&2;}
22354    { (exit 77); exit 77; }; }
22355    else
22356      ac_cv_sizeof_long=0
22357    fi
22358 fi
22359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22360 fi
22361 rm -f conftest.val
22362 fi
22363 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22364 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22365
22366
22367
22368 cat >>confdefs.h <<_ACEOF
22369 #define SIZEOF_LONG $ac_cv_sizeof_long
22370 _ACEOF
22371
22372
22373 { echo "$as_me:$LINENO: checking for size_t" >&5
22374 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22375 if test "${ac_cv_type_size_t+set}" = set; then
22376   echo $ECHO_N "(cached) $ECHO_C" >&6
22377 else
22378   cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h.  */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h.  */
22384 $ac_includes_default
22385 typedef size_t ac__type_new_;
22386 int
22387 main ()
22388 {
22389 if ((ac__type_new_ *) 0)
22390   return 0;
22391 if (sizeof (ac__type_new_))
22392   return 0;
22393   ;
22394   return 0;
22395 }
22396 _ACEOF
22397 rm -f conftest.$ac_objext
22398 if { (ac_try="$ac_compile"
22399 case "(($ac_try" in
22400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22401   *) ac_try_echo=$ac_try;;
22402 esac
22403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22404   (eval "$ac_compile") 2>conftest.er1
22405   ac_status=$?
22406   grep -v '^ *+' conftest.er1 >conftest.err
22407   rm -f conftest.er1
22408   cat conftest.err >&5
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); } && {
22411          test -z "$ac_c_werror_flag" ||
22412          test ! -s conftest.err
22413        } && test -s conftest.$ac_objext; then
22414   ac_cv_type_size_t=yes
22415 else
22416   echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22418
22419         ac_cv_type_size_t=no
22420 fi
22421
22422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22423 fi
22424 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22425 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22426
22427 # The cast to long int works around a bug in the HP C Compiler
22428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22430 # This bug is HP SR number 8606223364.
22431 { echo "$as_me:$LINENO: checking size of size_t" >&5
22432 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22433 if test "${ac_cv_sizeof_size_t+set}" = set; then
22434   echo $ECHO_N "(cached) $ECHO_C" >&6
22435 else
22436   if test "$cross_compiling" = yes; then
22437   # Depending upon the size, compute the lo and hi bounds.
22438 cat >conftest.$ac_ext <<_ACEOF
22439 /* confdefs.h.  */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h.  */
22444 $ac_includes_default
22445    typedef size_t ac__type_sizeof_;
22446 int
22447 main ()
22448 {
22449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22450 test_array [0] = 0
22451
22452   ;
22453   return 0;
22454 }
22455 _ACEOF
22456 rm -f conftest.$ac_objext
22457 if { (ac_try="$ac_compile"
22458 case "(($ac_try" in
22459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460   *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463   (eval "$ac_compile") 2>conftest.er1
22464   ac_status=$?
22465   grep -v '^ *+' conftest.er1 >conftest.err
22466   rm -f conftest.er1
22467   cat conftest.err >&5
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); } && {
22470          test -z "$ac_c_werror_flag" ||
22471          test ! -s conftest.err
22472        } && test -s conftest.$ac_objext; then
22473   ac_lo=0 ac_mid=0
22474   while :; do
22475     cat >conftest.$ac_ext <<_ACEOF
22476 /* confdefs.h.  */
22477 _ACEOF
22478 cat confdefs.h >>conftest.$ac_ext
22479 cat >>conftest.$ac_ext <<_ACEOF
22480 /* end confdefs.h.  */
22481 $ac_includes_default
22482    typedef size_t ac__type_sizeof_;
22483 int
22484 main ()
22485 {
22486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22487 test_array [0] = 0
22488
22489   ;
22490   return 0;
22491 }
22492 _ACEOF
22493 rm -f conftest.$ac_objext
22494 if { (ac_try="$ac_compile"
22495 case "(($ac_try" in
22496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497   *) ac_try_echo=$ac_try;;
22498 esac
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500   (eval "$ac_compile") 2>conftest.er1
22501   ac_status=$?
22502   grep -v '^ *+' conftest.er1 >conftest.err
22503   rm -f conftest.er1
22504   cat conftest.err >&5
22505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506   (exit $ac_status); } && {
22507          test -z "$ac_c_werror_flag" ||
22508          test ! -s conftest.err
22509        } && test -s conftest.$ac_objext; then
22510   ac_hi=$ac_mid; break
22511 else
22512   echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22514
22515         ac_lo=`expr $ac_mid + 1`
22516                         if test $ac_lo -le $ac_mid; then
22517                           ac_lo= ac_hi=
22518                           break
22519                         fi
22520                         ac_mid=`expr 2 '*' $ac_mid + 1`
22521 fi
22522
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524   done
22525 else
22526   echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22528
22529         cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h.  */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h.  */
22535 $ac_includes_default
22536    typedef size_t ac__type_sizeof_;
22537 int
22538 main ()
22539 {
22540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22541 test_array [0] = 0
22542
22543   ;
22544   return 0;
22545 }
22546 _ACEOF
22547 rm -f conftest.$ac_objext
22548 if { (ac_try="$ac_compile"
22549 case "(($ac_try" in
22550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551   *) ac_try_echo=$ac_try;;
22552 esac
22553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554   (eval "$ac_compile") 2>conftest.er1
22555   ac_status=$?
22556   grep -v '^ *+' conftest.er1 >conftest.err
22557   rm -f conftest.er1
22558   cat conftest.err >&5
22559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560   (exit $ac_status); } && {
22561          test -z "$ac_c_werror_flag" ||
22562          test ! -s conftest.err
22563        } && test -s conftest.$ac_objext; then
22564   ac_hi=-1 ac_mid=-1
22565   while :; do
22566     cat >conftest.$ac_ext <<_ACEOF
22567 /* confdefs.h.  */
22568 _ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h.  */
22572 $ac_includes_default
22573    typedef size_t ac__type_sizeof_;
22574 int
22575 main ()
22576 {
22577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22578 test_array [0] = 0
22579
22580   ;
22581   return 0;
22582 }
22583 _ACEOF
22584 rm -f conftest.$ac_objext
22585 if { (ac_try="$ac_compile"
22586 case "(($ac_try" in
22587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22588   *) ac_try_echo=$ac_try;;
22589 esac
22590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22591   (eval "$ac_compile") 2>conftest.er1
22592   ac_status=$?
22593   grep -v '^ *+' conftest.er1 >conftest.err
22594   rm -f conftest.er1
22595   cat conftest.err >&5
22596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597   (exit $ac_status); } && {
22598          test -z "$ac_c_werror_flag" ||
22599          test ! -s conftest.err
22600        } && test -s conftest.$ac_objext; then
22601   ac_lo=$ac_mid; break
22602 else
22603   echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22605
22606         ac_hi=`expr '(' $ac_mid ')' - 1`
22607                         if test $ac_mid -le $ac_hi; then
22608                           ac_lo= ac_hi=
22609                           break
22610                         fi
22611                         ac_mid=`expr 2 '*' $ac_mid`
22612 fi
22613
22614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22615   done
22616 else
22617   echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620         ac_lo= ac_hi=
22621 fi
22622
22623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 fi
22625
22626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22627 # Binary search between lo and hi bounds.
22628 while test "x$ac_lo" != "x$ac_hi"; do
22629   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22630   cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h.  */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h.  */
22636 $ac_includes_default
22637    typedef size_t ac__type_sizeof_;
22638 int
22639 main ()
22640 {
22641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22642 test_array [0] = 0
22643
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 rm -f conftest.$ac_objext
22649 if { (ac_try="$ac_compile"
22650 case "(($ac_try" in
22651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652   *) ac_try_echo=$ac_try;;
22653 esac
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655   (eval "$ac_compile") 2>conftest.er1
22656   ac_status=$?
22657   grep -v '^ *+' conftest.er1 >conftest.err
22658   rm -f conftest.er1
22659   cat conftest.err >&5
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); } && {
22662          test -z "$ac_c_werror_flag" ||
22663          test ! -s conftest.err
22664        } && test -s conftest.$ac_objext; then
22665   ac_hi=$ac_mid
22666 else
22667   echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22669
22670         ac_lo=`expr '(' $ac_mid ')' + 1`
22671 fi
22672
22673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22674 done
22675 case $ac_lo in
22676 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22677 '') if test "$ac_cv_type_size_t" = yes; then
22678      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22679 See \`config.log' for more details." >&5
22680 echo "$as_me: error: cannot compute sizeof (size_t)
22681 See \`config.log' for more details." >&2;}
22682    { (exit 77); exit 77; }; }
22683    else
22684      ac_cv_sizeof_size_t=0
22685    fi ;;
22686 esac
22687 else
22688   cat >conftest.$ac_ext <<_ACEOF
22689 /* confdefs.h.  */
22690 _ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h.  */
22694 $ac_includes_default
22695    typedef size_t ac__type_sizeof_;
22696 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22697 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22698 #include <stdio.h>
22699 #include <stdlib.h>
22700 int
22701 main ()
22702 {
22703
22704   FILE *f = fopen ("conftest.val", "w");
22705   if (! f)
22706     return 1;
22707   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22708     {
22709       long int i = longval ();
22710       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22711         return 1;
22712       fprintf (f, "%ld\n", i);
22713     }
22714   else
22715     {
22716       unsigned long int i = ulongval ();
22717       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22718         return 1;
22719       fprintf (f, "%lu\n", i);
22720     }
22721   return ferror (f) || fclose (f) != 0;
22722
22723   ;
22724   return 0;
22725 }
22726 _ACEOF
22727 rm -f conftest$ac_exeext
22728 if { (ac_try="$ac_link"
22729 case "(($ac_try" in
22730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731   *) ac_try_echo=$ac_try;;
22732 esac
22733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734   (eval "$ac_link") 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22738   { (case "(($ac_try" in
22739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740   *) ac_try_echo=$ac_try;;
22741 esac
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743   (eval "$ac_try") 2>&5
22744   ac_status=$?
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); }; }; then
22747   ac_cv_sizeof_size_t=`cat conftest.val`
22748 else
22749   echo "$as_me: program exited with status $ac_status" >&5
22750 echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22752
22753 ( exit $ac_status )
22754 if test "$ac_cv_type_size_t" = yes; then
22755      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22756 See \`config.log' for more details." >&5
22757 echo "$as_me: error: cannot compute sizeof (size_t)
22758 See \`config.log' for more details." >&2;}
22759    { (exit 77); exit 77; }; }
22760    else
22761      ac_cv_sizeof_size_t=0
22762    fi
22763 fi
22764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22765 fi
22766 rm -f conftest.val
22767 fi
22768 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22769 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22770
22771
22772
22773 cat >>confdefs.h <<_ACEOF
22774 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22775 _ACEOF
22776
22777
22778
22779 case "${host}" in
22780     arm-*-linux* )
22781         { echo "$as_me:$LINENO: checking for long long" >&5
22782 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22783 if test "${ac_cv_type_long_long+set}" = set; then
22784   echo $ECHO_N "(cached) $ECHO_C" >&6
22785 else
22786   cat >conftest.$ac_ext <<_ACEOF
22787 /* confdefs.h.  */
22788 _ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h.  */
22792 $ac_includes_default
22793 typedef long long ac__type_new_;
22794 int
22795 main ()
22796 {
22797 if ((ac__type_new_ *) 0)
22798   return 0;
22799 if (sizeof (ac__type_new_))
22800   return 0;
22801   ;
22802   return 0;
22803 }
22804 _ACEOF
22805 rm -f conftest.$ac_objext
22806 if { (ac_try="$ac_compile"
22807 case "(($ac_try" in
22808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22809   *) ac_try_echo=$ac_try;;
22810 esac
22811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22812   (eval "$ac_compile") 2>conftest.er1
22813   ac_status=$?
22814   grep -v '^ *+' conftest.er1 >conftest.err
22815   rm -f conftest.er1
22816   cat conftest.err >&5
22817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818   (exit $ac_status); } && {
22819          test -z "$ac_c_werror_flag" ||
22820          test ! -s conftest.err
22821        } && test -s conftest.$ac_objext; then
22822   ac_cv_type_long_long=yes
22823 else
22824   echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22826
22827         ac_cv_type_long_long=no
22828 fi
22829
22830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22831 fi
22832 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22833 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22834
22835 # The cast to long int works around a bug in the HP C Compiler
22836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22838 # This bug is HP SR number 8606223364.
22839 { echo "$as_me:$LINENO: checking size of long long" >&5
22840 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22841 if test "${ac_cv_sizeof_long_long+set}" = set; then
22842   echo $ECHO_N "(cached) $ECHO_C" >&6
22843 else
22844   if test "$cross_compiling" = yes; then
22845   # Depending upon the size, compute the lo and hi bounds.
22846 cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h.  */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h.  */
22852 $ac_includes_default
22853    typedef long long ac__type_sizeof_;
22854 int
22855 main ()
22856 {
22857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22858 test_array [0] = 0
22859
22860   ;
22861   return 0;
22862 }
22863 _ACEOF
22864 rm -f conftest.$ac_objext
22865 if { (ac_try="$ac_compile"
22866 case "(($ac_try" in
22867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22868   *) ac_try_echo=$ac_try;;
22869 esac
22870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22871   (eval "$ac_compile") 2>conftest.er1
22872   ac_status=$?
22873   grep -v '^ *+' conftest.er1 >conftest.err
22874   rm -f conftest.er1
22875   cat conftest.err >&5
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); } && {
22878          test -z "$ac_c_werror_flag" ||
22879          test ! -s conftest.err
22880        } && test -s conftest.$ac_objext; then
22881   ac_lo=0 ac_mid=0
22882   while :; do
22883     cat >conftest.$ac_ext <<_ACEOF
22884 /* confdefs.h.  */
22885 _ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h.  */
22889 $ac_includes_default
22890    typedef long long ac__type_sizeof_;
22891 int
22892 main ()
22893 {
22894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22895 test_array [0] = 0
22896
22897   ;
22898   return 0;
22899 }
22900 _ACEOF
22901 rm -f conftest.$ac_objext
22902 if { (ac_try="$ac_compile"
22903 case "(($ac_try" in
22904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905   *) ac_try_echo=$ac_try;;
22906 esac
22907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22908   (eval "$ac_compile") 2>conftest.er1
22909   ac_status=$?
22910   grep -v '^ *+' conftest.er1 >conftest.err
22911   rm -f conftest.er1
22912   cat conftest.err >&5
22913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914   (exit $ac_status); } && {
22915          test -z "$ac_c_werror_flag" ||
22916          test ! -s conftest.err
22917        } && test -s conftest.$ac_objext; then
22918   ac_hi=$ac_mid; break
22919 else
22920   echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22922
22923         ac_lo=`expr $ac_mid + 1`
22924                         if test $ac_lo -le $ac_mid; then
22925                           ac_lo= ac_hi=
22926                           break
22927                         fi
22928                         ac_mid=`expr 2 '*' $ac_mid + 1`
22929 fi
22930
22931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22932   done
22933 else
22934   echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22936
22937         cat >conftest.$ac_ext <<_ACEOF
22938 /* confdefs.h.  */
22939 _ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h.  */
22943 $ac_includes_default
22944    typedef long long ac__type_sizeof_;
22945 int
22946 main ()
22947 {
22948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22949 test_array [0] = 0
22950
22951   ;
22952   return 0;
22953 }
22954 _ACEOF
22955 rm -f conftest.$ac_objext
22956 if { (ac_try="$ac_compile"
22957 case "(($ac_try" in
22958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959   *) ac_try_echo=$ac_try;;
22960 esac
22961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962   (eval "$ac_compile") 2>conftest.er1
22963   ac_status=$?
22964   grep -v '^ *+' conftest.er1 >conftest.err
22965   rm -f conftest.er1
22966   cat conftest.err >&5
22967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968   (exit $ac_status); } && {
22969          test -z "$ac_c_werror_flag" ||
22970          test ! -s conftest.err
22971        } && test -s conftest.$ac_objext; then
22972   ac_hi=-1 ac_mid=-1
22973   while :; do
22974     cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h.  */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h.  */
22980 $ac_includes_default
22981    typedef long long ac__type_sizeof_;
22982 int
22983 main ()
22984 {
22985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22986 test_array [0] = 0
22987
22988   ;
22989   return 0;
22990 }
22991 _ACEOF
22992 rm -f conftest.$ac_objext
22993 if { (ac_try="$ac_compile"
22994 case "(($ac_try" in
22995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996   *) ac_try_echo=$ac_try;;
22997 esac
22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999   (eval "$ac_compile") 2>conftest.er1
23000   ac_status=$?
23001   grep -v '^ *+' conftest.er1 >conftest.err
23002   rm -f conftest.er1
23003   cat conftest.err >&5
23004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005   (exit $ac_status); } && {
23006          test -z "$ac_c_werror_flag" ||
23007          test ! -s conftest.err
23008        } && test -s conftest.$ac_objext; then
23009   ac_lo=$ac_mid; break
23010 else
23011   echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23013
23014         ac_hi=`expr '(' $ac_mid ')' - 1`
23015                         if test $ac_mid -le $ac_hi; then
23016                           ac_lo= ac_hi=
23017                           break
23018                         fi
23019                         ac_mid=`expr 2 '*' $ac_mid`
23020 fi
23021
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23023   done
23024 else
23025   echo "$as_me: failed program was:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23027
23028         ac_lo= ac_hi=
23029 fi
23030
23031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23032 fi
23033
23034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23035 # Binary search between lo and hi bounds.
23036 while test "x$ac_lo" != "x$ac_hi"; do
23037   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23038   cat >conftest.$ac_ext <<_ACEOF
23039 /* confdefs.h.  */
23040 _ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h.  */
23044 $ac_includes_default
23045    typedef long long ac__type_sizeof_;
23046 int
23047 main ()
23048 {
23049 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23050 test_array [0] = 0
23051
23052   ;
23053   return 0;
23054 }
23055 _ACEOF
23056 rm -f conftest.$ac_objext
23057 if { (ac_try="$ac_compile"
23058 case "(($ac_try" in
23059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23060   *) ac_try_echo=$ac_try;;
23061 esac
23062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23063   (eval "$ac_compile") 2>conftest.er1
23064   ac_status=$?
23065   grep -v '^ *+' conftest.er1 >conftest.err
23066   rm -f conftest.er1
23067   cat conftest.err >&5
23068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069   (exit $ac_status); } && {
23070          test -z "$ac_c_werror_flag" ||
23071          test ! -s conftest.err
23072        } && test -s conftest.$ac_objext; then
23073   ac_hi=$ac_mid
23074 else
23075   echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078         ac_lo=`expr '(' $ac_mid ')' + 1`
23079 fi
23080
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 done
23083 case $ac_lo in
23084 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23085 '') if test "$ac_cv_type_long_long" = yes; then
23086      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23087 See \`config.log' for more details." >&5
23088 echo "$as_me: error: cannot compute sizeof (long long)
23089 See \`config.log' for more details." >&2;}
23090    { (exit 77); exit 77; }; }
23091    else
23092      ac_cv_sizeof_long_long=0
23093    fi ;;
23094 esac
23095 else
23096   cat >conftest.$ac_ext <<_ACEOF
23097 /* confdefs.h.  */
23098 _ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h.  */
23102 $ac_includes_default
23103    typedef long long ac__type_sizeof_;
23104 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23105 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23106 #include <stdio.h>
23107 #include <stdlib.h>
23108 int
23109 main ()
23110 {
23111
23112   FILE *f = fopen ("conftest.val", "w");
23113   if (! f)
23114     return 1;
23115   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23116     {
23117       long int i = longval ();
23118       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23119         return 1;
23120       fprintf (f, "%ld\n", i);
23121     }
23122   else
23123     {
23124       unsigned long int i = ulongval ();
23125       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23126         return 1;
23127       fprintf (f, "%lu\n", i);
23128     }
23129   return ferror (f) || fclose (f) != 0;
23130
23131   ;
23132   return 0;
23133 }
23134 _ACEOF
23135 rm -f conftest$ac_exeext
23136 if { (ac_try="$ac_link"
23137 case "(($ac_try" in
23138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139   *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142   (eval "$ac_link") 2>&5
23143   ac_status=$?
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23146   { (case "(($ac_try" in
23147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148   *) ac_try_echo=$ac_try;;
23149 esac
23150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23151   (eval "$ac_try") 2>&5
23152   ac_status=$?
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); }; }; then
23155   ac_cv_sizeof_long_long=`cat conftest.val`
23156 else
23157   echo "$as_me: program exited with status $ac_status" >&5
23158 echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161 ( exit $ac_status )
23162 if test "$ac_cv_type_long_long" = yes; then
23163      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23164 See \`config.log' for more details." >&5
23165 echo "$as_me: error: cannot compute sizeof (long long)
23166 See \`config.log' for more details." >&2;}
23167    { (exit 77); exit 77; }; }
23168    else
23169      ac_cv_sizeof_long_long=0
23170    fi
23171 fi
23172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23173 fi
23174 rm -f conftest.val
23175 fi
23176 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23177 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23178
23179
23180
23181 cat >>confdefs.h <<_ACEOF
23182 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23183 _ACEOF
23184
23185
23186     ;;
23187     *-hp-hpux* )
23188         { echo "$as_me:$LINENO: checking for long long" >&5
23189 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23190 if test "${ac_cv_type_long_long+set}" = set; then
23191   echo $ECHO_N "(cached) $ECHO_C" >&6
23192 else
23193   cat >conftest.$ac_ext <<_ACEOF
23194 /* confdefs.h.  */
23195 _ACEOF
23196 cat confdefs.h >>conftest.$ac_ext
23197 cat >>conftest.$ac_ext <<_ACEOF
23198 /* end confdefs.h.  */
23199 $ac_includes_default
23200 typedef long long ac__type_new_;
23201 int
23202 main ()
23203 {
23204 if ((ac__type_new_ *) 0)
23205   return 0;
23206 if (sizeof (ac__type_new_))
23207   return 0;
23208   ;
23209   return 0;
23210 }
23211 _ACEOF
23212 rm -f conftest.$ac_objext
23213 if { (ac_try="$ac_compile"
23214 case "(($ac_try" in
23215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216   *) ac_try_echo=$ac_try;;
23217 esac
23218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23219   (eval "$ac_compile") 2>conftest.er1
23220   ac_status=$?
23221   grep -v '^ *+' conftest.er1 >conftest.err
23222   rm -f conftest.er1
23223   cat conftest.err >&5
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); } && {
23226          test -z "$ac_c_werror_flag" ||
23227          test ! -s conftest.err
23228        } && test -s conftest.$ac_objext; then
23229   ac_cv_type_long_long=yes
23230 else
23231   echo "$as_me: failed program was:" >&5
23232 sed 's/^/| /' conftest.$ac_ext >&5
23233
23234         ac_cv_type_long_long=no
23235 fi
23236
23237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23238 fi
23239 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23240 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23241
23242 # The cast to long int works around a bug in the HP C Compiler
23243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23245 # This bug is HP SR number 8606223364.
23246 { echo "$as_me:$LINENO: checking size of long long" >&5
23247 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23248 if test "${ac_cv_sizeof_long_long+set}" = set; then
23249   echo $ECHO_N "(cached) $ECHO_C" >&6
23250 else
23251   if test "$cross_compiling" = yes; then
23252   # Depending upon the size, compute the lo and hi bounds.
23253 cat >conftest.$ac_ext <<_ACEOF
23254 /* confdefs.h.  */
23255 _ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h.  */
23259 $ac_includes_default
23260    typedef long long ac__type_sizeof_;
23261 int
23262 main ()
23263 {
23264 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23265 test_array [0] = 0
23266
23267   ;
23268   return 0;
23269 }
23270 _ACEOF
23271 rm -f conftest.$ac_objext
23272 if { (ac_try="$ac_compile"
23273 case "(($ac_try" in
23274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275   *) ac_try_echo=$ac_try;;
23276 esac
23277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23278   (eval "$ac_compile") 2>conftest.er1
23279   ac_status=$?
23280   grep -v '^ *+' conftest.er1 >conftest.err
23281   rm -f conftest.er1
23282   cat conftest.err >&5
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); } && {
23285          test -z "$ac_c_werror_flag" ||
23286          test ! -s conftest.err
23287        } && test -s conftest.$ac_objext; then
23288   ac_lo=0 ac_mid=0
23289   while :; do
23290     cat >conftest.$ac_ext <<_ACEOF
23291 /* confdefs.h.  */
23292 _ACEOF
23293 cat confdefs.h >>conftest.$ac_ext
23294 cat >>conftest.$ac_ext <<_ACEOF
23295 /* end confdefs.h.  */
23296 $ac_includes_default
23297    typedef long long ac__type_sizeof_;
23298 int
23299 main ()
23300 {
23301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23302 test_array [0] = 0
23303
23304   ;
23305   return 0;
23306 }
23307 _ACEOF
23308 rm -f conftest.$ac_objext
23309 if { (ac_try="$ac_compile"
23310 case "(($ac_try" in
23311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23312   *) ac_try_echo=$ac_try;;
23313 esac
23314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23315   (eval "$ac_compile") 2>conftest.er1
23316   ac_status=$?
23317   grep -v '^ *+' conftest.er1 >conftest.err
23318   rm -f conftest.er1
23319   cat conftest.err >&5
23320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321   (exit $ac_status); } && {
23322          test -z "$ac_c_werror_flag" ||
23323          test ! -s conftest.err
23324        } && test -s conftest.$ac_objext; then
23325   ac_hi=$ac_mid; break
23326 else
23327   echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23329
23330         ac_lo=`expr $ac_mid + 1`
23331                         if test $ac_lo -le $ac_mid; then
23332                           ac_lo= ac_hi=
23333                           break
23334                         fi
23335                         ac_mid=`expr 2 '*' $ac_mid + 1`
23336 fi
23337
23338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23339   done
23340 else
23341   echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23343
23344         cat >conftest.$ac_ext <<_ACEOF
23345 /* confdefs.h.  */
23346 _ACEOF
23347 cat confdefs.h >>conftest.$ac_ext
23348 cat >>conftest.$ac_ext <<_ACEOF
23349 /* end confdefs.h.  */
23350 $ac_includes_default
23351    typedef long long ac__type_sizeof_;
23352 int
23353 main ()
23354 {
23355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23356 test_array [0] = 0
23357
23358   ;
23359   return 0;
23360 }
23361 _ACEOF
23362 rm -f conftest.$ac_objext
23363 if { (ac_try="$ac_compile"
23364 case "(($ac_try" in
23365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366   *) ac_try_echo=$ac_try;;
23367 esac
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369   (eval "$ac_compile") 2>conftest.er1
23370   ac_status=$?
23371   grep -v '^ *+' conftest.er1 >conftest.err
23372   rm -f conftest.er1
23373   cat conftest.err >&5
23374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375   (exit $ac_status); } && {
23376          test -z "$ac_c_werror_flag" ||
23377          test ! -s conftest.err
23378        } && test -s conftest.$ac_objext; then
23379   ac_hi=-1 ac_mid=-1
23380   while :; do
23381     cat >conftest.$ac_ext <<_ACEOF
23382 /* confdefs.h.  */
23383 _ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h.  */
23387 $ac_includes_default
23388    typedef long long ac__type_sizeof_;
23389 int
23390 main ()
23391 {
23392 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23393 test_array [0] = 0
23394
23395   ;
23396   return 0;
23397 }
23398 _ACEOF
23399 rm -f conftest.$ac_objext
23400 if { (ac_try="$ac_compile"
23401 case "(($ac_try" in
23402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23403   *) ac_try_echo=$ac_try;;
23404 esac
23405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23406   (eval "$ac_compile") 2>conftest.er1
23407   ac_status=$?
23408   grep -v '^ *+' conftest.er1 >conftest.err
23409   rm -f conftest.er1
23410   cat conftest.err >&5
23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412   (exit $ac_status); } && {
23413          test -z "$ac_c_werror_flag" ||
23414          test ! -s conftest.err
23415        } && test -s conftest.$ac_objext; then
23416   ac_lo=$ac_mid; break
23417 else
23418   echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23420
23421         ac_hi=`expr '(' $ac_mid ')' - 1`
23422                         if test $ac_mid -le $ac_hi; then
23423                           ac_lo= ac_hi=
23424                           break
23425                         fi
23426                         ac_mid=`expr 2 '*' $ac_mid`
23427 fi
23428
23429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23430   done
23431 else
23432   echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23434
23435         ac_lo= ac_hi=
23436 fi
23437
23438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23439 fi
23440
23441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23442 # Binary search between lo and hi bounds.
23443 while test "x$ac_lo" != "x$ac_hi"; do
23444   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23445   cat >conftest.$ac_ext <<_ACEOF
23446 /* confdefs.h.  */
23447 _ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h.  */
23451 $ac_includes_default
23452    typedef long long ac__type_sizeof_;
23453 int
23454 main ()
23455 {
23456 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23457 test_array [0] = 0
23458
23459   ;
23460   return 0;
23461 }
23462 _ACEOF
23463 rm -f conftest.$ac_objext
23464 if { (ac_try="$ac_compile"
23465 case "(($ac_try" in
23466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467   *) ac_try_echo=$ac_try;;
23468 esac
23469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470   (eval "$ac_compile") 2>conftest.er1
23471   ac_status=$?
23472   grep -v '^ *+' conftest.er1 >conftest.err
23473   rm -f conftest.er1
23474   cat conftest.err >&5
23475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476   (exit $ac_status); } && {
23477          test -z "$ac_c_werror_flag" ||
23478          test ! -s conftest.err
23479        } && test -s conftest.$ac_objext; then
23480   ac_hi=$ac_mid
23481 else
23482   echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23484
23485         ac_lo=`expr '(' $ac_mid ')' + 1`
23486 fi
23487
23488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23489 done
23490 case $ac_lo in
23491 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23492 '') if test "$ac_cv_type_long_long" = yes; then
23493      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23494 See \`config.log' for more details." >&5
23495 echo "$as_me: error: cannot compute sizeof (long long)
23496 See \`config.log' for more details." >&2;}
23497    { (exit 77); exit 77; }; }
23498    else
23499      ac_cv_sizeof_long_long=0
23500    fi ;;
23501 esac
23502 else
23503   cat >conftest.$ac_ext <<_ACEOF
23504 /* confdefs.h.  */
23505 _ACEOF
23506 cat confdefs.h >>conftest.$ac_ext
23507 cat >>conftest.$ac_ext <<_ACEOF
23508 /* end confdefs.h.  */
23509 $ac_includes_default
23510    typedef long long ac__type_sizeof_;
23511 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23512 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23513 #include <stdio.h>
23514 #include <stdlib.h>
23515 int
23516 main ()
23517 {
23518
23519   FILE *f = fopen ("conftest.val", "w");
23520   if (! f)
23521     return 1;
23522   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23523     {
23524       long int i = longval ();
23525       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23526         return 1;
23527       fprintf (f, "%ld\n", i);
23528     }
23529   else
23530     {
23531       unsigned long int i = ulongval ();
23532       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23533         return 1;
23534       fprintf (f, "%lu\n", i);
23535     }
23536   return ferror (f) || fclose (f) != 0;
23537
23538   ;
23539   return 0;
23540 }
23541 _ACEOF
23542 rm -f conftest$ac_exeext
23543 if { (ac_try="$ac_link"
23544 case "(($ac_try" in
23545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546   *) ac_try_echo=$ac_try;;
23547 esac
23548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23549   (eval "$ac_link") 2>&5
23550   ac_status=$?
23551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23553   { (case "(($ac_try" in
23554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23555   *) ac_try_echo=$ac_try;;
23556 esac
23557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23558   (eval "$ac_try") 2>&5
23559   ac_status=$?
23560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561   (exit $ac_status); }; }; then
23562   ac_cv_sizeof_long_long=`cat conftest.val`
23563 else
23564   echo "$as_me: program exited with status $ac_status" >&5
23565 echo "$as_me: failed program was:" >&5
23566 sed 's/^/| /' conftest.$ac_ext >&5
23567
23568 ( exit $ac_status )
23569 if test "$ac_cv_type_long_long" = yes; then
23570      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23571 See \`config.log' for more details." >&5
23572 echo "$as_me: error: cannot compute sizeof (long long)
23573 See \`config.log' for more details." >&2;}
23574    { (exit 77); exit 77; }; }
23575    else
23576      ac_cv_sizeof_long_long=0
23577    fi
23578 fi
23579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23580 fi
23581 rm -f conftest.val
23582 fi
23583 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23584 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23585
23586
23587
23588 cat >>confdefs.h <<_ACEOF
23589 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23590 _ACEOF
23591
23592
23593         if test "$ac_cv_sizeof_long_long" != 0; then
23594                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23595         fi
23596     ;;
23597     * )
23598         { echo "$as_me:$LINENO: checking for long long" >&5
23599 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23600 if test "${ac_cv_type_long_long+set}" = set; then
23601   echo $ECHO_N "(cached) $ECHO_C" >&6
23602 else
23603   cat >conftest.$ac_ext <<_ACEOF
23604 /* confdefs.h.  */
23605 _ACEOF
23606 cat confdefs.h >>conftest.$ac_ext
23607 cat >>conftest.$ac_ext <<_ACEOF
23608 /* end confdefs.h.  */
23609 $ac_includes_default
23610 typedef long long ac__type_new_;
23611 int
23612 main ()
23613 {
23614 if ((ac__type_new_ *) 0)
23615   return 0;
23616 if (sizeof (ac__type_new_))
23617   return 0;
23618   ;
23619   return 0;
23620 }
23621 _ACEOF
23622 rm -f conftest.$ac_objext
23623 if { (ac_try="$ac_compile"
23624 case "(($ac_try" in
23625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23626   *) ac_try_echo=$ac_try;;
23627 esac
23628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23629   (eval "$ac_compile") 2>conftest.er1
23630   ac_status=$?
23631   grep -v '^ *+' conftest.er1 >conftest.err
23632   rm -f conftest.er1
23633   cat conftest.err >&5
23634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635   (exit $ac_status); } && {
23636          test -z "$ac_c_werror_flag" ||
23637          test ! -s conftest.err
23638        } && test -s conftest.$ac_objext; then
23639   ac_cv_type_long_long=yes
23640 else
23641   echo "$as_me: failed program was:" >&5
23642 sed 's/^/| /' conftest.$ac_ext >&5
23643
23644         ac_cv_type_long_long=no
23645 fi
23646
23647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23648 fi
23649 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23650 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23651
23652 # The cast to long int works around a bug in the HP C Compiler
23653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23655 # This bug is HP SR number 8606223364.
23656 { echo "$as_me:$LINENO: checking size of long long" >&5
23657 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23658 if test "${ac_cv_sizeof_long_long+set}" = set; then
23659   echo $ECHO_N "(cached) $ECHO_C" >&6
23660 else
23661   if test "$cross_compiling" = yes; then
23662   # Depending upon the size, compute the lo and hi bounds.
23663 cat >conftest.$ac_ext <<_ACEOF
23664 /* confdefs.h.  */
23665 _ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h.  */
23669 $ac_includes_default
23670    typedef long long ac__type_sizeof_;
23671 int
23672 main ()
23673 {
23674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23675 test_array [0] = 0
23676
23677   ;
23678   return 0;
23679 }
23680 _ACEOF
23681 rm -f conftest.$ac_objext
23682 if { (ac_try="$ac_compile"
23683 case "(($ac_try" in
23684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685   *) ac_try_echo=$ac_try;;
23686 esac
23687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688   (eval "$ac_compile") 2>conftest.er1
23689   ac_status=$?
23690   grep -v '^ *+' conftest.er1 >conftest.err
23691   rm -f conftest.er1
23692   cat conftest.err >&5
23693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694   (exit $ac_status); } && {
23695          test -z "$ac_c_werror_flag" ||
23696          test ! -s conftest.err
23697        } && test -s conftest.$ac_objext; then
23698   ac_lo=0 ac_mid=0
23699   while :; do
23700     cat >conftest.$ac_ext <<_ACEOF
23701 /* confdefs.h.  */
23702 _ACEOF
23703 cat confdefs.h >>conftest.$ac_ext
23704 cat >>conftest.$ac_ext <<_ACEOF
23705 /* end confdefs.h.  */
23706 $ac_includes_default
23707    typedef long long ac__type_sizeof_;
23708 int
23709 main ()
23710 {
23711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23712 test_array [0] = 0
23713
23714   ;
23715   return 0;
23716 }
23717 _ACEOF
23718 rm -f conftest.$ac_objext
23719 if { (ac_try="$ac_compile"
23720 case "(($ac_try" in
23721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23722   *) ac_try_echo=$ac_try;;
23723 esac
23724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23725   (eval "$ac_compile") 2>conftest.er1
23726   ac_status=$?
23727   grep -v '^ *+' conftest.er1 >conftest.err
23728   rm -f conftest.er1
23729   cat conftest.err >&5
23730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731   (exit $ac_status); } && {
23732          test -z "$ac_c_werror_flag" ||
23733          test ! -s conftest.err
23734        } && test -s conftest.$ac_objext; then
23735   ac_hi=$ac_mid; break
23736 else
23737   echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23739
23740         ac_lo=`expr $ac_mid + 1`
23741                         if test $ac_lo -le $ac_mid; then
23742                           ac_lo= ac_hi=
23743                           break
23744                         fi
23745                         ac_mid=`expr 2 '*' $ac_mid + 1`
23746 fi
23747
23748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23749   done
23750 else
23751   echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23753
23754         cat >conftest.$ac_ext <<_ACEOF
23755 /* confdefs.h.  */
23756 _ACEOF
23757 cat confdefs.h >>conftest.$ac_ext
23758 cat >>conftest.$ac_ext <<_ACEOF
23759 /* end confdefs.h.  */
23760 $ac_includes_default
23761    typedef long long ac__type_sizeof_;
23762 int
23763 main ()
23764 {
23765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23766 test_array [0] = 0
23767
23768   ;
23769   return 0;
23770 }
23771 _ACEOF
23772 rm -f conftest.$ac_objext
23773 if { (ac_try="$ac_compile"
23774 case "(($ac_try" in
23775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23776   *) ac_try_echo=$ac_try;;
23777 esac
23778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23779   (eval "$ac_compile") 2>conftest.er1
23780   ac_status=$?
23781   grep -v '^ *+' conftest.er1 >conftest.err
23782   rm -f conftest.er1
23783   cat conftest.err >&5
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); } && {
23786          test -z "$ac_c_werror_flag" ||
23787          test ! -s conftest.err
23788        } && test -s conftest.$ac_objext; then
23789   ac_hi=-1 ac_mid=-1
23790   while :; do
23791     cat >conftest.$ac_ext <<_ACEOF
23792 /* confdefs.h.  */
23793 _ACEOF
23794 cat confdefs.h >>conftest.$ac_ext
23795 cat >>conftest.$ac_ext <<_ACEOF
23796 /* end confdefs.h.  */
23797 $ac_includes_default
23798    typedef long long ac__type_sizeof_;
23799 int
23800 main ()
23801 {
23802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23803 test_array [0] = 0
23804
23805   ;
23806   return 0;
23807 }
23808 _ACEOF
23809 rm -f conftest.$ac_objext
23810 if { (ac_try="$ac_compile"
23811 case "(($ac_try" in
23812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23813   *) ac_try_echo=$ac_try;;
23814 esac
23815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23816   (eval "$ac_compile") 2>conftest.er1
23817   ac_status=$?
23818   grep -v '^ *+' conftest.er1 >conftest.err
23819   rm -f conftest.er1
23820   cat conftest.err >&5
23821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822   (exit $ac_status); } && {
23823          test -z "$ac_c_werror_flag" ||
23824          test ! -s conftest.err
23825        } && test -s conftest.$ac_objext; then
23826   ac_lo=$ac_mid; break
23827 else
23828   echo "$as_me: failed program was:" >&5
23829 sed 's/^/| /' conftest.$ac_ext >&5
23830
23831         ac_hi=`expr '(' $ac_mid ')' - 1`
23832                         if test $ac_mid -le $ac_hi; then
23833                           ac_lo= ac_hi=
23834                           break
23835                         fi
23836                         ac_mid=`expr 2 '*' $ac_mid`
23837 fi
23838
23839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23840   done
23841 else
23842   echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23844
23845         ac_lo= ac_hi=
23846 fi
23847
23848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23849 fi
23850
23851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23852 # Binary search between lo and hi bounds.
23853 while test "x$ac_lo" != "x$ac_hi"; do
23854   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23855   cat >conftest.$ac_ext <<_ACEOF
23856 /* confdefs.h.  */
23857 _ACEOF
23858 cat confdefs.h >>conftest.$ac_ext
23859 cat >>conftest.$ac_ext <<_ACEOF
23860 /* end confdefs.h.  */
23861 $ac_includes_default
23862    typedef long long ac__type_sizeof_;
23863 int
23864 main ()
23865 {
23866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23867 test_array [0] = 0
23868
23869   ;
23870   return 0;
23871 }
23872 _ACEOF
23873 rm -f conftest.$ac_objext
23874 if { (ac_try="$ac_compile"
23875 case "(($ac_try" in
23876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23877   *) ac_try_echo=$ac_try;;
23878 esac
23879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23880   (eval "$ac_compile") 2>conftest.er1
23881   ac_status=$?
23882   grep -v '^ *+' conftest.er1 >conftest.err
23883   rm -f conftest.er1
23884   cat conftest.err >&5
23885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886   (exit $ac_status); } && {
23887          test -z "$ac_c_werror_flag" ||
23888          test ! -s conftest.err
23889        } && test -s conftest.$ac_objext; then
23890   ac_hi=$ac_mid
23891 else
23892   echo "$as_me: failed program was:" >&5
23893 sed 's/^/| /' conftest.$ac_ext >&5
23894
23895         ac_lo=`expr '(' $ac_mid ')' + 1`
23896 fi
23897
23898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23899 done
23900 case $ac_lo in
23901 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23902 '') if test "$ac_cv_type_long_long" = yes; then
23903      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23904 See \`config.log' for more details." >&5
23905 echo "$as_me: error: cannot compute sizeof (long long)
23906 See \`config.log' for more details." >&2;}
23907    { (exit 77); exit 77; }; }
23908    else
23909      ac_cv_sizeof_long_long=0
23910    fi ;;
23911 esac
23912 else
23913   cat >conftest.$ac_ext <<_ACEOF
23914 /* confdefs.h.  */
23915 _ACEOF
23916 cat confdefs.h >>conftest.$ac_ext
23917 cat >>conftest.$ac_ext <<_ACEOF
23918 /* end confdefs.h.  */
23919 $ac_includes_default
23920    typedef long long ac__type_sizeof_;
23921 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23922 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23923 #include <stdio.h>
23924 #include <stdlib.h>
23925 int
23926 main ()
23927 {
23928
23929   FILE *f = fopen ("conftest.val", "w");
23930   if (! f)
23931     return 1;
23932   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23933     {
23934       long int i = longval ();
23935       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23936         return 1;
23937       fprintf (f, "%ld\n", i);
23938     }
23939   else
23940     {
23941       unsigned long int i = ulongval ();
23942       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23943         return 1;
23944       fprintf (f, "%lu\n", i);
23945     }
23946   return ferror (f) || fclose (f) != 0;
23947
23948   ;
23949   return 0;
23950 }
23951 _ACEOF
23952 rm -f conftest$ac_exeext
23953 if { (ac_try="$ac_link"
23954 case "(($ac_try" in
23955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23956   *) ac_try_echo=$ac_try;;
23957 esac
23958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23959   (eval "$ac_link") 2>&5
23960   ac_status=$?
23961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23963   { (case "(($ac_try" in
23964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965   *) ac_try_echo=$ac_try;;
23966 esac
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968   (eval "$ac_try") 2>&5
23969   ac_status=$?
23970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971   (exit $ac_status); }; }; then
23972   ac_cv_sizeof_long_long=`cat conftest.val`
23973 else
23974   echo "$as_me: program exited with status $ac_status" >&5
23975 echo "$as_me: failed program was:" >&5
23976 sed 's/^/| /' conftest.$ac_ext >&5
23977
23978 ( exit $ac_status )
23979 if test "$ac_cv_type_long_long" = yes; then
23980      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23981 See \`config.log' for more details." >&5
23982 echo "$as_me: error: cannot compute sizeof (long long)
23983 See \`config.log' for more details." >&2;}
23984    { (exit 77); exit 77; }; }
23985    else
23986      ac_cv_sizeof_long_long=0
23987    fi
23988 fi
23989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23990 fi
23991 rm -f conftest.val
23992 fi
23993 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23994 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23995
23996
23997
23998 cat >>confdefs.h <<_ACEOF
23999 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24000 _ACEOF
24001
24002
24003 esac
24004
24005 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24006 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24007 if test "${ac_cv_type_wchar_t+set}" = set; then
24008   echo $ECHO_N "(cached) $ECHO_C" >&6
24009 else
24010   cat >conftest.$ac_ext <<_ACEOF
24011 /* confdefs.h.  */
24012 _ACEOF
24013 cat confdefs.h >>conftest.$ac_ext
24014 cat >>conftest.$ac_ext <<_ACEOF
24015 /* end confdefs.h.  */
24016
24017         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24018         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24019         #  error "fake wchar_t"
24020         #endif
24021         #ifdef HAVE_WCHAR_H
24022         #  ifdef __CYGWIN__
24023         #    include <stddef.h>
24024         #  endif
24025         #  include <wchar.h>
24026         #endif
24027         #ifdef HAVE_STDLIB_H
24028         #  include <stdlib.h>
24029         #endif
24030         #include <stdio.h>
24031
24032
24033
24034 typedef wchar_t ac__type_new_;
24035 int
24036 main ()
24037 {
24038 if ((ac__type_new_ *) 0)
24039   return 0;
24040 if (sizeof (ac__type_new_))
24041   return 0;
24042   ;
24043   return 0;
24044 }
24045 _ACEOF
24046 rm -f conftest.$ac_objext
24047 if { (ac_try="$ac_compile"
24048 case "(($ac_try" in
24049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050   *) ac_try_echo=$ac_try;;
24051 esac
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053   (eval "$ac_compile") 2>conftest.er1
24054   ac_status=$?
24055   grep -v '^ *+' conftest.er1 >conftest.err
24056   rm -f conftest.er1
24057   cat conftest.err >&5
24058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059   (exit $ac_status); } && {
24060          test -z "$ac_c_werror_flag" ||
24061          test ! -s conftest.err
24062        } && test -s conftest.$ac_objext; then
24063   ac_cv_type_wchar_t=yes
24064 else
24065   echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24067
24068         ac_cv_type_wchar_t=no
24069 fi
24070
24071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24072 fi
24073 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24074 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24075
24076 # The cast to long int works around a bug in the HP C Compiler
24077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24079 # This bug is HP SR number 8606223364.
24080 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24081 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24082 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24083   echo $ECHO_N "(cached) $ECHO_C" >&6
24084 else
24085   if test "$cross_compiling" = yes; then
24086   # Depending upon the size, compute the lo and hi bounds.
24087 cat >conftest.$ac_ext <<_ACEOF
24088 /* confdefs.h.  */
24089 _ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h.  */
24093
24094         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24095         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24096         #  error "fake wchar_t"
24097         #endif
24098         #ifdef HAVE_WCHAR_H
24099         #  ifdef __CYGWIN__
24100         #    include <stddef.h>
24101         #  endif
24102         #  include <wchar.h>
24103         #endif
24104         #ifdef HAVE_STDLIB_H
24105         #  include <stdlib.h>
24106         #endif
24107         #include <stdio.h>
24108
24109
24110
24111    typedef wchar_t ac__type_sizeof_;
24112 int
24113 main ()
24114 {
24115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24116 test_array [0] = 0
24117
24118   ;
24119   return 0;
24120 }
24121 _ACEOF
24122 rm -f conftest.$ac_objext
24123 if { (ac_try="$ac_compile"
24124 case "(($ac_try" in
24125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24126   *) ac_try_echo=$ac_try;;
24127 esac
24128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24129   (eval "$ac_compile") 2>conftest.er1
24130   ac_status=$?
24131   grep -v '^ *+' conftest.er1 >conftest.err
24132   rm -f conftest.er1
24133   cat conftest.err >&5
24134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135   (exit $ac_status); } && {
24136          test -z "$ac_c_werror_flag" ||
24137          test ! -s conftest.err
24138        } && test -s conftest.$ac_objext; then
24139   ac_lo=0 ac_mid=0
24140   while :; do
24141     cat >conftest.$ac_ext <<_ACEOF
24142 /* confdefs.h.  */
24143 _ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h.  */
24147
24148         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24149         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24150         #  error "fake wchar_t"
24151         #endif
24152         #ifdef HAVE_WCHAR_H
24153         #  ifdef __CYGWIN__
24154         #    include <stddef.h>
24155         #  endif
24156         #  include <wchar.h>
24157         #endif
24158         #ifdef HAVE_STDLIB_H
24159         #  include <stdlib.h>
24160         #endif
24161         #include <stdio.h>
24162
24163
24164
24165    typedef wchar_t ac__type_sizeof_;
24166 int
24167 main ()
24168 {
24169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24170 test_array [0] = 0
24171
24172   ;
24173   return 0;
24174 }
24175 _ACEOF
24176 rm -f conftest.$ac_objext
24177 if { (ac_try="$ac_compile"
24178 case "(($ac_try" in
24179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180   *) ac_try_echo=$ac_try;;
24181 esac
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183   (eval "$ac_compile") 2>conftest.er1
24184   ac_status=$?
24185   grep -v '^ *+' conftest.er1 >conftest.err
24186   rm -f conftest.er1
24187   cat conftest.err >&5
24188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189   (exit $ac_status); } && {
24190          test -z "$ac_c_werror_flag" ||
24191          test ! -s conftest.err
24192        } && test -s conftest.$ac_objext; then
24193   ac_hi=$ac_mid; break
24194 else
24195   echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24197
24198         ac_lo=`expr $ac_mid + 1`
24199                         if test $ac_lo -le $ac_mid; then
24200                           ac_lo= ac_hi=
24201                           break
24202                         fi
24203                         ac_mid=`expr 2 '*' $ac_mid + 1`
24204 fi
24205
24206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24207   done
24208 else
24209   echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24211
24212         cat >conftest.$ac_ext <<_ACEOF
24213 /* confdefs.h.  */
24214 _ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h.  */
24218
24219         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24220         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24221         #  error "fake wchar_t"
24222         #endif
24223         #ifdef HAVE_WCHAR_H
24224         #  ifdef __CYGWIN__
24225         #    include <stddef.h>
24226         #  endif
24227         #  include <wchar.h>
24228         #endif
24229         #ifdef HAVE_STDLIB_H
24230         #  include <stdlib.h>
24231         #endif
24232         #include <stdio.h>
24233
24234
24235
24236    typedef wchar_t ac__type_sizeof_;
24237 int
24238 main ()
24239 {
24240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24241 test_array [0] = 0
24242
24243   ;
24244   return 0;
24245 }
24246 _ACEOF
24247 rm -f conftest.$ac_objext
24248 if { (ac_try="$ac_compile"
24249 case "(($ac_try" in
24250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24251   *) ac_try_echo=$ac_try;;
24252 esac
24253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24254   (eval "$ac_compile") 2>conftest.er1
24255   ac_status=$?
24256   grep -v '^ *+' conftest.er1 >conftest.err
24257   rm -f conftest.er1
24258   cat conftest.err >&5
24259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260   (exit $ac_status); } && {
24261          test -z "$ac_c_werror_flag" ||
24262          test ! -s conftest.err
24263        } && test -s conftest.$ac_objext; then
24264   ac_hi=-1 ac_mid=-1
24265   while :; do
24266     cat >conftest.$ac_ext <<_ACEOF
24267 /* confdefs.h.  */
24268 _ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h.  */
24272
24273         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24274         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24275         #  error "fake wchar_t"
24276         #endif
24277         #ifdef HAVE_WCHAR_H
24278         #  ifdef __CYGWIN__
24279         #    include <stddef.h>
24280         #  endif
24281         #  include <wchar.h>
24282         #endif
24283         #ifdef HAVE_STDLIB_H
24284         #  include <stdlib.h>
24285         #endif
24286         #include <stdio.h>
24287
24288
24289
24290    typedef wchar_t ac__type_sizeof_;
24291 int
24292 main ()
24293 {
24294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24295 test_array [0] = 0
24296
24297   ;
24298   return 0;
24299 }
24300 _ACEOF
24301 rm -f conftest.$ac_objext
24302 if { (ac_try="$ac_compile"
24303 case "(($ac_try" in
24304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305   *) ac_try_echo=$ac_try;;
24306 esac
24307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24308   (eval "$ac_compile") 2>conftest.er1
24309   ac_status=$?
24310   grep -v '^ *+' conftest.er1 >conftest.err
24311   rm -f conftest.er1
24312   cat conftest.err >&5
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); } && {
24315          test -z "$ac_c_werror_flag" ||
24316          test ! -s conftest.err
24317        } && test -s conftest.$ac_objext; then
24318   ac_lo=$ac_mid; break
24319 else
24320   echo "$as_me: failed program was:" >&5
24321 sed 's/^/| /' conftest.$ac_ext >&5
24322
24323         ac_hi=`expr '(' $ac_mid ')' - 1`
24324                         if test $ac_mid -le $ac_hi; then
24325                           ac_lo= ac_hi=
24326                           break
24327                         fi
24328                         ac_mid=`expr 2 '*' $ac_mid`
24329 fi
24330
24331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24332   done
24333 else
24334   echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24336
24337         ac_lo= ac_hi=
24338 fi
24339
24340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24341 fi
24342
24343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24344 # Binary search between lo and hi bounds.
24345 while test "x$ac_lo" != "x$ac_hi"; do
24346   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24347   cat >conftest.$ac_ext <<_ACEOF
24348 /* confdefs.h.  */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h.  */
24353
24354         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24355         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24356         #  error "fake wchar_t"
24357         #endif
24358         #ifdef HAVE_WCHAR_H
24359         #  ifdef __CYGWIN__
24360         #    include <stddef.h>
24361         #  endif
24362         #  include <wchar.h>
24363         #endif
24364         #ifdef HAVE_STDLIB_H
24365         #  include <stdlib.h>
24366         #endif
24367         #include <stdio.h>
24368
24369
24370
24371    typedef wchar_t ac__type_sizeof_;
24372 int
24373 main ()
24374 {
24375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24376 test_array [0] = 0
24377
24378   ;
24379   return 0;
24380 }
24381 _ACEOF
24382 rm -f conftest.$ac_objext
24383 if { (ac_try="$ac_compile"
24384 case "(($ac_try" in
24385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24386   *) ac_try_echo=$ac_try;;
24387 esac
24388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24389   (eval "$ac_compile") 2>conftest.er1
24390   ac_status=$?
24391   grep -v '^ *+' conftest.er1 >conftest.err
24392   rm -f conftest.er1
24393   cat conftest.err >&5
24394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395   (exit $ac_status); } && {
24396          test -z "$ac_c_werror_flag" ||
24397          test ! -s conftest.err
24398        } && test -s conftest.$ac_objext; then
24399   ac_hi=$ac_mid
24400 else
24401   echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24403
24404         ac_lo=`expr '(' $ac_mid ')' + 1`
24405 fi
24406
24407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24408 done
24409 case $ac_lo in
24410 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24411 '') if test "$ac_cv_type_wchar_t" = yes; then
24412      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24413 See \`config.log' for more details." >&5
24414 echo "$as_me: error: cannot compute sizeof (wchar_t)
24415 See \`config.log' for more details." >&2;}
24416    { (exit 77); exit 77; }; }
24417    else
24418      ac_cv_sizeof_wchar_t=0
24419    fi ;;
24420 esac
24421 else
24422   cat >conftest.$ac_ext <<_ACEOF
24423 /* confdefs.h.  */
24424 _ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h.  */
24428
24429         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24430         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24431         #  error "fake wchar_t"
24432         #endif
24433         #ifdef HAVE_WCHAR_H
24434         #  ifdef __CYGWIN__
24435         #    include <stddef.h>
24436         #  endif
24437         #  include <wchar.h>
24438         #endif
24439         #ifdef HAVE_STDLIB_H
24440         #  include <stdlib.h>
24441         #endif
24442         #include <stdio.h>
24443
24444
24445
24446    typedef wchar_t ac__type_sizeof_;
24447 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24448 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24449 #include <stdio.h>
24450 #include <stdlib.h>
24451 int
24452 main ()
24453 {
24454
24455   FILE *f = fopen ("conftest.val", "w");
24456   if (! f)
24457     return 1;
24458   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24459     {
24460       long int i = longval ();
24461       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24462         return 1;
24463       fprintf (f, "%ld\n", i);
24464     }
24465   else
24466     {
24467       unsigned long int i = ulongval ();
24468       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24469         return 1;
24470       fprintf (f, "%lu\n", i);
24471     }
24472   return ferror (f) || fclose (f) != 0;
24473
24474   ;
24475   return 0;
24476 }
24477 _ACEOF
24478 rm -f conftest$ac_exeext
24479 if { (ac_try="$ac_link"
24480 case "(($ac_try" in
24481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24482   *) ac_try_echo=$ac_try;;
24483 esac
24484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24485   (eval "$ac_link") 2>&5
24486   ac_status=$?
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24489   { (case "(($ac_try" in
24490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24491   *) ac_try_echo=$ac_try;;
24492 esac
24493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24494   (eval "$ac_try") 2>&5
24495   ac_status=$?
24496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497   (exit $ac_status); }; }; then
24498   ac_cv_sizeof_wchar_t=`cat conftest.val`
24499 else
24500   echo "$as_me: program exited with status $ac_status" >&5
24501 echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504 ( exit $ac_status )
24505 if test "$ac_cv_type_wchar_t" = yes; then
24506      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24507 See \`config.log' for more details." >&5
24508 echo "$as_me: error: cannot compute sizeof (wchar_t)
24509 See \`config.log' for more details." >&2;}
24510    { (exit 77); exit 77; }; }
24511    else
24512      ac_cv_sizeof_wchar_t=0
24513    fi
24514 fi
24515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24516 fi
24517 rm -f conftest.val
24518 fi
24519 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24520 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24521
24522
24523
24524 cat >>confdefs.h <<_ACEOF
24525 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24526 _ACEOF
24527
24528
24529 if test "$ac_cv_sizeof_wchar_t" = 0; then
24530     { { echo "$as_me:$LINENO: error: wxWidgets requires wchar_t support." >&5
24531 echo "$as_me: error: wxWidgets requires wchar_t support." >&2;}
24532    { (exit 1); exit 1; }; }
24533 fi
24534 cat >>confdefs.h <<\_ACEOF
24535 #define wxUSE_WCHAR_T 1
24536 _ACEOF
24537
24538
24539 { echo "$as_me:$LINENO: checking for va_copy" >&5
24540 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24541 if test "${wx_cv_func_va_copy+set}" = set; then
24542   echo $ECHO_N "(cached) $ECHO_C" >&6
24543 else
24544
24545         ac_ext=cpp
24546 ac_cpp='$CXXCPP $CPPFLAGS'
24547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24550
24551         cat >conftest.$ac_ext <<_ACEOF
24552
24553             /* confdefs.h.  */
24554 _ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h.  */
24558
24559                 #include <stdarg.h>
24560                 void foo(char *f, ...)
24561                 {
24562                     va_list ap1, ap2;
24563                     va_start(ap1, f);
24564                     va_copy(ap2, ap1);
24565                     va_end(ap2);
24566                     va_end(ap1);
24567                 }
24568                 int main()
24569                 {
24570                     foo("hi", 17);
24571                     return 0;
24572                 }
24573
24574 _ACEOF
24575 rm -f conftest.$ac_objext conftest$ac_exeext
24576 if { (ac_try="$ac_link"
24577 case "(($ac_try" in
24578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579   *) ac_try_echo=$ac_try;;
24580 esac
24581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24582   (eval "$ac_link") 2>conftest.er1
24583   ac_status=$?
24584   grep -v '^ *+' conftest.er1 >conftest.err
24585   rm -f conftest.er1
24586   cat conftest.err >&5
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); } && {
24589          test -z "$ac_cxx_werror_flag" ||
24590          test ! -s conftest.err
24591        } && test -s conftest$ac_exeext &&
24592        $as_test_x conftest$ac_exeext; then
24593   wx_cv_func_va_copy=yes
24594 else
24595   echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24597
24598         wx_cv_func_va_copy=no
24599
24600 fi
24601
24602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24603       conftest$ac_exeext conftest.$ac_ext
24604         ac_ext=c
24605 ac_cpp='$CPP $CPPFLAGS'
24606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24609
24610
24611
24612 fi
24613 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24614 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24615
24616 if test $wx_cv_func_va_copy = "yes"; then
24617     cat >>confdefs.h <<\_ACEOF
24618 #define HAVE_VA_COPY 1
24619 _ACEOF
24620
24621 else
24622         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24623 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24624 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24625   echo $ECHO_N "(cached) $ECHO_C" >&6
24626 else
24627
24628             if test "$cross_compiling" = yes; then
24629                   wx_cv_type_va_list_lvalue=yes
24630
24631 else
24632   cat >conftest.$ac_ext <<_ACEOF
24633
24634                 /* confdefs.h.  */
24635 _ACEOF
24636 cat confdefs.h >>conftest.$ac_ext
24637 cat >>conftest.$ac_ext <<_ACEOF
24638 /* end confdefs.h.  */
24639
24640                     #include <stdarg.h>
24641                     int foo(char *f, ...)
24642                     {
24643                         va_list ap1, ap2;
24644                         va_start(ap1, f);
24645                         ap2 = ap1;
24646                         if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24647                             return 1;
24648                         va_end(ap2);
24649                         va_end(ap1);
24650                         return 0;
24651                     }
24652                     int main()
24653                     {
24654                         return foo("hi", 17);
24655                     }
24656
24657 _ACEOF
24658 rm -f conftest$ac_exeext
24659 if { (ac_try="$ac_link"
24660 case "(($ac_try" in
24661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662   *) ac_try_echo=$ac_try;;
24663 esac
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665   (eval "$ac_link") 2>&5
24666   ac_status=$?
24667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24669   { (case "(($ac_try" in
24670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671   *) ac_try_echo=$ac_try;;
24672 esac
24673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674   (eval "$ac_try") 2>&5
24675   ac_status=$?
24676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677   (exit $ac_status); }; }; then
24678   wx_cv_type_va_list_lvalue=yes
24679 else
24680   echo "$as_me: program exited with status $ac_status" >&5
24681 echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24683
24684 ( exit $ac_status )
24685 wx_cv_type_va_list_lvalue=no
24686 fi
24687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24688 fi
24689
24690
24691
24692
24693 fi
24694 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24695 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24696
24697     if test $wx_cv_type_va_list_lvalue != "yes"; then
24698                         cat >>confdefs.h <<\_ACEOF
24699 #define VA_LIST_IS_ARRAY 1
24700 _ACEOF
24701
24702     fi
24703 fi
24704
24705 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24706
24707 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24708 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24709 if test "${wx_cv_have_variadic_macros+set}" = set; then
24710   echo $ECHO_N "(cached) $ECHO_C" >&6
24711 else
24712
24713                         ac_ext=cpp
24714 ac_cpp='$CXXCPP $CPPFLAGS'
24715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24718
24719         cat >conftest.$ac_ext <<_ACEOF
24720
24721             /* confdefs.h.  */
24722 _ACEOF
24723 cat confdefs.h >>conftest.$ac_ext
24724 cat >>conftest.$ac_ext <<_ACEOF
24725 /* end confdefs.h.  */
24726
24727                     #include <stdio.h>
24728                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24729
24730 int
24731 main ()
24732 {
24733
24734                     test("%s %d %p", "test", 1, 0);
24735
24736
24737   ;
24738   return 0;
24739 }
24740 _ACEOF
24741 rm -f conftest.$ac_objext
24742 if { (ac_try="$ac_compile"
24743 case "(($ac_try" in
24744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24745   *) ac_try_echo=$ac_try;;
24746 esac
24747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24748   (eval "$ac_compile") 2>conftest.er1
24749   ac_status=$?
24750   grep -v '^ *+' conftest.er1 >conftest.err
24751   rm -f conftest.er1
24752   cat conftest.err >&5
24753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754   (exit $ac_status); } && {
24755          test -z "$ac_cxx_werror_flag" ||
24756          test ! -s conftest.err
24757        } && test -s conftest.$ac_objext; then
24758   wx_cv_have_variadic_macros=yes
24759 else
24760   echo "$as_me: failed program was:" >&5
24761 sed 's/^/| /' conftest.$ac_ext >&5
24762
24763         wx_cv_have_variadic_macros=no
24764
24765 fi
24766
24767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24768         ac_ext=c
24769 ac_cpp='$CPP $CPPFLAGS'
24770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24773
24774
24775
24776 fi
24777 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24778 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24779
24780 if test $wx_cv_have_variadic_macros = "yes"; then
24781     cat >>confdefs.h <<\_ACEOF
24782 #define HAVE_VARIADIC_MACROS 1
24783 _ACEOF
24784
24785 fi
24786
24787 fi
24788
24789 LARGEFILE_CPPFLAGS=
24790 # Check whether --enable-largefile was given.
24791 if test "${enable_largefile+set}" = set; then
24792   enableval=$enable_largefile;
24793 fi
24794
24795 if test "$enable_largefile" != no; then
24796             wx_largefile=no
24797
24798     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24799 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24800 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24801   echo $ECHO_N "(cached) $ECHO_C" >&6
24802 else
24803
24804           cat >conftest.$ac_ext <<_ACEOF
24805 /* confdefs.h.  */
24806 _ACEOF
24807 cat confdefs.h >>conftest.$ac_ext
24808 cat >>conftest.$ac_ext <<_ACEOF
24809 /* end confdefs.h.  */
24810 #define _FILE_OFFSET_BITS 64
24811                           #include <sys/types.h>
24812 int
24813 main ()
24814 {
24815 typedef struct {
24816     unsigned int field: sizeof(off_t) == 8;
24817 } wxlf;
24818
24819   ;
24820   return 0;
24821 }
24822 _ACEOF
24823 rm -f conftest.$ac_objext
24824 if { (ac_try="$ac_compile"
24825 case "(($ac_try" in
24826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24827   *) ac_try_echo=$ac_try;;
24828 esac
24829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24830   (eval "$ac_compile") 2>conftest.er1
24831   ac_status=$?
24832   grep -v '^ *+' conftest.er1 >conftest.err
24833   rm -f conftest.er1
24834   cat conftest.err >&5
24835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836   (exit $ac_status); } && {
24837          test -z "$ac_c_werror_flag" ||
24838          test ! -s conftest.err
24839        } && test -s conftest.$ac_objext; then
24840   ac_cv_sys_file_offset_bits=64
24841 else
24842   echo "$as_me: failed program was:" >&5
24843 sed 's/^/| /' conftest.$ac_ext >&5
24844
24845         ac_cv_sys_file_offset_bits=no
24846 fi
24847
24848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24849
24850
24851 fi
24852 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24853 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24854
24855     if test "$ac_cv_sys_file_offset_bits" != no; then
24856         wx_largefile=yes
24857         cat >>confdefs.h <<_ACEOF
24858 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24859 _ACEOF
24860
24861     fi
24862
24863     if test "x$wx_largefile" != "xyes"; then
24864
24865     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24866 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24867 if test "${ac_cv_sys_large_files+set}" = set; then
24868   echo $ECHO_N "(cached) $ECHO_C" >&6
24869 else
24870
24871           cat >conftest.$ac_ext <<_ACEOF
24872 /* confdefs.h.  */
24873 _ACEOF
24874 cat confdefs.h >>conftest.$ac_ext
24875 cat >>conftest.$ac_ext <<_ACEOF
24876 /* end confdefs.h.  */
24877 #define _LARGE_FILES 1
24878                           #include <sys/types.h>
24879 int
24880 main ()
24881 {
24882 typedef struct {
24883     unsigned int field: sizeof(off_t) == 8;
24884 } wxlf;
24885
24886   ;
24887   return 0;
24888 }
24889 _ACEOF
24890 rm -f conftest.$ac_objext
24891 if { (ac_try="$ac_compile"
24892 case "(($ac_try" in
24893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24894   *) ac_try_echo=$ac_try;;
24895 esac
24896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24897   (eval "$ac_compile") 2>conftest.er1
24898   ac_status=$?
24899   grep -v '^ *+' conftest.er1 >conftest.err
24900   rm -f conftest.er1
24901   cat conftest.err >&5
24902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903   (exit $ac_status); } && {
24904          test -z "$ac_c_werror_flag" ||
24905          test ! -s conftest.err
24906        } && test -s conftest.$ac_objext; then
24907   ac_cv_sys_large_files=1
24908 else
24909   echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24911
24912         ac_cv_sys_large_files=no
24913 fi
24914
24915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24916
24917
24918 fi
24919 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24920 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24921
24922     if test "$ac_cv_sys_large_files" != no; then
24923         wx_largefile=yes
24924         cat >>confdefs.h <<_ACEOF
24925 #define _LARGE_FILES $ac_cv_sys_large_files
24926 _ACEOF
24927
24928     fi
24929
24930     fi
24931
24932     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24933 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24934     if test "x$wx_largefile" = "xyes"; then
24935         cat >>confdefs.h <<\_ACEOF
24936 #define HAVE_LARGEFILE_SUPPORT 1
24937 _ACEOF
24938
24939     fi
24940     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24941 echo "${ECHO_T}$wx_largefile" >&6; }
24942 fi
24943
24944 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24945     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24946 elif test "$ac_cv_sys_large_files" = 1; then
24947     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24948 fi
24949
24950 if test -n "$LARGEFILE_CPPFLAGS"; then
24951     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
24952
24953                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24954         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24955 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24956 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24957   echo $ECHO_N "(cached) $ECHO_C" >&6
24958 else
24959
24960                 ac_ext=cpp
24961 ac_cpp='$CXXCPP $CPPFLAGS'
24962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24965
24966                 cat >conftest.$ac_ext <<_ACEOF
24967 /* confdefs.h.  */
24968 _ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h.  */
24972
24973 int
24974 main ()
24975 {
24976
24977                         #ifndef __STDC_EXT__
24978                             choke me
24979                         #endif
24980
24981   ;
24982   return 0;
24983 }
24984 _ACEOF
24985 rm -f conftest.$ac_objext
24986 if { (ac_try="$ac_compile"
24987 case "(($ac_try" in
24988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989   *) ac_try_echo=$ac_try;;
24990 esac
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992   (eval "$ac_compile") 2>conftest.er1
24993   ac_status=$?
24994   grep -v '^ *+' conftest.er1 >conftest.err
24995   rm -f conftest.er1
24996   cat conftest.err >&5
24997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998   (exit $ac_status); } && {
24999          test -z "$ac_cxx_werror_flag" ||
25000          test ! -s conftest.err
25001        } && test -s conftest.$ac_objext; then
25002   wx_cv_STDC_EXT_required=no
25003 else
25004   echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25006
25007         wx_cv_STDC_EXT_required=yes
25008
25009 fi
25010
25011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25012                 ac_ext=c
25013 ac_cpp='$CPP $CPPFLAGS'
25014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25017
25018
25019
25020 fi
25021 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
25022 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
25023         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
25024             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
25025         fi
25026     fi
25027 fi
25028
25029 ac_ext=cpp
25030 ac_cpp='$CXXCPP $CPPFLAGS'
25031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25034
25035 old_CPPFLAGS="$CPPFLAGS"
25036 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
25037 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25038 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
25039 if test "${ac_cv_sys_largefile_source+set}" = set; then
25040   echo $ECHO_N "(cached) $ECHO_C" >&6
25041 else
25042   while :; do
25043   cat >conftest.$ac_ext <<_ACEOF
25044 /* confdefs.h.  */
25045 _ACEOF
25046 cat confdefs.h >>conftest.$ac_ext
25047 cat >>conftest.$ac_ext <<_ACEOF
25048 /* end confdefs.h.  */
25049 #include <sys/types.h> /* for off_t */
25050      #include <stdio.h>
25051 int
25052 main ()
25053 {
25054 int (*fp) (FILE *, off_t, int) = fseeko;
25055      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25056   ;
25057   return 0;
25058 }
25059 _ACEOF
25060 rm -f conftest.$ac_objext conftest$ac_exeext
25061 if { (ac_try="$ac_link"
25062 case "(($ac_try" in
25063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25064   *) ac_try_echo=$ac_try;;
25065 esac
25066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25067   (eval "$ac_link") 2>conftest.er1
25068   ac_status=$?
25069   grep -v '^ *+' conftest.er1 >conftest.err
25070   rm -f conftest.er1
25071   cat conftest.err >&5
25072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073   (exit $ac_status); } && {
25074          test -z "$ac_cxx_werror_flag" ||
25075          test ! -s conftest.err
25076        } && test -s conftest$ac_exeext &&
25077        $as_test_x conftest$ac_exeext; then
25078   ac_cv_sys_largefile_source=no; break
25079 else
25080   echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25082
25083
25084 fi
25085
25086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25087       conftest$ac_exeext conftest.$ac_ext
25088   cat >conftest.$ac_ext <<_ACEOF
25089 /* confdefs.h.  */
25090 _ACEOF
25091 cat confdefs.h >>conftest.$ac_ext
25092 cat >>conftest.$ac_ext <<_ACEOF
25093 /* end confdefs.h.  */
25094 #define _LARGEFILE_SOURCE 1
25095 #include <sys/types.h> /* for off_t */
25096      #include <stdio.h>
25097 int
25098 main ()
25099 {
25100 int (*fp) (FILE *, off_t, int) = fseeko;
25101      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25102   ;
25103   return 0;
25104 }
25105 _ACEOF
25106 rm -f conftest.$ac_objext conftest$ac_exeext
25107 if { (ac_try="$ac_link"
25108 case "(($ac_try" in
25109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25110   *) ac_try_echo=$ac_try;;
25111 esac
25112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25113   (eval "$ac_link") 2>conftest.er1
25114   ac_status=$?
25115   grep -v '^ *+' conftest.er1 >conftest.err
25116   rm -f conftest.er1
25117   cat conftest.err >&5
25118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); } && {
25120          test -z "$ac_cxx_werror_flag" ||
25121          test ! -s conftest.err
25122        } && test -s conftest$ac_exeext &&
25123        $as_test_x conftest$ac_exeext; then
25124   ac_cv_sys_largefile_source=1; break
25125 else
25126   echo "$as_me: failed program was:" >&5
25127 sed 's/^/| /' conftest.$ac_ext >&5
25128
25129
25130 fi
25131
25132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25133       conftest$ac_exeext conftest.$ac_ext
25134   ac_cv_sys_largefile_source=unknown
25135   break
25136 done
25137 fi
25138 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25139 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25140 case $ac_cv_sys_largefile_source in #(
25141   no | unknown) ;;
25142   *)
25143 cat >>confdefs.h <<_ACEOF
25144 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25145 _ACEOF
25146 ;;
25147 esac
25148 rm -f conftest*
25149
25150 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25151 # in glibc 2.1.3, but that breaks too many other things.
25152 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25153 if test $ac_cv_sys_largefile_source != unknown; then
25154
25155 cat >>confdefs.h <<\_ACEOF
25156 #define HAVE_FSEEKO 1
25157 _ACEOF
25158
25159 fi
25160
25161 CPPFLAGS="$old_CPPFLAGS"
25162 ac_ext=c
25163 ac_cpp='$CPP $CPPFLAGS'
25164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25167
25168 if test "$ac_cv_sys_largefile_source" != no; then
25169     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25170 fi
25171
25172 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25173 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25174 if test "${ac_cv_c_bigendian+set}" = set; then
25175   echo $ECHO_N "(cached) $ECHO_C" >&6
25176 else
25177   ac_cv_c_bigendian=unknown
25178 # See if sys/param.h defines the BYTE_ORDER macro.
25179 cat >conftest.$ac_ext <<_ACEOF
25180 /* confdefs.h.  */
25181 _ACEOF
25182 cat confdefs.h >>conftest.$ac_ext
25183 cat >>conftest.$ac_ext <<_ACEOF
25184 /* end confdefs.h.  */
25185 #include <sys/types.h>
25186 #include <sys/param.h>
25187 int
25188 main ()
25189 {
25190
25191 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25192  bogus endian macros
25193 #endif
25194   ;
25195   return 0;
25196 }
25197 _ACEOF
25198 rm -f conftest.$ac_objext
25199 if { (ac_try="$ac_compile"
25200 case "(($ac_try" in
25201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202   *) ac_try_echo=$ac_try;;
25203 esac
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205   (eval "$ac_compile") 2>conftest.er1
25206   ac_status=$?
25207   grep -v '^ *+' conftest.er1 >conftest.err
25208   rm -f conftest.er1
25209   cat conftest.err >&5
25210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211   (exit $ac_status); } && {
25212          test -z "$ac_c_werror_flag" ||
25213          test ! -s conftest.err
25214        } && test -s conftest.$ac_objext; then
25215   # It does; now see whether it defined to BIG_ENDIAN or not.
25216 cat >conftest.$ac_ext <<_ACEOF
25217 /* confdefs.h.  */
25218 _ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h.  */
25222 #include <sys/types.h>
25223 #include <sys/param.h>
25224 int
25225 main ()
25226 {
25227
25228 #if BYTE_ORDER != BIG_ENDIAN
25229  not big endian
25230 #endif
25231   ;
25232   return 0;
25233 }
25234 _ACEOF
25235 rm -f conftest.$ac_objext
25236 if { (ac_try="$ac_compile"
25237 case "(($ac_try" in
25238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25239   *) ac_try_echo=$ac_try;;
25240 esac
25241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25242   (eval "$ac_compile") 2>conftest.er1
25243   ac_status=$?
25244   grep -v '^ *+' conftest.er1 >conftest.err
25245   rm -f conftest.er1
25246   cat conftest.err >&5
25247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248   (exit $ac_status); } && {
25249          test -z "$ac_c_werror_flag" ||
25250          test ! -s conftest.err
25251        } && test -s conftest.$ac_objext; then
25252   ac_cv_c_bigendian=yes
25253 else
25254   echo "$as_me: failed program was:" >&5
25255 sed 's/^/| /' conftest.$ac_ext >&5
25256
25257         ac_cv_c_bigendian=no
25258 fi
25259
25260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25261 else
25262   echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25264
25265
25266 fi
25267
25268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25269 if test $ac_cv_c_bigendian = unknown; then
25270 if test "$cross_compiling" = yes; then
25271   ac_cv_c_bigendian=unknown
25272 else
25273   cat >conftest.$ac_ext <<_ACEOF
25274 /* confdefs.h.  */
25275 _ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h.  */
25279 main () {
25280   /* Are we little or big endian?  From Harbison&Steele.  */
25281   union
25282   {
25283     long l;
25284     char c[sizeof (long)];
25285   } u;
25286   u.l = 1;
25287   exit (u.c[sizeof (long) - 1] == 1);
25288 }
25289 _ACEOF
25290 rm -f conftest$ac_exeext
25291 if { (ac_try="$ac_link"
25292 case "(($ac_try" in
25293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25294   *) ac_try_echo=$ac_try;;
25295 esac
25296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25297   (eval "$ac_link") 2>&5
25298   ac_status=$?
25299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25301   { (case "(($ac_try" in
25302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25303   *) ac_try_echo=$ac_try;;
25304 esac
25305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25306   (eval "$ac_try") 2>&5
25307   ac_status=$?
25308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309   (exit $ac_status); }; }; then
25310   ac_cv_c_bigendian=no
25311 else
25312   echo "$as_me: program exited with status $ac_status" >&5
25313 echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25315
25316 ( exit $ac_status )
25317 ac_cv_c_bigendian=yes
25318 fi
25319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25320 fi
25321
25322
25323 fi
25324 fi
25325 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25326 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25327 if test $ac_cv_c_bigendian = unknown; then
25328   { 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
25329 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;}
25330 fi
25331 if test $ac_cv_c_bigendian = yes; then
25332   cat >>confdefs.h <<\_ACEOF
25333 #define WORDS_BIGENDIAN 1
25334 _ACEOF
25335
25336 fi
25337
25338
25339
25340
25341     ac_ext=cpp
25342 ac_cpp='$CXXCPP $CPPFLAGS'
25343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25346
25347
25348
25349 for ac_header in iostream
25350 do
25351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25355   echo $ECHO_N "(cached) $ECHO_C" >&6
25356 else
25357   cat >conftest.$ac_ext <<_ACEOF
25358 /* confdefs.h.  */
25359 _ACEOF
25360 cat confdefs.h >>conftest.$ac_ext
25361 cat >>conftest.$ac_ext <<_ACEOF
25362 /* end confdefs.h.  */
25363
25364
25365 #include <$ac_header>
25366 _ACEOF
25367 rm -f conftest.$ac_objext
25368 if { (ac_try="$ac_compile"
25369 case "(($ac_try" in
25370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25371   *) ac_try_echo=$ac_try;;
25372 esac
25373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25374   (eval "$ac_compile") 2>conftest.er1
25375   ac_status=$?
25376   grep -v '^ *+' conftest.er1 >conftest.err
25377   rm -f conftest.er1
25378   cat conftest.err >&5
25379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380   (exit $ac_status); } && {
25381          test -z "$ac_cxx_werror_flag" ||
25382          test ! -s conftest.err
25383        } && test -s conftest.$ac_objext; then
25384   eval "$as_ac_Header=yes"
25385 else
25386   echo "$as_me: failed program was:" >&5
25387 sed 's/^/| /' conftest.$ac_ext >&5
25388
25389         eval "$as_ac_Header=no"
25390 fi
25391
25392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25393 fi
25394 ac_res=`eval echo '${'$as_ac_Header'}'`
25395                { echo "$as_me:$LINENO: result: $ac_res" >&5
25396 echo "${ECHO_T}$ac_res" >&6; }
25397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25398   cat >>confdefs.h <<_ACEOF
25399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25400 _ACEOF
25401
25402 fi
25403
25404 done
25405
25406
25407     if test "$ac_cv_header_iostream" = "yes" ; then
25408       :
25409     else
25410       cat >>confdefs.h <<\_ACEOF
25411 #define wxUSE_IOSTREAMH 1
25412 _ACEOF
25413
25414     fi
25415
25416     ac_ext=c
25417 ac_cpp='$CPP $CPPFLAGS'
25418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25421
25422
25423
25424
25425   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25426 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25427 if test "${wx_cv_explicit+set}" = set; then
25428   echo $ECHO_N "(cached) $ECHO_C" >&6
25429 else
25430
25431
25432     ac_ext=cpp
25433 ac_cpp='$CXXCPP $CPPFLAGS'
25434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25437
25438
25439             cat >conftest.$ac_ext <<_ACEOF
25440 /* confdefs.h.  */
25441 _ACEOF
25442 cat confdefs.h >>conftest.$ac_ext
25443 cat >>conftest.$ac_ext <<_ACEOF
25444 /* end confdefs.h.  */
25445
25446         class Foo { public: explicit Foo(int) {} };
25447
25448 int
25449 main ()
25450 {
25451
25452         return 0;
25453
25454   ;
25455   return 0;
25456 }
25457 _ACEOF
25458 rm -f conftest.$ac_objext
25459 if { (ac_try="$ac_compile"
25460 case "(($ac_try" in
25461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462   *) ac_try_echo=$ac_try;;
25463 esac
25464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465   (eval "$ac_compile") 2>conftest.er1
25466   ac_status=$?
25467   grep -v '^ *+' conftest.er1 >conftest.err
25468   rm -f conftest.er1
25469   cat conftest.err >&5
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); } && {
25472          test -z "$ac_cxx_werror_flag" ||
25473          test ! -s conftest.err
25474        } && test -s conftest.$ac_objext; then
25475
25476         cat >conftest.$ac_ext <<_ACEOF
25477 /* confdefs.h.  */
25478 _ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h.  */
25482
25483                 class Foo { public: explicit Foo(int) {} };
25484                 static void TakeFoo(const Foo& foo) { }
25485
25486 int
25487 main ()
25488 {
25489
25490                 TakeFoo(17);
25491                 return 0;
25492
25493   ;
25494   return 0;
25495 }
25496 _ACEOF
25497 rm -f conftest.$ac_objext
25498 if { (ac_try="$ac_compile"
25499 case "(($ac_try" in
25500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501   *) ac_try_echo=$ac_try;;
25502 esac
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504   (eval "$ac_compile") 2>conftest.er1
25505   ac_status=$?
25506   grep -v '^ *+' conftest.er1 >conftest.err
25507   rm -f conftest.er1
25508   cat conftest.err >&5
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); } && {
25511          test -z "$ac_cxx_werror_flag" ||
25512          test ! -s conftest.err
25513        } && test -s conftest.$ac_objext; then
25514   wx_cv_explicit=no
25515 else
25516   echo "$as_me: failed program was:" >&5
25517 sed 's/^/| /' conftest.$ac_ext >&5
25518
25519         wx_cv_explicit=yes
25520
25521 fi
25522
25523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25524
25525 else
25526   echo "$as_me: failed program was:" >&5
25527 sed 's/^/| /' conftest.$ac_ext >&5
25528
25529         wx_cv_explicit=no
25530
25531 fi
25532
25533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534
25535     ac_ext=c
25536 ac_cpp='$CPP $CPPFLAGS'
25537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25540
25541
25542 fi
25543 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25544 echo "${ECHO_T}$wx_cv_explicit" >&6; }
25545
25546   if test "$wx_cv_explicit" = "yes"; then
25547     cat >>confdefs.h <<\_ACEOF
25548 #define HAVE_EXPLICIT 1
25549 _ACEOF
25550
25551   fi
25552
25553
25554 if test "x$SUNCXX" = xyes; then
25555     CXXFLAGS="-features=tmplife $CXXFLAGS"
25556 fi
25557
25558 if test "x$SUNCC" = xyes; then
25559     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25560 fi
25561
25562 if test "x$SGICC" = "xyes"; then
25563     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
25564 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
25565 if test "${wx_cv_prog_sgicc744+set}" = set; then
25566   echo $ECHO_N "(cached) $ECHO_C" >&6
25567 else
25568
25569             cat >conftest.$ac_ext <<_ACEOF
25570 /* confdefs.h.  */
25571 _ACEOF
25572 cat confdefs.h >>conftest.$ac_ext
25573 cat >>conftest.$ac_ext <<_ACEOF
25574 /* end confdefs.h.  */
25575
25576 int
25577 main ()
25578 {
25579
25580                     #if _SGI_COMPILER_VERSION >= 744
25581                     chock me: mipsPro is 7.4.4 or later
25582                     #endif
25583
25584   ;
25585   return 0;
25586 }
25587 _ACEOF
25588 rm -f conftest.$ac_objext
25589 if { (ac_try="$ac_compile"
25590 case "(($ac_try" in
25591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592   *) ac_try_echo=$ac_try;;
25593 esac
25594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25595   (eval "$ac_compile") 2>conftest.er1
25596   ac_status=$?
25597   grep -v '^ *+' conftest.er1 >conftest.err
25598   rm -f conftest.er1
25599   cat conftest.err >&5
25600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601   (exit $ac_status); } && {
25602          test -z "$ac_c_werror_flag" ||
25603          test ! -s conftest.err
25604        } && test -s conftest.$ac_objext; then
25605   wx_cv_prog_sgicc744=no
25606 else
25607   echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25609
25610         wx_cv_prog_sgicc744=yes
25611
25612 fi
25613
25614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25615
25616
25617 fi
25618 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
25619 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
25620
25621     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
25622         CFLAGS="-woff 3970 $CFLAGS"
25623     fi
25624 fi
25625 if test "x$SGICXX" = "xyes"; then
25626     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
25627 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
25628 if test "${wx_cv_prog_sgicxx744+set}" = set; then
25629   echo $ECHO_N "(cached) $ECHO_C" >&6
25630 else
25631
25632             ac_ext=cpp
25633 ac_cpp='$CXXCPP $CPPFLAGS'
25634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25637
25638             cat >conftest.$ac_ext <<_ACEOF
25639 /* confdefs.h.  */
25640 _ACEOF
25641 cat confdefs.h >>conftest.$ac_ext
25642 cat >>conftest.$ac_ext <<_ACEOF
25643 /* end confdefs.h.  */
25644
25645 int
25646 main ()
25647 {
25648
25649                     #if _SGI_COMPILER_VERSION >= 744
25650                     chock me: mipsPro is 7.4.4 or later
25651                     #endif
25652
25653   ;
25654   return 0;
25655 }
25656 _ACEOF
25657 rm -f conftest.$ac_objext
25658 if { (ac_try="$ac_compile"
25659 case "(($ac_try" in
25660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661   *) ac_try_echo=$ac_try;;
25662 esac
25663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25664   (eval "$ac_compile") 2>conftest.er1
25665   ac_status=$?
25666   grep -v '^ *+' conftest.er1 >conftest.err
25667   rm -f conftest.er1
25668   cat conftest.err >&5
25669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670   (exit $ac_status); } && {
25671          test -z "$ac_cxx_werror_flag" ||
25672          test ! -s conftest.err
25673        } && test -s conftest.$ac_objext; then
25674   wx_cv_prog_sgicxx744=no
25675 else
25676   echo "$as_me: failed program was:" >&5
25677 sed 's/^/| /' conftest.$ac_ext >&5
25678
25679         wx_cv_prog_sgicxx744=yes
25680
25681 fi
25682
25683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25684             ac_ext=c
25685 ac_cpp='$CPP $CPPFLAGS'
25686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25689
25690
25691
25692 fi
25693 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
25694 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
25695
25696     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
25697         CXXFLAGS="-woff 3970 $CXXFLAGS"
25698     fi
25699 fi
25700
25701 if test "x$HPCC" = "xyes"; then
25702                     CFLAGS="+W 2011,2450 $CFLAGS"
25703 fi
25704 if test "x$HPCXX" = "xyes"; then
25705                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
25706 fi
25707
25708 if test "x$COMPAQCXX" = "xyes"; then
25709                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25710 fi
25711
25712 ac_ext=cpp
25713 ac_cpp='$CXXCPP $CPPFLAGS'
25714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25717
25718
25719 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25720     if test "$wxUSE_UNICODE" = "yes"; then
25721         std_string="std::wstring"
25722         char_type="wchar_t"
25723     else
25724         std_string="std::string"
25725         char_type="char"
25726     fi
25727
25728         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25729 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
25730 if test "${wx_cv_class_stdstring+set}" = set; then
25731   echo $ECHO_N "(cached) $ECHO_C" >&6
25732 else
25733
25734             cat >conftest.$ac_ext <<_ACEOF
25735 /* confdefs.h.  */
25736 _ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h.  */
25740 #include <string>
25741 int
25742 main ()
25743 {
25744 $std_string foo;
25745   ;
25746   return 0;
25747 }
25748 _ACEOF
25749 rm -f conftest.$ac_objext
25750 if { (ac_try="$ac_compile"
25751 case "(($ac_try" in
25752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25753   *) ac_try_echo=$ac_try;;
25754 esac
25755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25756   (eval "$ac_compile") 2>conftest.er1
25757   ac_status=$?
25758   grep -v '^ *+' conftest.er1 >conftest.err
25759   rm -f conftest.er1
25760   cat conftest.err >&5
25761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762   (exit $ac_status); } && {
25763          test -z "$ac_cxx_werror_flag" ||
25764          test ! -s conftest.err
25765        } && test -s conftest.$ac_objext; then
25766   wx_cv_class_stdstring=yes
25767 else
25768   echo "$as_me: failed program was:" >&5
25769 sed 's/^/| /' conftest.$ac_ext >&5
25770
25771         wx_cv_class_stdstring=no
25772
25773 fi
25774
25775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25776
25777
25778 fi
25779 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25780 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25781
25782     if test "$wx_cv_class_stdstring" = yes; then
25783         if test "$wxUSE_UNICODE" = "yes"; then
25784             cat >>confdefs.h <<\_ACEOF
25785 #define HAVE_STD_WSTRING 1
25786 _ACEOF
25787
25788         fi
25789                     else
25790         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25791 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25792 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25793   echo $ECHO_N "(cached) $ECHO_C" >&6
25794 else
25795
25796                 cat >conftest.$ac_ext <<_ACEOF
25797 /* confdefs.h.  */
25798 _ACEOF
25799 cat confdefs.h >>conftest.$ac_ext
25800 cat >>conftest.$ac_ext <<_ACEOF
25801 /* end confdefs.h.  */
25802
25803                     #ifdef HAVE_WCHAR_H
25804                     #  ifdef __CYGWIN__
25805                     #    include <stddef.h>
25806                     #  endif
25807                     #  include <wchar.h>
25808                     #endif
25809                     #ifdef HAVE_STDLIB_H
25810                     #  include <stdlib.h>
25811                     #endif
25812                     #include <stdio.h>
25813                     #include <string>
25814
25815 int
25816 main ()
25817 {
25818 std::basic_string<$char_type> foo;
25819                      const $char_type* dummy = foo.c_str();
25820   ;
25821   return 0;
25822 }
25823 _ACEOF
25824 rm -f conftest.$ac_objext
25825 if { (ac_try="$ac_compile"
25826 case "(($ac_try" in
25827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25828   *) ac_try_echo=$ac_try;;
25829 esac
25830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25831   (eval "$ac_compile") 2>conftest.er1
25832   ac_status=$?
25833   grep -v '^ *+' conftest.er1 >conftest.err
25834   rm -f conftest.er1
25835   cat conftest.err >&5
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); } && {
25838          test -z "$ac_cxx_werror_flag" ||
25839          test ! -s conftest.err
25840        } && test -s conftest.$ac_objext; then
25841   wx_cv_class_stdbasicstring=yes
25842 else
25843   echo "$as_me: failed program was:" >&5
25844 sed 's/^/| /' conftest.$ac_ext >&5
25845
25846         wx_cv_class_stdbasicstring=no
25847
25848 fi
25849
25850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851
25852
25853 fi
25854 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25855 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25856
25857         if test "$wx_cv_class_stdbasicstring" != yes; then
25858             if test "$wxUSE_STL" = "yes"; then
25859                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25860 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25861    { (exit 1); exit 1; }; }
25862             elif test "$wxUSE_STD_STRING" = "yes"; then
25863                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25864 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25865    { (exit 1); exit 1; }; }
25866             else
25867                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25868 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25869                 wxUSE_STD_STRING=no
25870             fi
25871         fi
25872     fi
25873 fi
25874
25875 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25876     { echo "$as_me:$LINENO: checking for std::istream" >&5
25877 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25878 if test "${ac_cv_type_std__istream+set}" = set; then
25879   echo $ECHO_N "(cached) $ECHO_C" >&6
25880 else
25881   cat >conftest.$ac_ext <<_ACEOF
25882 /* confdefs.h.  */
25883 _ACEOF
25884 cat confdefs.h >>conftest.$ac_ext
25885 cat >>conftest.$ac_ext <<_ACEOF
25886 /* end confdefs.h.  */
25887 #include <iostream>
25888
25889 typedef std::istream ac__type_new_;
25890 int
25891 main ()
25892 {
25893 if ((ac__type_new_ *) 0)
25894   return 0;
25895 if (sizeof (ac__type_new_))
25896   return 0;
25897   ;
25898   return 0;
25899 }
25900 _ACEOF
25901 rm -f conftest.$ac_objext
25902 if { (ac_try="$ac_compile"
25903 case "(($ac_try" in
25904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25905   *) ac_try_echo=$ac_try;;
25906 esac
25907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25908   (eval "$ac_compile") 2>conftest.er1
25909   ac_status=$?
25910   grep -v '^ *+' conftest.er1 >conftest.err
25911   rm -f conftest.er1
25912   cat conftest.err >&5
25913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914   (exit $ac_status); } && {
25915          test -z "$ac_cxx_werror_flag" ||
25916          test ! -s conftest.err
25917        } && test -s conftest.$ac_objext; then
25918   ac_cv_type_std__istream=yes
25919 else
25920   echo "$as_me: failed program was:" >&5
25921 sed 's/^/| /' conftest.$ac_ext >&5
25922
25923         ac_cv_type_std__istream=no
25924 fi
25925
25926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25927 fi
25928 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25929 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25930 if test $ac_cv_type_std__istream = yes; then
25931
25932 cat >>confdefs.h <<_ACEOF
25933 #define HAVE_STD__ISTREAM 1
25934 _ACEOF
25935
25936
25937 else
25938   wxUSE_STD_IOSTREAM=no
25939 fi
25940 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25941 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25942 if test "${ac_cv_type_std__ostream+set}" = set; then
25943   echo $ECHO_N "(cached) $ECHO_C" >&6
25944 else
25945   cat >conftest.$ac_ext <<_ACEOF
25946 /* confdefs.h.  */
25947 _ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h.  */
25951 #include <iostream>
25952
25953 typedef std::ostream ac__type_new_;
25954 int
25955 main ()
25956 {
25957 if ((ac__type_new_ *) 0)
25958   return 0;
25959 if (sizeof (ac__type_new_))
25960   return 0;
25961   ;
25962   return 0;
25963 }
25964 _ACEOF
25965 rm -f conftest.$ac_objext
25966 if { (ac_try="$ac_compile"
25967 case "(($ac_try" in
25968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25969   *) ac_try_echo=$ac_try;;
25970 esac
25971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25972   (eval "$ac_compile") 2>conftest.er1
25973   ac_status=$?
25974   grep -v '^ *+' conftest.er1 >conftest.err
25975   rm -f conftest.er1
25976   cat conftest.err >&5
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); } && {
25979          test -z "$ac_cxx_werror_flag" ||
25980          test ! -s conftest.err
25981        } && test -s conftest.$ac_objext; then
25982   ac_cv_type_std__ostream=yes
25983 else
25984   echo "$as_me: failed program was:" >&5
25985 sed 's/^/| /' conftest.$ac_ext >&5
25986
25987         ac_cv_type_std__ostream=no
25988 fi
25989
25990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25991 fi
25992 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
25993 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
25994 if test $ac_cv_type_std__ostream = yes; then
25995
25996 cat >>confdefs.h <<_ACEOF
25997 #define HAVE_STD__OSTREAM 1
25998 _ACEOF
25999
26000
26001 else
26002   wxUSE_STD_IOSTREAM=no
26003 fi
26004
26005
26006     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
26007         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
26008             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
26009 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
26010    { (exit 1); exit 1; }; }
26011         else
26012             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
26013 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
26014         fi
26015     fi
26016 fi
26017
26018 if test "$wxUSE_STL" = "yes"; then
26019         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
26020 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
26021 if test "${wx_cv_lib_stl+set}" = set; then
26022   echo $ECHO_N "(cached) $ECHO_C" >&6
26023 else
26024   cat >conftest.$ac_ext <<_ACEOF
26025 /* confdefs.h.  */
26026 _ACEOF
26027 cat confdefs.h >>conftest.$ac_ext
26028 cat >>conftest.$ac_ext <<_ACEOF
26029 /* end confdefs.h.  */
26030 #include <string>
26031             #include <functional>
26032             #include <algorithm>
26033             #include <vector>
26034             #include <list>
26035 int
26036 main ()
26037 {
26038 std::vector<int> moo;
26039              std::list<int> foo;
26040              std::vector<int>::iterator it =
26041                  std::find_if(moo.begin(), moo.end(),
26042                               std::bind2nd(std::less<int>(), 3));
26043   ;
26044   return 0;
26045 }
26046 _ACEOF
26047 rm -f conftest.$ac_objext
26048 if { (ac_try="$ac_compile"
26049 case "(($ac_try" in
26050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26051   *) ac_try_echo=$ac_try;;
26052 esac
26053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26054   (eval "$ac_compile") 2>conftest.er1
26055   ac_status=$?
26056   grep -v '^ *+' conftest.er1 >conftest.err
26057   rm -f conftest.er1
26058   cat conftest.err >&5
26059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060   (exit $ac_status); } && {
26061          test -z "$ac_cxx_werror_flag" ||
26062          test ! -s conftest.err
26063        } && test -s conftest.$ac_objext; then
26064   wx_cv_lib_stl=yes
26065 else
26066   echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26068
26069         wx_cv_lib_stl=no
26070
26071 fi
26072
26073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26074
26075 fi
26076 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
26077 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
26078
26079     if test "$wx_cv_lib_stl" != yes; then
26080          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
26081 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
26082    { (exit 1); exit 1; }; }
26083     fi
26084
26085         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
26086 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
26087 if test "${wx_cv_func_stdstring_compare+set}" = set; then
26088   echo $ECHO_N "(cached) $ECHO_C" >&6
26089 else
26090   cat >conftest.$ac_ext <<_ACEOF
26091 /* confdefs.h.  */
26092 _ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h.  */
26096 #include <string>
26097 int
26098 main ()
26099 {
26100 std::string foo, bar;
26101             foo.compare(bar);
26102             foo.compare(1, 1, bar);
26103             foo.compare(1, 1, bar, 1, 1);
26104             foo.compare("");
26105             foo.compare(1, 1, "");
26106             foo.compare(1, 1, "", 2);
26107   ;
26108   return 0;
26109 }
26110 _ACEOF
26111 rm -f conftest.$ac_objext
26112 if { (ac_try="$ac_compile"
26113 case "(($ac_try" in
26114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26115   *) ac_try_echo=$ac_try;;
26116 esac
26117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26118   (eval "$ac_compile") 2>conftest.er1
26119   ac_status=$?
26120   grep -v '^ *+' conftest.er1 >conftest.err
26121   rm -f conftest.er1
26122   cat conftest.err >&5
26123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124   (exit $ac_status); } && {
26125          test -z "$ac_cxx_werror_flag" ||
26126          test ! -s conftest.err
26127        } && test -s conftest.$ac_objext; then
26128   wx_cv_func_stdstring_compare=yes
26129 else
26130   echo "$as_me: failed program was:" >&5
26131 sed 's/^/| /' conftest.$ac_ext >&5
26132
26133         wx_cv_func_stdstring_compare=no
26134
26135 fi
26136
26137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26138
26139 fi
26140 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
26141 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
26142
26143     if test "$wx_cv_func_stdstring_compare" = yes; then
26144         cat >>confdefs.h <<\_ACEOF
26145 #define HAVE_STD_STRING_COMPARE 1
26146 _ACEOF
26147
26148     fi
26149
26150     if test "$wx_cv_class_gnuhashmapset" = yes; then
26151          cat >>confdefs.h <<\_ACEOF
26152 #define HAVE_EXT_HASH_MAP 1
26153 _ACEOF
26154
26155          cat >>confdefs.h <<\_ACEOF
26156 #define HAVE_GNU_CXX_HASH_MAP 1
26157 _ACEOF
26158
26159     fi
26160
26161     { echo "$as_me:$LINENO: checking for unordered_map" >&5
26162 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
26163 if test "${ac_cv_header_unordered_map+set}" = set; then
26164   echo $ECHO_N "(cached) $ECHO_C" >&6
26165 else
26166   cat >conftest.$ac_ext <<_ACEOF
26167 /* confdefs.h.  */
26168 _ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h.  */
26172
26173
26174
26175 #include <unordered_map>
26176 _ACEOF
26177 rm -f conftest.$ac_objext
26178 if { (ac_try="$ac_compile"
26179 case "(($ac_try" in
26180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26181   *) ac_try_echo=$ac_try;;
26182 esac
26183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26184   (eval "$ac_compile") 2>conftest.er1
26185   ac_status=$?
26186   grep -v '^ *+' conftest.er1 >conftest.err
26187   rm -f conftest.er1
26188   cat conftest.err >&5
26189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190   (exit $ac_status); } && {
26191          test -z "$ac_cxx_werror_flag" ||
26192          test ! -s conftest.err
26193        } && test -s conftest.$ac_objext; then
26194   ac_cv_header_unordered_map=yes
26195 else
26196   echo "$as_me: failed program was:" >&5
26197 sed 's/^/| /' conftest.$ac_ext >&5
26198
26199         ac_cv_header_unordered_map=no
26200 fi
26201
26202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26203 fi
26204 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
26205 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
26206 if test $ac_cv_header_unordered_map = yes; then
26207   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
26208 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
26209 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
26210   echo $ECHO_N "(cached) $ECHO_C" >&6
26211 else
26212   cat >conftest.$ac_ext <<_ACEOF
26213 /* confdefs.h.  */
26214 _ACEOF
26215 cat confdefs.h >>conftest.$ac_ext
26216 cat >>conftest.$ac_ext <<_ACEOF
26217 /* end confdefs.h.  */
26218 #include <unordered_map>
26219                 #include <unordered_set>
26220 int
26221 main ()
26222 {
26223 std::unordered_map<double*, char*> test1;
26224                  std::unordered_set<char*> test2;
26225   ;
26226   return 0;
26227 }
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   wx_cv_class_stdunorderedmapset=yes
26247 else
26248   echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26250
26251         wx_cv_class_stdunorderedmapset=no
26252 fi
26253
26254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26255
26256
26257 fi
26258 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
26259 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
26260 fi
26261
26262
26263
26264     if test "$wx_cv_class_stdunorderedmapset" = yes; then
26265          cat >>confdefs.h <<\_ACEOF
26266 #define HAVE_STD_UNORDERED_MAP 1
26267 _ACEOF
26268
26269          cat >>confdefs.h <<\_ACEOF
26270 #define HAVE_STD_UNORDERED_SET 1
26271 _ACEOF
26272
26273     else
26274         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
26275 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
26276 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
26277   echo $ECHO_N "(cached) $ECHO_C" >&6
26278 else
26279   cat >conftest.$ac_ext <<_ACEOF
26280 /* confdefs.h.  */
26281 _ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h.  */
26285
26286
26287
26288 #include <tr1/unordered_map>
26289 _ACEOF
26290 rm -f conftest.$ac_objext
26291 if { (ac_try="$ac_compile"
26292 case "(($ac_try" in
26293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26294   *) ac_try_echo=$ac_try;;
26295 esac
26296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26297   (eval "$ac_compile") 2>conftest.er1
26298   ac_status=$?
26299   grep -v '^ *+' conftest.er1 >conftest.err
26300   rm -f conftest.er1
26301   cat conftest.err >&5
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); } && {
26304          test -z "$ac_cxx_werror_flag" ||
26305          test ! -s conftest.err
26306        } && test -s conftest.$ac_objext; then
26307   ac_cv_header_tr1_unordered_map=yes
26308 else
26309   echo "$as_me: failed program was:" >&5
26310 sed 's/^/| /' conftest.$ac_ext >&5
26311
26312         ac_cv_header_tr1_unordered_map=no
26313 fi
26314
26315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26316 fi
26317 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
26318 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
26319 if test $ac_cv_header_tr1_unordered_map = yes; then
26320   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
26321 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
26322 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
26323   echo $ECHO_N "(cached) $ECHO_C" >&6
26324 else
26325   cat >conftest.$ac_ext <<_ACEOF
26326 /* confdefs.h.  */
26327 _ACEOF
26328 cat confdefs.h >>conftest.$ac_ext
26329 cat >>conftest.$ac_ext <<_ACEOF
26330 /* end confdefs.h.  */
26331 #include <tr1/unordered_map>
26332                     #include <tr1/unordered_set>
26333 int
26334 main ()
26335 {
26336 std::tr1::unordered_map<double*, char*> test1;
26337                      std::tr1::unordered_set<char*> test2;
26338             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
26339             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
26340             #endif
26341   ;
26342   return 0;
26343 }
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   wx_cv_class_tr1unorderedmapset=yes
26363 else
26364   echo "$as_me: failed program was:" >&5
26365 sed 's/^/| /' conftest.$ac_ext >&5
26366
26367         wx_cv_class_tr1unorderedmapset=no
26368 fi
26369
26370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26371
26372
26373 fi
26374 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
26375 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
26376 fi
26377
26378
26379
26380         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
26381             cat >>confdefs.h <<\_ACEOF
26382 #define HAVE_TR1_UNORDERED_MAP 1
26383 _ACEOF
26384
26385             cat >>confdefs.h <<\_ACEOF
26386 #define HAVE_TR1_UNORDERED_SET 1
26387 _ACEOF
26388
26389         else
26390                         { echo "$as_me:$LINENO: checking for hash_map" >&5
26391 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26392 if test "${ac_cv_header_hash_map+set}" = set; then
26393   echo $ECHO_N "(cached) $ECHO_C" >&6
26394 else
26395   cat >conftest.$ac_ext <<_ACEOF
26396 /* confdefs.h.  */
26397 _ACEOF
26398 cat confdefs.h >>conftest.$ac_ext
26399 cat >>conftest.$ac_ext <<_ACEOF
26400 /* end confdefs.h.  */
26401
26402
26403
26404 #include <hash_map>
26405 _ACEOF
26406 rm -f conftest.$ac_objext
26407 if { (ac_try="$ac_compile"
26408 case "(($ac_try" in
26409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26410   *) ac_try_echo=$ac_try;;
26411 esac
26412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26413   (eval "$ac_compile") 2>conftest.er1
26414   ac_status=$?
26415   grep -v '^ *+' conftest.er1 >conftest.err
26416   rm -f conftest.er1
26417   cat conftest.err >&5
26418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419   (exit $ac_status); } && {
26420          test -z "$ac_cxx_werror_flag" ||
26421          test ! -s conftest.err
26422        } && test -s conftest.$ac_objext; then
26423   ac_cv_header_hash_map=yes
26424 else
26425   echo "$as_me: failed program was:" >&5
26426 sed 's/^/| /' conftest.$ac_ext >&5
26427
26428         ac_cv_header_hash_map=no
26429 fi
26430
26431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26432 fi
26433 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26434 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26435 if test $ac_cv_header_hash_map = yes; then
26436   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
26437 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
26438 if test "${wx_cv_class_stdhashmapset+set}" = set; then
26439   echo $ECHO_N "(cached) $ECHO_C" >&6
26440 else
26441   cat >conftest.$ac_ext <<_ACEOF
26442 /* confdefs.h.  */
26443 _ACEOF
26444 cat confdefs.h >>conftest.$ac_ext
26445 cat >>conftest.$ac_ext <<_ACEOF
26446 /* end confdefs.h.  */
26447 #include <hash_map>
26448                         #include <hash_set>
26449 int
26450 main ()
26451 {
26452 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
26453                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
26454   ;
26455   return 0;
26456 }
26457 _ACEOF
26458 rm -f conftest.$ac_objext
26459 if { (ac_try="$ac_compile"
26460 case "(($ac_try" in
26461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26462   *) ac_try_echo=$ac_try;;
26463 esac
26464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26465   (eval "$ac_compile") 2>conftest.er1
26466   ac_status=$?
26467   grep -v '^ *+' conftest.er1 >conftest.err
26468   rm -f conftest.er1
26469   cat conftest.err >&5
26470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471   (exit $ac_status); } && {
26472          test -z "$ac_cxx_werror_flag" ||
26473          test ! -s conftest.err
26474        } && test -s conftest.$ac_objext; then
26475   wx_cv_class_stdhashmapset=yes
26476 else
26477   echo "$as_me: failed program was:" >&5
26478 sed 's/^/| /' conftest.$ac_ext >&5
26479
26480         wx_cv_class_stdhashmapset=no
26481 fi
26482
26483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26484
26485
26486 fi
26487 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26488 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26489 fi
26490
26491
26492
26493             if test "$wx_cv_class_stdhashmapset" = yes; then
26494                 cat >>confdefs.h <<\_ACEOF
26495 #define HAVE_HASH_MAP 1
26496 _ACEOF
26497
26498                 cat >>confdefs.h <<\_ACEOF
26499 #define HAVE_STD_HASH_MAP 1
26500 _ACEOF
26501
26502             fi
26503
26504             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26505 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26506 if test "${ac_cv_header_ext_hash_map+set}" = set; then
26507   echo $ECHO_N "(cached) $ECHO_C" >&6
26508 else
26509   cat >conftest.$ac_ext <<_ACEOF
26510 /* confdefs.h.  */
26511 _ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h.  */
26515
26516
26517
26518 #include <ext/hash_map>
26519 _ACEOF
26520 rm -f conftest.$ac_objext
26521 if { (ac_try="$ac_compile"
26522 case "(($ac_try" in
26523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26524   *) ac_try_echo=$ac_try;;
26525 esac
26526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26527   (eval "$ac_compile") 2>conftest.er1
26528   ac_status=$?
26529   grep -v '^ *+' conftest.er1 >conftest.err
26530   rm -f conftest.er1
26531   cat conftest.err >&5
26532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533   (exit $ac_status); } && {
26534          test -z "$ac_cxx_werror_flag" ||
26535          test ! -s conftest.err
26536        } && test -s conftest.$ac_objext; then
26537   ac_cv_header_ext_hash_map=yes
26538 else
26539   echo "$as_me: failed program was:" >&5
26540 sed 's/^/| /' conftest.$ac_ext >&5
26541
26542         ac_cv_header_ext_hash_map=no
26543 fi
26544
26545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26546 fi
26547 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26548 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26549 if test $ac_cv_header_ext_hash_map = yes; then
26550   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26551 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26552 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
26553   echo $ECHO_N "(cached) $ECHO_C" >&6
26554 else
26555   cat >conftest.$ac_ext <<_ACEOF
26556 /* confdefs.h.  */
26557 _ACEOF
26558 cat confdefs.h >>conftest.$ac_ext
26559 cat >>conftest.$ac_ext <<_ACEOF
26560 /* end confdefs.h.  */
26561 #include <ext/hash_map>
26562                         #include <ext/hash_set>
26563 int
26564 main ()
26565 {
26566 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26567                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26568   ;
26569   return 0;
26570 }
26571 _ACEOF
26572 rm -f conftest.$ac_objext
26573 if { (ac_try="$ac_compile"
26574 case "(($ac_try" in
26575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576   *) ac_try_echo=$ac_try;;
26577 esac
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579   (eval "$ac_compile") 2>conftest.er1
26580   ac_status=$?
26581   grep -v '^ *+' conftest.er1 >conftest.err
26582   rm -f conftest.er1
26583   cat conftest.err >&5
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); } && {
26586          test -z "$ac_cxx_werror_flag" ||
26587          test ! -s conftest.err
26588        } && test -s conftest.$ac_objext; then
26589   wx_cv_class_gnuhashmapset=yes
26590 else
26591   echo "$as_me: failed program was:" >&5
26592 sed 's/^/| /' conftest.$ac_ext >&5
26593
26594         wx_cv_class_gnuhashmapset=no
26595 fi
26596
26597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26598
26599
26600 fi
26601 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26602 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26603 fi
26604
26605
26606
26607         fi
26608     fi
26609 fi
26610
26611 ac_ext=cpp
26612 ac_cpp='$CXXCPP $CPPFLAGS'
26613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26616 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
26617 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
26618 if test -z "$CXXCPP"; then
26619   if test "${ac_cv_prog_CXXCPP+set}" = set; then
26620   echo $ECHO_N "(cached) $ECHO_C" >&6
26621 else
26622       # Double quotes because CXXCPP needs to be expanded
26623     for CXXCPP in "$CXX -E" "/lib/cpp"
26624     do
26625       ac_preproc_ok=false
26626 for ac_cxx_preproc_warn_flag in '' yes
26627 do
26628   # Use a header file that comes with gcc, so configuring glibc
26629   # with a fresh cross-compiler works.
26630   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26631   # <limits.h> exists even on freestanding compilers.
26632   # On the NeXT, cc -E runs the code through the compiler's parser,
26633   # not just through cpp. "Syntax error" is here to catch this case.
26634   cat >conftest.$ac_ext <<_ACEOF
26635 /* confdefs.h.  */
26636 _ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h.  */
26640 #ifdef __STDC__
26641 # include <limits.h>
26642 #else
26643 # include <assert.h>
26644 #endif
26645                      Syntax error
26646 _ACEOF
26647 if { (ac_try="$ac_cpp conftest.$ac_ext"
26648 case "(($ac_try" in
26649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26650   *) ac_try_echo=$ac_try;;
26651 esac
26652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26654   ac_status=$?
26655   grep -v '^ *+' conftest.er1 >conftest.err
26656   rm -f conftest.er1
26657   cat conftest.err >&5
26658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659   (exit $ac_status); } >/dev/null && {
26660          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26661          test ! -s conftest.err
26662        }; then
26663   :
26664 else
26665   echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26667
26668   # Broken: fails on valid input.
26669 continue
26670 fi
26671
26672 rm -f conftest.err conftest.$ac_ext
26673
26674   # OK, works on sane cases.  Now check whether nonexistent headers
26675   # can be detected and how.
26676   cat >conftest.$ac_ext <<_ACEOF
26677 /* confdefs.h.  */
26678 _ACEOF
26679 cat confdefs.h >>conftest.$ac_ext
26680 cat >>conftest.$ac_ext <<_ACEOF
26681 /* end confdefs.h.  */
26682 #include <ac_nonexistent.h>
26683 _ACEOF
26684 if { (ac_try="$ac_cpp conftest.$ac_ext"
26685 case "(($ac_try" in
26686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26687   *) ac_try_echo=$ac_try;;
26688 esac
26689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26691   ac_status=$?
26692   grep -v '^ *+' conftest.er1 >conftest.err
26693   rm -f conftest.er1
26694   cat conftest.err >&5
26695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696   (exit $ac_status); } >/dev/null && {
26697          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26698          test ! -s conftest.err
26699        }; then
26700   # Broken: success on invalid input.
26701 continue
26702 else
26703   echo "$as_me: failed program was:" >&5
26704 sed 's/^/| /' conftest.$ac_ext >&5
26705
26706   # Passes both tests.
26707 ac_preproc_ok=:
26708 break
26709 fi
26710
26711 rm -f conftest.err conftest.$ac_ext
26712
26713 done
26714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26715 rm -f conftest.err conftest.$ac_ext
26716 if $ac_preproc_ok; then
26717   break
26718 fi
26719
26720     done
26721     ac_cv_prog_CXXCPP=$CXXCPP
26722
26723 fi
26724   CXXCPP=$ac_cv_prog_CXXCPP
26725 else
26726   ac_cv_prog_CXXCPP=$CXXCPP
26727 fi
26728 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
26729 echo "${ECHO_T}$CXXCPP" >&6; }
26730 ac_preproc_ok=false
26731 for ac_cxx_preproc_warn_flag in '' yes
26732 do
26733   # Use a header file that comes with gcc, so configuring glibc
26734   # with a fresh cross-compiler works.
26735   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26736   # <limits.h> exists even on freestanding compilers.
26737   # On the NeXT, cc -E runs the code through the compiler's parser,
26738   # not just through cpp. "Syntax error" is here to catch this case.
26739   cat >conftest.$ac_ext <<_ACEOF
26740 /* confdefs.h.  */
26741 _ACEOF
26742 cat confdefs.h >>conftest.$ac_ext
26743 cat >>conftest.$ac_ext <<_ACEOF
26744 /* end confdefs.h.  */
26745 #ifdef __STDC__
26746 # include <limits.h>
26747 #else
26748 # include <assert.h>
26749 #endif
26750                      Syntax error
26751 _ACEOF
26752 if { (ac_try="$ac_cpp conftest.$ac_ext"
26753 case "(($ac_try" in
26754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26755   *) ac_try_echo=$ac_try;;
26756 esac
26757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26759   ac_status=$?
26760   grep -v '^ *+' conftest.er1 >conftest.err
26761   rm -f conftest.er1
26762   cat conftest.err >&5
26763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764   (exit $ac_status); } >/dev/null && {
26765          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26766          test ! -s conftest.err
26767        }; then
26768   :
26769 else
26770   echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26772
26773   # Broken: fails on valid input.
26774 continue
26775 fi
26776
26777 rm -f conftest.err conftest.$ac_ext
26778
26779   # OK, works on sane cases.  Now check whether nonexistent headers
26780   # can be detected and how.
26781   cat >conftest.$ac_ext <<_ACEOF
26782 /* confdefs.h.  */
26783 _ACEOF
26784 cat confdefs.h >>conftest.$ac_ext
26785 cat >>conftest.$ac_ext <<_ACEOF
26786 /* end confdefs.h.  */
26787 #include <ac_nonexistent.h>
26788 _ACEOF
26789 if { (ac_try="$ac_cpp conftest.$ac_ext"
26790 case "(($ac_try" in
26791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26792   *) ac_try_echo=$ac_try;;
26793 esac
26794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26796   ac_status=$?
26797   grep -v '^ *+' conftest.er1 >conftest.err
26798   rm -f conftest.er1
26799   cat conftest.err >&5
26800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801   (exit $ac_status); } >/dev/null && {
26802          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26803          test ! -s conftest.err
26804        }; then
26805   # Broken: success on invalid input.
26806 continue
26807 else
26808   echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26810
26811   # Passes both tests.
26812 ac_preproc_ok=:
26813 break
26814 fi
26815
26816 rm -f conftest.err conftest.$ac_ext
26817
26818 done
26819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26820 rm -f conftest.err conftest.$ac_ext
26821 if $ac_preproc_ok; then
26822   :
26823 else
26824   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26825 See \`config.log' for more details." >&5
26826 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26827 See \`config.log' for more details." >&2;}
26828    { (exit 1); exit 1; }; }
26829 fi
26830
26831 ac_ext=cpp
26832 ac_cpp='$CXXCPP $CPPFLAGS'
26833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26836
26837
26838
26839
26840 for ac_header in type_traits tr1/type_traits
26841 do
26842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26844   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26847   echo $ECHO_N "(cached) $ECHO_C" >&6
26848 fi
26849 ac_res=`eval echo '${'$as_ac_Header'}'`
26850                { echo "$as_me:$LINENO: result: $ac_res" >&5
26851 echo "${ECHO_T}$ac_res" >&6; }
26852 else
26853   # Is the header compilable?
26854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26856 cat >conftest.$ac_ext <<_ACEOF
26857 /* confdefs.h.  */
26858 _ACEOF
26859 cat confdefs.h >>conftest.$ac_ext
26860 cat >>conftest.$ac_ext <<_ACEOF
26861 /* end confdefs.h.  */
26862 $ac_includes_default
26863 #include <$ac_header>
26864 _ACEOF
26865 rm -f conftest.$ac_objext
26866 if { (ac_try="$ac_compile"
26867 case "(($ac_try" in
26868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26869   *) ac_try_echo=$ac_try;;
26870 esac
26871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26872   (eval "$ac_compile") 2>conftest.er1
26873   ac_status=$?
26874   grep -v '^ *+' conftest.er1 >conftest.err
26875   rm -f conftest.er1
26876   cat conftest.err >&5
26877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878   (exit $ac_status); } && {
26879          test -z "$ac_cxx_werror_flag" ||
26880          test ! -s conftest.err
26881        } && test -s conftest.$ac_objext; then
26882   ac_header_compiler=yes
26883 else
26884   echo "$as_me: failed program was:" >&5
26885 sed 's/^/| /' conftest.$ac_ext >&5
26886
26887         ac_header_compiler=no
26888 fi
26889
26890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26891 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26892 echo "${ECHO_T}$ac_header_compiler" >&6; }
26893
26894 # Is the header present?
26895 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26897 cat >conftest.$ac_ext <<_ACEOF
26898 /* confdefs.h.  */
26899 _ACEOF
26900 cat confdefs.h >>conftest.$ac_ext
26901 cat >>conftest.$ac_ext <<_ACEOF
26902 /* end confdefs.h.  */
26903 #include <$ac_header>
26904 _ACEOF
26905 if { (ac_try="$ac_cpp conftest.$ac_ext"
26906 case "(($ac_try" in
26907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26908   *) ac_try_echo=$ac_try;;
26909 esac
26910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26912   ac_status=$?
26913   grep -v '^ *+' conftest.er1 >conftest.err
26914   rm -f conftest.er1
26915   cat conftest.err >&5
26916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917   (exit $ac_status); } >/dev/null && {
26918          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26919          test ! -s conftest.err
26920        }; then
26921   ac_header_preproc=yes
26922 else
26923   echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.$ac_ext >&5
26925
26926   ac_header_preproc=no
26927 fi
26928
26929 rm -f conftest.err conftest.$ac_ext
26930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26931 echo "${ECHO_T}$ac_header_preproc" >&6; }
26932
26933 # So?  What about this header?
26934 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26935   yes:no: )
26936     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26940     ac_header_preproc=yes
26941     ;;
26942   no:yes:* )
26943     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26945     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26946 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26947     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26949     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26950 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26953     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26955     ( cat <<\_ASBOX
26956 ## ----------------------------------------- ##
26957 ## Report this to wx-dev@lists.wxwidgets.org ##
26958 ## ----------------------------------------- ##
26959 _ASBOX
26960      ) | sed "s/^/$as_me: WARNING:     /" >&2
26961     ;;
26962 esac
26963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26966   echo $ECHO_N "(cached) $ECHO_C" >&6
26967 else
26968   eval "$as_ac_Header=\$ac_header_preproc"
26969 fi
26970 ac_res=`eval echo '${'$as_ac_Header'}'`
26971                { echo "$as_me:$LINENO: result: $ac_res" >&5
26972 echo "${ECHO_T}$ac_res" >&6; }
26973
26974 fi
26975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26976   cat >>confdefs.h <<_ACEOF
26977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26978 _ACEOF
26979
26980 fi
26981
26982 done
26983
26984
26985
26986
26987   if test -n "$GCC"; then
26988     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
26989 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
26990     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
26991   echo $ECHO_N "(cached) $ECHO_C" >&6
26992 else
26993
26994       cat >conftest.$ac_ext <<_ACEOF
26995 /* confdefs.h.  */
26996 _ACEOF
26997 cat confdefs.h >>conftest.$ac_ext
26998 cat >>conftest.$ac_ext <<_ACEOF
26999 /* end confdefs.h.  */
27000
27001 int
27002 main ()
27003 {
27004
27005           unsigned int value=0;
27006           /* wxAtomicInc doesn't use return value here */
27007           __sync_fetch_and_add(&value, 2);
27008           __sync_sub_and_fetch(&value, 1);
27009           /* but wxAtomicDec does, so mimic that: */
27010           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
27011
27012   ;
27013   return 0;
27014 }
27015 _ACEOF
27016 rm -f conftest.$ac_objext conftest$ac_exeext
27017 if { (ac_try="$ac_link"
27018 case "(($ac_try" in
27019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020   *) ac_try_echo=$ac_try;;
27021 esac
27022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023   (eval "$ac_link") 2>conftest.er1
27024   ac_status=$?
27025   grep -v '^ *+' conftest.er1 >conftest.err
27026   rm -f conftest.er1
27027   cat conftest.err >&5
27028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029   (exit $ac_status); } && {
27030          test -z "$ac_cxx_werror_flag" ||
27031          test ! -s conftest.err
27032        } && test -s conftest$ac_exeext &&
27033        $as_test_x conftest$ac_exeext; then
27034   wx_cv_cc_gcc_atomic_builtins=yes
27035 else
27036   echo "$as_me: failed program was:" >&5
27037 sed 's/^/| /' conftest.$ac_ext >&5
27038
27039         wx_cv_cc_gcc_atomic_builtins=no
27040 fi
27041
27042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27043       conftest$ac_exeext conftest.$ac_ext
27044
27045 fi
27046
27047     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
27048 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
27049     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
27050       cat >>confdefs.h <<\_ACEOF
27051 #define HAVE_GCC_ATOMIC_BUILTINS 1
27052 _ACEOF
27053
27054     fi
27055   fi
27056
27057
27058 ac_ext=c
27059 ac_cpp='$CPP $CPPFLAGS'
27060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27063
27064
27065
27066 SEARCH_INCLUDE="\
27067     /usr/local/include        \
27068     /usr/local/X11/include    \
27069     /usr/local/include/X11    \
27070     /usr/local/X11R7/include  \
27071     /usr/local/X11R6/include  \
27072     /usr/local/include/X11R7  \
27073     /usr/local/include/X11R6  \
27074                               \
27075     /usr/Motif-2.1/include    \
27076     /usr/Motif-1.2/include    \
27077     /usr/include/Motif1.2     \
27078                               \
27079     /usr/dt/include           \
27080     /usr/openwin/include      \
27081                               \
27082     /usr/include/Xm           \
27083                               \
27084     /usr/X11R7/include        \
27085     /usr/X11R6/include        \
27086     /usr/X11R6.4/include      \
27087                               \
27088     /usr/include/X11R7        \
27089     /usr/include/X11R6        \
27090                               \
27091     /usr/X11/include          \
27092     /usr/include/X11          \
27093                               \
27094     /usr/XFree86/include/X11  \
27095     /usr/pkg/include          \
27096                               \
27097     /usr/local/X1R5/include  \
27098     /usr/local/include/X11R5  \
27099     /usr/X11R5/include        \
27100     /usr/include/X11R5        \
27101                               \
27102     /usr/local/X11R4/include  \
27103     /usr/local/include/X11R4  \
27104     /usr/X11R4/include        \
27105     /usr/include/X11R4        \
27106                               \
27107     /usr/openwin/share/include"
27108
27109 { echo "$as_me:$LINENO: checking for libraries directories" >&5
27110 echo $ECHO_N "checking for libraries directories... $ECHO_C" >&6; }
27111
27112 case "${host}" in
27113     *-*-irix6* )
27114         if test "${wx_cv_std_libpath+set}" = set; then
27115   echo $ECHO_N "(cached) $ECHO_C" >&6
27116 else
27117
27118                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27119                     for e in a so sl dylib dll.a; do
27120                         libc="$d/libc.$e"
27121                         if test -f $libc; then
27122                             save_LIBS="$LIBS"
27123                             LIBS="$libc"
27124                             cat >conftest.$ac_ext <<_ACEOF
27125
27126                                     /* confdefs.h.  */
27127 _ACEOF
27128 cat confdefs.h >>conftest.$ac_ext
27129 cat >>conftest.$ac_ext <<_ACEOF
27130 /* end confdefs.h.  */
27131 int main() { return 0; }
27132
27133 _ACEOF
27134 rm -f conftest.$ac_objext conftest$ac_exeext
27135 if { (ac_try="$ac_link"
27136 case "(($ac_try" in
27137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27138   *) ac_try_echo=$ac_try;;
27139 esac
27140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27141   (eval "$ac_link") 2>conftest.er1
27142   ac_status=$?
27143   grep -v '^ *+' conftest.er1 >conftest.err
27144   rm -f conftest.er1
27145   cat conftest.err >&5
27146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147   (exit $ac_status); } && {
27148          test -z "$ac_c_werror_flag" ||
27149          test ! -s conftest.err
27150        } && test -s conftest$ac_exeext &&
27151        $as_test_x conftest$ac_exeext; then
27152   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27153 else
27154   echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.$ac_ext >&5
27156
27157
27158 fi
27159
27160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27161       conftest$ac_exeext conftest.$ac_ext
27162                             LIBS="$save_LIBS"
27163                             if test "x$wx_cv_std_libpath" != "x"; then
27164                                 break 2
27165                             fi
27166                         fi
27167                     done
27168                 done
27169
27170
27171 fi
27172
27173         ;;
27174
27175     *-*-solaris2* )
27176                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27177             wx_cv_std_libpath="lib/64"
27178         fi
27179         ;;
27180
27181     *-*-linux* )
27182                                         if test "$ac_cv_sizeof_void_p" = 8; then
27183             if test -d "/usr/lib/`uname -m`-linux-gnu"; then
27184                 wx_cv_std_libfullpath="/usr/lib/`uname -m`-linux-gnu"
27185             elif test -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27186                 wx_cv_std_libpath="lib64"
27187             fi
27188         else
27189             case "${host}" in
27190                 i*86-*-linux* )
27191                     if test -d '/usr/lib/i386-linux-gnu'; then
27192                         wx_cv_std_libfullpath='/usr/lib/i386-linux-gnu'
27193                     fi
27194             esac
27195         fi
27196
27197                                 if test -n "$wx_cv_std_libfullpath" -a -d "/usr/lib"; then
27198             wx_cv_std_libfullpath="$wx_cv_std_libfullpath /usr/lib"
27199         fi
27200         ;;
27201 esac
27202
27203 if test -z "$wx_cv_std_libpath"; then
27204     wx_cv_std_libpath="lib"
27205 fi
27206
27207 if test -z "$wx_cv_std_libfullpath"; then
27208     wx_cv_std_libfullpath="/usr/$wx_cv_std_libpath"
27209 fi
27210
27211
27212 { echo "$as_me:$LINENO: result: $wx_cv_std_libfullpath" >&5
27213 echo "${ECHO_T}$wx_cv_std_libfullpath" >&6; }
27214
27215 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` $wx_cv_std_libfullpath"
27216
27217 if test "$build" != "$host" -a "$GCC" = yes; then
27218                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27219         cross_root=`dirname $cross_root`
27220         cross_root=`dirname $cross_root`
27221
27222                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27223         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27224         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27225
27226                 if test -z "$PKG_CONFIG_PATH"; then
27227             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27228             export PKG_CONFIG_PATH
27229         fi
27230
27231                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27232
27233 ac_find_includes=
27234 for ac_dir in $SEARCH_INCLUDE /usr/include
27235   do
27236     if test -f "$ac_dir/X11/Intrinsic.h"; then
27237       ac_find_includes=$ac_dir
27238       break
27239     fi
27240   done
27241
27242             x_includes=$ac_find_includes
27243         fi
27244         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27245
27246   ac_find_libraries=
27247   for ac_dir in $SEARCH_LIB
27248   do
27249     for ac_extension in a so sl dylib dll.a; do
27250       if test -f "$ac_dir/libXt.$ac_extension"; then
27251         ac_find_libraries=$ac_dir
27252         break 2
27253       fi
27254     done
27255   done
27256
27257             x_libraries=$ac_find_libraries
27258         fi
27259     fi
27260 fi
27261
27262
27263 cat >confcache <<\_ACEOF
27264 # This file is a shell script that caches the results of configure
27265 # tests run on this system so they can be shared between configure
27266 # scripts and configure runs, see configure's option --config-cache.
27267 # It is not useful on other systems.  If it contains results you don't
27268 # want to keep, you may remove or edit it.
27269 #
27270 # config.status only pays attention to the cache file if you give it
27271 # the --recheck option to rerun configure.
27272 #
27273 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27274 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27275 # following values.
27276
27277 _ACEOF
27278
27279 # The following way of writing the cache mishandles newlines in values,
27280 # but we know of no workaround that is simple, portable, and efficient.
27281 # So, we kill variables containing newlines.
27282 # Ultrix sh set writes to stderr and can't be redirected directly,
27283 # and sets the high bit in the cache file unless we assign to the vars.
27284 (
27285   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27286     eval ac_val=\$$ac_var
27287     case $ac_val in #(
27288     *${as_nl}*)
27289       case $ac_var in #(
27290       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27291 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27292       esac
27293       case $ac_var in #(
27294       _ | IFS | as_nl) ;; #(
27295       *) $as_unset $ac_var ;;
27296       esac ;;
27297     esac
27298   done
27299
27300   (set) 2>&1 |
27301     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27302     *${as_nl}ac_space=\ *)
27303       # `set' does not quote correctly, so add quotes (double-quote
27304       # substitution turns \\\\ into \\, and sed turns \\ into \).
27305       sed -n \
27306         "s/'/'\\\\''/g;
27307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27308       ;; #(
27309     *)
27310       # `set' quotes correctly as required by POSIX, so do not add quotes.
27311       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27312       ;;
27313     esac |
27314     sort
27315 ) |
27316   sed '
27317      /^ac_cv_env_/b end
27318      t clear
27319      :clear
27320      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27321      t end
27322      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27323      :end' >>confcache
27324 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27325   if test -w "$cache_file"; then
27326     test "x$cache_file" != "x/dev/null" &&
27327       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27328 echo "$as_me: updating cache $cache_file" >&6;}
27329     cat confcache >$cache_file
27330   else
27331     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27332 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27333   fi
27334 fi
27335 rm -f confcache
27336
27337 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27338     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27339 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27340 if test "${wx_cv_lib_glibc21+set}" = set; then
27341   echo $ECHO_N "(cached) $ECHO_C" >&6
27342 else
27343
27344         cat >conftest.$ac_ext <<_ACEOF
27345 /* confdefs.h.  */
27346 _ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h.  */
27350 #include <features.h>
27351 int
27352 main ()
27353 {
27354
27355                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27356                 not glibc 2.1
27357                 #endif
27358
27359   ;
27360   return 0;
27361 }
27362 _ACEOF
27363 rm -f conftest.$ac_objext
27364 if { (ac_try="$ac_compile"
27365 case "(($ac_try" in
27366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27367   *) ac_try_echo=$ac_try;;
27368 esac
27369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27370   (eval "$ac_compile") 2>conftest.er1
27371   ac_status=$?
27372   grep -v '^ *+' conftest.er1 >conftest.err
27373   rm -f conftest.er1
27374   cat conftest.err >&5
27375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376   (exit $ac_status); } && {
27377          test -z "$ac_c_werror_flag" ||
27378          test ! -s conftest.err
27379        } && test -s conftest.$ac_objext; then
27380
27381                 wx_cv_lib_glibc21=yes
27382
27383 else
27384   echo "$as_me: failed program was:" >&5
27385 sed 's/^/| /' conftest.$ac_ext >&5
27386
27387
27388                 wx_cv_lib_glibc21=no
27389
27390
27391 fi
27392
27393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27394
27395 fi
27396 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27397 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27398     if test "$wx_cv_lib_glibc21" = "yes"; then
27399         cat >>confdefs.h <<\_ACEOF
27400 #define wxHAVE_GLIBC2 1
27401 _ACEOF
27402
27403     fi
27404 fi
27405
27406 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27407     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27408         cat >>confdefs.h <<\_ACEOF
27409 #define _GNU_SOURCE 1
27410 _ACEOF
27411
27412     fi
27413 fi
27414
27415 have_cos=0
27416 have_floor=0
27417
27418 for ac_func in cos
27419 do
27420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27424   echo $ECHO_N "(cached) $ECHO_C" >&6
27425 else
27426   cat >conftest.$ac_ext <<_ACEOF
27427 /* confdefs.h.  */
27428 _ACEOF
27429 cat confdefs.h >>conftest.$ac_ext
27430 cat >>conftest.$ac_ext <<_ACEOF
27431 /* end confdefs.h.  */
27432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27434 #define $ac_func innocuous_$ac_func
27435
27436 /* System header to define __stub macros and hopefully few prototypes,
27437     which can conflict with char $ac_func (); below.
27438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27439     <limits.h> exists even on freestanding compilers.  */
27440
27441 #ifdef __STDC__
27442 # include <limits.h>
27443 #else
27444 # include <assert.h>
27445 #endif
27446
27447 #undef $ac_func
27448
27449 /* Override any GCC internal prototype to avoid an error.
27450    Use char because int might match the return type of a GCC
27451    builtin and then its argument prototype would still apply.  */
27452 #ifdef __cplusplus
27453 extern "C"
27454 #endif
27455 char $ac_func ();
27456 /* The GNU C library defines this for functions which it implements
27457     to always fail with ENOSYS.  Some functions are actually named
27458     something starting with __ and the normal name is an alias.  */
27459 #if defined __stub_$ac_func || defined __stub___$ac_func
27460 choke me
27461 #endif
27462
27463 int
27464 main ()
27465 {
27466 return $ac_func ();
27467   ;
27468   return 0;
27469 }
27470 _ACEOF
27471 rm -f conftest.$ac_objext conftest$ac_exeext
27472 if { (ac_try="$ac_link"
27473 case "(($ac_try" in
27474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475   *) ac_try_echo=$ac_try;;
27476 esac
27477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478   (eval "$ac_link") 2>conftest.er1
27479   ac_status=$?
27480   grep -v '^ *+' conftest.er1 >conftest.err
27481   rm -f conftest.er1
27482   cat conftest.err >&5
27483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484   (exit $ac_status); } && {
27485          test -z "$ac_c_werror_flag" ||
27486          test ! -s conftest.err
27487        } && test -s conftest$ac_exeext &&
27488        $as_test_x conftest$ac_exeext; then
27489   eval "$as_ac_var=yes"
27490 else
27491   echo "$as_me: failed program was:" >&5
27492 sed 's/^/| /' conftest.$ac_ext >&5
27493
27494         eval "$as_ac_var=no"
27495 fi
27496
27497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27498       conftest$ac_exeext conftest.$ac_ext
27499 fi
27500 ac_res=`eval echo '${'$as_ac_var'}'`
27501                { echo "$as_me:$LINENO: result: $ac_res" >&5
27502 echo "${ECHO_T}$ac_res" >&6; }
27503 if test `eval echo '${'$as_ac_var'}'` = yes; then
27504   cat >>confdefs.h <<_ACEOF
27505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27506 _ACEOF
27507  have_cos=1
27508 fi
27509 done
27510
27511
27512 for ac_func in floor
27513 do
27514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27518   echo $ECHO_N "(cached) $ECHO_C" >&6
27519 else
27520   cat >conftest.$ac_ext <<_ACEOF
27521 /* confdefs.h.  */
27522 _ACEOF
27523 cat confdefs.h >>conftest.$ac_ext
27524 cat >>conftest.$ac_ext <<_ACEOF
27525 /* end confdefs.h.  */
27526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27528 #define $ac_func innocuous_$ac_func
27529
27530 /* System header to define __stub macros and hopefully few prototypes,
27531     which can conflict with char $ac_func (); below.
27532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27533     <limits.h> exists even on freestanding compilers.  */
27534
27535 #ifdef __STDC__
27536 # include <limits.h>
27537 #else
27538 # include <assert.h>
27539 #endif
27540
27541 #undef $ac_func
27542
27543 /* Override any GCC internal prototype to avoid an error.
27544    Use char because int might match the return type of a GCC
27545    builtin and then its argument prototype would still apply.  */
27546 #ifdef __cplusplus
27547 extern "C"
27548 #endif
27549 char $ac_func ();
27550 /* The GNU C library defines this for functions which it implements
27551     to always fail with ENOSYS.  Some functions are actually named
27552     something starting with __ and the normal name is an alias.  */
27553 #if defined __stub_$ac_func || defined __stub___$ac_func
27554 choke me
27555 #endif
27556
27557 int
27558 main ()
27559 {
27560 return $ac_func ();
27561   ;
27562   return 0;
27563 }
27564 _ACEOF
27565 rm -f conftest.$ac_objext conftest$ac_exeext
27566 if { (ac_try="$ac_link"
27567 case "(($ac_try" in
27568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569   *) ac_try_echo=$ac_try;;
27570 esac
27571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572   (eval "$ac_link") 2>conftest.er1
27573   ac_status=$?
27574   grep -v '^ *+' conftest.er1 >conftest.err
27575   rm -f conftest.er1
27576   cat conftest.err >&5
27577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578   (exit $ac_status); } && {
27579          test -z "$ac_c_werror_flag" ||
27580          test ! -s conftest.err
27581        } && test -s conftest$ac_exeext &&
27582        $as_test_x conftest$ac_exeext; then
27583   eval "$as_ac_var=yes"
27584 else
27585   echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.$ac_ext >&5
27587
27588         eval "$as_ac_var=no"
27589 fi
27590
27591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27592       conftest$ac_exeext conftest.$ac_ext
27593 fi
27594 ac_res=`eval echo '${'$as_ac_var'}'`
27595                { echo "$as_me:$LINENO: result: $ac_res" >&5
27596 echo "${ECHO_T}$ac_res" >&6; }
27597 if test `eval echo '${'$as_ac_var'}'` = yes; then
27598   cat >>confdefs.h <<_ACEOF
27599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27600 _ACEOF
27601  have_floor=1
27602 fi
27603 done
27604
27605 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27606 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27607 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27608     { echo "$as_me:$LINENO: result: yes" >&5
27609 echo "${ECHO_T}yes" >&6; }
27610 else
27611     { echo "$as_me:$LINENO: result: no" >&5
27612 echo "${ECHO_T}no" >&6; }
27613     LIBS="$LIBS -lm"
27614     # use different functions to avoid configure caching
27615     have_sin=0
27616     have_ceil=0
27617
27618 for ac_func in sin
27619 do
27620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27624   echo $ECHO_N "(cached) $ECHO_C" >&6
27625 else
27626   cat >conftest.$ac_ext <<_ACEOF
27627 /* confdefs.h.  */
27628 _ACEOF
27629 cat confdefs.h >>conftest.$ac_ext
27630 cat >>conftest.$ac_ext <<_ACEOF
27631 /* end confdefs.h.  */
27632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27634 #define $ac_func innocuous_$ac_func
27635
27636 /* System header to define __stub macros and hopefully few prototypes,
27637     which can conflict with char $ac_func (); below.
27638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27639     <limits.h> exists even on freestanding compilers.  */
27640
27641 #ifdef __STDC__
27642 # include <limits.h>
27643 #else
27644 # include <assert.h>
27645 #endif
27646
27647 #undef $ac_func
27648
27649 /* Override any GCC internal prototype to avoid an error.
27650    Use char because int might match the return type of a GCC
27651    builtin and then its argument prototype would still apply.  */
27652 #ifdef __cplusplus
27653 extern "C"
27654 #endif
27655 char $ac_func ();
27656 /* The GNU C library defines this for functions which it implements
27657     to always fail with ENOSYS.  Some functions are actually named
27658     something starting with __ and the normal name is an alias.  */
27659 #if defined __stub_$ac_func || defined __stub___$ac_func
27660 choke me
27661 #endif
27662
27663 int
27664 main ()
27665 {
27666 return $ac_func ();
27667   ;
27668   return 0;
27669 }
27670 _ACEOF
27671 rm -f conftest.$ac_objext conftest$ac_exeext
27672 if { (ac_try="$ac_link"
27673 case "(($ac_try" in
27674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675   *) ac_try_echo=$ac_try;;
27676 esac
27677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678   (eval "$ac_link") 2>conftest.er1
27679   ac_status=$?
27680   grep -v '^ *+' conftest.er1 >conftest.err
27681   rm -f conftest.er1
27682   cat conftest.err >&5
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); } && {
27685          test -z "$ac_c_werror_flag" ||
27686          test ! -s conftest.err
27687        } && test -s conftest$ac_exeext &&
27688        $as_test_x conftest$ac_exeext; then
27689   eval "$as_ac_var=yes"
27690 else
27691   echo "$as_me: failed program was:" >&5
27692 sed 's/^/| /' conftest.$ac_ext >&5
27693
27694         eval "$as_ac_var=no"
27695 fi
27696
27697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27698       conftest$ac_exeext conftest.$ac_ext
27699 fi
27700 ac_res=`eval echo '${'$as_ac_var'}'`
27701                { echo "$as_me:$LINENO: result: $ac_res" >&5
27702 echo "${ECHO_T}$ac_res" >&6; }
27703 if test `eval echo '${'$as_ac_var'}'` = yes; then
27704   cat >>confdefs.h <<_ACEOF
27705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27706 _ACEOF
27707  have_sin=1
27708 fi
27709 done
27710
27711
27712 for ac_func in ceil
27713 do
27714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27718   echo $ECHO_N "(cached) $ECHO_C" >&6
27719 else
27720   cat >conftest.$ac_ext <<_ACEOF
27721 /* confdefs.h.  */
27722 _ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h.  */
27726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27728 #define $ac_func innocuous_$ac_func
27729
27730 /* System header to define __stub macros and hopefully few prototypes,
27731     which can conflict with char $ac_func (); below.
27732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27733     <limits.h> exists even on freestanding compilers.  */
27734
27735 #ifdef __STDC__
27736 # include <limits.h>
27737 #else
27738 # include <assert.h>
27739 #endif
27740
27741 #undef $ac_func
27742
27743 /* Override any GCC internal prototype to avoid an error.
27744    Use char because int might match the return type of a GCC
27745    builtin and then its argument prototype would still apply.  */
27746 #ifdef __cplusplus
27747 extern "C"
27748 #endif
27749 char $ac_func ();
27750 /* The GNU C library defines this for functions which it implements
27751     to always fail with ENOSYS.  Some functions are actually named
27752     something starting with __ and the normal name is an alias.  */
27753 #if defined __stub_$ac_func || defined __stub___$ac_func
27754 choke me
27755 #endif
27756
27757 int
27758 main ()
27759 {
27760 return $ac_func ();
27761   ;
27762   return 0;
27763 }
27764 _ACEOF
27765 rm -f conftest.$ac_objext conftest$ac_exeext
27766 if { (ac_try="$ac_link"
27767 case "(($ac_try" in
27768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769   *) ac_try_echo=$ac_try;;
27770 esac
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772   (eval "$ac_link") 2>conftest.er1
27773   ac_status=$?
27774   grep -v '^ *+' conftest.er1 >conftest.err
27775   rm -f conftest.er1
27776   cat conftest.err >&5
27777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778   (exit $ac_status); } && {
27779          test -z "$ac_c_werror_flag" ||
27780          test ! -s conftest.err
27781        } && test -s conftest$ac_exeext &&
27782        $as_test_x conftest$ac_exeext; then
27783   eval "$as_ac_var=yes"
27784 else
27785   echo "$as_me: failed program was:" >&5
27786 sed 's/^/| /' conftest.$ac_ext >&5
27787
27788         eval "$as_ac_var=no"
27789 fi
27790
27791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27792       conftest$ac_exeext conftest.$ac_ext
27793 fi
27794 ac_res=`eval echo '${'$as_ac_var'}'`
27795                { echo "$as_me:$LINENO: result: $ac_res" >&5
27796 echo "${ECHO_T}$ac_res" >&6; }
27797 if test `eval echo '${'$as_ac_var'}'` = yes; then
27798   cat >>confdefs.h <<_ACEOF
27799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27800 _ACEOF
27801  have_ceil=1
27802 fi
27803 done
27804
27805     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27806 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27807     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27808         { echo "$as_me:$LINENO: result: yes" >&5
27809 echo "${ECHO_T}yes" >&6; }
27810     else
27811         { echo "$as_me:$LINENO: result: no" >&5
27812 echo "${ECHO_T}no" >&6; }
27813         # not sure we should warn the user, crash, etc.
27814     fi
27815 fi
27816
27817 ac_ext=cpp
27818 ac_cpp='$CXXCPP $CPPFLAGS'
27819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27822
27823 if test "wxUSE_UNICODE" = "yes"; then
27824
27825   for wx_func in wcstoull
27826   do
27827     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27828 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27829 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27830   echo $ECHO_N "(cached) $ECHO_C" >&6
27831 else
27832
27833         cat >conftest.$ac_ext <<_ACEOF
27834
27835             /* confdefs.h.  */
27836 _ACEOF
27837 cat confdefs.h >>conftest.$ac_ext
27838 cat >>conftest.$ac_ext <<_ACEOF
27839 /* end confdefs.h.  */
27840
27841
27842                 $ac_includes_default
27843
27844 int
27845 main ()
27846 {
27847
27848                 #ifndef $wx_func
27849                   &$wx_func;
27850                 #endif
27851
27852
27853   ;
27854   return 0;
27855 }
27856
27857 _ACEOF
27858 rm -f conftest.$ac_objext conftest$ac_exeext
27859 if { (ac_try="$ac_link"
27860 case "(($ac_try" in
27861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862   *) ac_try_echo=$ac_try;;
27863 esac
27864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865   (eval "$ac_link") 2>conftest.er1
27866   ac_status=$?
27867   grep -v '^ *+' conftest.er1 >conftest.err
27868   rm -f conftest.er1
27869   cat conftest.err >&5
27870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871   (exit $ac_status); } && {
27872          test -z "$ac_cxx_werror_flag" ||
27873          test ! -s conftest.err
27874        } && test -s conftest$ac_exeext &&
27875        $as_test_x conftest$ac_exeext; then
27876   eval wx_cv_func_$wx_func=yes
27877 else
27878   echo "$as_me: failed program was:" >&5
27879 sed 's/^/| /' conftest.$ac_ext >&5
27880
27881         eval wx_cv_func_$wx_func=no
27882 fi
27883
27884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27885       conftest$ac_exeext conftest.$ac_ext
27886
27887 fi
27888 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27889                { echo "$as_me:$LINENO: result: $ac_res" >&5
27890 echo "${ECHO_T}$ac_res" >&6; }
27891
27892     if eval test \$wx_cv_func_$wx_func = yes
27893     then
27894       cat >>confdefs.h <<_ACEOF
27895 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27896 _ACEOF
27897
27898
27899     else
27900       :
27901
27902     fi
27903   done
27904
27905 else
27906
27907   for wx_func in strtoull
27908   do
27909     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27910 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27911 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27912   echo $ECHO_N "(cached) $ECHO_C" >&6
27913 else
27914
27915         cat >conftest.$ac_ext <<_ACEOF
27916
27917             /* confdefs.h.  */
27918 _ACEOF
27919 cat confdefs.h >>conftest.$ac_ext
27920 cat >>conftest.$ac_ext <<_ACEOF
27921 /* end confdefs.h.  */
27922
27923
27924                 $ac_includes_default
27925
27926 int
27927 main ()
27928 {
27929
27930                 #ifndef $wx_func
27931                   &$wx_func;
27932                 #endif
27933
27934
27935   ;
27936   return 0;
27937 }
27938
27939 _ACEOF
27940 rm -f conftest.$ac_objext conftest$ac_exeext
27941 if { (ac_try="$ac_link"
27942 case "(($ac_try" in
27943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944   *) ac_try_echo=$ac_try;;
27945 esac
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947   (eval "$ac_link") 2>conftest.er1
27948   ac_status=$?
27949   grep -v '^ *+' conftest.er1 >conftest.err
27950   rm -f conftest.er1
27951   cat conftest.err >&5
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); } && {
27954          test -z "$ac_cxx_werror_flag" ||
27955          test ! -s conftest.err
27956        } && test -s conftest$ac_exeext &&
27957        $as_test_x conftest$ac_exeext; then
27958   eval wx_cv_func_$wx_func=yes
27959 else
27960   echo "$as_me: failed program was:" >&5
27961 sed 's/^/| /' conftest.$ac_ext >&5
27962
27963         eval wx_cv_func_$wx_func=no
27964 fi
27965
27966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27967       conftest$ac_exeext conftest.$ac_ext
27968
27969 fi
27970 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27971                { echo "$as_me:$LINENO: result: $ac_res" >&5
27972 echo "${ECHO_T}$ac_res" >&6; }
27973
27974     if eval test \$wx_cv_func_$wx_func = yes
27975     then
27976       cat >>confdefs.h <<_ACEOF
27977 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27978 _ACEOF
27979
27980
27981     else
27982       :
27983
27984     fi
27985   done
27986
27987 fi
27988 ac_ext=c
27989 ac_cpp='$CPP $CPPFLAGS'
27990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27993
27994
27995
27996
27997 if test "$wxUSE_REGEX" != "no"; then
27998     cat >>confdefs.h <<\_ACEOF
27999 #define wxUSE_REGEX 1
28000 _ACEOF
28001
28002
28003     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28004         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
28005 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
28006         wxUSE_REGEX=builtin
28007     fi
28008
28009     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
28010                         { echo "$as_me:$LINENO: checking for regex.h" >&5
28011 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28012 if test "${ac_cv_header_regex_h+set}" = set; then
28013   echo $ECHO_N "(cached) $ECHO_C" >&6
28014 else
28015   cat >conftest.$ac_ext <<_ACEOF
28016 /* confdefs.h.  */
28017 _ACEOF
28018 cat confdefs.h >>conftest.$ac_ext
28019 cat >>conftest.$ac_ext <<_ACEOF
28020 /* end confdefs.h.  */
28021
28022
28023 #include <regex.h>
28024 _ACEOF
28025 rm -f conftest.$ac_objext
28026 if { (ac_try="$ac_compile"
28027 case "(($ac_try" in
28028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28029   *) ac_try_echo=$ac_try;;
28030 esac
28031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28032   (eval "$ac_compile") 2>conftest.er1
28033   ac_status=$?
28034   grep -v '^ *+' conftest.er1 >conftest.err
28035   rm -f conftest.er1
28036   cat conftest.err >&5
28037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038   (exit $ac_status); } && {
28039          test -z "$ac_c_werror_flag" ||
28040          test ! -s conftest.err
28041        } && test -s conftest.$ac_objext; then
28042   ac_cv_header_regex_h=yes
28043 else
28044   echo "$as_me: failed program was:" >&5
28045 sed 's/^/| /' conftest.$ac_ext >&5
28046
28047         ac_cv_header_regex_h=no
28048 fi
28049
28050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28051 fi
28052 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28053 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28054 if test $ac_cv_header_regex_h = yes; then
28055
28056
28057 for ac_func in regcomp re_search
28058 do
28059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28063   echo $ECHO_N "(cached) $ECHO_C" >&6
28064 else
28065   cat >conftest.$ac_ext <<_ACEOF
28066 /* confdefs.h.  */
28067 _ACEOF
28068 cat confdefs.h >>conftest.$ac_ext
28069 cat >>conftest.$ac_ext <<_ACEOF
28070 /* end confdefs.h.  */
28071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28073 #define $ac_func innocuous_$ac_func
28074
28075 /* System header to define __stub macros and hopefully few prototypes,
28076     which can conflict with char $ac_func (); below.
28077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28078     <limits.h> exists even on freestanding compilers.  */
28079
28080 #ifdef __STDC__
28081 # include <limits.h>
28082 #else
28083 # include <assert.h>
28084 #endif
28085
28086 #undef $ac_func
28087
28088 /* Override any GCC internal prototype to avoid an error.
28089    Use char because int might match the return type of a GCC
28090    builtin and then its argument prototype would still apply.  */
28091 #ifdef __cplusplus
28092 extern "C"
28093 #endif
28094 char $ac_func ();
28095 /* The GNU C library defines this for functions which it implements
28096     to always fail with ENOSYS.  Some functions are actually named
28097     something starting with __ and the normal name is an alias.  */
28098 #if defined __stub_$ac_func || defined __stub___$ac_func
28099 choke me
28100 #endif
28101
28102 int
28103 main ()
28104 {
28105 return $ac_func ();
28106   ;
28107   return 0;
28108 }
28109 _ACEOF
28110 rm -f conftest.$ac_objext conftest$ac_exeext
28111 if { (ac_try="$ac_link"
28112 case "(($ac_try" in
28113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28114   *) ac_try_echo=$ac_try;;
28115 esac
28116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28117   (eval "$ac_link") 2>conftest.er1
28118   ac_status=$?
28119   grep -v '^ *+' conftest.er1 >conftest.err
28120   rm -f conftest.er1
28121   cat conftest.err >&5
28122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123   (exit $ac_status); } && {
28124          test -z "$ac_c_werror_flag" ||
28125          test ! -s conftest.err
28126        } && test -s conftest$ac_exeext &&
28127        $as_test_x conftest$ac_exeext; then
28128   eval "$as_ac_var=yes"
28129 else
28130   echo "$as_me: failed program was:" >&5
28131 sed 's/^/| /' conftest.$ac_ext >&5
28132
28133         eval "$as_ac_var=no"
28134 fi
28135
28136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28137       conftest$ac_exeext conftest.$ac_ext
28138 fi
28139 ac_res=`eval echo '${'$as_ac_var'}'`
28140                { echo "$as_me:$LINENO: result: $ac_res" >&5
28141 echo "${ECHO_T}$ac_res" >&6; }
28142 if test `eval echo '${'$as_ac_var'}'` = yes; then
28143   cat >>confdefs.h <<_ACEOF
28144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28145 _ACEOF
28146
28147 fi
28148 done
28149
28150 fi
28151
28152
28153
28154         if test "x$ac_cv_func_regcomp" != "xyes"; then
28155             if test "$wxUSE_REGEX" = "sys" ; then
28156                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28157 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28158    { (exit 1); exit 1; }; }
28159             else
28160                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28161 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28162                 wxUSE_REGEX=builtin
28163             fi
28164         else
28165                         wxUSE_REGEX=sys
28166                         cat >>confdefs.h <<\_ACEOF
28167 #define WX_NO_REGEX_ADVANCED 1
28168 _ACEOF
28169
28170         fi
28171     fi
28172 fi
28173
28174
28175 ZLIB_LINK=
28176 if test "$wxUSE_ZLIB" != "no" ; then
28177     cat >>confdefs.h <<\_ACEOF
28178 #define wxUSE_ZLIB 1
28179 _ACEOF
28180
28181
28182     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28183                                                 if test "$USE_DARWIN" = 1; then
28184             system_zlib_h_ok="yes"
28185         else
28186                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28187 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28188 if test "${ac_cv_header_zlib_h+set}" = set; then
28189   echo $ECHO_N "(cached) $ECHO_C" >&6
28190 else
28191   if test "$cross_compiling" = yes; then
28192                       unset ac_cv_header_zlib_h
28193
28194 else
28195   cat >conftest.$ac_ext <<_ACEOF
28196 /* confdefs.h.  */
28197 _ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h.  */
28201
28202                         #include <zlib.h>
28203                         #include <stdio.h>
28204
28205                         int main()
28206                         {
28207                             FILE *f=fopen("conftestval", "w");
28208                             if (!f) exit(1);
28209                             fprintf(f, "%s",
28210                                     ZLIB_VERSION[0] == '1' &&
28211                                     (ZLIB_VERSION[2] > '1' ||
28212                                     (ZLIB_VERSION[2] == '1' &&
28213                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28214                             exit(0);
28215                         }
28216
28217 _ACEOF
28218 rm -f conftest$ac_exeext
28219 if { (ac_try="$ac_link"
28220 case "(($ac_try" in
28221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222   *) ac_try_echo=$ac_try;;
28223 esac
28224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28225   (eval "$ac_link") 2>&5
28226   ac_status=$?
28227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28229   { (case "(($ac_try" in
28230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231   *) ac_try_echo=$ac_try;;
28232 esac
28233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28234   (eval "$ac_try") 2>&5
28235   ac_status=$?
28236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237   (exit $ac_status); }; }; then
28238   ac_cv_header_zlib_h=`cat conftestval`
28239 else
28240   echo "$as_me: program exited with status $ac_status" >&5
28241 echo "$as_me: failed program was:" >&5
28242 sed 's/^/| /' conftest.$ac_ext >&5
28243
28244 ( exit $ac_status )
28245 ac_cv_header_zlib_h=no
28246 fi
28247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28248 fi
28249
28250
28251
28252 fi
28253 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28254 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28255                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28256 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28257 if test "${ac_cv_header_zlib_h+set}" = set; then
28258   echo $ECHO_N "(cached) $ECHO_C" >&6
28259 else
28260   cat >conftest.$ac_ext <<_ACEOF
28261 /* confdefs.h.  */
28262 _ACEOF
28263 cat confdefs.h >>conftest.$ac_ext
28264 cat >>conftest.$ac_ext <<_ACEOF
28265 /* end confdefs.h.  */
28266
28267
28268 #include <zlib.h>
28269 _ACEOF
28270 rm -f conftest.$ac_objext
28271 if { (ac_try="$ac_compile"
28272 case "(($ac_try" in
28273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274   *) ac_try_echo=$ac_try;;
28275 esac
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277   (eval "$ac_compile") 2>conftest.er1
28278   ac_status=$?
28279   grep -v '^ *+' conftest.er1 >conftest.err
28280   rm -f conftest.er1
28281   cat conftest.err >&5
28282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283   (exit $ac_status); } && {
28284          test -z "$ac_c_werror_flag" ||
28285          test ! -s conftest.err
28286        } && test -s conftest.$ac_objext; then
28287   ac_cv_header_zlib_h=yes
28288 else
28289   echo "$as_me: failed program was:" >&5
28290 sed 's/^/| /' conftest.$ac_ext >&5
28291
28292         ac_cv_header_zlib_h=no
28293 fi
28294
28295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28296 fi
28297 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28298 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28299
28300
28301
28302             system_zlib_h_ok=$ac_cv_header_zlib_h
28303         fi
28304
28305         if test "$system_zlib_h_ok" = "yes"; then
28306             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28307 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28308 if test "${ac_cv_lib_z_deflate+set}" = set; then
28309   echo $ECHO_N "(cached) $ECHO_C" >&6
28310 else
28311   ac_check_lib_save_LIBS=$LIBS
28312 LIBS="-lz  $LIBS"
28313 cat >conftest.$ac_ext <<_ACEOF
28314 /* confdefs.h.  */
28315 _ACEOF
28316 cat confdefs.h >>conftest.$ac_ext
28317 cat >>conftest.$ac_ext <<_ACEOF
28318 /* end confdefs.h.  */
28319
28320 /* Override any GCC internal prototype to avoid an error.
28321    Use char because int might match the return type of a GCC
28322    builtin and then its argument prototype would still apply.  */
28323 #ifdef __cplusplus
28324 extern "C"
28325 #endif
28326 char deflate ();
28327 int
28328 main ()
28329 {
28330 return deflate ();
28331   ;
28332   return 0;
28333 }
28334 _ACEOF
28335 rm -f conftest.$ac_objext conftest$ac_exeext
28336 if { (ac_try="$ac_link"
28337 case "(($ac_try" in
28338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28339   *) ac_try_echo=$ac_try;;
28340 esac
28341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28342   (eval "$ac_link") 2>conftest.er1
28343   ac_status=$?
28344   grep -v '^ *+' conftest.er1 >conftest.err
28345   rm -f conftest.er1
28346   cat conftest.err >&5
28347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348   (exit $ac_status); } && {
28349          test -z "$ac_c_werror_flag" ||
28350          test ! -s conftest.err
28351        } && test -s conftest$ac_exeext &&
28352        $as_test_x conftest$ac_exeext; then
28353   ac_cv_lib_z_deflate=yes
28354 else
28355   echo "$as_me: failed program was:" >&5
28356 sed 's/^/| /' conftest.$ac_ext >&5
28357
28358         ac_cv_lib_z_deflate=no
28359 fi
28360
28361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28362       conftest$ac_exeext conftest.$ac_ext
28363 LIBS=$ac_check_lib_save_LIBS
28364 fi
28365 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28366 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28367 if test $ac_cv_lib_z_deflate = yes; then
28368   ZLIB_LINK=" -lz"
28369 fi
28370
28371         fi
28372
28373         if test "x$ZLIB_LINK" = "x" ; then
28374             if test "$wxUSE_ZLIB" = "sys" ; then
28375                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28376 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28377    { (exit 1); exit 1; }; }
28378             else
28379                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28380 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28381                 wxUSE_ZLIB=builtin
28382             fi
28383         else
28384                         wxUSE_ZLIB=sys
28385         fi
28386     fi
28387 fi
28388
28389
28390 PNG_LINK=
28391 if test "$wxUSE_LIBPNG" != "no" ; then
28392     cat >>confdefs.h <<\_ACEOF
28393 #define wxUSE_LIBPNG 1
28394 _ACEOF
28395
28396
28397     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28398         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28399 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28400         wxUSE_LIBPNG=sys
28401     fi
28402
28403                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28404         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28405 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28406         wxUSE_LIBPNG=builtin
28407     fi
28408
28409     if test "$wxUSE_MGL" != 1 ; then
28410                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28411                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28412 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28413 if test "${ac_cv_header_png_h+set}" = set; then
28414   echo $ECHO_N "(cached) $ECHO_C" >&6
28415 else
28416   if test "$cross_compiling" = yes; then
28417                       unset ac_cv_header_png_h
28418
28419 else
28420   cat >conftest.$ac_ext <<_ACEOF
28421 /* confdefs.h.  */
28422 _ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h.  */
28426
28427                         #include <png.h>
28428                         #include <stdio.h>
28429
28430                         int main()
28431                         {
28432                             FILE *f=fopen("conftestval", "w");
28433                             if (!f) exit(1);
28434                             fprintf(f, "%s",
28435                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28436                             exit(0);
28437                         }
28438
28439 _ACEOF
28440 rm -f conftest$ac_exeext
28441 if { (ac_try="$ac_link"
28442 case "(($ac_try" in
28443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28444   *) ac_try_echo=$ac_try;;
28445 esac
28446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28447   (eval "$ac_link") 2>&5
28448   ac_status=$?
28449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28451   { (case "(($ac_try" in
28452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28453   *) ac_try_echo=$ac_try;;
28454 esac
28455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28456   (eval "$ac_try") 2>&5
28457   ac_status=$?
28458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459   (exit $ac_status); }; }; then
28460   ac_cv_header_png_h=`cat conftestval`
28461 else
28462   echo "$as_me: program exited with status $ac_status" >&5
28463 echo "$as_me: failed program was:" >&5
28464 sed 's/^/| /' conftest.$ac_ext >&5
28465
28466 ( exit $ac_status )
28467 ac_cv_header_png_h=no
28468 fi
28469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28470 fi
28471
28472
28473
28474 fi
28475 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28476 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28477             { echo "$as_me:$LINENO: checking for png.h" >&5
28478 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28479 if test "${ac_cv_header_png_h+set}" = set; then
28480   echo $ECHO_N "(cached) $ECHO_C" >&6
28481 else
28482   cat >conftest.$ac_ext <<_ACEOF
28483 /* confdefs.h.  */
28484 _ACEOF
28485 cat confdefs.h >>conftest.$ac_ext
28486 cat >>conftest.$ac_ext <<_ACEOF
28487 /* end confdefs.h.  */
28488
28489
28490 #include <png.h>
28491 _ACEOF
28492 rm -f conftest.$ac_objext
28493 if { (ac_try="$ac_compile"
28494 case "(($ac_try" in
28495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496   *) ac_try_echo=$ac_try;;
28497 esac
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499   (eval "$ac_compile") 2>conftest.er1
28500   ac_status=$?
28501   grep -v '^ *+' conftest.er1 >conftest.err
28502   rm -f conftest.er1
28503   cat conftest.err >&5
28504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505   (exit $ac_status); } && {
28506          test -z "$ac_c_werror_flag" ||
28507          test ! -s conftest.err
28508        } && test -s conftest.$ac_objext; then
28509   ac_cv_header_png_h=yes
28510 else
28511   echo "$as_me: failed program was:" >&5
28512 sed 's/^/| /' conftest.$ac_ext >&5
28513
28514         ac_cv_header_png_h=no
28515 fi
28516
28517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28518 fi
28519 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28520 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28521
28522
28523
28524             if test "$ac_cv_header_png_h" = "yes"; then
28525                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
28526 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
28527 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
28528   echo $ECHO_N "(cached) $ECHO_C" >&6
28529 else
28530   ac_check_lib_save_LIBS=$LIBS
28531 LIBS="-lpng -lz -lm $LIBS"
28532 cat >conftest.$ac_ext <<_ACEOF
28533 /* confdefs.h.  */
28534 _ACEOF
28535 cat confdefs.h >>conftest.$ac_ext
28536 cat >>conftest.$ac_ext <<_ACEOF
28537 /* end confdefs.h.  */
28538
28539 /* Override any GCC internal prototype to avoid an error.
28540    Use char because int might match the return type of a GCC
28541    builtin and then its argument prototype would still apply.  */
28542 #ifdef __cplusplus
28543 extern "C"
28544 #endif
28545 char png_sig_cmp ();
28546 int
28547 main ()
28548 {
28549 return png_sig_cmp ();
28550   ;
28551   return 0;
28552 }
28553 _ACEOF
28554 rm -f conftest.$ac_objext conftest$ac_exeext
28555 if { (ac_try="$ac_link"
28556 case "(($ac_try" in
28557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28558   *) ac_try_echo=$ac_try;;
28559 esac
28560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28561   (eval "$ac_link") 2>conftest.er1
28562   ac_status=$?
28563   grep -v '^ *+' conftest.er1 >conftest.err
28564   rm -f conftest.er1
28565   cat conftest.err >&5
28566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567   (exit $ac_status); } && {
28568          test -z "$ac_c_werror_flag" ||
28569          test ! -s conftest.err
28570        } && test -s conftest$ac_exeext &&
28571        $as_test_x conftest$ac_exeext; then
28572   ac_cv_lib_png_png_sig_cmp=yes
28573 else
28574   echo "$as_me: failed program was:" >&5
28575 sed 's/^/| /' conftest.$ac_ext >&5
28576
28577         ac_cv_lib_png_png_sig_cmp=no
28578 fi
28579
28580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28581       conftest$ac_exeext conftest.$ac_ext
28582 LIBS=$ac_check_lib_save_LIBS
28583 fi
28584 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
28585 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
28586 if test $ac_cv_lib_png_png_sig_cmp = yes; then
28587   PNG_LINK=" -lpng -lz"
28588 fi
28589
28590             fi
28591
28592             if test "x$PNG_LINK" = "x" ; then
28593                 if test "$wxUSE_LIBPNG" = "sys" ; then
28594                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28595 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28596    { (exit 1); exit 1; }; }
28597                 else
28598                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28599 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28600                     wxUSE_LIBPNG=builtin
28601                 fi
28602             else
28603                                 wxUSE_LIBPNG=sys
28604             fi
28605         fi
28606     fi
28607 fi
28608
28609
28610 JPEG_LINK=
28611 if test "$wxUSE_LIBJPEG" != "no" ; then
28612     cat >>confdefs.h <<\_ACEOF
28613 #define wxUSE_LIBJPEG 1
28614 _ACEOF
28615
28616
28617     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28618         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28619 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28620         wxUSE_LIBJPEG=sys
28621     fi
28622
28623     if test "$wxUSE_MGL" != 1 ; then
28624                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28625                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28626 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28627             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28628   echo $ECHO_N "(cached) $ECHO_C" >&6
28629 else
28630   cat >conftest.$ac_ext <<_ACEOF
28631 /* confdefs.h.  */
28632 _ACEOF
28633 cat confdefs.h >>conftest.$ac_ext
28634 cat >>conftest.$ac_ext <<_ACEOF
28635 /* end confdefs.h.  */
28636
28637                         #undef HAVE_STDLIB_H
28638                         #include <stdio.h>
28639                         #include <jpeglib.h>
28640
28641 int
28642 main ()
28643 {
28644
28645
28646   ;
28647   return 0;
28648 }
28649 _ACEOF
28650 rm -f conftest.$ac_objext
28651 if { (ac_try="$ac_compile"
28652 case "(($ac_try" in
28653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28654   *) ac_try_echo=$ac_try;;
28655 esac
28656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28657   (eval "$ac_compile") 2>conftest.er1
28658   ac_status=$?
28659   grep -v '^ *+' conftest.er1 >conftest.err
28660   rm -f conftest.er1
28661   cat conftest.err >&5
28662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663   (exit $ac_status); } && {
28664          test -z "$ac_c_werror_flag" ||
28665          test ! -s conftest.err
28666        } && test -s conftest.$ac_objext; then
28667   ac_cv_header_jpeglib_h=yes
28668 else
28669   echo "$as_me: failed program was:" >&5
28670 sed 's/^/| /' conftest.$ac_ext >&5
28671
28672         ac_cv_header_jpeglib_h=no
28673
28674 fi
28675
28676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28677
28678 fi
28679
28680             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28681 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28682
28683             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28684                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28685 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28686 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28687   echo $ECHO_N "(cached) $ECHO_C" >&6
28688 else
28689   ac_check_lib_save_LIBS=$LIBS
28690 LIBS="-ljpeg  $LIBS"
28691 cat >conftest.$ac_ext <<_ACEOF
28692 /* confdefs.h.  */
28693 _ACEOF
28694 cat confdefs.h >>conftest.$ac_ext
28695 cat >>conftest.$ac_ext <<_ACEOF
28696 /* end confdefs.h.  */
28697
28698 /* Override any GCC internal prototype to avoid an error.
28699    Use char because int might match the return type of a GCC
28700    builtin and then its argument prototype would still apply.  */
28701 #ifdef __cplusplus
28702 extern "C"
28703 #endif
28704 char jpeg_read_header ();
28705 int
28706 main ()
28707 {
28708 return jpeg_read_header ();
28709   ;
28710   return 0;
28711 }
28712 _ACEOF
28713 rm -f conftest.$ac_objext conftest$ac_exeext
28714 if { (ac_try="$ac_link"
28715 case "(($ac_try" in
28716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28717   *) ac_try_echo=$ac_try;;
28718 esac
28719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28720   (eval "$ac_link") 2>conftest.er1
28721   ac_status=$?
28722   grep -v '^ *+' conftest.er1 >conftest.err
28723   rm -f conftest.er1
28724   cat conftest.err >&5
28725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726   (exit $ac_status); } && {
28727          test -z "$ac_c_werror_flag" ||
28728          test ! -s conftest.err
28729        } && test -s conftest$ac_exeext &&
28730        $as_test_x conftest$ac_exeext; then
28731   ac_cv_lib_jpeg_jpeg_read_header=yes
28732 else
28733   echo "$as_me: failed program was:" >&5
28734 sed 's/^/| /' conftest.$ac_ext >&5
28735
28736         ac_cv_lib_jpeg_jpeg_read_header=no
28737 fi
28738
28739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28740       conftest$ac_exeext conftest.$ac_ext
28741 LIBS=$ac_check_lib_save_LIBS
28742 fi
28743 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28744 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28745 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28746   JPEG_LINK=" -ljpeg"
28747 fi
28748
28749             fi
28750
28751             if test "x$JPEG_LINK" = "x" ; then
28752                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28753                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28754 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28755    { (exit 1); exit 1; }; }
28756                 else
28757                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28758 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28759                     wxUSE_LIBJPEG=builtin
28760                 fi
28761             else
28762                                 wxUSE_LIBJPEG=sys
28763
28764                 if test "$wxUSE_MSW" = 1; then
28765                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28766 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28767 if test "${ac_cv_type_boolean+set}" = set; then
28768   echo $ECHO_N "(cached) $ECHO_C" >&6
28769 else
28770   cat >conftest.$ac_ext <<_ACEOF
28771 /* confdefs.h.  */
28772 _ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h.  */
28776 #include <windows.h>
28777
28778 typedef boolean ac__type_new_;
28779 int
28780 main ()
28781 {
28782 if ((ac__type_new_ *) 0)
28783   return 0;
28784 if (sizeof (ac__type_new_))
28785   return 0;
28786   ;
28787   return 0;
28788 }
28789 _ACEOF
28790 rm -f conftest.$ac_objext
28791 if { (ac_try="$ac_compile"
28792 case "(($ac_try" in
28793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794   *) ac_try_echo=$ac_try;;
28795 esac
28796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797   (eval "$ac_compile") 2>conftest.er1
28798   ac_status=$?
28799   grep -v '^ *+' conftest.er1 >conftest.err
28800   rm -f conftest.er1
28801   cat conftest.err >&5
28802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803   (exit $ac_status); } && {
28804          test -z "$ac_c_werror_flag" ||
28805          test ! -s conftest.err
28806        } && test -s conftest.$ac_objext; then
28807   ac_cv_type_boolean=yes
28808 else
28809   echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28811
28812         ac_cv_type_boolean=no
28813 fi
28814
28815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28816 fi
28817 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28818 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28819 if test $ac_cv_type_boolean = yes; then
28820
28821 cat >>confdefs.h <<_ACEOF
28822 #define HAVE_BOOLEAN 1
28823 _ACEOF
28824
28825
28826                             { echo "$as_me:$LINENO: checking for boolean" >&5
28827 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28828 if test "${ac_cv_type_boolean+set}" = set; then
28829   echo $ECHO_N "(cached) $ECHO_C" >&6
28830 else
28831   cat >conftest.$ac_ext <<_ACEOF
28832 /* confdefs.h.  */
28833 _ACEOF
28834 cat confdefs.h >>conftest.$ac_ext
28835 cat >>conftest.$ac_ext <<_ACEOF
28836 /* end confdefs.h.  */
28837
28838                                     #undef HAVE_BOOLEAN
28839                                     #include <stdio.h>
28840                                     #include <jpeglib.h>
28841
28842
28843 typedef boolean ac__type_new_;
28844 int
28845 main ()
28846 {
28847 if ((ac__type_new_ *) 0)
28848   return 0;
28849 if (sizeof (ac__type_new_))
28850   return 0;
28851   ;
28852   return 0;
28853 }
28854 _ACEOF
28855 rm -f conftest.$ac_objext
28856 if { (ac_try="$ac_compile"
28857 case "(($ac_try" in
28858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859   *) ac_try_echo=$ac_try;;
28860 esac
28861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862   (eval "$ac_compile") 2>conftest.er1
28863   ac_status=$?
28864   grep -v '^ *+' conftest.er1 >conftest.err
28865   rm -f conftest.er1
28866   cat conftest.err >&5
28867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868   (exit $ac_status); } && {
28869          test -z "$ac_c_werror_flag" ||
28870          test ! -s conftest.err
28871        } && test -s conftest.$ac_objext; then
28872   ac_cv_type_boolean=yes
28873 else
28874   echo "$as_me: failed program was:" >&5
28875 sed 's/^/| /' conftest.$ac_ext >&5
28876
28877         ac_cv_type_boolean=no
28878 fi
28879
28880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28881 fi
28882 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28883 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28884
28885 # The cast to long int works around a bug in the HP C Compiler
28886 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28887 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28888 # This bug is HP SR number 8606223364.
28889 { echo "$as_me:$LINENO: checking size of boolean" >&5
28890 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28891 if test "${ac_cv_sizeof_boolean+set}" = set; then
28892   echo $ECHO_N "(cached) $ECHO_C" >&6
28893 else
28894   if test "$cross_compiling" = yes; then
28895   # Depending upon the size, compute the lo and hi bounds.
28896 cat >conftest.$ac_ext <<_ACEOF
28897 /* confdefs.h.  */
28898 _ACEOF
28899 cat confdefs.h >>conftest.$ac_ext
28900 cat >>conftest.$ac_ext <<_ACEOF
28901 /* end confdefs.h.  */
28902
28903                                     #undef HAVE_BOOLEAN
28904                                     #include <stdio.h>
28905                                     #include <jpeglib.h>
28906
28907
28908    typedef boolean ac__type_sizeof_;
28909 int
28910 main ()
28911 {
28912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28913 test_array [0] = 0
28914
28915   ;
28916   return 0;
28917 }
28918 _ACEOF
28919 rm -f conftest.$ac_objext
28920 if { (ac_try="$ac_compile"
28921 case "(($ac_try" in
28922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28923   *) ac_try_echo=$ac_try;;
28924 esac
28925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28926   (eval "$ac_compile") 2>conftest.er1
28927   ac_status=$?
28928   grep -v '^ *+' conftest.er1 >conftest.err
28929   rm -f conftest.er1
28930   cat conftest.err >&5
28931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932   (exit $ac_status); } && {
28933          test -z "$ac_c_werror_flag" ||
28934          test ! -s conftest.err
28935        } && test -s conftest.$ac_objext; then
28936   ac_lo=0 ac_mid=0
28937   while :; do
28938     cat >conftest.$ac_ext <<_ACEOF
28939 /* confdefs.h.  */
28940 _ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h.  */
28944
28945                                     #undef HAVE_BOOLEAN
28946                                     #include <stdio.h>
28947                                     #include <jpeglib.h>
28948
28949
28950    typedef boolean ac__type_sizeof_;
28951 int
28952 main ()
28953 {
28954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28955 test_array [0] = 0
28956
28957   ;
28958   return 0;
28959 }
28960 _ACEOF
28961 rm -f conftest.$ac_objext
28962 if { (ac_try="$ac_compile"
28963 case "(($ac_try" in
28964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28965   *) ac_try_echo=$ac_try;;
28966 esac
28967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28968   (eval "$ac_compile") 2>conftest.er1
28969   ac_status=$?
28970   grep -v '^ *+' conftest.er1 >conftest.err
28971   rm -f conftest.er1
28972   cat conftest.err >&5
28973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974   (exit $ac_status); } && {
28975          test -z "$ac_c_werror_flag" ||
28976          test ! -s conftest.err
28977        } && test -s conftest.$ac_objext; then
28978   ac_hi=$ac_mid; break
28979 else
28980   echo "$as_me: failed program was:" >&5
28981 sed 's/^/| /' conftest.$ac_ext >&5
28982
28983         ac_lo=`expr $ac_mid + 1`
28984                         if test $ac_lo -le $ac_mid; then
28985                           ac_lo= ac_hi=
28986                           break
28987                         fi
28988                         ac_mid=`expr 2 '*' $ac_mid + 1`
28989 fi
28990
28991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28992   done
28993 else
28994   echo "$as_me: failed program was:" >&5
28995 sed 's/^/| /' conftest.$ac_ext >&5
28996
28997         cat >conftest.$ac_ext <<_ACEOF
28998 /* confdefs.h.  */
28999 _ACEOF
29000 cat confdefs.h >>conftest.$ac_ext
29001 cat >>conftest.$ac_ext <<_ACEOF
29002 /* end confdefs.h.  */
29003
29004                                     #undef HAVE_BOOLEAN
29005                                     #include <stdio.h>
29006                                     #include <jpeglib.h>
29007
29008
29009    typedef boolean ac__type_sizeof_;
29010 int
29011 main ()
29012 {
29013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29014 test_array [0] = 0
29015
29016   ;
29017   return 0;
29018 }
29019 _ACEOF
29020 rm -f conftest.$ac_objext
29021 if { (ac_try="$ac_compile"
29022 case "(($ac_try" in
29023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024   *) ac_try_echo=$ac_try;;
29025 esac
29026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027   (eval "$ac_compile") 2>conftest.er1
29028   ac_status=$?
29029   grep -v '^ *+' conftest.er1 >conftest.err
29030   rm -f conftest.er1
29031   cat conftest.err >&5
29032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033   (exit $ac_status); } && {
29034          test -z "$ac_c_werror_flag" ||
29035          test ! -s conftest.err
29036        } && test -s conftest.$ac_objext; then
29037   ac_hi=-1 ac_mid=-1
29038   while :; do
29039     cat >conftest.$ac_ext <<_ACEOF
29040 /* confdefs.h.  */
29041 _ACEOF
29042 cat confdefs.h >>conftest.$ac_ext
29043 cat >>conftest.$ac_ext <<_ACEOF
29044 /* end confdefs.h.  */
29045
29046                                     #undef HAVE_BOOLEAN
29047                                     #include <stdio.h>
29048                                     #include <jpeglib.h>
29049
29050
29051    typedef boolean ac__type_sizeof_;
29052 int
29053 main ()
29054 {
29055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29056 test_array [0] = 0
29057
29058   ;
29059   return 0;
29060 }
29061 _ACEOF
29062 rm -f conftest.$ac_objext
29063 if { (ac_try="$ac_compile"
29064 case "(($ac_try" in
29065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066   *) ac_try_echo=$ac_try;;
29067 esac
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069   (eval "$ac_compile") 2>conftest.er1
29070   ac_status=$?
29071   grep -v '^ *+' conftest.er1 >conftest.err
29072   rm -f conftest.er1
29073   cat conftest.err >&5
29074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075   (exit $ac_status); } && {
29076          test -z "$ac_c_werror_flag" ||
29077          test ! -s conftest.err
29078        } && test -s conftest.$ac_objext; then
29079   ac_lo=$ac_mid; break
29080 else
29081   echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29083
29084         ac_hi=`expr '(' $ac_mid ')' - 1`
29085                         if test $ac_mid -le $ac_hi; then
29086                           ac_lo= ac_hi=
29087                           break
29088                         fi
29089                         ac_mid=`expr 2 '*' $ac_mid`
29090 fi
29091
29092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29093   done
29094 else
29095   echo "$as_me: failed program was:" >&5
29096 sed 's/^/| /' conftest.$ac_ext >&5
29097
29098         ac_lo= ac_hi=
29099 fi
29100
29101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29102 fi
29103
29104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29105 # Binary search between lo and hi bounds.
29106 while test "x$ac_lo" != "x$ac_hi"; do
29107   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29108   cat >conftest.$ac_ext <<_ACEOF
29109 /* confdefs.h.  */
29110 _ACEOF
29111 cat confdefs.h >>conftest.$ac_ext
29112 cat >>conftest.$ac_ext <<_ACEOF
29113 /* end confdefs.h.  */
29114
29115                                     #undef HAVE_BOOLEAN
29116                                     #include <stdio.h>
29117                                     #include <jpeglib.h>
29118
29119
29120    typedef boolean ac__type_sizeof_;
29121 int
29122 main ()
29123 {
29124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29125 test_array [0] = 0
29126
29127   ;
29128   return 0;
29129 }
29130 _ACEOF
29131 rm -f conftest.$ac_objext
29132 if { (ac_try="$ac_compile"
29133 case "(($ac_try" in
29134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29135   *) ac_try_echo=$ac_try;;
29136 esac
29137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29138   (eval "$ac_compile") 2>conftest.er1
29139   ac_status=$?
29140   grep -v '^ *+' conftest.er1 >conftest.err
29141   rm -f conftest.er1
29142   cat conftest.err >&5
29143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144   (exit $ac_status); } && {
29145          test -z "$ac_c_werror_flag" ||
29146          test ! -s conftest.err
29147        } && test -s conftest.$ac_objext; then
29148   ac_hi=$ac_mid
29149 else
29150   echo "$as_me: failed program was:" >&5
29151 sed 's/^/| /' conftest.$ac_ext >&5
29152
29153         ac_lo=`expr '(' $ac_mid ')' + 1`
29154 fi
29155
29156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29157 done
29158 case $ac_lo in
29159 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29160 '') if test "$ac_cv_type_boolean" = yes; then
29161      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29162 See \`config.log' for more details." >&5
29163 echo "$as_me: error: cannot compute sizeof (boolean)
29164 See \`config.log' for more details." >&2;}
29165    { (exit 77); exit 77; }; }
29166    else
29167      ac_cv_sizeof_boolean=0
29168    fi ;;
29169 esac
29170 else
29171   cat >conftest.$ac_ext <<_ACEOF
29172 /* confdefs.h.  */
29173 _ACEOF
29174 cat confdefs.h >>conftest.$ac_ext
29175 cat >>conftest.$ac_ext <<_ACEOF
29176 /* end confdefs.h.  */
29177
29178                                     #undef HAVE_BOOLEAN
29179                                     #include <stdio.h>
29180                                     #include <jpeglib.h>
29181
29182
29183    typedef boolean ac__type_sizeof_;
29184 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29185 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29186 #include <stdio.h>
29187 #include <stdlib.h>
29188 int
29189 main ()
29190 {
29191
29192   FILE *f = fopen ("conftest.val", "w");
29193   if (! f)
29194     return 1;
29195   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29196     {
29197       long int i = longval ();
29198       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29199         return 1;
29200       fprintf (f, "%ld\n", i);
29201     }
29202   else
29203     {
29204       unsigned long int i = ulongval ();
29205       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29206         return 1;
29207       fprintf (f, "%lu\n", i);
29208     }
29209   return ferror (f) || fclose (f) != 0;
29210
29211   ;
29212   return 0;
29213 }
29214 _ACEOF
29215 rm -f conftest$ac_exeext
29216 if { (ac_try="$ac_link"
29217 case "(($ac_try" in
29218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219   *) ac_try_echo=$ac_try;;
29220 esac
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222   (eval "$ac_link") 2>&5
29223   ac_status=$?
29224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29226   { (case "(($ac_try" in
29227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228   *) ac_try_echo=$ac_try;;
29229 esac
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231   (eval "$ac_try") 2>&5
29232   ac_status=$?
29233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234   (exit $ac_status); }; }; then
29235   ac_cv_sizeof_boolean=`cat conftest.val`
29236 else
29237   echo "$as_me: program exited with status $ac_status" >&5
29238 echo "$as_me: failed program was:" >&5
29239 sed 's/^/| /' conftest.$ac_ext >&5
29240
29241 ( exit $ac_status )
29242 if test "$ac_cv_type_boolean" = yes; then
29243      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29244 See \`config.log' for more details." >&5
29245 echo "$as_me: error: cannot compute sizeof (boolean)
29246 See \`config.log' for more details." >&2;}
29247    { (exit 77); exit 77; }; }
29248    else
29249      ac_cv_sizeof_boolean=0
29250    fi
29251 fi
29252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29253 fi
29254 rm -f conftest.val
29255 fi
29256 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29257 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29258
29259
29260
29261 cat >>confdefs.h <<_ACEOF
29262 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29263 _ACEOF
29264
29265
29266                             cat >>confdefs.h <<_ACEOF
29267 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29268 _ACEOF
29269
29270
29271 fi
29272
29273                 fi
29274             fi
29275         fi
29276     fi
29277 fi
29278
29279
29280 TIFF_LINK=
29281 TIFF_PREREQ_LINKS=-lm
29282 if test "$wxUSE_LIBTIFF" != "no" ; then
29283     cat >>confdefs.h <<\_ACEOF
29284 #define wxUSE_LIBTIFF 1
29285 _ACEOF
29286
29287
29288     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29289                         if test "$wxUSE_LIBJPEG" = "sys"; then
29290             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29291         fi
29292         if test "$wxUSE_ZLIB" = "sys"; then
29293             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29294         fi
29295         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29296 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29297 if test "${ac_cv_header_tiffio_h+set}" = set; then
29298   echo $ECHO_N "(cached) $ECHO_C" >&6
29299 else
29300   cat >conftest.$ac_ext <<_ACEOF
29301 /* confdefs.h.  */
29302 _ACEOF
29303 cat confdefs.h >>conftest.$ac_ext
29304 cat >>conftest.$ac_ext <<_ACEOF
29305 /* end confdefs.h.  */
29306
29307
29308
29309 #include <tiffio.h>
29310 _ACEOF
29311 rm -f conftest.$ac_objext
29312 if { (ac_try="$ac_compile"
29313 case "(($ac_try" in
29314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29315   *) ac_try_echo=$ac_try;;
29316 esac
29317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29318   (eval "$ac_compile") 2>conftest.er1
29319   ac_status=$?
29320   grep -v '^ *+' conftest.er1 >conftest.err
29321   rm -f conftest.er1
29322   cat conftest.err >&5
29323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324   (exit $ac_status); } && {
29325          test -z "$ac_c_werror_flag" ||
29326          test ! -s conftest.err
29327        } && test -s conftest.$ac_objext; then
29328   ac_cv_header_tiffio_h=yes
29329 else
29330   echo "$as_me: failed program was:" >&5
29331 sed 's/^/| /' conftest.$ac_ext >&5
29332
29333         ac_cv_header_tiffio_h=no
29334 fi
29335
29336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29337 fi
29338 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29339 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29340 if test $ac_cv_header_tiffio_h = yes; then
29341
29342                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29343 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29344 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29345   echo $ECHO_N "(cached) $ECHO_C" >&6
29346 else
29347   ac_check_lib_save_LIBS=$LIBS
29348 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29349 cat >conftest.$ac_ext <<_ACEOF
29350 /* confdefs.h.  */
29351 _ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h.  */
29355
29356 /* Override any GCC internal prototype to avoid an error.
29357    Use char because int might match the return type of a GCC
29358    builtin and then its argument prototype would still apply.  */
29359 #ifdef __cplusplus
29360 extern "C"
29361 #endif
29362 char TIFFError ();
29363 int
29364 main ()
29365 {
29366 return TIFFError ();
29367   ;
29368   return 0;
29369 }
29370 _ACEOF
29371 rm -f conftest.$ac_objext conftest$ac_exeext
29372 if { (ac_try="$ac_link"
29373 case "(($ac_try" in
29374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29375   *) ac_try_echo=$ac_try;;
29376 esac
29377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29378   (eval "$ac_link") 2>conftest.er1
29379   ac_status=$?
29380   grep -v '^ *+' conftest.er1 >conftest.err
29381   rm -f conftest.er1
29382   cat conftest.err >&5
29383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384   (exit $ac_status); } && {
29385          test -z "$ac_c_werror_flag" ||
29386          test ! -s conftest.err
29387        } && test -s conftest$ac_exeext &&
29388        $as_test_x conftest$ac_exeext; then
29389   ac_cv_lib_tiff_TIFFError=yes
29390 else
29391   echo "$as_me: failed program was:" >&5
29392 sed 's/^/| /' conftest.$ac_ext >&5
29393
29394         ac_cv_lib_tiff_TIFFError=no
29395 fi
29396
29397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29398       conftest$ac_exeext conftest.$ac_ext
29399 LIBS=$ac_check_lib_save_LIBS
29400 fi
29401 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29402 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29403 if test $ac_cv_lib_tiff_TIFFError = yes; then
29404   TIFF_LINK=" -ltiff"
29405 fi
29406
29407
29408 fi
29409
29410
29411
29412         if test "x$TIFF_LINK" = "x" ; then
29413             if test "$wxUSE_LIBTIFF" = "sys" ; then
29414                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29415 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29416    { (exit 1); exit 1; }; }
29417             else
29418                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29419 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29420                 wxUSE_LIBTIFF=builtin
29421             fi
29422         else
29423                         wxUSE_LIBTIFF=sys
29424         fi
29425     fi
29426     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29427         if test "$wxUSE_LIBJPEG" = "no"; then
29428                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
29429         fi
29430         subdirs="$subdirs src/tiff"
29431
29432     fi
29433 fi
29434
29435
29436 if test "$wxUSE_EXPAT" != "no"; then
29437     wxUSE_XML=yes
29438     cat >>confdefs.h <<\_ACEOF
29439 #define wxUSE_EXPAT 1
29440 _ACEOF
29441
29442     cat >>confdefs.h <<\_ACEOF
29443 #define wxUSE_XML 1
29444 _ACEOF
29445
29446
29447     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29448         { echo "$as_me:$LINENO: checking for expat.h" >&5
29449 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29450 if test "${ac_cv_header_expat_h+set}" = set; then
29451   echo $ECHO_N "(cached) $ECHO_C" >&6
29452 else
29453   cat >conftest.$ac_ext <<_ACEOF
29454 /* confdefs.h.  */
29455 _ACEOF
29456 cat confdefs.h >>conftest.$ac_ext
29457 cat >>conftest.$ac_ext <<_ACEOF
29458 /* end confdefs.h.  */
29459
29460
29461 #include <expat.h>
29462 _ACEOF
29463 rm -f conftest.$ac_objext
29464 if { (ac_try="$ac_compile"
29465 case "(($ac_try" in
29466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29467   *) ac_try_echo=$ac_try;;
29468 esac
29469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29470   (eval "$ac_compile") 2>conftest.er1
29471   ac_status=$?
29472   grep -v '^ *+' conftest.er1 >conftest.err
29473   rm -f conftest.er1
29474   cat conftest.err >&5
29475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476   (exit $ac_status); } && {
29477          test -z "$ac_c_werror_flag" ||
29478          test ! -s conftest.err
29479        } && test -s conftest.$ac_objext; then
29480   ac_cv_header_expat_h=yes
29481 else
29482   echo "$as_me: failed program was:" >&5
29483 sed 's/^/| /' conftest.$ac_ext >&5
29484
29485         ac_cv_header_expat_h=no
29486 fi
29487
29488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29489 fi
29490 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29491 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29492 if test $ac_cv_header_expat_h = yes; then
29493   found_expat_h=1
29494 fi
29495
29496
29497         if test "x$found_expat_h" = "x1"; then
29498                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29499 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29500 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29501   echo $ECHO_N "(cached) $ECHO_C" >&6
29502 else
29503
29504                 ac_ext=cpp
29505 ac_cpp='$CXXCPP $CPPFLAGS'
29506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29509
29510                 cat >conftest.$ac_ext <<_ACEOF
29511 /* confdefs.h.  */
29512 _ACEOF
29513 cat confdefs.h >>conftest.$ac_ext
29514 cat >>conftest.$ac_ext <<_ACEOF
29515 /* end confdefs.h.  */
29516 #include <expat.h>
29517 int
29518 main ()
29519 {
29520
29521   ;
29522   return 0;
29523 }
29524 _ACEOF
29525 rm -f conftest.$ac_objext
29526 if { (ac_try="$ac_compile"
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_compile") 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_cxx_werror_flag" ||
29540          test ! -s conftest.err
29541        } && test -s conftest.$ac_objext; then
29542   wx_cv_expat_is_not_broken=yes
29543 else
29544   echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29546
29547         wx_cv_expat_is_not_broken=no
29548
29549 fi
29550
29551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29552                 ac_ext=c
29553 ac_cpp='$CPP $CPPFLAGS'
29554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29557
29558
29559
29560 fi
29561 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29562 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29563             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29564                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29565 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29566 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29567   echo $ECHO_N "(cached) $ECHO_C" >&6
29568 else
29569   ac_check_lib_save_LIBS=$LIBS
29570 LIBS="-lexpat  $LIBS"
29571 cat >conftest.$ac_ext <<_ACEOF
29572 /* confdefs.h.  */
29573 _ACEOF
29574 cat confdefs.h >>conftest.$ac_ext
29575 cat >>conftest.$ac_ext <<_ACEOF
29576 /* end confdefs.h.  */
29577
29578 /* Override any GCC internal prototype to avoid an error.
29579    Use char because int might match the return type of a GCC
29580    builtin and then its argument prototype would still apply.  */
29581 #ifdef __cplusplus
29582 extern "C"
29583 #endif
29584 char XML_ParserCreate ();
29585 int
29586 main ()
29587 {
29588 return XML_ParserCreate ();
29589   ;
29590   return 0;
29591 }
29592 _ACEOF
29593 rm -f conftest.$ac_objext conftest$ac_exeext
29594 if { (ac_try="$ac_link"
29595 case "(($ac_try" in
29596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29597   *) ac_try_echo=$ac_try;;
29598 esac
29599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29600   (eval "$ac_link") 2>conftest.er1
29601   ac_status=$?
29602   grep -v '^ *+' conftest.er1 >conftest.err
29603   rm -f conftest.er1
29604   cat conftest.err >&5
29605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606   (exit $ac_status); } && {
29607          test -z "$ac_c_werror_flag" ||
29608          test ! -s conftest.err
29609        } && test -s conftest$ac_exeext &&
29610        $as_test_x conftest$ac_exeext; then
29611   ac_cv_lib_expat_XML_ParserCreate=yes
29612 else
29613   echo "$as_me: failed program was:" >&5
29614 sed 's/^/| /' conftest.$ac_ext >&5
29615
29616         ac_cv_lib_expat_XML_ParserCreate=no
29617 fi
29618
29619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29620       conftest$ac_exeext conftest.$ac_ext
29621 LIBS=$ac_check_lib_save_LIBS
29622 fi
29623 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29624 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29625 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29626   EXPAT_LINK=" -lexpat"
29627 fi
29628
29629             fi
29630         fi
29631         if test "x$EXPAT_LINK" = "x" ; then
29632             if test "$wxUSE_EXPAT" = "sys" ; then
29633                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29634 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29635    { (exit 1); exit 1; }; }
29636             else
29637                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29638 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29639                 wxUSE_EXPAT=builtin
29640             fi
29641         else
29642                         wxUSE_EXPAT=sys
29643         fi
29644     fi
29645     if test "$wxUSE_EXPAT" = "builtin" ; then
29646                 subdirs="$subdirs src/expat"
29647
29648     fi
29649 fi
29650
29651
29652
29653 if test "$wxUSE_LIBMSPACK" != "no"; then
29654     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29655 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29656 if test "${ac_cv_header_mspack_h+set}" = set; then
29657   echo $ECHO_N "(cached) $ECHO_C" >&6
29658 else
29659   cat >conftest.$ac_ext <<_ACEOF
29660 /* confdefs.h.  */
29661 _ACEOF
29662 cat confdefs.h >>conftest.$ac_ext
29663 cat >>conftest.$ac_ext <<_ACEOF
29664 /* end confdefs.h.  */
29665
29666
29667 #include <mspack.h>
29668 _ACEOF
29669 rm -f conftest.$ac_objext
29670 if { (ac_try="$ac_compile"
29671 case "(($ac_try" in
29672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29673   *) ac_try_echo=$ac_try;;
29674 esac
29675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29676   (eval "$ac_compile") 2>conftest.er1
29677   ac_status=$?
29678   grep -v '^ *+' conftest.er1 >conftest.err
29679   rm -f conftest.er1
29680   cat conftest.err >&5
29681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682   (exit $ac_status); } && {
29683          test -z "$ac_c_werror_flag" ||
29684          test ! -s conftest.err
29685        } && test -s conftest.$ac_objext; then
29686   ac_cv_header_mspack_h=yes
29687 else
29688   echo "$as_me: failed program was:" >&5
29689 sed 's/^/| /' conftest.$ac_ext >&5
29690
29691         ac_cv_header_mspack_h=no
29692 fi
29693
29694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29695 fi
29696 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29697 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29698 if test $ac_cv_header_mspack_h = yes; then
29699   found_mspack_h=1
29700 fi
29701
29702
29703     if test "x$found_mspack_h" = "x1"; then
29704         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29705 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29706 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29707   echo $ECHO_N "(cached) $ECHO_C" >&6
29708 else
29709   ac_check_lib_save_LIBS=$LIBS
29710 LIBS="-lmspack  $LIBS"
29711 cat >conftest.$ac_ext <<_ACEOF
29712 /* confdefs.h.  */
29713 _ACEOF
29714 cat confdefs.h >>conftest.$ac_ext
29715 cat >>conftest.$ac_ext <<_ACEOF
29716 /* end confdefs.h.  */
29717
29718 /* Override any GCC internal prototype to avoid an error.
29719    Use char because int might match the return type of a GCC
29720    builtin and then its argument prototype would still apply.  */
29721 #ifdef __cplusplus
29722 extern "C"
29723 #endif
29724 char mspack_create_chm_decompressor ();
29725 int
29726 main ()
29727 {
29728 return mspack_create_chm_decompressor ();
29729   ;
29730   return 0;
29731 }
29732 _ACEOF
29733 rm -f conftest.$ac_objext conftest$ac_exeext
29734 if { (ac_try="$ac_link"
29735 case "(($ac_try" in
29736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29737   *) ac_try_echo=$ac_try;;
29738 esac
29739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29740   (eval "$ac_link") 2>conftest.er1
29741   ac_status=$?
29742   grep -v '^ *+' conftest.er1 >conftest.err
29743   rm -f conftest.er1
29744   cat conftest.err >&5
29745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746   (exit $ac_status); } && {
29747          test -z "$ac_c_werror_flag" ||
29748          test ! -s conftest.err
29749        } && test -s conftest$ac_exeext &&
29750        $as_test_x conftest$ac_exeext; then
29751   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29752 else
29753   echo "$as_me: failed program was:" >&5
29754 sed 's/^/| /' conftest.$ac_ext >&5
29755
29756         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29757 fi
29758
29759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29760       conftest$ac_exeext conftest.$ac_ext
29761 LIBS=$ac_check_lib_save_LIBS
29762 fi
29763 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29764 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29765 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29766   MSPACK_LINK=" -lmspack"
29767 fi
29768
29769     fi
29770     if test "x$MSPACK_LINK" = "x" ; then
29771         wxUSE_LIBMSPACK=no
29772     fi
29773 fi
29774
29775 if test "$wxUSE_LIBMSPACK" != "no"; then
29776     cat >>confdefs.h <<\_ACEOF
29777 #define wxUSE_LIBMSPACK 1
29778 _ACEOF
29779
29780 fi
29781
29782
29783
29784 AFMINSTALL=
29785 WIN32INSTALL=
29786
29787 TOOLKIT=
29788 TOOLKIT_INCLUDE=
29789 WIDGET_SET=
29790
29791 if test "$USE_WIN32" = 1 ; then
29792
29793 for ac_header in w32api.h
29794 do
29795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29799   echo $ECHO_N "(cached) $ECHO_C" >&6
29800 else
29801   cat >conftest.$ac_ext <<_ACEOF
29802 /* confdefs.h.  */
29803 _ACEOF
29804 cat confdefs.h >>conftest.$ac_ext
29805 cat >>conftest.$ac_ext <<_ACEOF
29806 /* end confdefs.h.  */
29807
29808
29809 #include <$ac_header>
29810 _ACEOF
29811 rm -f conftest.$ac_objext
29812 if { (ac_try="$ac_compile"
29813 case "(($ac_try" in
29814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815   *) ac_try_echo=$ac_try;;
29816 esac
29817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818   (eval "$ac_compile") 2>conftest.er1
29819   ac_status=$?
29820   grep -v '^ *+' conftest.er1 >conftest.err
29821   rm -f conftest.er1
29822   cat conftest.err >&5
29823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824   (exit $ac_status); } && {
29825          test -z "$ac_c_werror_flag" ||
29826          test ! -s conftest.err
29827        } && test -s conftest.$ac_objext; then
29828   eval "$as_ac_Header=yes"
29829 else
29830   echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29832
29833         eval "$as_ac_Header=no"
29834 fi
29835
29836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29837 fi
29838 ac_res=`eval echo '${'$as_ac_Header'}'`
29839                { echo "$as_me:$LINENO: result: $ac_res" >&5
29840 echo "${ECHO_T}$ac_res" >&6; }
29841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29842   cat >>confdefs.h <<_ACEOF
29843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29844 _ACEOF
29845
29846 fi
29847
29848 done
29849
29850     { echo "$as_me:$LINENO: checking for windows.h" >&5
29851 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29852 if test "${ac_cv_header_windows_h+set}" = set; then
29853   echo $ECHO_N "(cached) $ECHO_C" >&6
29854 else
29855   cat >conftest.$ac_ext <<_ACEOF
29856 /* confdefs.h.  */
29857 _ACEOF
29858 cat confdefs.h >>conftest.$ac_ext
29859 cat >>conftest.$ac_ext <<_ACEOF
29860 /* end confdefs.h.  */
29861
29862
29863 #include <windows.h>
29864 _ACEOF
29865 rm -f conftest.$ac_objext
29866 if { (ac_try="$ac_compile"
29867 case "(($ac_try" in
29868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869   *) ac_try_echo=$ac_try;;
29870 esac
29871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872   (eval "$ac_compile") 2>conftest.er1
29873   ac_status=$?
29874   grep -v '^ *+' conftest.er1 >conftest.err
29875   rm -f conftest.er1
29876   cat conftest.err >&5
29877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878   (exit $ac_status); } && {
29879          test -z "$ac_c_werror_flag" ||
29880          test ! -s conftest.err
29881        } && test -s conftest.$ac_objext; then
29882   ac_cv_header_windows_h=yes
29883 else
29884   echo "$as_me: failed program was:" >&5
29885 sed 's/^/| /' conftest.$ac_ext >&5
29886
29887         ac_cv_header_windows_h=no
29888 fi
29889
29890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29891 fi
29892 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29893 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29894 if test $ac_cv_header_windows_h = yes; then
29895   :
29896 else
29897
29898         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29899 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29900    { (exit 1); exit 1; }; }
29901
29902 fi
29903
29904
29905
29906     LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32"
29907     case "${host}" in
29908         x86_64-*-mingw32* )
29909                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
29910         ;;
29911     esac
29912     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29913         LIBS="$LIBS -loleacc"
29914     fi
29915
29916     case "${host}" in
29917         *-*-cygwin* )
29918                         LIBS="$LIBS -lkernel32 -luser32"
29919     esac
29920
29921         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29922     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29923
29924                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29925
29926         WIN32INSTALL=win32install
29927
29928         { echo "$as_me:$LINENO: checking for pbt.h" >&5
29929 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
29930 if test "${ac_cv_header_pbt_h+set}" = set; then
29931   echo $ECHO_N "(cached) $ECHO_C" >&6
29932 else
29933   cat >conftest.$ac_ext <<_ACEOF
29934 /* confdefs.h.  */
29935 _ACEOF
29936 cat confdefs.h >>conftest.$ac_ext
29937 cat >>conftest.$ac_ext <<_ACEOF
29938 /* end confdefs.h.  */
29939
29940
29941 #include <pbt.h>
29942 _ACEOF
29943 rm -f conftest.$ac_objext
29944 if { (ac_try="$ac_compile"
29945 case "(($ac_try" in
29946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947   *) ac_try_echo=$ac_try;;
29948 esac
29949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29950   (eval "$ac_compile") 2>conftest.er1
29951   ac_status=$?
29952   grep -v '^ *+' conftest.er1 >conftest.err
29953   rm -f conftest.er1
29954   cat conftest.err >&5
29955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956   (exit $ac_status); } && {
29957          test -z "$ac_c_werror_flag" ||
29958          test ! -s conftest.err
29959        } && test -s conftest.$ac_objext; then
29960   ac_cv_header_pbt_h=yes
29961 else
29962   echo "$as_me: failed program was:" >&5
29963 sed 's/^/| /' conftest.$ac_ext >&5
29964
29965         ac_cv_header_pbt_h=no
29966 fi
29967
29968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29969 fi
29970 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
29971 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
29972 if test $ac_cv_header_pbt_h = yes; then
29973   :
29974 else
29975   cat >>confdefs.h <<\_ACEOF
29976 #define NEED_PBT_H 1
29977 _ACEOF
29978
29979 fi
29980
29981
29982 fi
29983
29984 if test "$wxUSE_GUI" = "yes"; then
29985     USE_GUI=1
29986
29987     GUI_TK_LIBRARY=
29988
29989     WXGTK127=
29990     WXGTK2=
29991     WXGPE=
29992
29993     if test "$wxUSE_OLD_COCOA" = 1 ; then
29994         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
29995             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
29996 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
29997             wxUSE_PRINTING_ARCHITECTURE=no
29998         fi
29999         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
30000             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
30001 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
30002             wxUSE_DRAG_AND_DROP=no
30003         fi
30004         if test "$wxUSE_DRAGIMAGE" = "yes"; then
30005             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
30006 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
30007             wxUSE_DRAGIMAGE=no
30008         fi
30009     fi
30010
30011     if test "$wxUSE_MSW" = 1 ; then
30012         TOOLKIT=MSW
30013         GUIDIST=MSW_DIST
30014
30015                 case "${host}" in
30016             *-*-mingw32* )
30017                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
30018         esac
30019     fi
30020
30021     if test "$wxUSE_GTK" = 1; then
30022                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
30023 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
30024
30025         gtk_version_cached=1
30026         if test "${wx_cv_lib_gtk+set}" = set; then
30027   echo $ECHO_N "(cached) $ECHO_C" >&6
30028 else
30029
30030                                                 gtk_version_cached=0
30031                 { echo "$as_me:$LINENO: result: " >&5
30032 echo "${ECHO_T}" >&6; }
30033
30034                                                 GTK_MODULES=
30035                 if test "$wxUSE_THREADS" = "yes"; then
30036                     GTK_MODULES=gthread
30037                 fi
30038
30039                                 wx_cv_lib_gtk=
30040                 if test "x$wxGTK_VERSION" != "x1"
30041                 then
30042                                                                                 case "${host}" in
30043                         *-*-solaris2* )
30044                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
30045                                 enable_gtktest=no
30046                             fi
30047                     esac
30048
30049                     # Check whether --enable-gtktest was given.
30050 if test "${enable_gtktest+set}" = set; then
30051   enableval=$enable_gtktest;
30052 else
30053   enable_gtktest=yes
30054 fi
30055
30056
30057   pkg_config_args=gtk+-2.0
30058   for module in . $GTK_MODULES
30059   do
30060       case "$module" in
30061          gthread)
30062              pkg_config_args="$pkg_config_args gthread-2.0"
30063          ;;
30064       esac
30065   done
30066
30067   no_gtk=""
30068
30069   # Extract the first word of "pkg-config", so it can be a program name with args.
30070 set dummy pkg-config; ac_word=$2
30071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30073 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30074   echo $ECHO_N "(cached) $ECHO_C" >&6
30075 else
30076   case $PKG_CONFIG in
30077   [\\/]* | ?:[\\/]*)
30078   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30079   ;;
30080   *)
30081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30082 for as_dir in $PATH
30083 do
30084   IFS=$as_save_IFS
30085   test -z "$as_dir" && as_dir=.
30086   for ac_exec_ext in '' $ac_executable_extensions; do
30087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30088     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30090     break 2
30091   fi
30092 done
30093 done
30094 IFS=$as_save_IFS
30095
30096   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30097   ;;
30098 esac
30099 fi
30100 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30101 if test -n "$PKG_CONFIG"; then
30102   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30103 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30104 else
30105   { echo "$as_me:$LINENO: result: no" >&5
30106 echo "${ECHO_T}no" >&6; }
30107 fi
30108
30109
30110
30111   if test x$PKG_CONFIG != xno ; then
30112     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30113       :
30114     else
30115       echo "*** pkg-config too old; version 0.7 or better required."
30116       no_gtk=yes
30117       PKG_CONFIG=no
30118     fi
30119   else
30120     no_gtk=yes
30121   fi
30122
30123   min_gtk_version=2.4.0
30124   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30125 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30126
30127   if test x$PKG_CONFIG != xno ; then
30128     ## don't try to run the test against uninstalled libtool libs
30129     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30130           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30131           enable_gtktest=no
30132     fi
30133
30134     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30135           :
30136     else
30137           no_gtk=yes
30138     fi
30139   fi
30140
30141   if test x"$no_gtk" = x ; then
30142     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30143     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30144     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30145            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30146     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30147            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30148     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30149            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30150     if test "x$enable_gtktest" = "xyes" ; then
30151       ac_save_CFLAGS="$CFLAGS"
30152       ac_save_LIBS="$LIBS"
30153       CFLAGS="$CFLAGS $GTK_CFLAGS"
30154       LIBS="$GTK_LIBS $LIBS"
30155       rm -f conf.gtktest
30156       if test "$cross_compiling" = yes; then
30157   echo $ac_n "cross compiling; assumed OK... $ac_c"
30158 else
30159   cat >conftest.$ac_ext <<_ACEOF
30160 /* confdefs.h.  */
30161 _ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h.  */
30165
30166 #include <gtk/gtk.h>
30167 #include <stdio.h>
30168 #include <stdlib.h>
30169
30170 int
30171 main ()
30172 {
30173   int major, minor, micro;
30174   char *tmp_version;
30175
30176   system ("touch conf.gtktest");
30177
30178   /* HP/UX 9 (%@#!) writes to sscanf strings */
30179   tmp_version = g_strdup("$min_gtk_version");
30180   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30181      printf("%s, bad version string\n", "$min_gtk_version");
30182      exit(1);
30183    }
30184
30185   if ((gtk_major_version != $gtk_config_major_version) ||
30186       (gtk_minor_version != $gtk_config_minor_version) ||
30187       (gtk_micro_version != $gtk_config_micro_version))
30188     {
30189       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30190              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30191              gtk_major_version, gtk_minor_version, gtk_micro_version);
30192       printf ("*** was found! If pkg-config was correct, then it is best\n");
30193       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30194       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30195       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30196       printf("*** required on your system.\n");
30197       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30198       printf("*** to point to the correct configuration files\n");
30199     }
30200   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30201            (gtk_minor_version != GTK_MINOR_VERSION) ||
30202            (gtk_micro_version != GTK_MICRO_VERSION))
30203     {
30204       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30205              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30206       printf("*** library (version %d.%d.%d)\n",
30207              gtk_major_version, gtk_minor_version, gtk_micro_version);
30208     }
30209   else
30210     {
30211       if ((gtk_major_version > major) ||
30212         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30213         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30214       {
30215         return 0;
30216        }
30217      else
30218       {
30219         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30220                gtk_major_version, gtk_minor_version, gtk_micro_version);
30221         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30222                major, minor, micro);
30223         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30224         printf("***\n");
30225         printf("*** If you have already installed a sufficiently new version, this error\n");
30226         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30227         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30228         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30229         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30230         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30231         printf("*** so that the correct libraries are found at run-time))\n");
30232       }
30233     }
30234   return 1;
30235 }
30236
30237 _ACEOF
30238 rm -f conftest$ac_exeext
30239 if { (ac_try="$ac_link"
30240 case "(($ac_try" in
30241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30242   *) ac_try_echo=$ac_try;;
30243 esac
30244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30245   (eval "$ac_link") 2>&5
30246   ac_status=$?
30247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30249   { (case "(($ac_try" in
30250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30251   *) ac_try_echo=$ac_try;;
30252 esac
30253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30254   (eval "$ac_try") 2>&5
30255   ac_status=$?
30256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257   (exit $ac_status); }; }; then
30258   :
30259 else
30260   echo "$as_me: program exited with status $ac_status" >&5
30261 echo "$as_me: failed program was:" >&5
30262 sed 's/^/| /' conftest.$ac_ext >&5
30263
30264 ( exit $ac_status )
30265 no_gtk=yes
30266 fi
30267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30268 fi
30269
30270
30271        CFLAGS="$ac_save_CFLAGS"
30272        LIBS="$ac_save_LIBS"
30273      fi
30274   fi
30275   if test "x$no_gtk" = x ; then
30276      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30277 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30278      wx_cv_lib_gtk=2.0
30279   else
30280      { echo "$as_me:$LINENO: result: no" >&5
30281 echo "${ECHO_T}no" >&6; }
30282      if test "$PKG_CONFIG" = "no" ; then
30283        echo "*** A new enough version of pkg-config was not found."
30284        echo "*** See http://pkgconfig.sourceforge.net"
30285      else
30286        if test -f conf.gtktest ; then
30287         :
30288        else
30289           echo "*** Could not run GTK+ test program, checking why..."
30290           ac_save_CFLAGS="$CFLAGS"
30291           ac_save_LIBS="$LIBS"
30292           CFLAGS="$CFLAGS $GTK_CFLAGS"
30293           LIBS="$LIBS $GTK_LIBS"
30294           cat >conftest.$ac_ext <<_ACEOF
30295 /* confdefs.h.  */
30296 _ACEOF
30297 cat confdefs.h >>conftest.$ac_ext
30298 cat >>conftest.$ac_ext <<_ACEOF
30299 /* end confdefs.h.  */
30300
30301 #include <gtk/gtk.h>
30302 #include <stdio.h>
30303
30304 int
30305 main ()
30306 {
30307  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30308   ;
30309   return 0;
30310 }
30311 _ACEOF
30312 rm -f conftest.$ac_objext conftest$ac_exeext
30313 if { (ac_try="$ac_link"
30314 case "(($ac_try" in
30315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30316   *) ac_try_echo=$ac_try;;
30317 esac
30318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30319   (eval "$ac_link") 2>conftest.er1
30320   ac_status=$?
30321   grep -v '^ *+' conftest.er1 >conftest.err
30322   rm -f conftest.er1
30323   cat conftest.err >&5
30324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30325   (exit $ac_status); } && {
30326          test -z "$ac_c_werror_flag" ||
30327          test ! -s conftest.err
30328        } && test -s conftest$ac_exeext &&
30329        $as_test_x conftest$ac_exeext; then
30330    echo "*** The test program compiled, but did not run. This usually means"
30331           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30332           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30333           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30334           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30335           echo "*** is required on your system"
30336           echo "***"
30337           echo "*** If you have an old version installed, it is best to remove it, although"
30338           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30339 else
30340   echo "$as_me: failed program was:" >&5
30341 sed 's/^/| /' conftest.$ac_ext >&5
30342
30343          echo "*** The test program failed to compile or link. See the file config.log for the"
30344           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30345 fi
30346
30347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30348       conftest$ac_exeext conftest.$ac_ext
30349           CFLAGS="$ac_save_CFLAGS"
30350           LIBS="$ac_save_LIBS"
30351        fi
30352      fi
30353      GTK_CFLAGS=""
30354      GTK_LIBS=""
30355      :
30356   fi
30357
30358
30359   rm -f conf.gtktest
30360
30361                 fi
30362
30363                                 if test -z "$wx_cv_lib_gtk"; then
30364                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30365
30366 # Check whether --with-gtk-prefix was given.
30367 if test "${with_gtk_prefix+set}" = set; then
30368   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30369 else
30370   gtk_config_prefix=""
30371 fi
30372
30373
30374 # Check whether --with-gtk-exec-prefix was given.
30375 if test "${with_gtk_exec_prefix+set}" = set; then
30376   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30377 else
30378   gtk_config_exec_prefix=""
30379 fi
30380
30381 # Check whether --enable-gtktest was given.
30382 if test "${enable_gtktest+set}" = set; then
30383   enableval=$enable_gtktest;
30384 else
30385   enable_gtktest=yes
30386 fi
30387
30388
30389   for module in . $GTK_MODULES
30390   do
30391       case "$module" in
30392          gthread)
30393              gtk_config_args="$gtk_config_args gthread"
30394          ;;
30395       esac
30396   done
30397
30398   if test x$gtk_config_exec_prefix != x ; then
30399      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30400      if test x${GTK_CONFIG+set} != xset ; then
30401         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30402      fi
30403   fi
30404   if test x$gtk_config_prefix != x ; then
30405      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30406      if test x${GTK_CONFIG+set} != xset ; then
30407         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30408      fi
30409   fi
30410
30411   # Extract the first word of "gtk-config", so it can be a program name with args.
30412 set dummy gtk-config; ac_word=$2
30413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30415 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30416   echo $ECHO_N "(cached) $ECHO_C" >&6
30417 else
30418   case $GTK_CONFIG in
30419   [\\/]* | ?:[\\/]*)
30420   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30421   ;;
30422   *)
30423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30424 for as_dir in $PATH
30425 do
30426   IFS=$as_save_IFS
30427   test -z "$as_dir" && as_dir=.
30428   for ac_exec_ext in '' $ac_executable_extensions; do
30429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30430     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30432     break 2
30433   fi
30434 done
30435 done
30436 IFS=$as_save_IFS
30437
30438   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30439   ;;
30440 esac
30441 fi
30442 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30443 if test -n "$GTK_CONFIG"; then
30444   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30445 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30446 else
30447   { echo "$as_me:$LINENO: result: no" >&5
30448 echo "${ECHO_T}no" >&6; }
30449 fi
30450
30451
30452   min_gtk_version=1.2.7
30453   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30454 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30455   no_gtk=""
30456   if test "$GTK_CONFIG" = "no" ; then
30457     no_gtk=yes
30458   else
30459     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30460     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30461     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30462            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30463     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30464            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30465     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30466            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30467     if test "x$enable_gtktest" = "xyes" ; then
30468       ac_save_CFLAGS="$CFLAGS"
30469       ac_save_LIBS="$LIBS"
30470       CFLAGS="$CFLAGS $GTK_CFLAGS"
30471       LIBS="$GTK_LIBS $LIBS"
30472       rm -f conf.gtktest
30473       if test "$cross_compiling" = yes; then
30474   echo $ac_n "cross compiling; assumed OK... $ac_c"
30475 else
30476   cat >conftest.$ac_ext <<_ACEOF
30477 /* confdefs.h.  */
30478 _ACEOF
30479 cat confdefs.h >>conftest.$ac_ext
30480 cat >>conftest.$ac_ext <<_ACEOF
30481 /* end confdefs.h.  */
30482
30483 #include <gtk/gtk.h>
30484 #include <stdio.h>
30485 #include <stdlib.h>
30486
30487 int
30488 main ()
30489 {
30490   int major, minor, micro;
30491   char *tmp_version;
30492
30493   system ("touch conf.gtktest");
30494
30495   /* HP/UX 9 (%@#!) writes to sscanf strings */
30496   tmp_version = g_strdup("$min_gtk_version");
30497   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30498      printf("%s, bad version string\n", "$min_gtk_version");
30499      exit(1);
30500    }
30501
30502   if ((gtk_major_version != $gtk_config_major_version) ||
30503       (gtk_minor_version != $gtk_config_minor_version) ||
30504       (gtk_micro_version != $gtk_config_micro_version))
30505     {
30506       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30507              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30508              gtk_major_version, gtk_minor_version, gtk_micro_version);
30509       printf ("*** was found! If gtk-config was correct, then it is best\n");
30510       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30511       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30512       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30513       printf("*** required on your system.\n");
30514       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30515       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30516       printf("*** before re-running configure\n");
30517     }
30518 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30519   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30520            (gtk_minor_version != GTK_MINOR_VERSION) ||
30521            (gtk_micro_version != GTK_MICRO_VERSION))
30522     {
30523       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30524              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30525       printf("*** library (version %d.%d.%d)\n",
30526              gtk_major_version, gtk_minor_version, gtk_micro_version);
30527     }
30528 #endif /* defined (GTK_MAJOR_VERSION) ... */
30529   else
30530     {
30531       if ((gtk_major_version > major) ||
30532         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30533         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30534       {
30535         return 0;
30536        }
30537      else
30538       {
30539         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30540                gtk_major_version, gtk_minor_version, gtk_micro_version);
30541         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30542                major, minor, micro);
30543         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30544         printf("***\n");
30545         printf("*** If you have already installed a sufficiently new version, this error\n");
30546         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30547         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30548         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30549         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30550         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30551         printf("*** so that the correct libraries are found at run-time))\n");
30552       }
30553     }
30554   return 1;
30555 }
30556
30557 _ACEOF
30558 rm -f conftest$ac_exeext
30559 if { (ac_try="$ac_link"
30560 case "(($ac_try" in
30561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30562   *) ac_try_echo=$ac_try;;
30563 esac
30564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30565   (eval "$ac_link") 2>&5
30566   ac_status=$?
30567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30569   { (case "(($ac_try" in
30570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571   *) ac_try_echo=$ac_try;;
30572 esac
30573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30574   (eval "$ac_try") 2>&5
30575   ac_status=$?
30576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577   (exit $ac_status); }; }; then
30578   :
30579 else
30580   echo "$as_me: program exited with status $ac_status" >&5
30581 echo "$as_me: failed program was:" >&5
30582 sed 's/^/| /' conftest.$ac_ext >&5
30583
30584 ( exit $ac_status )
30585 no_gtk=yes
30586 fi
30587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30588 fi
30589
30590
30591        CFLAGS="$ac_save_CFLAGS"
30592        LIBS="$ac_save_LIBS"
30593      fi
30594   fi
30595   if test "x$no_gtk" = x ; then
30596      { echo "$as_me:$LINENO: result: yes" >&5
30597 echo "${ECHO_T}yes" >&6; }
30598      wx_cv_lib_gtk=1.2.7
30599   else
30600      { echo "$as_me:$LINENO: result: no" >&5
30601 echo "${ECHO_T}no" >&6; }
30602      if test "$GTK_CONFIG" = "no" ; then
30603        echo "*** The gtk-config script installed by GTK could not be found"
30604        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30605        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30606        echo "*** full path to gtk-config."
30607      else
30608        if test -f conf.gtktest ; then
30609         :
30610        else
30611           echo "*** Could not run GTK test program, checking why..."
30612           CFLAGS="$CFLAGS $GTK_CFLAGS"
30613           LIBS="$LIBS $GTK_LIBS"
30614           cat >conftest.$ac_ext <<_ACEOF
30615 /* confdefs.h.  */
30616 _ACEOF
30617 cat confdefs.h >>conftest.$ac_ext
30618 cat >>conftest.$ac_ext <<_ACEOF
30619 /* end confdefs.h.  */
30620
30621 #include <gtk/gtk.h>
30622 #include <stdio.h>
30623
30624 int
30625 main ()
30626 {
30627  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30628   ;
30629   return 0;
30630 }
30631 _ACEOF
30632 rm -f conftest.$ac_objext conftest$ac_exeext
30633 if { (ac_try="$ac_link"
30634 case "(($ac_try" in
30635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30636   *) ac_try_echo=$ac_try;;
30637 esac
30638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30639   (eval "$ac_link") 2>conftest.er1
30640   ac_status=$?
30641   grep -v '^ *+' conftest.er1 >conftest.err
30642   rm -f conftest.er1
30643   cat conftest.err >&5
30644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645   (exit $ac_status); } && {
30646          test -z "$ac_c_werror_flag" ||
30647          test ! -s conftest.err
30648        } && test -s conftest$ac_exeext &&
30649        $as_test_x conftest$ac_exeext; then
30650    echo "*** The test program compiled, but did not run. This usually means"
30651           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30652           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30653           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30654           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30655           echo "*** is required on your system"
30656           echo "***"
30657           echo "*** If you have an old version installed, it is best to remove it, although"
30658           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30659           echo "***"
30660           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30661           echo "*** came with the system with the command"
30662           echo "***"
30663           echo "***    rpm --erase --nodeps gtk gtk-devel"
30664 else
30665   echo "$as_me: failed program was:" >&5
30666 sed 's/^/| /' conftest.$ac_ext >&5
30667
30668          echo "*** The test program failed to compile or link. See the file config.log for the"
30669           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30670           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30671           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30672 fi
30673
30674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30675       conftest$ac_exeext conftest.$ac_ext
30676           CFLAGS="$ac_save_CFLAGS"
30677           LIBS="$ac_save_LIBS"
30678        fi
30679      fi
30680      GTK_CFLAGS=""
30681      GTK_LIBS=""
30682      :
30683   fi
30684
30685
30686   rm -f conf.gtktest
30687
30688
30689                         if test -z "$wx_cv_lib_gtk"; then
30690
30691 # Check whether --with-gtk-prefix was given.
30692 if test "${with_gtk_prefix+set}" = set; then
30693   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30694 else
30695   gtk_config_prefix=""
30696 fi
30697
30698
30699 # Check whether --with-gtk-exec-prefix was given.
30700 if test "${with_gtk_exec_prefix+set}" = set; then
30701   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30702 else
30703   gtk_config_exec_prefix=""
30704 fi
30705
30706 # Check whether --enable-gtktest was given.
30707 if test "${enable_gtktest+set}" = set; then
30708   enableval=$enable_gtktest;
30709 else
30710   enable_gtktest=yes
30711 fi
30712
30713
30714   for module in . $GTK_MODULES
30715   do
30716       case "$module" in
30717          gthread)
30718              gtk_config_args="$gtk_config_args gthread"
30719          ;;
30720       esac
30721   done
30722
30723   if test x$gtk_config_exec_prefix != x ; then
30724      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30725      if test x${GTK_CONFIG+set} != xset ; then
30726         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30727      fi
30728   fi
30729   if test x$gtk_config_prefix != x ; then
30730      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30731      if test x${GTK_CONFIG+set} != xset ; then
30732         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30733      fi
30734   fi
30735
30736   # Extract the first word of "gtk-config", so it can be a program name with args.
30737 set dummy gtk-config; ac_word=$2
30738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30740 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30741   echo $ECHO_N "(cached) $ECHO_C" >&6
30742 else
30743   case $GTK_CONFIG in
30744   [\\/]* | ?:[\\/]*)
30745   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30746   ;;
30747   *)
30748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30749 for as_dir in $PATH
30750 do
30751   IFS=$as_save_IFS
30752   test -z "$as_dir" && as_dir=.
30753   for ac_exec_ext in '' $ac_executable_extensions; do
30754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30755     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30757     break 2
30758   fi
30759 done
30760 done
30761 IFS=$as_save_IFS
30762
30763   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30764   ;;
30765 esac
30766 fi
30767 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30768 if test -n "$GTK_CONFIG"; then
30769   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30770 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30771 else
30772   { echo "$as_me:$LINENO: result: no" >&5
30773 echo "${ECHO_T}no" >&6; }
30774 fi
30775
30776
30777   min_gtk_version=1.2.3
30778   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30779 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30780   no_gtk=""
30781   if test "$GTK_CONFIG" = "no" ; then
30782     no_gtk=yes
30783   else
30784     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30785     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30786     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30787            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30788     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30789            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30790     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30791            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30792     if test "x$enable_gtktest" = "xyes" ; then
30793       ac_save_CFLAGS="$CFLAGS"
30794       ac_save_LIBS="$LIBS"
30795       CFLAGS="$CFLAGS $GTK_CFLAGS"
30796       LIBS="$GTK_LIBS $LIBS"
30797       rm -f conf.gtktest
30798       if test "$cross_compiling" = yes; then
30799   echo $ac_n "cross compiling; assumed OK... $ac_c"
30800 else
30801   cat >conftest.$ac_ext <<_ACEOF
30802 /* confdefs.h.  */
30803 _ACEOF
30804 cat confdefs.h >>conftest.$ac_ext
30805 cat >>conftest.$ac_ext <<_ACEOF
30806 /* end confdefs.h.  */
30807
30808 #include <gtk/gtk.h>
30809 #include <stdio.h>
30810 #include <stdlib.h>
30811
30812 int
30813 main ()
30814 {
30815   int major, minor, micro;
30816   char *tmp_version;
30817
30818   system ("touch conf.gtktest");
30819
30820   /* HP/UX 9 (%@#!) writes to sscanf strings */
30821   tmp_version = g_strdup("$min_gtk_version");
30822   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30823      printf("%s, bad version string\n", "$min_gtk_version");
30824      exit(1);
30825    }
30826
30827   if ((gtk_major_version != $gtk_config_major_version) ||
30828       (gtk_minor_version != $gtk_config_minor_version) ||
30829       (gtk_micro_version != $gtk_config_micro_version))
30830     {
30831       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30832              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30833              gtk_major_version, gtk_minor_version, gtk_micro_version);
30834       printf ("*** was found! If gtk-config was correct, then it is best\n");
30835       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30836       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30837       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30838       printf("*** required on your system.\n");
30839       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30840       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30841       printf("*** before re-running configure\n");
30842     }
30843 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30844   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30845            (gtk_minor_version != GTK_MINOR_VERSION) ||
30846            (gtk_micro_version != GTK_MICRO_VERSION))
30847     {
30848       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30849              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30850       printf("*** library (version %d.%d.%d)\n",
30851              gtk_major_version, gtk_minor_version, gtk_micro_version);
30852     }
30853 #endif /* defined (GTK_MAJOR_VERSION) ... */
30854   else
30855     {
30856       if ((gtk_major_version > major) ||
30857         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30858         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30859       {
30860         return 0;
30861        }
30862      else
30863       {
30864         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30865                gtk_major_version, gtk_minor_version, gtk_micro_version);
30866         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30867                major, minor, micro);
30868         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30869         printf("***\n");
30870         printf("*** If you have already installed a sufficiently new version, this error\n");
30871         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30872         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30873         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30874         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30875         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30876         printf("*** so that the correct libraries are found at run-time))\n");
30877       }
30878     }
30879   return 1;
30880 }
30881
30882 _ACEOF
30883 rm -f conftest$ac_exeext
30884 if { (ac_try="$ac_link"
30885 case "(($ac_try" in
30886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30887   *) ac_try_echo=$ac_try;;
30888 esac
30889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30890   (eval "$ac_link") 2>&5
30891   ac_status=$?
30892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30894   { (case "(($ac_try" in
30895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896   *) ac_try_echo=$ac_try;;
30897 esac
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899   (eval "$ac_try") 2>&5
30900   ac_status=$?
30901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902   (exit $ac_status); }; }; then
30903   :
30904 else
30905   echo "$as_me: program exited with status $ac_status" >&5
30906 echo "$as_me: failed program was:" >&5
30907 sed 's/^/| /' conftest.$ac_ext >&5
30908
30909 ( exit $ac_status )
30910 no_gtk=yes
30911 fi
30912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30913 fi
30914
30915
30916        CFLAGS="$ac_save_CFLAGS"
30917        LIBS="$ac_save_LIBS"
30918      fi
30919   fi
30920   if test "x$no_gtk" = x ; then
30921      { echo "$as_me:$LINENO: result: yes" >&5
30922 echo "${ECHO_T}yes" >&6; }
30923      wx_cv_lib_gtk=1.2.3
30924   else
30925      { echo "$as_me:$LINENO: result: no" >&5
30926 echo "${ECHO_T}no" >&6; }
30927      if test "$GTK_CONFIG" = "no" ; then
30928        echo "*** The gtk-config script installed by GTK could not be found"
30929        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30930        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30931        echo "*** full path to gtk-config."
30932      else
30933        if test -f conf.gtktest ; then
30934         :
30935        else
30936           echo "*** Could not run GTK test program, checking why..."
30937           CFLAGS="$CFLAGS $GTK_CFLAGS"
30938           LIBS="$LIBS $GTK_LIBS"
30939           cat >conftest.$ac_ext <<_ACEOF
30940 /* confdefs.h.  */
30941 _ACEOF
30942 cat confdefs.h >>conftest.$ac_ext
30943 cat >>conftest.$ac_ext <<_ACEOF
30944 /* end confdefs.h.  */
30945
30946 #include <gtk/gtk.h>
30947 #include <stdio.h>
30948
30949 int
30950 main ()
30951 {
30952  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30953   ;
30954   return 0;
30955 }
30956 _ACEOF
30957 rm -f conftest.$ac_objext conftest$ac_exeext
30958 if { (ac_try="$ac_link"
30959 case "(($ac_try" in
30960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961   *) ac_try_echo=$ac_try;;
30962 esac
30963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964   (eval "$ac_link") 2>conftest.er1
30965   ac_status=$?
30966   grep -v '^ *+' conftest.er1 >conftest.err
30967   rm -f conftest.er1
30968   cat conftest.err >&5
30969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970   (exit $ac_status); } && {
30971          test -z "$ac_c_werror_flag" ||
30972          test ! -s conftest.err
30973        } && test -s conftest$ac_exeext &&
30974        $as_test_x conftest$ac_exeext; then
30975    echo "*** The test program compiled, but did not run. This usually means"
30976           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30977           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30978           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30979           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30980           echo "*** is required on your system"
30981           echo "***"
30982           echo "*** If you have an old version installed, it is best to remove it, although"
30983           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30984           echo "***"
30985           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30986           echo "*** came with the system with the command"
30987           echo "***"
30988           echo "***    rpm --erase --nodeps gtk gtk-devel"
30989 else
30990   echo "$as_me: failed program was:" >&5
30991 sed 's/^/| /' conftest.$ac_ext >&5
30992
30993          echo "*** The test program failed to compile or link. See the file config.log for the"
30994           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30995           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30996           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30997 fi
30998
30999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31000       conftest$ac_exeext conftest.$ac_ext
31001           CFLAGS="$ac_save_CFLAGS"
31002           LIBS="$ac_save_LIBS"
31003        fi
31004      fi
31005      GTK_CFLAGS=""
31006      GTK_LIBS=""
31007      :
31008   fi
31009
31010
31011   rm -f conf.gtktest
31012
31013                         fi
31014                     fi
31015                 fi
31016
31017                 if test -z "$wx_cv_lib_gtk"; then
31018                                         wx_cv_lib_gtk=none
31019                 else
31020                                         GTK_LIBS="$GTK_LIBS -lX11"
31021
31022                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
31023                     wx_cv_libs_gtk=$GTK_LIBS
31024                 fi
31025
31026
31027 fi
31028
31029
31030                         if test "$gtk_version_cached" = 1; then
31031             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
31032 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
31033         fi
31034
31035         case "$wx_cv_lib_gtk" in
31036             2.0)    WXGTK2=1
31037                     TOOLKIT_VERSION=2
31038                     ;;
31039             1.2.7)  WXGTK127=1
31040                     ;;
31041             1.2*) ;;
31042             *)      { { echo "$as_me:$LINENO: error:
31043 The development files for GTK+ were not found. For GTK+ 2, please
31044 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31045 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31046 and that the version is 1.2.3 or above. Also check that the
31047 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31048 --libs' are in the LD_LIBRARY_PATH or equivalent.
31049                             " >&5
31050 echo "$as_me: error:
31051 The development files for GTK+ were not found. For GTK+ 2, please
31052 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31053 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31054 and that the version is 1.2.3 or above. Also check that the
31055 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31056 --libs' are in the LD_LIBRARY_PATH or equivalent.
31057                             " >&2;}
31058    { (exit 1); exit 1; }; }
31059                     ;;
31060         esac
31061
31062         if test "$WXGTK2" = 1; then
31063             save_CFLAGS="$CFLAGS"
31064             save_LIBS="$LIBS"
31065             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
31066             LIBS="$LIBS $wx_cv_libs_gtk"
31067
31068                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
31069 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
31070             cat >conftest.$ac_ext <<_ACEOF
31071 /* confdefs.h.  */
31072 _ACEOF
31073 cat confdefs.h >>conftest.$ac_ext
31074 cat >>conftest.$ac_ext <<_ACEOF
31075 /* end confdefs.h.  */
31076
31077                             #include <gtk/gtk.h>
31078
31079 int
31080 main ()
31081 {
31082
31083                             #if !GTK_CHECK_VERSION(2,18,0)
31084                             Not GTK+ 2.18
31085                             #endif
31086
31087   ;
31088   return 0;
31089 }
31090 _ACEOF
31091 rm -f conftest.$ac_objext
31092 if { (ac_try="$ac_compile"
31093 case "(($ac_try" in
31094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31095   *) ac_try_echo=$ac_try;;
31096 esac
31097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31098   (eval "$ac_compile") 2>conftest.er1
31099   ac_status=$?
31100   grep -v '^ *+' conftest.er1 >conftest.err
31101   rm -f conftest.er1
31102   cat conftest.err >&5
31103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104   (exit $ac_status); } && {
31105          test -z "$ac_c_werror_flag" ||
31106          test ! -s conftest.err
31107        } && test -s conftest.$ac_objext; then
31108
31109                             cat >>confdefs.h <<\_ACEOF
31110 #define __WXGTK218__ 1
31111 _ACEOF
31112
31113                             cat >>confdefs.h <<\_ACEOF
31114 #define __WXGTK210__ 1
31115 _ACEOF
31116
31117                             cat >>confdefs.h <<\_ACEOF
31118 #define __WXGTK26__ 1
31119 _ACEOF
31120
31121                             { echo "$as_me:$LINENO: result: yes" >&5
31122 echo "${ECHO_T}yes" >&6; }
31123                             ac_wxgtk218=1
31124
31125 else
31126   echo "$as_me: failed program was:" >&5
31127 sed 's/^/| /' conftest.$ac_ext >&5
31128
31129
31130                             { echo "$as_me:$LINENO: result: no" >&5
31131 echo "${ECHO_T}no" >&6; }
31132                             ac_wxgtk218=0
31133
31134 fi
31135
31136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31137
31138             if test "$ac_wxgtk218" = 0; then
31139                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31140 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31141                 cat >conftest.$ac_ext <<_ACEOF
31142 /* confdefs.h.  */
31143 _ACEOF
31144 cat confdefs.h >>conftest.$ac_ext
31145 cat >>conftest.$ac_ext <<_ACEOF
31146 /* end confdefs.h.  */
31147
31148                                 #include <gtk/gtk.h>
31149
31150 int
31151 main ()
31152 {
31153
31154                                 #if !GTK_CHECK_VERSION(2,10,0)
31155                                 Not GTK+ 2.10
31156                                 #endif
31157
31158   ;
31159   return 0;
31160 }
31161 _ACEOF
31162 rm -f conftest.$ac_objext
31163 if { (ac_try="$ac_compile"
31164 case "(($ac_try" in
31165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166   *) ac_try_echo=$ac_try;;
31167 esac
31168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169   (eval "$ac_compile") 2>conftest.er1
31170   ac_status=$?
31171   grep -v '^ *+' conftest.er1 >conftest.err
31172   rm -f conftest.er1
31173   cat conftest.err >&5
31174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175   (exit $ac_status); } && {
31176          test -z "$ac_c_werror_flag" ||
31177          test ! -s conftest.err
31178        } && test -s conftest.$ac_objext; then
31179
31180                                 cat >>confdefs.h <<\_ACEOF
31181 #define __WXGTK210__ 1
31182 _ACEOF
31183
31184                                 cat >>confdefs.h <<\_ACEOF
31185 #define __WXGTK26__ 1
31186 _ACEOF
31187
31188                                 { echo "$as_me:$LINENO: result: yes" >&5
31189 echo "${ECHO_T}yes" >&6; }
31190                                 ac_wxgtk210=1
31191
31192 else
31193   echo "$as_me: failed program was:" >&5
31194 sed 's/^/| /' conftest.$ac_ext >&5
31195
31196
31197                                 { echo "$as_me:$LINENO: result: no" >&5
31198 echo "${ECHO_T}no" >&6; }
31199                                 ac_wxgtk210=0
31200
31201 fi
31202
31203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31204
31205                 if test "$ac_wxgtk210" = 0; then
31206                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31207 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31208                     cat >conftest.$ac_ext <<_ACEOF
31209 /* confdefs.h.  */
31210 _ACEOF
31211 cat confdefs.h >>conftest.$ac_ext
31212 cat >>conftest.$ac_ext <<_ACEOF
31213 /* end confdefs.h.  */
31214
31215                                     #include <gtk/gtk.h>
31216
31217 int
31218 main ()
31219 {
31220
31221                                     #if !GTK_CHECK_VERSION(2,6,0)
31222                                     Not GTK+ 2.6
31223                                     #endif
31224
31225   ;
31226   return 0;
31227 }
31228 _ACEOF
31229 rm -f conftest.$ac_objext
31230 if { (ac_try="$ac_compile"
31231 case "(($ac_try" in
31232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233   *) ac_try_echo=$ac_try;;
31234 esac
31235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236   (eval "$ac_compile") 2>conftest.er1
31237   ac_status=$?
31238   grep -v '^ *+' conftest.er1 >conftest.err
31239   rm -f conftest.er1
31240   cat conftest.err >&5
31241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242   (exit $ac_status); } && {
31243          test -z "$ac_c_werror_flag" ||
31244          test ! -s conftest.err
31245        } && test -s conftest.$ac_objext; then
31246
31247                                     cat >>confdefs.h <<\_ACEOF
31248 #define __WXGTK26__ 1
31249 _ACEOF
31250
31251                                     { echo "$as_me:$LINENO: result: yes" >&5
31252 echo "${ECHO_T}yes" >&6; }
31253                                     ac_wxgtk26=1
31254
31255 else
31256   echo "$as_me: failed program was:" >&5
31257 sed 's/^/| /' conftest.$ac_ext >&5
31258
31259
31260                                     { echo "$as_me:$LINENO: result: no" >&5
31261 echo "${ECHO_T}no" >&6; }
31262                                     ac_wxgtk26=0
31263
31264 fi
31265
31266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31267                 fi
31268             fi
31269
31270             CFLAGS="$save_CFLAGS"
31271             LIBS="$save_LIBS"
31272         else
31273             if test "$wxUSE_UNICODE" = "yes"; then
31274                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31275 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31276                 wxUSE_UNICODE=no
31277             fi
31278
31279                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31280 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31281 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31282   echo $ECHO_N "(cached) $ECHO_C" >&6
31283 else
31284   ac_check_lib_save_LIBS=$LIBS
31285 LIBS="-lgdk  $LIBS"
31286 cat >conftest.$ac_ext <<_ACEOF
31287 /* confdefs.h.  */
31288 _ACEOF
31289 cat confdefs.h >>conftest.$ac_ext
31290 cat >>conftest.$ac_ext <<_ACEOF
31291 /* end confdefs.h.  */
31292
31293 /* Override any GCC internal prototype to avoid an error.
31294    Use char because int might match the return type of a GCC
31295    builtin and then its argument prototype would still apply.  */
31296 #ifdef __cplusplus
31297 extern "C"
31298 #endif
31299 char gdk_im_open ();
31300 int
31301 main ()
31302 {
31303 return gdk_im_open ();
31304   ;
31305   return 0;
31306 }
31307 _ACEOF
31308 rm -f conftest.$ac_objext conftest$ac_exeext
31309 if { (ac_try="$ac_link"
31310 case "(($ac_try" in
31311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312   *) ac_try_echo=$ac_try;;
31313 esac
31314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315   (eval "$ac_link") 2>conftest.er1
31316   ac_status=$?
31317   grep -v '^ *+' conftest.er1 >conftest.err
31318   rm -f conftest.er1
31319   cat conftest.err >&5
31320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321   (exit $ac_status); } && {
31322          test -z "$ac_c_werror_flag" ||
31323          test ! -s conftest.err
31324        } && test -s conftest$ac_exeext &&
31325        $as_test_x conftest$ac_exeext; then
31326   ac_cv_lib_gdk_gdk_im_open=yes
31327 else
31328   echo "$as_me: failed program was:" >&5
31329 sed 's/^/| /' conftest.$ac_ext >&5
31330
31331         ac_cv_lib_gdk_gdk_im_open=no
31332 fi
31333
31334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31335       conftest$ac_exeext conftest.$ac_ext
31336 LIBS=$ac_check_lib_save_LIBS
31337 fi
31338 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31339 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31340 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31341   cat >>confdefs.h <<\_ACEOF
31342 #define HAVE_XIM 1
31343 _ACEOF
31344
31345 fi
31346
31347
31348                                     if test "$USE_DARWIN" != 1; then
31349
31350 for ac_func in poll
31351 do
31352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31356   echo $ECHO_N "(cached) $ECHO_C" >&6
31357 else
31358   cat >conftest.$ac_ext <<_ACEOF
31359 /* confdefs.h.  */
31360 _ACEOF
31361 cat confdefs.h >>conftest.$ac_ext
31362 cat >>conftest.$ac_ext <<_ACEOF
31363 /* end confdefs.h.  */
31364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31366 #define $ac_func innocuous_$ac_func
31367
31368 /* System header to define __stub macros and hopefully few prototypes,
31369     which can conflict with char $ac_func (); below.
31370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31371     <limits.h> exists even on freestanding compilers.  */
31372
31373 #ifdef __STDC__
31374 # include <limits.h>
31375 #else
31376 # include <assert.h>
31377 #endif
31378
31379 #undef $ac_func
31380
31381 /* Override any GCC internal prototype to avoid an error.
31382    Use char because int might match the return type of a GCC
31383    builtin and then its argument prototype would still apply.  */
31384 #ifdef __cplusplus
31385 extern "C"
31386 #endif
31387 char $ac_func ();
31388 /* The GNU C library defines this for functions which it implements
31389     to always fail with ENOSYS.  Some functions are actually named
31390     something starting with __ and the normal name is an alias.  */
31391 #if defined __stub_$ac_func || defined __stub___$ac_func
31392 choke me
31393 #endif
31394
31395 int
31396 main ()
31397 {
31398 return $ac_func ();
31399   ;
31400   return 0;
31401 }
31402 _ACEOF
31403 rm -f conftest.$ac_objext conftest$ac_exeext
31404 if { (ac_try="$ac_link"
31405 case "(($ac_try" in
31406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31407   *) ac_try_echo=$ac_try;;
31408 esac
31409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31410   (eval "$ac_link") 2>conftest.er1
31411   ac_status=$?
31412   grep -v '^ *+' conftest.er1 >conftest.err
31413   rm -f conftest.er1
31414   cat conftest.err >&5
31415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31416   (exit $ac_status); } && {
31417          test -z "$ac_c_werror_flag" ||
31418          test ! -s conftest.err
31419        } && test -s conftest$ac_exeext &&
31420        $as_test_x conftest$ac_exeext; then
31421   eval "$as_ac_var=yes"
31422 else
31423   echo "$as_me: failed program was:" >&5
31424 sed 's/^/| /' conftest.$ac_ext >&5
31425
31426         eval "$as_ac_var=no"
31427 fi
31428
31429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31430       conftest$ac_exeext conftest.$ac_ext
31431 fi
31432 ac_res=`eval echo '${'$as_ac_var'}'`
31433                { echo "$as_me:$LINENO: result: $ac_res" >&5
31434 echo "${ECHO_T}$ac_res" >&6; }
31435 if test `eval echo '${'$as_ac_var'}'` = yes; then
31436   cat >>confdefs.h <<_ACEOF
31437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31438 _ACEOF
31439
31440 fi
31441 done
31442
31443             fi
31444         fi
31445
31446         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31447         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31448         AFMINSTALL=afminstall
31449         TOOLKIT=GTK
31450         GUIDIST=GTK_DIST
31451
31452                 if test "$wxUSE_GPE" = "yes"; then
31453             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31454 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31455
31456   ac_find_libraries=
31457   for ac_dir in $SEARCH_LIB
31458   do
31459     for ac_extension in a so sl dylib dll.a; do
31460       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31461         ac_find_libraries=$ac_dir
31462         break 2
31463       fi
31464     done
31465   done
31466
31467             if test "$ac_find_libraries" != "" ; then
31468
31469     if test "$ac_find_libraries" = "default location"; then
31470     ac_path_to_link=""
31471   else
31472     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31473     result=$?
31474     if test $result = 0; then
31475       ac_path_to_link=""
31476     else
31477       ac_path_to_link=" -L$ac_find_libraries"
31478     fi
31479   fi
31480
31481                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31482                 WXGPE=1
31483                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31484 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31485             else
31486                 { echo "$as_me:$LINENO: result: not found" >&5
31487 echo "${ECHO_T}not found" >&6; }
31488             fi
31489
31490                                                                                                                     fi
31491     fi
31492
31493     if test "$wxUSE_MGL" = 1; then
31494        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31495 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31496         if test "x$MGL_ROOT" = x ; then
31497             { echo "$as_me:$LINENO: result: not found" >&5
31498 echo "${ECHO_T}not found" >&6; }
31499             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31500 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31501    { (exit 1); exit 1; }; }
31502         else
31503             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31504 echo "${ECHO_T}$MGL_ROOT" >&6; }
31505         fi
31506
31507         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31508 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31509                                 case "${host}" in
31510             *-*-linux* )
31511                                           if test "x$wxUSE_SHARED" = xyes ; then
31512                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31513               else
31514                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31515               fi
31516               ;;
31517             *-pc-msdosdjgpp )
31518               mgl_os_candidates="dos32/dj2"
31519               ;;
31520             *)
31521               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31522 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31523    { (exit 1); exit 1; }; }
31524         esac
31525
31526         mgl_lib_type=""
31527         mgl_os=""
31528
31529         for mgl_os_i in $mgl_os_candidates ; do
31530             if test "x$mgl_os" = x ; then
31531                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31532                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31533                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31534                         mgl_lib_type=debug
31535                         mgl_os=$mgl_os_i
31536                     fi
31537                 fi
31538                 if test "x$mgl_lib_type" = x ; then
31539                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31540                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31541                         mgl_lib_type=release
31542                         mgl_os=$mgl_os_i
31543                     fi
31544                 fi
31545             fi
31546         done
31547
31548         if test "x$mgl_os" = x ; then
31549             { echo "$as_me:$LINENO: result: not found" >&5
31550 echo "${ECHO_T}not found" >&6; }
31551             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31552 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31553    { (exit 1); exit 1; }; }
31554         fi
31555         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31556 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31557
31558         wxUSE_UNIVERSAL="yes"
31559
31560         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31561         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31562
31563         AFMINSTALL=afminstall
31564         TOOLKIT=MGL
31565         GUIDIST=MGL_DIST
31566     fi
31567
31568     if test "$wxUSE_DFB" = 1; then
31569
31570
31571 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31572         if test -n "$ac_tool_prefix"; then
31573   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31574 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31577 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31578   echo $ECHO_N "(cached) $ECHO_C" >&6
31579 else
31580   case $PKG_CONFIG in
31581   [\\/]* | ?:[\\/]*)
31582   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31583   ;;
31584   *)
31585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31586 for as_dir in $PATH
31587 do
31588   IFS=$as_save_IFS
31589   test -z "$as_dir" && as_dir=.
31590   for ac_exec_ext in '' $ac_executable_extensions; do
31591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31592     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31594     break 2
31595   fi
31596 done
31597 done
31598 IFS=$as_save_IFS
31599
31600   ;;
31601 esac
31602 fi
31603 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31604 if test -n "$PKG_CONFIG"; then
31605   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31606 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31607 else
31608   { echo "$as_me:$LINENO: result: no" >&5
31609 echo "${ECHO_T}no" >&6; }
31610 fi
31611
31612
31613 fi
31614 if test -z "$ac_cv_path_PKG_CONFIG"; then
31615   ac_pt_PKG_CONFIG=$PKG_CONFIG
31616   # Extract the first word of "pkg-config", so it can be a program name with args.
31617 set dummy pkg-config; ac_word=$2
31618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31620 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31621   echo $ECHO_N "(cached) $ECHO_C" >&6
31622 else
31623   case $ac_pt_PKG_CONFIG in
31624   [\\/]* | ?:[\\/]*)
31625   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31626   ;;
31627   *)
31628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31629 for as_dir in $PATH
31630 do
31631   IFS=$as_save_IFS
31632   test -z "$as_dir" && as_dir=.
31633   for ac_exec_ext in '' $ac_executable_extensions; do
31634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31635     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31637     break 2
31638   fi
31639 done
31640 done
31641 IFS=$as_save_IFS
31642
31643   ;;
31644 esac
31645 fi
31646 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31647 if test -n "$ac_pt_PKG_CONFIG"; then
31648   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31649 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31650 else
31651   { echo "$as_me:$LINENO: result: no" >&5
31652 echo "${ECHO_T}no" >&6; }
31653 fi
31654
31655   if test "x$ac_pt_PKG_CONFIG" = x; then
31656     PKG_CONFIG=""
31657   else
31658     case $cross_compiling:$ac_tool_warned in
31659 yes:)
31660 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31661 whose name does not start with the host triplet.  If you think this
31662 configuration is useful to you, please write to autoconf@gnu.org." >&5
31663 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31664 whose name does not start with the host triplet.  If you think this
31665 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31666 ac_tool_warned=yes ;;
31667 esac
31668     PKG_CONFIG=$ac_pt_PKG_CONFIG
31669   fi
31670 else
31671   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31672 fi
31673
31674 fi
31675 if test -n "$PKG_CONFIG"; then
31676         _pkg_min_version=0.9.0
31677         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31678 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31679         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31680                 { echo "$as_me:$LINENO: result: yes" >&5
31681 echo "${ECHO_T}yes" >&6; }
31682         else
31683                 { echo "$as_me:$LINENO: result: no" >&5
31684 echo "${ECHO_T}no" >&6; }
31685                 PKG_CONFIG=""
31686         fi
31687
31688 fi
31689
31690
31691 pkg_failed=no
31692 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31693 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31694
31695 if test -n "$PKG_CONFIG"; then
31696     if test -n "$DIRECTFB_CFLAGS"; then
31697         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31698     else
31699         if test -n "$PKG_CONFIG" && \
31700     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31701   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31702   ac_status=$?
31703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704   (exit $ac_status); }; then
31705   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31706 else
31707   pkg_failed=yes
31708 fi
31709     fi
31710 else
31711         pkg_failed=untried
31712 fi
31713 if test -n "$PKG_CONFIG"; then
31714     if test -n "$DIRECTFB_LIBS"; then
31715         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31716     else
31717         if test -n "$PKG_CONFIG" && \
31718     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31719   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31720   ac_status=$?
31721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722   (exit $ac_status); }; then
31723   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31724 else
31725   pkg_failed=yes
31726 fi
31727     fi
31728 else
31729         pkg_failed=untried
31730 fi
31731
31732
31733
31734 if test $pkg_failed = yes; then
31735
31736 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31737         _pkg_short_errors_supported=yes
31738 else
31739         _pkg_short_errors_supported=no
31740 fi
31741         if test $_pkg_short_errors_supported = yes; then
31742                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31743         else
31744                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31745         fi
31746         # Put the nasty error message in config.log where it belongs
31747         echo "$DIRECTFB_PKG_ERRORS" >&5
31748
31749
31750                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31751 echo "$as_me: error: DirectFB not found." >&2;}
31752    { (exit 1); exit 1; }; }
31753
31754
31755 elif test $pkg_failed = untried; then
31756
31757                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31758 echo "$as_me: error: DirectFB not found." >&2;}
31759    { (exit 1); exit 1; }; }
31760
31761
31762 else
31763         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31764         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31765         { echo "$as_me:$LINENO: result: yes" >&5
31766 echo "${ECHO_T}yes" >&6; }
31767
31768                            wxUSE_UNIVERSAL="yes"
31769                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31770                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31771                            TOOLKIT=DFB
31772                            GUIDIST=DFB_DIST
31773
31774 fi
31775     fi
31776
31777     if test "$wxUSE_MICROWIN" = 1; then
31778         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31779 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31780         if test "x$MICROWINDOWS" = x ; then
31781             { echo "$as_me:$LINENO: result: not found" >&5
31782 echo "${ECHO_T}not found" >&6; }
31783             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31784 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31785    { (exit 1); exit 1; }; }
31786         else
31787             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31788 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31789         fi
31790
31791         if test -f $MICROWINDOWS/lib/libmwin.a; then
31792             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31793 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31794         else
31795             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31796 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31797    { (exit 1); exit 1; }; }
31798         fi
31799
31800         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31801         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31802
31803         wxUSE_UNIVERSAL="yes"
31804
31805         AFMINSTALL=afminstall
31806         TOOLKIT=MICROWIN
31807         GUIDIST=MICROWIN_DIST
31808
31809         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31810     fi
31811
31812         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31813                                 { echo "$as_me:$LINENO: checking for X" >&5
31814 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31815
31816
31817 # Check whether --with-x was given.
31818 if test "${with_x+set}" = set; then
31819   withval=$with_x;
31820 fi
31821
31822 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31823 if test "x$with_x" = xno; then
31824   # The user explicitly disabled X.
31825   have_x=disabled
31826 else
31827   case $x_includes,$x_libraries in #(
31828     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31829 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31830    { (exit 1); exit 1; }; };; #(
31831     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31832   echo $ECHO_N "(cached) $ECHO_C" >&6
31833 else
31834   # One or both of the vars are not set, and there is no cached value.
31835 ac_x_includes=no ac_x_libraries=no
31836 rm -f -r conftest.dir
31837 if mkdir conftest.dir; then
31838   cd conftest.dir
31839   cat >Imakefile <<'_ACEOF'
31840 incroot:
31841         @echo incroot='${INCROOT}'
31842 usrlibdir:
31843         @echo usrlibdir='${USRLIBDIR}'
31844 libdir:
31845         @echo libdir='${LIBDIR}'
31846 _ACEOF
31847   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31848     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31849     for ac_var in incroot usrlibdir libdir; do
31850       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31851     done
31852     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31853     for ac_extension in a so sl; do
31854       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31855          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31856         ac_im_usrlibdir=$ac_im_libdir; break
31857       fi
31858     done
31859     # Screen out bogus values from the imake configuration.  They are
31860     # bogus both because they are the default anyway, and because
31861     # using them would break gcc on systems where it needs fixed includes.
31862     case $ac_im_incroot in
31863         /usr/include) ac_x_includes= ;;
31864         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31865     esac
31866     case $ac_im_usrlibdir in
31867         /usr/lib | /lib) ;;
31868         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31869     esac
31870   fi
31871   cd ..
31872   rm -f -r conftest.dir
31873 fi
31874
31875 # Standard set of common directories for X headers.
31876 # Check X11 before X11Rn because it is often a symlink to the current release.
31877 ac_x_header_dirs='
31878 /usr/X11/include
31879 /usr/X11R6/include
31880 /usr/X11R5/include
31881 /usr/X11R4/include
31882
31883 /usr/include/X11
31884 /usr/include/X11R6
31885 /usr/include/X11R5
31886 /usr/include/X11R4
31887
31888 /usr/local/X11/include
31889 /usr/local/X11R6/include
31890 /usr/local/X11R5/include
31891 /usr/local/X11R4/include
31892
31893 /usr/local/include/X11
31894 /usr/local/include/X11R6
31895 /usr/local/include/X11R5
31896 /usr/local/include/X11R4
31897
31898 /usr/X386/include
31899 /usr/x386/include
31900 /usr/XFree86/include/X11
31901
31902 /usr/include
31903 /usr/local/include
31904 /usr/unsupported/include
31905 /usr/athena/include
31906 /usr/local/x11r5/include
31907 /usr/lpp/Xamples/include
31908
31909 /usr/openwin/include
31910 /usr/openwin/share/include'
31911
31912 if test "$ac_x_includes" = no; then
31913   # Guess where to find include files, by looking for Xlib.h.
31914   # First, try using that file with no special directory specified.
31915   cat >conftest.$ac_ext <<_ACEOF
31916 /* confdefs.h.  */
31917 _ACEOF
31918 cat confdefs.h >>conftest.$ac_ext
31919 cat >>conftest.$ac_ext <<_ACEOF
31920 /* end confdefs.h.  */
31921 #include <X11/Xlib.h>
31922 _ACEOF
31923 if { (ac_try="$ac_cpp conftest.$ac_ext"
31924 case "(($ac_try" in
31925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31926   *) ac_try_echo=$ac_try;;
31927 esac
31928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31929   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31930   ac_status=$?
31931   grep -v '^ *+' conftest.er1 >conftest.err
31932   rm -f conftest.er1
31933   cat conftest.err >&5
31934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935   (exit $ac_status); } >/dev/null && {
31936          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31937          test ! -s conftest.err
31938        }; then
31939   # We can compile using X headers with no special include directory.
31940 ac_x_includes=
31941 else
31942   echo "$as_me: failed program was:" >&5
31943 sed 's/^/| /' conftest.$ac_ext >&5
31944
31945   for ac_dir in $ac_x_header_dirs; do
31946   if test -r "$ac_dir/X11/Xlib.h"; then
31947     ac_x_includes=$ac_dir
31948     break
31949   fi
31950 done
31951 fi
31952
31953 rm -f conftest.err conftest.$ac_ext
31954 fi # $ac_x_includes = no
31955
31956 if test "$ac_x_libraries" = no; then
31957   # Check for the libraries.
31958   # See if we find them without any special options.
31959   # Don't add to $LIBS permanently.
31960   ac_save_LIBS=$LIBS
31961   LIBS="-lX11 $LIBS"
31962   cat >conftest.$ac_ext <<_ACEOF
31963 /* confdefs.h.  */
31964 _ACEOF
31965 cat confdefs.h >>conftest.$ac_ext
31966 cat >>conftest.$ac_ext <<_ACEOF
31967 /* end confdefs.h.  */
31968 #include <X11/Xlib.h>
31969 int
31970 main ()
31971 {
31972 XrmInitialize ()
31973   ;
31974   return 0;
31975 }
31976 _ACEOF
31977 rm -f conftest.$ac_objext conftest$ac_exeext
31978 if { (ac_try="$ac_link"
31979 case "(($ac_try" in
31980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31981   *) ac_try_echo=$ac_try;;
31982 esac
31983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31984   (eval "$ac_link") 2>conftest.er1
31985   ac_status=$?
31986   grep -v '^ *+' conftest.er1 >conftest.err
31987   rm -f conftest.er1
31988   cat conftest.err >&5
31989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990   (exit $ac_status); } && {
31991          test -z "$ac_c_werror_flag" ||
31992          test ! -s conftest.err
31993        } && test -s conftest$ac_exeext &&
31994        $as_test_x conftest$ac_exeext; then
31995   LIBS=$ac_save_LIBS
31996 # We can link X programs with no special library path.
31997 ac_x_libraries=
31998 else
31999   echo "$as_me: failed program was:" >&5
32000 sed 's/^/| /' conftest.$ac_ext >&5
32001
32002         LIBS=$ac_save_LIBS
32003 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32004 do
32005   # Don't even attempt the hair of trying to link an X program!
32006   for ac_extension in a so sl; do
32007     if test -r "$ac_dir/libX11.$ac_extension"; then
32008       ac_x_libraries=$ac_dir
32009       break 2
32010     fi
32011   done
32012 done
32013 fi
32014
32015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32016       conftest$ac_exeext conftest.$ac_ext
32017 fi # $ac_x_libraries = no
32018
32019 case $ac_x_includes,$ac_x_libraries in #(
32020   no,* | *,no | *\'*)
32021     # Didn't find X, or a directory has "'" in its name.
32022     ac_cv_have_x="have_x=no";; #(
32023   *)
32024     # Record where we found X for the cache.
32025     ac_cv_have_x="have_x=yes\
32026         ac_x_includes='$ac_x_includes'\
32027         ac_x_libraries='$ac_x_libraries'"
32028 esac
32029 fi
32030 ;; #(
32031     *) have_x=yes;;
32032   esac
32033   eval "$ac_cv_have_x"
32034 fi # $with_x != no
32035
32036 if test "$have_x" != yes; then
32037   { echo "$as_me:$LINENO: result: $have_x" >&5
32038 echo "${ECHO_T}$have_x" >&6; }
32039   no_x=yes
32040 else
32041   # If each of the values was on the command line, it overrides each guess.
32042   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32043   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32044   # Update the cache value to reflect the command line values.
32045   ac_cv_have_x="have_x=yes\
32046         ac_x_includes='$x_includes'\
32047         ac_x_libraries='$x_libraries'"
32048   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32049 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
32050 fi
32051
32052 if test "$no_x" = yes; then
32053   # Not all programs may use this symbol, but it does not hurt to define it.
32054
32055 cat >>confdefs.h <<\_ACEOF
32056 #define X_DISPLAY_MISSING 1
32057 _ACEOF
32058
32059   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32060 else
32061   if test -n "$x_includes"; then
32062     X_CFLAGS="$X_CFLAGS -I$x_includes"
32063   fi
32064
32065   # It would also be nice to do this for all -L options, not just this one.
32066   if test -n "$x_libraries"; then
32067     X_LIBS="$X_LIBS -L$x_libraries"
32068     # For Solaris; some versions of Sun CC require a space after -R and
32069     # others require no space.  Words are not sufficient . . . .
32070     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32071 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32072     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32073     ac_xsave_c_werror_flag=$ac_c_werror_flag
32074     ac_c_werror_flag=yes
32075     cat >conftest.$ac_ext <<_ACEOF
32076 /* confdefs.h.  */
32077 _ACEOF
32078 cat confdefs.h >>conftest.$ac_ext
32079 cat >>conftest.$ac_ext <<_ACEOF
32080 /* end confdefs.h.  */
32081
32082 int
32083 main ()
32084 {
32085
32086   ;
32087   return 0;
32088 }
32089 _ACEOF
32090 rm -f conftest.$ac_objext conftest$ac_exeext
32091 if { (ac_try="$ac_link"
32092 case "(($ac_try" in
32093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32094   *) ac_try_echo=$ac_try;;
32095 esac
32096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32097   (eval "$ac_link") 2>conftest.er1
32098   ac_status=$?
32099   grep -v '^ *+' conftest.er1 >conftest.err
32100   rm -f conftest.er1
32101   cat conftest.err >&5
32102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103   (exit $ac_status); } && {
32104          test -z "$ac_c_werror_flag" ||
32105          test ! -s conftest.err
32106        } && test -s conftest$ac_exeext &&
32107        $as_test_x conftest$ac_exeext; then
32108   { echo "$as_me:$LINENO: result: no" >&5
32109 echo "${ECHO_T}no" >&6; }
32110        X_LIBS="$X_LIBS -R$x_libraries"
32111 else
32112   echo "$as_me: failed program was:" >&5
32113 sed 's/^/| /' conftest.$ac_ext >&5
32114
32115         LIBS="$ac_xsave_LIBS -R $x_libraries"
32116        cat >conftest.$ac_ext <<_ACEOF
32117 /* confdefs.h.  */
32118 _ACEOF
32119 cat confdefs.h >>conftest.$ac_ext
32120 cat >>conftest.$ac_ext <<_ACEOF
32121 /* end confdefs.h.  */
32122
32123 int
32124 main ()
32125 {
32126
32127   ;
32128   return 0;
32129 }
32130 _ACEOF
32131 rm -f conftest.$ac_objext conftest$ac_exeext
32132 if { (ac_try="$ac_link"
32133 case "(($ac_try" in
32134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32135   *) ac_try_echo=$ac_try;;
32136 esac
32137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32138   (eval "$ac_link") 2>conftest.er1
32139   ac_status=$?
32140   grep -v '^ *+' conftest.er1 >conftest.err
32141   rm -f conftest.er1
32142   cat conftest.err >&5
32143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144   (exit $ac_status); } && {
32145          test -z "$ac_c_werror_flag" ||
32146          test ! -s conftest.err
32147        } && test -s conftest$ac_exeext &&
32148        $as_test_x conftest$ac_exeext; then
32149   { echo "$as_me:$LINENO: result: yes" >&5
32150 echo "${ECHO_T}yes" >&6; }
32151           X_LIBS="$X_LIBS -R $x_libraries"
32152 else
32153   echo "$as_me: failed program was:" >&5
32154 sed 's/^/| /' conftest.$ac_ext >&5
32155
32156         { echo "$as_me:$LINENO: result: neither works" >&5
32157 echo "${ECHO_T}neither works" >&6; }
32158 fi
32159
32160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32161       conftest$ac_exeext conftest.$ac_ext
32162 fi
32163
32164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32165       conftest$ac_exeext conftest.$ac_ext
32166     ac_c_werror_flag=$ac_xsave_c_werror_flag
32167     LIBS=$ac_xsave_LIBS
32168   fi
32169
32170   # Check for system-dependent libraries X programs must link with.
32171   # Do this before checking for the system-independent R6 libraries
32172   # (-lICE), since we may need -lsocket or whatever for X linking.
32173
32174   if test "$ISC" = yes; then
32175     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32176   else
32177     # Martyn Johnson says this is needed for Ultrix, if the X
32178     # libraries were built with DECnet support.  And Karl Berry says
32179     # the Alpha needs dnet_stub (dnet does not exist).
32180     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32181     cat >conftest.$ac_ext <<_ACEOF
32182 /* confdefs.h.  */
32183 _ACEOF
32184 cat confdefs.h >>conftest.$ac_ext
32185 cat >>conftest.$ac_ext <<_ACEOF
32186 /* end confdefs.h.  */
32187
32188 /* Override any GCC internal prototype to avoid an error.
32189    Use char because int might match the return type of a GCC
32190    builtin and then its argument prototype would still apply.  */
32191 #ifdef __cplusplus
32192 extern "C"
32193 #endif
32194 char XOpenDisplay ();
32195 int
32196 main ()
32197 {
32198 return XOpenDisplay ();
32199   ;
32200   return 0;
32201 }
32202 _ACEOF
32203 rm -f conftest.$ac_objext conftest$ac_exeext
32204 if { (ac_try="$ac_link"
32205 case "(($ac_try" in
32206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32207   *) ac_try_echo=$ac_try;;
32208 esac
32209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32210   (eval "$ac_link") 2>conftest.er1
32211   ac_status=$?
32212   grep -v '^ *+' conftest.er1 >conftest.err
32213   rm -f conftest.er1
32214   cat conftest.err >&5
32215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216   (exit $ac_status); } && {
32217          test -z "$ac_c_werror_flag" ||
32218          test ! -s conftest.err
32219        } && test -s conftest$ac_exeext &&
32220        $as_test_x conftest$ac_exeext; then
32221   :
32222 else
32223   echo "$as_me: failed program was:" >&5
32224 sed 's/^/| /' conftest.$ac_ext >&5
32225
32226         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32227 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32228 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32229   echo $ECHO_N "(cached) $ECHO_C" >&6
32230 else
32231   ac_check_lib_save_LIBS=$LIBS
32232 LIBS="-ldnet  $LIBS"
32233 cat >conftest.$ac_ext <<_ACEOF
32234 /* confdefs.h.  */
32235 _ACEOF
32236 cat confdefs.h >>conftest.$ac_ext
32237 cat >>conftest.$ac_ext <<_ACEOF
32238 /* end confdefs.h.  */
32239
32240 /* Override any GCC internal prototype to avoid an error.
32241    Use char because int might match the return type of a GCC
32242    builtin and then its argument prototype would still apply.  */
32243 #ifdef __cplusplus
32244 extern "C"
32245 #endif
32246 char dnet_ntoa ();
32247 int
32248 main ()
32249 {
32250 return dnet_ntoa ();
32251   ;
32252   return 0;
32253 }
32254 _ACEOF
32255 rm -f conftest.$ac_objext conftest$ac_exeext
32256 if { (ac_try="$ac_link"
32257 case "(($ac_try" in
32258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32259   *) ac_try_echo=$ac_try;;
32260 esac
32261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32262   (eval "$ac_link") 2>conftest.er1
32263   ac_status=$?
32264   grep -v '^ *+' conftest.er1 >conftest.err
32265   rm -f conftest.er1
32266   cat conftest.err >&5
32267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268   (exit $ac_status); } && {
32269          test -z "$ac_c_werror_flag" ||
32270          test ! -s conftest.err
32271        } && test -s conftest$ac_exeext &&
32272        $as_test_x conftest$ac_exeext; then
32273   ac_cv_lib_dnet_dnet_ntoa=yes
32274 else
32275   echo "$as_me: failed program was:" >&5
32276 sed 's/^/| /' conftest.$ac_ext >&5
32277
32278         ac_cv_lib_dnet_dnet_ntoa=no
32279 fi
32280
32281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32282       conftest$ac_exeext conftest.$ac_ext
32283 LIBS=$ac_check_lib_save_LIBS
32284 fi
32285 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32286 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32287 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32288   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32289 fi
32290
32291     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32292       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32293 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32294 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32295   echo $ECHO_N "(cached) $ECHO_C" >&6
32296 else
32297   ac_check_lib_save_LIBS=$LIBS
32298 LIBS="-ldnet_stub  $LIBS"
32299 cat >conftest.$ac_ext <<_ACEOF
32300 /* confdefs.h.  */
32301 _ACEOF
32302 cat confdefs.h >>conftest.$ac_ext
32303 cat >>conftest.$ac_ext <<_ACEOF
32304 /* end confdefs.h.  */
32305
32306 /* Override any GCC internal prototype to avoid an error.
32307    Use char because int might match the return type of a GCC
32308    builtin and then its argument prototype would still apply.  */
32309 #ifdef __cplusplus
32310 extern "C"
32311 #endif
32312 char dnet_ntoa ();
32313 int
32314 main ()
32315 {
32316 return dnet_ntoa ();
32317   ;
32318   return 0;
32319 }
32320 _ACEOF
32321 rm -f conftest.$ac_objext conftest$ac_exeext
32322 if { (ac_try="$ac_link"
32323 case "(($ac_try" in
32324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325   *) ac_try_echo=$ac_try;;
32326 esac
32327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328   (eval "$ac_link") 2>conftest.er1
32329   ac_status=$?
32330   grep -v '^ *+' conftest.er1 >conftest.err
32331   rm -f conftest.er1
32332   cat conftest.err >&5
32333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334   (exit $ac_status); } && {
32335          test -z "$ac_c_werror_flag" ||
32336          test ! -s conftest.err
32337        } && test -s conftest$ac_exeext &&
32338        $as_test_x conftest$ac_exeext; then
32339   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32340 else
32341   echo "$as_me: failed program was:" >&5
32342 sed 's/^/| /' conftest.$ac_ext >&5
32343
32344         ac_cv_lib_dnet_stub_dnet_ntoa=no
32345 fi
32346
32347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32348       conftest$ac_exeext conftest.$ac_ext
32349 LIBS=$ac_check_lib_save_LIBS
32350 fi
32351 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32352 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32353 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32354   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32355 fi
32356
32357     fi
32358 fi
32359
32360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32361       conftest$ac_exeext conftest.$ac_ext
32362     LIBS="$ac_xsave_LIBS"
32363
32364     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32365     # to get the SysV transport functions.
32366     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32367     # needs -lnsl.
32368     # The nsl library prevents programs from opening the X display
32369     # on Irix 5.2, according to T.E. Dickey.
32370     # The functions gethostbyname, getservbyname, and inet_addr are
32371     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32372     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32373 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32374 if test "${ac_cv_func_gethostbyname+set}" = set; then
32375   echo $ECHO_N "(cached) $ECHO_C" >&6
32376 else
32377   cat >conftest.$ac_ext <<_ACEOF
32378 /* confdefs.h.  */
32379 _ACEOF
32380 cat confdefs.h >>conftest.$ac_ext
32381 cat >>conftest.$ac_ext <<_ACEOF
32382 /* end confdefs.h.  */
32383 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32385 #define gethostbyname innocuous_gethostbyname
32386
32387 /* System header to define __stub macros and hopefully few prototypes,
32388     which can conflict with char gethostbyname (); below.
32389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32390     <limits.h> exists even on freestanding compilers.  */
32391
32392 #ifdef __STDC__
32393 # include <limits.h>
32394 #else
32395 # include <assert.h>
32396 #endif
32397
32398 #undef gethostbyname
32399
32400 /* Override any GCC internal prototype to avoid an error.
32401    Use char because int might match the return type of a GCC
32402    builtin and then its argument prototype would still apply.  */
32403 #ifdef __cplusplus
32404 extern "C"
32405 #endif
32406 char gethostbyname ();
32407 /* The GNU C library defines this for functions which it implements
32408     to always fail with ENOSYS.  Some functions are actually named
32409     something starting with __ and the normal name is an alias.  */
32410 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32411 choke me
32412 #endif
32413
32414 int
32415 main ()
32416 {
32417 return gethostbyname ();
32418   ;
32419   return 0;
32420 }
32421 _ACEOF
32422 rm -f conftest.$ac_objext conftest$ac_exeext
32423 if { (ac_try="$ac_link"
32424 case "(($ac_try" in
32425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32426   *) ac_try_echo=$ac_try;;
32427 esac
32428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32429   (eval "$ac_link") 2>conftest.er1
32430   ac_status=$?
32431   grep -v '^ *+' conftest.er1 >conftest.err
32432   rm -f conftest.er1
32433   cat conftest.err >&5
32434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32435   (exit $ac_status); } && {
32436          test -z "$ac_c_werror_flag" ||
32437          test ! -s conftest.err
32438        } && test -s conftest$ac_exeext &&
32439        $as_test_x conftest$ac_exeext; then
32440   ac_cv_func_gethostbyname=yes
32441 else
32442   echo "$as_me: failed program was:" >&5
32443 sed 's/^/| /' conftest.$ac_ext >&5
32444
32445         ac_cv_func_gethostbyname=no
32446 fi
32447
32448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32449       conftest$ac_exeext conftest.$ac_ext
32450 fi
32451 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32452 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32453
32454     if test $ac_cv_func_gethostbyname = no; then
32455       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32456 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32457 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32458   echo $ECHO_N "(cached) $ECHO_C" >&6
32459 else
32460   ac_check_lib_save_LIBS=$LIBS
32461 LIBS="-lnsl  $LIBS"
32462 cat >conftest.$ac_ext <<_ACEOF
32463 /* confdefs.h.  */
32464 _ACEOF
32465 cat confdefs.h >>conftest.$ac_ext
32466 cat >>conftest.$ac_ext <<_ACEOF
32467 /* end confdefs.h.  */
32468
32469 /* Override any GCC internal prototype to avoid an error.
32470    Use char because int might match the return type of a GCC
32471    builtin and then its argument prototype would still apply.  */
32472 #ifdef __cplusplus
32473 extern "C"
32474 #endif
32475 char gethostbyname ();
32476 int
32477 main ()
32478 {
32479 return gethostbyname ();
32480   ;
32481   return 0;
32482 }
32483 _ACEOF
32484 rm -f conftest.$ac_objext conftest$ac_exeext
32485 if { (ac_try="$ac_link"
32486 case "(($ac_try" in
32487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32488   *) ac_try_echo=$ac_try;;
32489 esac
32490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32491   (eval "$ac_link") 2>conftest.er1
32492   ac_status=$?
32493   grep -v '^ *+' conftest.er1 >conftest.err
32494   rm -f conftest.er1
32495   cat conftest.err >&5
32496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497   (exit $ac_status); } && {
32498          test -z "$ac_c_werror_flag" ||
32499          test ! -s conftest.err
32500        } && test -s conftest$ac_exeext &&
32501        $as_test_x conftest$ac_exeext; then
32502   ac_cv_lib_nsl_gethostbyname=yes
32503 else
32504   echo "$as_me: failed program was:" >&5
32505 sed 's/^/| /' conftest.$ac_ext >&5
32506
32507         ac_cv_lib_nsl_gethostbyname=no
32508 fi
32509
32510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32511       conftest$ac_exeext conftest.$ac_ext
32512 LIBS=$ac_check_lib_save_LIBS
32513 fi
32514 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32515 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32516 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32517   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32518 fi
32519
32520       if test $ac_cv_lib_nsl_gethostbyname = no; then
32521         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32522 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32523 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32524   echo $ECHO_N "(cached) $ECHO_C" >&6
32525 else
32526   ac_check_lib_save_LIBS=$LIBS
32527 LIBS="-lbsd  $LIBS"
32528 cat >conftest.$ac_ext <<_ACEOF
32529 /* confdefs.h.  */
32530 _ACEOF
32531 cat confdefs.h >>conftest.$ac_ext
32532 cat >>conftest.$ac_ext <<_ACEOF
32533 /* end confdefs.h.  */
32534
32535 /* Override any GCC internal prototype to avoid an error.
32536    Use char because int might match the return type of a GCC
32537    builtin and then its argument prototype would still apply.  */
32538 #ifdef __cplusplus
32539 extern "C"
32540 #endif
32541 char gethostbyname ();
32542 int
32543 main ()
32544 {
32545 return gethostbyname ();
32546   ;
32547   return 0;
32548 }
32549 _ACEOF
32550 rm -f conftest.$ac_objext conftest$ac_exeext
32551 if { (ac_try="$ac_link"
32552 case "(($ac_try" in
32553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32554   *) ac_try_echo=$ac_try;;
32555 esac
32556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32557   (eval "$ac_link") 2>conftest.er1
32558   ac_status=$?
32559   grep -v '^ *+' conftest.er1 >conftest.err
32560   rm -f conftest.er1
32561   cat conftest.err >&5
32562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563   (exit $ac_status); } && {
32564          test -z "$ac_c_werror_flag" ||
32565          test ! -s conftest.err
32566        } && test -s conftest$ac_exeext &&
32567        $as_test_x conftest$ac_exeext; then
32568   ac_cv_lib_bsd_gethostbyname=yes
32569 else
32570   echo "$as_me: failed program was:" >&5
32571 sed 's/^/| /' conftest.$ac_ext >&5
32572
32573         ac_cv_lib_bsd_gethostbyname=no
32574 fi
32575
32576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32577       conftest$ac_exeext conftest.$ac_ext
32578 LIBS=$ac_check_lib_save_LIBS
32579 fi
32580 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32581 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32582 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32583   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32584 fi
32585
32586       fi
32587     fi
32588
32589     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32590     # socket/setsockopt and other routines are undefined under SCO ODT
32591     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32592     # on later versions), says Simon Leinen: it contains gethostby*
32593     # variants that don't use the name server (or something).  -lsocket
32594     # must be given before -lnsl if both are needed.  We assume that
32595     # if connect needs -lnsl, so does gethostbyname.
32596     { echo "$as_me:$LINENO: checking for connect" >&5
32597 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32598 if test "${ac_cv_func_connect+set}" = set; then
32599   echo $ECHO_N "(cached) $ECHO_C" >&6
32600 else
32601   cat >conftest.$ac_ext <<_ACEOF
32602 /* confdefs.h.  */
32603 _ACEOF
32604 cat confdefs.h >>conftest.$ac_ext
32605 cat >>conftest.$ac_ext <<_ACEOF
32606 /* end confdefs.h.  */
32607 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32609 #define connect innocuous_connect
32610
32611 /* System header to define __stub macros and hopefully few prototypes,
32612     which can conflict with char connect (); below.
32613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32614     <limits.h> exists even on freestanding compilers.  */
32615
32616 #ifdef __STDC__
32617 # include <limits.h>
32618 #else
32619 # include <assert.h>
32620 #endif
32621
32622 #undef connect
32623
32624 /* Override any GCC internal prototype to avoid an error.
32625    Use char because int might match the return type of a GCC
32626    builtin and then its argument prototype would still apply.  */
32627 #ifdef __cplusplus
32628 extern "C"
32629 #endif
32630 char connect ();
32631 /* The GNU C library defines this for functions which it implements
32632     to always fail with ENOSYS.  Some functions are actually named
32633     something starting with __ and the normal name is an alias.  */
32634 #if defined __stub_connect || defined __stub___connect
32635 choke me
32636 #endif
32637
32638 int
32639 main ()
32640 {
32641 return connect ();
32642   ;
32643   return 0;
32644 }
32645 _ACEOF
32646 rm -f conftest.$ac_objext conftest$ac_exeext
32647 if { (ac_try="$ac_link"
32648 case "(($ac_try" in
32649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650   *) ac_try_echo=$ac_try;;
32651 esac
32652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653   (eval "$ac_link") 2>conftest.er1
32654   ac_status=$?
32655   grep -v '^ *+' conftest.er1 >conftest.err
32656   rm -f conftest.er1
32657   cat conftest.err >&5
32658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659   (exit $ac_status); } && {
32660          test -z "$ac_c_werror_flag" ||
32661          test ! -s conftest.err
32662        } && test -s conftest$ac_exeext &&
32663        $as_test_x conftest$ac_exeext; then
32664   ac_cv_func_connect=yes
32665 else
32666   echo "$as_me: failed program was:" >&5
32667 sed 's/^/| /' conftest.$ac_ext >&5
32668
32669         ac_cv_func_connect=no
32670 fi
32671
32672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32673       conftest$ac_exeext conftest.$ac_ext
32674 fi
32675 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32676 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32677
32678     if test $ac_cv_func_connect = no; then
32679       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32680 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32681 if test "${ac_cv_lib_socket_connect+set}" = set; then
32682   echo $ECHO_N "(cached) $ECHO_C" >&6
32683 else
32684   ac_check_lib_save_LIBS=$LIBS
32685 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32686 cat >conftest.$ac_ext <<_ACEOF
32687 /* confdefs.h.  */
32688 _ACEOF
32689 cat confdefs.h >>conftest.$ac_ext
32690 cat >>conftest.$ac_ext <<_ACEOF
32691 /* end confdefs.h.  */
32692
32693 /* Override any GCC internal prototype to avoid an error.
32694    Use char because int might match the return type of a GCC
32695    builtin and then its argument prototype would still apply.  */
32696 #ifdef __cplusplus
32697 extern "C"
32698 #endif
32699 char connect ();
32700 int
32701 main ()
32702 {
32703 return connect ();
32704   ;
32705   return 0;
32706 }
32707 _ACEOF
32708 rm -f conftest.$ac_objext conftest$ac_exeext
32709 if { (ac_try="$ac_link"
32710 case "(($ac_try" in
32711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32712   *) ac_try_echo=$ac_try;;
32713 esac
32714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32715   (eval "$ac_link") 2>conftest.er1
32716   ac_status=$?
32717   grep -v '^ *+' conftest.er1 >conftest.err
32718   rm -f conftest.er1
32719   cat conftest.err >&5
32720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721   (exit $ac_status); } && {
32722          test -z "$ac_c_werror_flag" ||
32723          test ! -s conftest.err
32724        } && test -s conftest$ac_exeext &&
32725        $as_test_x conftest$ac_exeext; then
32726   ac_cv_lib_socket_connect=yes
32727 else
32728   echo "$as_me: failed program was:" >&5
32729 sed 's/^/| /' conftest.$ac_ext >&5
32730
32731         ac_cv_lib_socket_connect=no
32732 fi
32733
32734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32735       conftest$ac_exeext conftest.$ac_ext
32736 LIBS=$ac_check_lib_save_LIBS
32737 fi
32738 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32739 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32740 if test $ac_cv_lib_socket_connect = yes; then
32741   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32742 fi
32743
32744     fi
32745
32746     # Guillermo Gomez says -lposix is necessary on A/UX.
32747     { echo "$as_me:$LINENO: checking for remove" >&5
32748 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32749 if test "${ac_cv_func_remove+set}" = set; then
32750   echo $ECHO_N "(cached) $ECHO_C" >&6
32751 else
32752   cat >conftest.$ac_ext <<_ACEOF
32753 /* confdefs.h.  */
32754 _ACEOF
32755 cat confdefs.h >>conftest.$ac_ext
32756 cat >>conftest.$ac_ext <<_ACEOF
32757 /* end confdefs.h.  */
32758 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32760 #define remove innocuous_remove
32761
32762 /* System header to define __stub macros and hopefully few prototypes,
32763     which can conflict with char remove (); below.
32764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32765     <limits.h> exists even on freestanding compilers.  */
32766
32767 #ifdef __STDC__
32768 # include <limits.h>
32769 #else
32770 # include <assert.h>
32771 #endif
32772
32773 #undef remove
32774
32775 /* Override any GCC internal prototype to avoid an error.
32776    Use char because int might match the return type of a GCC
32777    builtin and then its argument prototype would still apply.  */
32778 #ifdef __cplusplus
32779 extern "C"
32780 #endif
32781 char remove ();
32782 /* The GNU C library defines this for functions which it implements
32783     to always fail with ENOSYS.  Some functions are actually named
32784     something starting with __ and the normal name is an alias.  */
32785 #if defined __stub_remove || defined __stub___remove
32786 choke me
32787 #endif
32788
32789 int
32790 main ()
32791 {
32792 return remove ();
32793   ;
32794   return 0;
32795 }
32796 _ACEOF
32797 rm -f conftest.$ac_objext conftest$ac_exeext
32798 if { (ac_try="$ac_link"
32799 case "(($ac_try" in
32800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32801   *) ac_try_echo=$ac_try;;
32802 esac
32803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32804   (eval "$ac_link") 2>conftest.er1
32805   ac_status=$?
32806   grep -v '^ *+' conftest.er1 >conftest.err
32807   rm -f conftest.er1
32808   cat conftest.err >&5
32809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810   (exit $ac_status); } && {
32811          test -z "$ac_c_werror_flag" ||
32812          test ! -s conftest.err
32813        } && test -s conftest$ac_exeext &&
32814        $as_test_x conftest$ac_exeext; then
32815   ac_cv_func_remove=yes
32816 else
32817   echo "$as_me: failed program was:" >&5
32818 sed 's/^/| /' conftest.$ac_ext >&5
32819
32820         ac_cv_func_remove=no
32821 fi
32822
32823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32824       conftest$ac_exeext conftest.$ac_ext
32825 fi
32826 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32827 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32828
32829     if test $ac_cv_func_remove = no; then
32830       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32831 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32832 if test "${ac_cv_lib_posix_remove+set}" = set; then
32833   echo $ECHO_N "(cached) $ECHO_C" >&6
32834 else
32835   ac_check_lib_save_LIBS=$LIBS
32836 LIBS="-lposix  $LIBS"
32837 cat >conftest.$ac_ext <<_ACEOF
32838 /* confdefs.h.  */
32839 _ACEOF
32840 cat confdefs.h >>conftest.$ac_ext
32841 cat >>conftest.$ac_ext <<_ACEOF
32842 /* end confdefs.h.  */
32843
32844 /* Override any GCC internal prototype to avoid an error.
32845    Use char because int might match the return type of a GCC
32846    builtin and then its argument prototype would still apply.  */
32847 #ifdef __cplusplus
32848 extern "C"
32849 #endif
32850 char remove ();
32851 int
32852 main ()
32853 {
32854 return remove ();
32855   ;
32856   return 0;
32857 }
32858 _ACEOF
32859 rm -f conftest.$ac_objext conftest$ac_exeext
32860 if { (ac_try="$ac_link"
32861 case "(($ac_try" in
32862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32863   *) ac_try_echo=$ac_try;;
32864 esac
32865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32866   (eval "$ac_link") 2>conftest.er1
32867   ac_status=$?
32868   grep -v '^ *+' conftest.er1 >conftest.err
32869   rm -f conftest.er1
32870   cat conftest.err >&5
32871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872   (exit $ac_status); } && {
32873          test -z "$ac_c_werror_flag" ||
32874          test ! -s conftest.err
32875        } && test -s conftest$ac_exeext &&
32876        $as_test_x conftest$ac_exeext; then
32877   ac_cv_lib_posix_remove=yes
32878 else
32879   echo "$as_me: failed program was:" >&5
32880 sed 's/^/| /' conftest.$ac_ext >&5
32881
32882         ac_cv_lib_posix_remove=no
32883 fi
32884
32885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32886       conftest$ac_exeext conftest.$ac_ext
32887 LIBS=$ac_check_lib_save_LIBS
32888 fi
32889 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32890 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32891 if test $ac_cv_lib_posix_remove = yes; then
32892   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32893 fi
32894
32895     fi
32896
32897     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32898     { echo "$as_me:$LINENO: checking for shmat" >&5
32899 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32900 if test "${ac_cv_func_shmat+set}" = set; then
32901   echo $ECHO_N "(cached) $ECHO_C" >&6
32902 else
32903   cat >conftest.$ac_ext <<_ACEOF
32904 /* confdefs.h.  */
32905 _ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h.  */
32909 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32911 #define shmat innocuous_shmat
32912
32913 /* System header to define __stub macros and hopefully few prototypes,
32914     which can conflict with char shmat (); below.
32915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32916     <limits.h> exists even on freestanding compilers.  */
32917
32918 #ifdef __STDC__
32919 # include <limits.h>
32920 #else
32921 # include <assert.h>
32922 #endif
32923
32924 #undef shmat
32925
32926 /* Override any GCC internal prototype to avoid an error.
32927    Use char because int might match the return type of a GCC
32928    builtin and then its argument prototype would still apply.  */
32929 #ifdef __cplusplus
32930 extern "C"
32931 #endif
32932 char shmat ();
32933 /* The GNU C library defines this for functions which it implements
32934     to always fail with ENOSYS.  Some functions are actually named
32935     something starting with __ and the normal name is an alias.  */
32936 #if defined __stub_shmat || defined __stub___shmat
32937 choke me
32938 #endif
32939
32940 int
32941 main ()
32942 {
32943 return shmat ();
32944   ;
32945   return 0;
32946 }
32947 _ACEOF
32948 rm -f conftest.$ac_objext conftest$ac_exeext
32949 if { (ac_try="$ac_link"
32950 case "(($ac_try" in
32951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32952   *) ac_try_echo=$ac_try;;
32953 esac
32954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32955   (eval "$ac_link") 2>conftest.er1
32956   ac_status=$?
32957   grep -v '^ *+' conftest.er1 >conftest.err
32958   rm -f conftest.er1
32959   cat conftest.err >&5
32960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961   (exit $ac_status); } && {
32962          test -z "$ac_c_werror_flag" ||
32963          test ! -s conftest.err
32964        } && test -s conftest$ac_exeext &&
32965        $as_test_x conftest$ac_exeext; then
32966   ac_cv_func_shmat=yes
32967 else
32968   echo "$as_me: failed program was:" >&5
32969 sed 's/^/| /' conftest.$ac_ext >&5
32970
32971         ac_cv_func_shmat=no
32972 fi
32973
32974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32975       conftest$ac_exeext conftest.$ac_ext
32976 fi
32977 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32978 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
32979
32980     if test $ac_cv_func_shmat = no; then
32981       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32982 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
32983 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32984   echo $ECHO_N "(cached) $ECHO_C" >&6
32985 else
32986   ac_check_lib_save_LIBS=$LIBS
32987 LIBS="-lipc  $LIBS"
32988 cat >conftest.$ac_ext <<_ACEOF
32989 /* confdefs.h.  */
32990 _ACEOF
32991 cat confdefs.h >>conftest.$ac_ext
32992 cat >>conftest.$ac_ext <<_ACEOF
32993 /* end confdefs.h.  */
32994
32995 /* Override any GCC internal prototype to avoid an error.
32996    Use char because int might match the return type of a GCC
32997    builtin and then its argument prototype would still apply.  */
32998 #ifdef __cplusplus
32999 extern "C"
33000 #endif
33001 char shmat ();
33002 int
33003 main ()
33004 {
33005 return shmat ();
33006   ;
33007   return 0;
33008 }
33009 _ACEOF
33010 rm -f conftest.$ac_objext conftest$ac_exeext
33011 if { (ac_try="$ac_link"
33012 case "(($ac_try" in
33013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014   *) ac_try_echo=$ac_try;;
33015 esac
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017   (eval "$ac_link") 2>conftest.er1
33018   ac_status=$?
33019   grep -v '^ *+' conftest.er1 >conftest.err
33020   rm -f conftest.er1
33021   cat conftest.err >&5
33022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023   (exit $ac_status); } && {
33024          test -z "$ac_c_werror_flag" ||
33025          test ! -s conftest.err
33026        } && test -s conftest$ac_exeext &&
33027        $as_test_x conftest$ac_exeext; then
33028   ac_cv_lib_ipc_shmat=yes
33029 else
33030   echo "$as_me: failed program was:" >&5
33031 sed 's/^/| /' conftest.$ac_ext >&5
33032
33033         ac_cv_lib_ipc_shmat=no
33034 fi
33035
33036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33037       conftest$ac_exeext conftest.$ac_ext
33038 LIBS=$ac_check_lib_save_LIBS
33039 fi
33040 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33041 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
33042 if test $ac_cv_lib_ipc_shmat = yes; then
33043   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33044 fi
33045
33046     fi
33047   fi
33048
33049   # Check for libraries that X11R6 Xt/Xaw programs need.
33050   ac_save_LDFLAGS=$LDFLAGS
33051   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33052   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33053   # check for ICE first), but we must link in the order -lSM -lICE or
33054   # we get undefined symbols.  So assume we have SM if we have ICE.
33055   # These have to be linked with before -lX11, unlike the other
33056   # libraries we check for below, so use a different variable.
33057   # John Interrante, Karl Berry
33058   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33059 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
33060 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33061   echo $ECHO_N "(cached) $ECHO_C" >&6
33062 else
33063   ac_check_lib_save_LIBS=$LIBS
33064 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33065 cat >conftest.$ac_ext <<_ACEOF
33066 /* confdefs.h.  */
33067 _ACEOF
33068 cat confdefs.h >>conftest.$ac_ext
33069 cat >>conftest.$ac_ext <<_ACEOF
33070 /* end confdefs.h.  */
33071
33072 /* Override any GCC internal prototype to avoid an error.
33073    Use char because int might match the return type of a GCC
33074    builtin and then its argument prototype would still apply.  */
33075 #ifdef __cplusplus
33076 extern "C"
33077 #endif
33078 char IceConnectionNumber ();
33079 int
33080 main ()
33081 {
33082 return IceConnectionNumber ();
33083   ;
33084   return 0;
33085 }
33086 _ACEOF
33087 rm -f conftest.$ac_objext conftest$ac_exeext
33088 if { (ac_try="$ac_link"
33089 case "(($ac_try" in
33090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33091   *) ac_try_echo=$ac_try;;
33092 esac
33093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33094   (eval "$ac_link") 2>conftest.er1
33095   ac_status=$?
33096   grep -v '^ *+' conftest.er1 >conftest.err
33097   rm -f conftest.er1
33098   cat conftest.err >&5
33099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100   (exit $ac_status); } && {
33101          test -z "$ac_c_werror_flag" ||
33102          test ! -s conftest.err
33103        } && test -s conftest$ac_exeext &&
33104        $as_test_x conftest$ac_exeext; then
33105   ac_cv_lib_ICE_IceConnectionNumber=yes
33106 else
33107   echo "$as_me: failed program was:" >&5
33108 sed 's/^/| /' conftest.$ac_ext >&5
33109
33110         ac_cv_lib_ICE_IceConnectionNumber=no
33111 fi
33112
33113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33114       conftest$ac_exeext conftest.$ac_ext
33115 LIBS=$ac_check_lib_save_LIBS
33116 fi
33117 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33118 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33119 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33120   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33121 fi
33122
33123   LDFLAGS=$ac_save_LDFLAGS
33124
33125 fi
33126
33127
33128         if test "$no_x" = "yes"; then
33129           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33130 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33131    { (exit 1); exit 1; }; }
33132         fi
33133
33134                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33135         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33136         AFMINSTALL=afminstall
33137         COMPILED_X_PROGRAM=0
33138
33139     fi
33140
33141     if test "$wxUSE_X11" = 1; then
33142         if test "$wxUSE_NANOX" = "yes"; then
33143             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33144 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33145             if test "x$MICROWIN" = x ; then
33146                 { echo "$as_me:$LINENO: result: not found" >&5
33147 echo "${ECHO_T}not found" >&6; }
33148                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33149 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33150    { (exit 1); exit 1; }; }
33151             else
33152                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33153 echo "${ECHO_T}$MICROWIN" >&6; }
33154                 cat >>confdefs.h <<\_ACEOF
33155 #define wxUSE_NANOX 1
33156 _ACEOF
33157
33158             fi
33159         fi
33160
33161         if test "$wxUSE_UNICODE" = "yes"; then
33162
33163
33164 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33165         if test -n "$ac_tool_prefix"; then
33166   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33167 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33170 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33171   echo $ECHO_N "(cached) $ECHO_C" >&6
33172 else
33173   case $PKG_CONFIG in
33174   [\\/]* | ?:[\\/]*)
33175   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33176   ;;
33177   *)
33178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33179 for as_dir in $PATH
33180 do
33181   IFS=$as_save_IFS
33182   test -z "$as_dir" && as_dir=.
33183   for ac_exec_ext in '' $ac_executable_extensions; do
33184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33185     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33187     break 2
33188   fi
33189 done
33190 done
33191 IFS=$as_save_IFS
33192
33193   ;;
33194 esac
33195 fi
33196 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33197 if test -n "$PKG_CONFIG"; then
33198   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33199 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33200 else
33201   { echo "$as_me:$LINENO: result: no" >&5
33202 echo "${ECHO_T}no" >&6; }
33203 fi
33204
33205
33206 fi
33207 if test -z "$ac_cv_path_PKG_CONFIG"; then
33208   ac_pt_PKG_CONFIG=$PKG_CONFIG
33209   # Extract the first word of "pkg-config", so it can be a program name with args.
33210 set dummy pkg-config; ac_word=$2
33211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33213 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33214   echo $ECHO_N "(cached) $ECHO_C" >&6
33215 else
33216   case $ac_pt_PKG_CONFIG in
33217   [\\/]* | ?:[\\/]*)
33218   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33219   ;;
33220   *)
33221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33222 for as_dir in $PATH
33223 do
33224   IFS=$as_save_IFS
33225   test -z "$as_dir" && as_dir=.
33226   for ac_exec_ext in '' $ac_executable_extensions; do
33227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33228     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33230     break 2
33231   fi
33232 done
33233 done
33234 IFS=$as_save_IFS
33235
33236   ;;
33237 esac
33238 fi
33239 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33240 if test -n "$ac_pt_PKG_CONFIG"; then
33241   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33242 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33243 else
33244   { echo "$as_me:$LINENO: result: no" >&5
33245 echo "${ECHO_T}no" >&6; }
33246 fi
33247
33248   if test "x$ac_pt_PKG_CONFIG" = x; then
33249     PKG_CONFIG=""
33250   else
33251     case $cross_compiling:$ac_tool_warned in
33252 yes:)
33253 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33254 whose name does not start with the host triplet.  If you think this
33255 configuration is useful to you, please write to autoconf@gnu.org." >&5
33256 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33257 whose name does not start with the host triplet.  If you think this
33258 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33259 ac_tool_warned=yes ;;
33260 esac
33261     PKG_CONFIG=$ac_pt_PKG_CONFIG
33262   fi
33263 else
33264   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33265 fi
33266
33267 fi
33268 if test -n "$PKG_CONFIG"; then
33269         _pkg_min_version=0.9.0
33270         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33271 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33272         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33273                 { echo "$as_me:$LINENO: result: yes" >&5
33274 echo "${ECHO_T}yes" >&6; }
33275         else
33276                 { echo "$as_me:$LINENO: result: no" >&5
33277 echo "${ECHO_T}no" >&6; }
33278                 PKG_CONFIG=""
33279         fi
33280
33281 fi
33282
33283
33284 pkg_failed=no
33285 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33286 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33287
33288 if test -n "$PKG_CONFIG"; then
33289     if test -n "$PANGOX_CFLAGS"; then
33290         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33291     else
33292         if test -n "$PKG_CONFIG" && \
33293     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33294   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33295   ac_status=$?
33296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297   (exit $ac_status); }; then
33298   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33299 else
33300   pkg_failed=yes
33301 fi
33302     fi
33303 else
33304         pkg_failed=untried
33305 fi
33306 if test -n "$PKG_CONFIG"; then
33307     if test -n "$PANGOX_LIBS"; then
33308         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33309     else
33310         if test -n "$PKG_CONFIG" && \
33311     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33312   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33313   ac_status=$?
33314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315   (exit $ac_status); }; then
33316   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33317 else
33318   pkg_failed=yes
33319 fi
33320     fi
33321 else
33322         pkg_failed=untried
33323 fi
33324
33325
33326
33327 if test $pkg_failed = yes; then
33328
33329 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33330         _pkg_short_errors_supported=yes
33331 else
33332         _pkg_short_errors_supported=no
33333 fi
33334         if test $_pkg_short_errors_supported = yes; then
33335                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33336         else
33337                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33338         fi
33339         # Put the nasty error message in config.log where it belongs
33340         echo "$PANGOX_PKG_ERRORS" >&5
33341
33342
33343                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33344 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33345    { (exit 1); exit 1; }; }
33346
33347
33348 elif test $pkg_failed = untried; then
33349
33350                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33351 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33352    { (exit 1); exit 1; }; }
33353
33354
33355 else
33356         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33357         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33358         { echo "$as_me:$LINENO: result: yes" >&5
33359 echo "${ECHO_T}yes" >&6; }
33360
33361                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33362                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33363                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33364
33365 fi
33366
33367 pkg_failed=no
33368 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33369 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33370
33371 if test -n "$PKG_CONFIG"; then
33372     if test -n "$PANGOFT2_CFLAGS"; then
33373         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33374     else
33375         if test -n "$PKG_CONFIG" && \
33376     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33377   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33378   ac_status=$?
33379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380   (exit $ac_status); }; then
33381   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33382 else
33383   pkg_failed=yes
33384 fi
33385     fi
33386 else
33387         pkg_failed=untried
33388 fi
33389 if test -n "$PKG_CONFIG"; then
33390     if test -n "$PANGOFT2_LIBS"; then
33391         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33392     else
33393         if test -n "$PKG_CONFIG" && \
33394     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33395   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33396   ac_status=$?
33397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398   (exit $ac_status); }; then
33399   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33400 else
33401   pkg_failed=yes
33402 fi
33403     fi
33404 else
33405         pkg_failed=untried
33406 fi
33407
33408
33409
33410 if test $pkg_failed = yes; then
33411
33412 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33413         _pkg_short_errors_supported=yes
33414 else
33415         _pkg_short_errors_supported=no
33416 fi
33417         if test $_pkg_short_errors_supported = yes; then
33418                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33419         else
33420                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33421         fi
33422         # Put the nasty error message in config.log where it belongs
33423         echo "$PANGOFT2_PKG_ERRORS" >&5
33424
33425
33426                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33427 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33428                     wxUSE_PRINTING_ARCHITECTURE="no"
33429
33430
33431 elif test $pkg_failed = untried; then
33432
33433                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33434 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33435                     wxUSE_PRINTING_ARCHITECTURE="no"
33436
33437
33438 else
33439         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33440         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33441         { echo "$as_me:$LINENO: result: yes" >&5
33442 echo "${ECHO_T}yes" >&6; }
33443
33444                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33445                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33446                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33447
33448 fi
33449
33450 pkg_failed=no
33451 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33452 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33453
33454 if test -n "$PKG_CONFIG"; then
33455     if test -n "$PANGOXFT_CFLAGS"; then
33456         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33457     else
33458         if test -n "$PKG_CONFIG" && \
33459     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33460   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33461   ac_status=$?
33462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463   (exit $ac_status); }; then
33464   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33465 else
33466   pkg_failed=yes
33467 fi
33468     fi
33469 else
33470         pkg_failed=untried
33471 fi
33472 if test -n "$PKG_CONFIG"; then
33473     if test -n "$PANGOXFT_LIBS"; then
33474         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33475     else
33476         if test -n "$PKG_CONFIG" && \
33477     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33478   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33479   ac_status=$?
33480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481   (exit $ac_status); }; then
33482   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33483 else
33484   pkg_failed=yes
33485 fi
33486     fi
33487 else
33488         pkg_failed=untried
33489 fi
33490
33491
33492
33493 if test $pkg_failed = yes; then
33494
33495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33496         _pkg_short_errors_supported=yes
33497 else
33498         _pkg_short_errors_supported=no
33499 fi
33500         if test $_pkg_short_errors_supported = yes; then
33501                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33502         else
33503                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33504         fi
33505         # Put the nasty error message in config.log where it belongs
33506         echo "$PANGOXFT_PKG_ERRORS" >&5
33507
33508
33509                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33510 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33511
33512
33513 elif test $pkg_failed = untried; then
33514
33515                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33516 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33517
33518
33519 else
33520         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33521         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33522         { echo "$as_me:$LINENO: result: yes" >&5
33523 echo "${ECHO_T}yes" >&6; }
33524
33525                     cat >>confdefs.h <<\_ACEOF
33526 #define HAVE_PANGO_XFT 1
33527 _ACEOF
33528
33529                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33530                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33531                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33532
33533 fi
33534             save_LIBS="$LIBS"
33535             LIBS="$LIBS $PANGOX_LIBS"
33536
33537 for ac_func in pango_font_family_is_monospace
33538 do
33539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33543   echo $ECHO_N "(cached) $ECHO_C" >&6
33544 else
33545   cat >conftest.$ac_ext <<_ACEOF
33546 /* confdefs.h.  */
33547 _ACEOF
33548 cat confdefs.h >>conftest.$ac_ext
33549 cat >>conftest.$ac_ext <<_ACEOF
33550 /* end confdefs.h.  */
33551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33553 #define $ac_func innocuous_$ac_func
33554
33555 /* System header to define __stub macros and hopefully few prototypes,
33556     which can conflict with char $ac_func (); below.
33557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33558     <limits.h> exists even on freestanding compilers.  */
33559
33560 #ifdef __STDC__
33561 # include <limits.h>
33562 #else
33563 # include <assert.h>
33564 #endif
33565
33566 #undef $ac_func
33567
33568 /* Override any GCC internal prototype to avoid an error.
33569    Use char because int might match the return type of a GCC
33570    builtin and then its argument prototype would still apply.  */
33571 #ifdef __cplusplus
33572 extern "C"
33573 #endif
33574 char $ac_func ();
33575 /* The GNU C library defines this for functions which it implements
33576     to always fail with ENOSYS.  Some functions are actually named
33577     something starting with __ and the normal name is an alias.  */
33578 #if defined __stub_$ac_func || defined __stub___$ac_func
33579 choke me
33580 #endif
33581
33582 int
33583 main ()
33584 {
33585 return $ac_func ();
33586   ;
33587   return 0;
33588 }
33589 _ACEOF
33590 rm -f conftest.$ac_objext conftest$ac_exeext
33591 if { (ac_try="$ac_link"
33592 case "(($ac_try" in
33593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33594   *) ac_try_echo=$ac_try;;
33595 esac
33596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33597   (eval "$ac_link") 2>conftest.er1
33598   ac_status=$?
33599   grep -v '^ *+' conftest.er1 >conftest.err
33600   rm -f conftest.er1
33601   cat conftest.err >&5
33602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603   (exit $ac_status); } && {
33604          test -z "$ac_c_werror_flag" ||
33605          test ! -s conftest.err
33606        } && test -s conftest$ac_exeext &&
33607        $as_test_x conftest$ac_exeext; then
33608   eval "$as_ac_var=yes"
33609 else
33610   echo "$as_me: failed program was:" >&5
33611 sed 's/^/| /' conftest.$ac_ext >&5
33612
33613         eval "$as_ac_var=no"
33614 fi
33615
33616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33617       conftest$ac_exeext conftest.$ac_ext
33618 fi
33619 ac_res=`eval echo '${'$as_ac_var'}'`
33620                { echo "$as_me:$LINENO: result: $ac_res" >&5
33621 echo "${ECHO_T}$ac_res" >&6; }
33622 if test `eval echo '${'$as_ac_var'}'` = yes; then
33623   cat >>confdefs.h <<_ACEOF
33624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33625 _ACEOF
33626
33627 fi
33628 done
33629
33630             LIBS="$save_LIBS"
33631         fi
33632
33633         wxUSE_UNIVERSAL="yes"
33634
33635         if test "$wxUSE_NANOX" = "yes"; then
33636             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33637             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"
33638             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33639         else
33640             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33641         fi
33642
33643         TOOLKIT=X11
33644         GUIDIST=X11_DIST
33645     fi
33646
33647     if test "$wxUSE_MOTIF" = 1; then
33648         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33649 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33650
33651 ac_find_includes=
33652 for ac_dir in $SEARCH_INCLUDE /usr/include
33653   do
33654     if test -f "$ac_dir/Xm/Xm.h"; then
33655       ac_find_includes=$ac_dir
33656       break
33657     fi
33658   done
33659
33660         if test "$ac_find_includes" != "" ; then
33661             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33662 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33663
33664     if test "x$ac_find_includes" = "x/usr/include"; then
33665     ac_path_to_include=""
33666   else
33667     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33668     result=$?
33669     if test $result = 0; then
33670       ac_path_to_include=""
33671     else
33672       ac_path_to_include=" -I$ac_find_includes"
33673     fi
33674   fi
33675
33676             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33677         else
33678             save_CFLAGS=$CFLAGS
33679             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33680
33681             cat >conftest.$ac_ext <<_ACEOF
33682 /* confdefs.h.  */
33683 _ACEOF
33684 cat confdefs.h >>conftest.$ac_ext
33685 cat >>conftest.$ac_ext <<_ACEOF
33686 /* end confdefs.h.  */
33687
33688                     #include <Xm/Xm.h>
33689
33690 int
33691 main ()
33692 {
33693
33694                     int version;
33695                     version = xmUseVersion;
33696
33697   ;
33698   return 0;
33699 }
33700 _ACEOF
33701 rm -f conftest.$ac_objext
33702 if { (ac_try="$ac_compile"
33703 case "(($ac_try" in
33704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33705   *) ac_try_echo=$ac_try;;
33706 esac
33707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33708   (eval "$ac_compile") 2>conftest.er1
33709   ac_status=$?
33710   grep -v '^ *+' conftest.er1 >conftest.err
33711   rm -f conftest.er1
33712   cat conftest.err >&5
33713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33714   (exit $ac_status); } && {
33715          test -z "$ac_c_werror_flag" ||
33716          test ! -s conftest.err
33717        } && test -s conftest.$ac_objext; then
33718
33719                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33720 echo "${ECHO_T}found in default search path" >&6; }
33721                     COMPILED_X_PROGRAM=1
33722
33723 else
33724   echo "$as_me: failed program was:" >&5
33725 sed 's/^/| /' conftest.$ac_ext >&5
33726
33727
33728                     { echo "$as_me:$LINENO: result: no" >&5
33729 echo "${ECHO_T}no" >&6; }
33730                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33731 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33732    { (exit 1); exit 1; }; }
33733
33734
33735 fi
33736
33737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33738
33739             CFLAGS=$save_CFLAGS
33740         fi
33741
33742
33743         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33744 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33745
33746   ac_find_libraries=
33747   for ac_dir in $SEARCH_LIB
33748   do
33749     for ac_extension in a so sl dylib dll.a; do
33750       if test -f "$ac_dir/libXm.$ac_extension"; then
33751         ac_find_libraries=$ac_dir
33752         break 2
33753       fi
33754     done
33755   done
33756
33757
33758         if test "x$ac_find_libraries" != "x" ; then
33759             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33760 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33761
33762
33763     if test "$ac_find_libraries" = "default location"; then
33764     ac_path_to_link=""
33765   else
33766     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33767     result=$?
33768     if test $result = 0; then
33769       ac_path_to_link=""
33770     else
33771       ac_path_to_link=" -L$ac_find_libraries"
33772     fi
33773   fi
33774
33775             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33776         else
33777                                                 save_CFLAGS=$CFLAGS
33778             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33779             save_LIBS="$LIBS"
33780             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33781
33782             cat >conftest.$ac_ext <<_ACEOF
33783 /* confdefs.h.  */
33784 _ACEOF
33785 cat confdefs.h >>conftest.$ac_ext
33786 cat >>conftest.$ac_ext <<_ACEOF
33787 /* end confdefs.h.  */
33788
33789                     #include <Xm/Xm.h>
33790
33791 int
33792 main ()
33793 {
33794
33795                     int version;
33796                     version = xmUseVersion;
33797
33798   ;
33799   return 0;
33800 }
33801 _ACEOF
33802 rm -f conftest.$ac_objext conftest$ac_exeext
33803 if { (ac_try="$ac_link"
33804 case "(($ac_try" in
33805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33806   *) ac_try_echo=$ac_try;;
33807 esac
33808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33809   (eval "$ac_link") 2>conftest.er1
33810   ac_status=$?
33811   grep -v '^ *+' conftest.er1 >conftest.err
33812   rm -f conftest.er1
33813   cat conftest.err >&5
33814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815   (exit $ac_status); } && {
33816          test -z "$ac_c_werror_flag" ||
33817          test ! -s conftest.err
33818        } && test -s conftest$ac_exeext &&
33819        $as_test_x conftest$ac_exeext; then
33820
33821                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33822 echo "${ECHO_T}found in default search path" >&6; }
33823                     COMPILED_X_PROGRAM=1
33824
33825 else
33826   echo "$as_me: failed program was:" >&5
33827 sed 's/^/| /' conftest.$ac_ext >&5
33828
33829
33830                     { echo "$as_me:$LINENO: result: no" >&5
33831 echo "${ECHO_T}no" >&6; }
33832                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33833 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33834    { (exit 1); exit 1; }; }
33835
33836
33837 fi
33838
33839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33840       conftest$ac_exeext conftest.$ac_ext
33841
33842             CFLAGS=$save_CFLAGS
33843             LIBS="$save_LIBS"
33844         fi
33845
33846         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33847 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33848         libp_link=""
33849         libsm_ice_link=""
33850         libs_found=0
33851         for libp in "" " -lXp"; do
33852             if test "$libs_found" = 0; then
33853                 for libsm_ice in "" " -lSM -lICE"; do
33854                     if test "$libs_found" = 0; then
33855                         save_LIBS="$LIBS"
33856                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33857                         save_CFLAGS=$CFLAGS
33858                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33859
33860                         cat >conftest.$ac_ext <<_ACEOF
33861 /* confdefs.h.  */
33862 _ACEOF
33863 cat confdefs.h >>conftest.$ac_ext
33864 cat >>conftest.$ac_ext <<_ACEOF
33865 /* end confdefs.h.  */
33866
33867                                 #include <Xm/Xm.h>
33868                                 #include <Xm/List.h>
33869
33870 int
33871 main ()
33872 {
33873
33874                                 XmString string = NULL;
33875                                 Widget w = NULL;
33876                                 int position = 0;
33877                                 XmListAddItem(w, string, position);
33878
33879   ;
33880   return 0;
33881 }
33882 _ACEOF
33883 rm -f conftest.$ac_objext conftest$ac_exeext
33884 if { (ac_try="$ac_link"
33885 case "(($ac_try" in
33886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33887   *) ac_try_echo=$ac_try;;
33888 esac
33889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33890   (eval "$ac_link") 2>conftest.er1
33891   ac_status=$?
33892   grep -v '^ *+' conftest.er1 >conftest.err
33893   rm -f conftest.er1
33894   cat conftest.err >&5
33895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896   (exit $ac_status); } && {
33897          test -z "$ac_c_werror_flag" ||
33898          test ! -s conftest.err
33899        } && test -s conftest$ac_exeext &&
33900        $as_test_x conftest$ac_exeext; then
33901
33902                                 libp_link="$libp"
33903                                 libsm_ice_link="$libsm_ice"
33904                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33905 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33906                                 libs_found=1
33907
33908 else
33909   echo "$as_me: failed program was:" >&5
33910 sed 's/^/| /' conftest.$ac_ext >&5
33911
33912
33913
33914 fi
33915
33916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33917       conftest$ac_exeext conftest.$ac_ext
33918
33919                         LIBS="$save_LIBS"
33920                         CFLAGS=$save_CFLAGS
33921                     fi
33922                 done
33923             fi
33924         done
33925
33926         if test "$libs_found" = 0; then
33927             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33928 echo "${ECHO_T}can't find the right libraries" >&6; }
33929             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33930 echo "$as_me: error: can't link a simple motif program" >&2;}
33931    { (exit 1); exit 1; }; }
33932         fi
33933
33934                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33935 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33936 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33937   echo $ECHO_N "(cached) $ECHO_C" >&6
33938 else
33939   ac_check_lib_save_LIBS=$LIBS
33940 LIBS="-lSgm  $LIBS"
33941 cat >conftest.$ac_ext <<_ACEOF
33942 /* confdefs.h.  */
33943 _ACEOF
33944 cat confdefs.h >>conftest.$ac_ext
33945 cat >>conftest.$ac_ext <<_ACEOF
33946 /* end confdefs.h.  */
33947
33948 /* Override any GCC internal prototype to avoid an error.
33949    Use char because int might match the return type of a GCC
33950    builtin and then its argument prototype would still apply.  */
33951 #ifdef __cplusplus
33952 extern "C"
33953 #endif
33954 char SgCreateList ();
33955 int
33956 main ()
33957 {
33958 return SgCreateList ();
33959   ;
33960   return 0;
33961 }
33962 _ACEOF
33963 rm -f conftest.$ac_objext conftest$ac_exeext
33964 if { (ac_try="$ac_link"
33965 case "(($ac_try" in
33966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33967   *) ac_try_echo=$ac_try;;
33968 esac
33969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33970   (eval "$ac_link") 2>conftest.er1
33971   ac_status=$?
33972   grep -v '^ *+' conftest.er1 >conftest.err
33973   rm -f conftest.er1
33974   cat conftest.err >&5
33975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976   (exit $ac_status); } && {
33977          test -z "$ac_c_werror_flag" ||
33978          test ! -s conftest.err
33979        } && test -s conftest$ac_exeext &&
33980        $as_test_x conftest$ac_exeext; then
33981   ac_cv_lib_Sgm_SgCreateList=yes
33982 else
33983   echo "$as_me: failed program was:" >&5
33984 sed 's/^/| /' conftest.$ac_ext >&5
33985
33986         ac_cv_lib_Sgm_SgCreateList=no
33987 fi
33988
33989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33990       conftest$ac_exeext conftest.$ac_ext
33991 LIBS=$ac_check_lib_save_LIBS
33992 fi
33993 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
33994 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
33995 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
33996   libsgm_link=" -lSgm"
33997 fi
33998
33999
34000         save_CFLAGS=$CFLAGS
34001         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34002
34003         { echo "$as_me:$LINENO: checking for Motif 2" >&5
34004 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
34005 if test "${wx_cv_lib_motif2+set}" = set; then
34006   echo $ECHO_N "(cached) $ECHO_C" >&6
34007 else
34008   cat >conftest.$ac_ext <<_ACEOF
34009 /* confdefs.h.  */
34010 _ACEOF
34011 cat confdefs.h >>conftest.$ac_ext
34012 cat >>conftest.$ac_ext <<_ACEOF
34013 /* end confdefs.h.  */
34014
34015                             #include <Xm/Xm.h>
34016
34017 int
34018 main ()
34019 {
34020
34021                             #if XmVersion < 2000
34022                             Not Motif 2
34023                             #endif
34024
34025   ;
34026   return 0;
34027 }
34028 _ACEOF
34029 rm -f conftest.$ac_objext
34030 if { (ac_try="$ac_compile"
34031 case "(($ac_try" in
34032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34033   *) ac_try_echo=$ac_try;;
34034 esac
34035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34036   (eval "$ac_compile") 2>conftest.er1
34037   ac_status=$?
34038   grep -v '^ *+' conftest.er1 >conftest.err
34039   rm -f conftest.er1
34040   cat conftest.err >&5
34041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042   (exit $ac_status); } && {
34043          test -z "$ac_c_werror_flag" ||
34044          test ! -s conftest.err
34045        } && test -s conftest.$ac_objext; then
34046   wx_cv_lib_motif2="yes"
34047 else
34048   echo "$as_me: failed program was:" >&5
34049 sed 's/^/| /' conftest.$ac_ext >&5
34050
34051         wx_cv_lib_motif2="no"
34052 fi
34053
34054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34055 fi
34056 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34057 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
34058         if test "$wx_cv_lib_motif2" = "yes"; then
34059             cat >>confdefs.h <<\_ACEOF
34060 #define __WXMOTIF20__ 1
34061 _ACEOF
34062
34063         else
34064             cat >>confdefs.h <<\_ACEOF
34065 #define __WXMOTIF20__ 0
34066 _ACEOF
34067
34068         fi
34069
34070         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34071 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34072 if test "${wx_cv_lib_lesstif+set}" = set; then
34073   echo $ECHO_N "(cached) $ECHO_C" >&6
34074 else
34075   cat >conftest.$ac_ext <<_ACEOF
34076 /* confdefs.h.  */
34077 _ACEOF
34078 cat confdefs.h >>conftest.$ac_ext
34079 cat >>conftest.$ac_ext <<_ACEOF
34080 /* end confdefs.h.  */
34081
34082                             #include <Xm/Xm.h>
34083
34084 int
34085 main ()
34086 {
34087
34088                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34089                             Not Lesstif
34090                             #endif
34091
34092   ;
34093   return 0;
34094 }
34095 _ACEOF
34096 rm -f conftest.$ac_objext
34097 if { (ac_try="$ac_compile"
34098 case "(($ac_try" in
34099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34100   *) ac_try_echo=$ac_try;;
34101 esac
34102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34103   (eval "$ac_compile") 2>conftest.er1
34104   ac_status=$?
34105   grep -v '^ *+' conftest.er1 >conftest.err
34106   rm -f conftest.er1
34107   cat conftest.err >&5
34108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109   (exit $ac_status); } && {
34110          test -z "$ac_c_werror_flag" ||
34111          test ! -s conftest.err
34112        } && test -s conftest.$ac_objext; then
34113   wx_cv_lib_lesstif="yes"
34114 else
34115   echo "$as_me: failed program was:" >&5
34116 sed 's/^/| /' conftest.$ac_ext >&5
34117
34118         wx_cv_lib_lesstif="no"
34119 fi
34120
34121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34122
34123 fi
34124 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34125 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34126         if test "$wx_cv_lib_lesstif" = "yes"; then
34127             cat >>confdefs.h <<\_ACEOF
34128 #define __WXLESSTIF__ 1
34129 _ACEOF
34130
34131         else
34132             cat >>confdefs.h <<\_ACEOF
34133 #define __WXLESSTIF__ 0
34134 _ACEOF
34135
34136         fi
34137
34138         CFLAGS=$save_CFLAGS
34139
34140         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34141         TOOLKIT=MOTIF
34142         GUIDIST=MOTIF_DIST
34143     fi
34144
34145         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34146                 if test "$wxUSE_LIBXPM" = "sys"; then
34147             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34148 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34149
34150   ac_find_libraries=
34151   for ac_dir in $SEARCH_LIB
34152   do
34153     for ac_extension in a so sl dylib dll.a; do
34154       if test -f "$ac_dir/libXpm.$ac_extension"; then
34155         ac_find_libraries=$ac_dir
34156         break 2
34157       fi
34158     done
34159   done
34160
34161             if test "$ac_find_libraries" != "" ; then
34162
34163     if test "$ac_find_libraries" = "default location"; then
34164     ac_path_to_link=""
34165   else
34166     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34167     result=$?
34168     if test $result = 0; then
34169       ac_path_to_link=""
34170     else
34171       ac_path_to_link=" -L$ac_find_libraries"
34172     fi
34173   fi
34174
34175                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34176                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34177 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34178
34179                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34180 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34181 if test "${wx_cv_x11_xpm_h+set}" = set; then
34182   echo $ECHO_N "(cached) $ECHO_C" >&6
34183 else
34184
34185                         save_CFLAGS=$CFLAGS
34186                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34187
34188                         cat >conftest.$ac_ext <<_ACEOF
34189 /* confdefs.h.  */
34190 _ACEOF
34191 cat confdefs.h >>conftest.$ac_ext
34192 cat >>conftest.$ac_ext <<_ACEOF
34193 /* end confdefs.h.  */
34194
34195                                 #include <X11/xpm.h>
34196
34197 int
34198 main ()
34199 {
34200
34201                                 int version;
34202                                 version = XpmLibraryVersion();
34203
34204   ;
34205   return 0;
34206 }
34207 _ACEOF
34208 rm -f conftest.$ac_objext
34209 if { (ac_try="$ac_compile"
34210 case "(($ac_try" in
34211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34212   *) ac_try_echo=$ac_try;;
34213 esac
34214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34215   (eval "$ac_compile") 2>conftest.er1
34216   ac_status=$?
34217   grep -v '^ *+' conftest.er1 >conftest.err
34218   rm -f conftest.er1
34219   cat conftest.err >&5
34220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221   (exit $ac_status); } && {
34222          test -z "$ac_c_werror_flag" ||
34223          test ! -s conftest.err
34224        } && test -s conftest.$ac_objext; then
34225   wx_cv_x11_xpm_h=yes
34226 else
34227   echo "$as_me: failed program was:" >&5
34228 sed 's/^/| /' conftest.$ac_ext >&5
34229
34230         wx_cv_x11_xpm_h=no
34231
34232 fi
34233
34234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34235
34236                         CFLAGS=$save_CFLAGS
34237
34238
34239 fi
34240 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34241 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34242
34243                 if test $wx_cv_x11_xpm_h = "yes"; then
34244                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34245                     cat >>confdefs.h <<\_ACEOF
34246 #define wxHAVE_LIB_XPM 1
34247 _ACEOF
34248
34249                 else
34250                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34251 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34252                 fi
34253             fi
34254
34255         fi
34256
34257                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34258 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34259 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34260   echo $ECHO_N "(cached) $ECHO_C" >&6
34261 else
34262   ac_check_lib_save_LIBS=$LIBS
34263 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
34272    Use char because int might match the return type of a GCC
34273    builtin and then its argument prototype would still apply.  */
34274 #ifdef __cplusplus
34275 extern "C"
34276 #endif
34277 char XShapeQueryExtension ();
34278 int
34279 main ()
34280 {
34281 return XShapeQueryExtension ();
34282   ;
34283   return 0;
34284 }
34285 _ACEOF
34286 rm -f conftest.$ac_objext conftest$ac_exeext
34287 if { (ac_try="$ac_link"
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_link") 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_exeext &&
34303        $as_test_x conftest$ac_exeext; then
34304   ac_cv_lib_Xext_XShapeQueryExtension=yes
34305 else
34306   echo "$as_me: failed program was:" >&5
34307 sed 's/^/| /' conftest.$ac_ext >&5
34308
34309         ac_cv_lib_Xext_XShapeQueryExtension=no
34310 fi
34311
34312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34313       conftest$ac_exeext conftest.$ac_ext
34314 LIBS=$ac_check_lib_save_LIBS
34315 fi
34316 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34317 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34318 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34319
34320                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34321                       wxHAVE_XEXT_LIB=1
34322
34323 fi
34324
34325
34326         if test "$wxHAVE_XEXT_LIB" = 1; then
34327             save_CFLAGS="$CFLAGS"
34328             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34329
34330             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34331 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34332             cat >conftest.$ac_ext <<_ACEOF
34333 /* confdefs.h.  */
34334 _ACEOF
34335 cat confdefs.h >>conftest.$ac_ext
34336 cat >>conftest.$ac_ext <<_ACEOF
34337 /* end confdefs.h.  */
34338
34339                             #include <X11/Xlib.h>
34340                             #include <X11/extensions/shape.h>
34341
34342 int
34343 main ()
34344 {
34345
34346                             int dummy1, dummy2;
34347                             XShapeQueryExtension((Display*)NULL,
34348                                                  (int*)NULL, (int*)NULL);
34349
34350   ;
34351   return 0;
34352 }
34353 _ACEOF
34354 rm -f conftest.$ac_objext
34355 if { (ac_try="$ac_compile"
34356 case "(($ac_try" in
34357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34358   *) ac_try_echo=$ac_try;;
34359 esac
34360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34361   (eval "$ac_compile") 2>conftest.er1
34362   ac_status=$?
34363   grep -v '^ *+' conftest.er1 >conftest.err
34364   rm -f conftest.er1
34365   cat conftest.err >&5
34366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34367   (exit $ac_status); } && {
34368          test -z "$ac_c_werror_flag" ||
34369          test ! -s conftest.err
34370        } && test -s conftest.$ac_objext; then
34371
34372                             cat >>confdefs.h <<\_ACEOF
34373 #define HAVE_XSHAPE 1
34374 _ACEOF
34375
34376                             { echo "$as_me:$LINENO: result: found" >&5
34377 echo "${ECHO_T}found" >&6; }
34378
34379 else
34380   echo "$as_me: failed program was:" >&5
34381 sed 's/^/| /' conftest.$ac_ext >&5
34382
34383
34384                             { echo "$as_me:$LINENO: result: not found" >&5
34385 echo "${ECHO_T}not found" >&6; }
34386
34387 fi
34388
34389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34390             CFLAGS="$save_CFLAGS"
34391
34392         fi
34393     fi
34394
34395     if test "$wxUSE_OSX_CARBON" = 1; then
34396         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34397 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34398         if test "$GCC" = yes; then
34399             { echo "$as_me:$LINENO: result: gcc" >&5
34400 echo "${ECHO_T}gcc" >&6; }
34401             CPPFLAGS_PASCAL="-fpascal-strings"
34402         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34403             { echo "$as_me:$LINENO: result: xlc" >&5
34404 echo "${ECHO_T}xlc" >&6; }
34405             CPPFLAGS_PASCAL="-qmacpstr"
34406         else
34407             { echo "$as_me:$LINENO: result: none" >&5
34408 echo "${ECHO_T}none" >&6; }
34409         fi
34410
34411         if test "x$wxUSE_UNIX" = "xyes"; then
34412             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34413         else
34414                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
34415         fi
34416
34417         TOOLKIT=OSX_CARBON
34418                 GUIDIST=OSX_CARBON_DIST
34419                         WXBASEPORT="_carbon"
34420
34421                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34422     fi
34423
34424     if test "$wxUSE_OSX_COCOA" = 1; then
34425         TOOLKIT=OSX_COCOA
34426         GUIDIST=OSX_COCOA_DIST
34427
34428                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34429     fi
34430
34431     if test "$wxUSE_OSX_IPHONE" = 1; then
34432         TOOLKIT=OSX_IPHONE
34433     fi
34434
34435     if test "$wxUSE_OLD_COCOA" = 1; then
34436         TOOLKIT=COCOA
34437         GUIDIST=COCOA_DIST
34438     fi
34439
34440     if test "$wxUSE_PM" = 1; then
34441         TOOLKIT=PM
34442         GUIDIST=PM_DIST
34443         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34444 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34445 if test "${wx_cv_spbcdata+set}" = set; then
34446   echo $ECHO_N "(cached) $ECHO_C" >&6
34447 else
34448
34449                 cat >conftest.$ac_ext <<_ACEOF
34450 /* confdefs.h.  */
34451 _ACEOF
34452 cat confdefs.h >>conftest.$ac_ext
34453 cat >>conftest.$ac_ext <<_ACEOF
34454 /* end confdefs.h.  */
34455
34456                         #define INCL_PM
34457                         #include <os2.h>
34458
34459 int
34460 main ()
34461 {
34462
34463                         SPBCDATA test;
34464
34465   ;
34466   return 0;
34467 }
34468 _ACEOF
34469 rm -f conftest.$ac_objext
34470 if { (ac_try="$ac_compile"
34471 case "(($ac_try" in
34472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34473   *) ac_try_echo=$ac_try;;
34474 esac
34475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34476   (eval "$ac_compile") 2>conftest.er1
34477   ac_status=$?
34478   grep -v '^ *+' conftest.er1 >conftest.err
34479   rm -f conftest.er1
34480   cat conftest.err >&5
34481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482   (exit $ac_status); } && {
34483          test -z "$ac_c_werror_flag" ||
34484          test ! -s conftest.err
34485        } && test -s conftest.$ac_objext; then
34486   wx_cv_spbcdata=yes
34487 else
34488   echo "$as_me: failed program was:" >&5
34489 sed 's/^/| /' conftest.$ac_ext >&5
34490
34491         wx_cv_spbcdata=no
34492
34493 fi
34494
34495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34496
34497
34498 fi
34499 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34500 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34501
34502         if test $wx_cv_spbcdata = "yes"; then
34503             cat >>confdefs.h <<\_ACEOF
34504 #define HAVE_SPBCDATA 1
34505 _ACEOF
34506
34507         fi
34508     fi
34509
34510         if test "$TOOLKIT" = "PM" ; then
34511         TOOLKIT_DIR="os2"
34512     else
34513         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
34514     fi
34515
34516     if test "$wxUSE_UNIVERSAL" = "yes"; then
34517         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34518         WIDGET_SET=univ
34519     fi
34520
34521         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34522     DISTDIR="wx\$(TOOLKIT)"
34523 else
34524     USE_GUI=0
34525
34526             TOOLKIT_DIR="base"
34527
34528         if test "$USE_WIN32" = 1 ; then
34529                         TOOLKIT="MSW"
34530     fi
34531
34532         GUIDIST="BASE_DIST"
34533     DISTDIR="wxBase"
34534 fi
34535
34536
34537
34538 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34539     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
34540         wxUSE_UNICODE_UTF8=yes
34541     elif test "$USE_OS2" = 1 ; then
34542                                 wxUSE_UNICODE_UTF8=yes
34543     else
34544         wxUSE_UNICODE_UTF8=no
34545     fi
34546 fi
34547
34548
34549 if test "$wxUSE_GUI" = "yes"; then
34550     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34551
34552 for ac_header in X11/Xlib.h
34553 do
34554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34558   echo $ECHO_N "(cached) $ECHO_C" >&6
34559 else
34560   cat >conftest.$ac_ext <<_ACEOF
34561 /* confdefs.h.  */
34562 _ACEOF
34563 cat confdefs.h >>conftest.$ac_ext
34564 cat >>conftest.$ac_ext <<_ACEOF
34565 /* end confdefs.h.  */
34566
34567
34568 #include <$ac_header>
34569 _ACEOF
34570 rm -f conftest.$ac_objext
34571 if { (ac_try="$ac_compile"
34572 case "(($ac_try" in
34573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34574   *) ac_try_echo=$ac_try;;
34575 esac
34576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34577   (eval "$ac_compile") 2>conftest.er1
34578   ac_status=$?
34579   grep -v '^ *+' conftest.er1 >conftest.err
34580   rm -f conftest.er1
34581   cat conftest.err >&5
34582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583   (exit $ac_status); } && {
34584          test -z "$ac_c_werror_flag" ||
34585          test ! -s conftest.err
34586        } && test -s conftest.$ac_objext; then
34587   eval "$as_ac_Header=yes"
34588 else
34589   echo "$as_me: failed program was:" >&5
34590 sed 's/^/| /' conftest.$ac_ext >&5
34591
34592         eval "$as_ac_Header=no"
34593 fi
34594
34595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34596 fi
34597 ac_res=`eval echo '${'$as_ac_Header'}'`
34598                { echo "$as_me:$LINENO: result: $ac_res" >&5
34599 echo "${ECHO_T}$ac_res" >&6; }
34600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34601   cat >>confdefs.h <<_ACEOF
34602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34603 _ACEOF
34604
34605 fi
34606
34607 done
34608
34609
34610 for ac_header in X11/XKBlib.h
34611 do
34612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34616   echo $ECHO_N "(cached) $ECHO_C" >&6
34617 else
34618   cat >conftest.$ac_ext <<_ACEOF
34619 /* confdefs.h.  */
34620 _ACEOF
34621 cat confdefs.h >>conftest.$ac_ext
34622 cat >>conftest.$ac_ext <<_ACEOF
34623 /* end confdefs.h.  */
34624
34625                           #if HAVE_X11_XLIB_H
34626                             #include <X11/Xlib.h>
34627                           #endif
34628
34629
34630 #include <$ac_header>
34631 _ACEOF
34632 rm -f conftest.$ac_objext
34633 if { (ac_try="$ac_compile"
34634 case "(($ac_try" in
34635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34636   *) ac_try_echo=$ac_try;;
34637 esac
34638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34639   (eval "$ac_compile") 2>conftest.er1
34640   ac_status=$?
34641   grep -v '^ *+' conftest.er1 >conftest.err
34642   rm -f conftest.er1
34643   cat conftest.err >&5
34644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34645   (exit $ac_status); } && {
34646          test -z "$ac_c_werror_flag" ||
34647          test ! -s conftest.err
34648        } && test -s conftest.$ac_objext; then
34649   eval "$as_ac_Header=yes"
34650 else
34651   echo "$as_me: failed program was:" >&5
34652 sed 's/^/| /' conftest.$ac_ext >&5
34653
34654         eval "$as_ac_Header=no"
34655 fi
34656
34657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34658 fi
34659 ac_res=`eval echo '${'$as_ac_Header'}'`
34660                { echo "$as_me:$LINENO: result: $ac_res" >&5
34661 echo "${ECHO_T}$ac_res" >&6; }
34662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34663   cat >>confdefs.h <<_ACEOF
34664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34665 _ACEOF
34666
34667 fi
34668
34669 done
34670
34671     fi
34672 fi
34673
34674
34675
34676 USE_XINERAMA=0
34677 if test "$wxUSE_DISPLAY" = "yes"; then
34678         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
34679         { echo "$as_me:$LINENO: checking for Xinerama" >&5
34680 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34681
34682   ac_find_libraries=
34683   for ac_dir in $SEARCH_LIB
34684   do
34685     for ac_extension in a so sl dylib dll.a; do
34686       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34687         ac_find_libraries=$ac_dir
34688         break 2
34689       fi
34690     done
34691   done
34692
34693         if test "$ac_find_libraries" != "" ; then
34694
34695     if test "$ac_find_libraries" = "default location"; then
34696     ac_path_to_link=""
34697   else
34698     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34699     result=$?
34700     if test $result = 0; then
34701       ac_path_to_link=""
34702     else
34703       ac_path_to_link=" -L$ac_find_libraries"
34704     fi
34705   fi
34706
34707             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34708                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34709             fi
34710             USE_XINERAMA=1
34711             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
34712             { echo "$as_me:$LINENO: result: yes" >&5
34713 echo "${ECHO_T}yes" >&6; }
34714         else
34715             { echo "$as_me:$LINENO: result: no" >&5
34716 echo "${ECHO_T}no" >&6; }
34717             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
34718 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
34719             wxUSE_DISPLAY="no"
34720         fi
34721     elif test "$wxUSE_MSW" = 1; then
34722                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
34723 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
34724 if test "${ac_cv_header_ddraw_h+set}" = set; then
34725   echo $ECHO_N "(cached) $ECHO_C" >&6
34726 else
34727   cat >conftest.$ac_ext <<_ACEOF
34728 /* confdefs.h.  */
34729 _ACEOF
34730 cat confdefs.h >>conftest.$ac_ext
34731 cat >>conftest.$ac_ext <<_ACEOF
34732 /* end confdefs.h.  */
34733 #include <windows.h>
34734
34735 #include <ddraw.h>
34736 _ACEOF
34737 rm -f conftest.$ac_objext
34738 if { (ac_try="$ac_compile"
34739 case "(($ac_try" in
34740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34741   *) ac_try_echo=$ac_try;;
34742 esac
34743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34744   (eval "$ac_compile") 2>conftest.er1
34745   ac_status=$?
34746   grep -v '^ *+' conftest.er1 >conftest.err
34747   rm -f conftest.er1
34748   cat conftest.err >&5
34749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750   (exit $ac_status); } && {
34751          test -z "$ac_c_werror_flag" ||
34752          test ! -s conftest.err
34753        } && test -s conftest.$ac_objext; then
34754   ac_cv_header_ddraw_h=yes
34755 else
34756   echo "$as_me: failed program was:" >&5
34757 sed 's/^/| /' conftest.$ac_ext >&5
34758
34759         ac_cv_header_ddraw_h=no
34760 fi
34761
34762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34763 fi
34764 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
34765 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
34766
34767
34768     fi
34769 fi
34770
34771 if test "$wxUSE_DISPLAY" = "yes"; then
34772         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
34773         { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
34774 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
34775
34776   ac_find_libraries=
34777   for ac_dir in $SEARCH_LIB
34778   do
34779     for ac_extension in a so sl dylib dll.a; do
34780       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
34781         ac_find_libraries=$ac_dir
34782         break 2
34783       fi
34784     done
34785   done
34786
34787         if test "$ac_find_libraries" != "" ; then
34788             { echo "$as_me:$LINENO: result: yes" >&5
34789 echo "${ECHO_T}yes" >&6; }
34790
34791 for ac_header in X11/extensions/xf86vmode.h
34792 do
34793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34797   echo $ECHO_N "(cached) $ECHO_C" >&6
34798 else
34799   cat >conftest.$ac_ext <<_ACEOF
34800 /* confdefs.h.  */
34801 _ACEOF
34802 cat confdefs.h >>conftest.$ac_ext
34803 cat >>conftest.$ac_ext <<_ACEOF
34804 /* end confdefs.h.  */
34805
34806                                   #if HAVE_X11_XLIB_H
34807                                     #include <X11/Xlib.h>
34808                                   #endif
34809
34810
34811 #include <$ac_header>
34812 _ACEOF
34813 rm -f conftest.$ac_objext
34814 if { (ac_try="$ac_compile"
34815 case "(($ac_try" in
34816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34817   *) ac_try_echo=$ac_try;;
34818 esac
34819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34820   (eval "$ac_compile") 2>conftest.er1
34821   ac_status=$?
34822   grep -v '^ *+' conftest.er1 >conftest.err
34823   rm -f conftest.er1
34824   cat conftest.err >&5
34825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826   (exit $ac_status); } && {
34827          test -z "$ac_c_werror_flag" ||
34828          test ! -s conftest.err
34829        } && test -s conftest.$ac_objext; then
34830   eval "$as_ac_Header=yes"
34831 else
34832   echo "$as_me: failed program was:" >&5
34833 sed 's/^/| /' conftest.$ac_ext >&5
34834
34835         eval "$as_ac_Header=no"
34836 fi
34837
34838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34839 fi
34840 ac_res=`eval echo '${'$as_ac_Header'}'`
34841                { echo "$as_me:$LINENO: result: $ac_res" >&5
34842 echo "${ECHO_T}$ac_res" >&6; }
34843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34844   cat >>confdefs.h <<_ACEOF
34845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34846 _ACEOF
34847
34848                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
34849
34850 fi
34851
34852 done
34853
34854         else
34855             { echo "$as_me:$LINENO: result: no" >&5
34856 echo "${ECHO_T}no" >&6; }
34857         fi
34858     fi
34859 fi
34860
34861 if test "$wxUSE_DETECT_SM" = "yes"; then
34862     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
34863         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
34864 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
34865
34866   ac_find_libraries=
34867   for ac_dir in $SEARCH_LIB
34868   do
34869     for ac_extension in a so sl dylib dll.a; do
34870       if test -f "$ac_dir/libSM.$ac_extension"; then
34871         ac_find_libraries=$ac_dir
34872         break 2
34873       fi
34874     done
34875   done
34876
34877         if test "$ac_find_libraries" != "" ; then
34878
34879     if test "$ac_find_libraries" = "default location"; then
34880     ac_path_to_link=""
34881   else
34882     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34883     result=$?
34884     if test $result = 0; then
34885       ac_path_to_link=""
34886     else
34887       ac_path_to_link=" -L$ac_find_libraries"
34888     fi
34889   fi
34890
34891             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34892                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34893             fi
34894             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
34895             { echo "$as_me:$LINENO: result: yes" >&5
34896 echo "${ECHO_T}yes" >&6; }
34897         else
34898             { echo "$as_me:$LINENO: result: no" >&5
34899 echo "${ECHO_T}no" >&6; }
34900             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
34901 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
34902             wxUSE_DETECT_SM="no"
34903         fi
34904     else
34905         wxUSE_DETECT_SM="no"
34906     fi
34907 fi
34908
34909
34910
34911 USE_OPENGL=0
34912 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
34913
34914
34915     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
34916         OPENGL_LIBS="-framework OpenGL -framework AGL"
34917     elif test "$wxUSE_MSW" = 1; then
34918         OPENGL_LIBS="-lopengl32 -lglu32"
34919     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
34920
34921                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
34922 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
34923
34924 ac_find_includes=
34925 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include
34926   do
34927     if test -f "$ac_dir/GL/gl.h"; then
34928       ac_find_includes=$ac_dir
34929       break
34930     fi
34931   done
34932
34933         if test "$ac_find_includes" != "" ; then
34934             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34935 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34936
34937     if test "x$ac_find_includes" = "x/usr/include"; then
34938     ac_path_to_include=""
34939   else
34940     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
34941     result=$?
34942     if test $result = 0; then
34943       ac_path_to_include=""
34944     else
34945       ac_path_to_include=" -I$ac_find_includes"
34946     fi
34947   fi
34948
34949             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
34950         else
34951             { echo "$as_me:$LINENO: result: not found" >&5
34952 echo "${ECHO_T}not found" >&6; }
34953         fi
34954
34955         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
34956 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
34957 if test "${ac_cv_header_GL_gl_h+set}" = set; then
34958   echo $ECHO_N "(cached) $ECHO_C" >&6
34959 else
34960   cat >conftest.$ac_ext <<_ACEOF
34961 /* confdefs.h.  */
34962 _ACEOF
34963 cat confdefs.h >>conftest.$ac_ext
34964 cat >>conftest.$ac_ext <<_ACEOF
34965 /* end confdefs.h.  */
34966
34967
34968 #include <GL/gl.h>
34969 _ACEOF
34970 rm -f conftest.$ac_objext
34971 if { (ac_try="$ac_compile"
34972 case "(($ac_try" in
34973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34974   *) ac_try_echo=$ac_try;;
34975 esac
34976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34977   (eval "$ac_compile") 2>conftest.er1
34978   ac_status=$?
34979   grep -v '^ *+' conftest.er1 >conftest.err
34980   rm -f conftest.er1
34981   cat conftest.err >&5
34982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34983   (exit $ac_status); } && {
34984          test -z "$ac_c_werror_flag" ||
34985          test ! -s conftest.err
34986        } && test -s conftest.$ac_objext; then
34987   ac_cv_header_GL_gl_h=yes
34988 else
34989   echo "$as_me: failed program was:" >&5
34990 sed 's/^/| /' conftest.$ac_ext >&5
34991
34992         ac_cv_header_GL_gl_h=no
34993 fi
34994
34995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34996 fi
34997 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
34998 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
34999 if test $ac_cv_header_GL_gl_h = yes; then
35000
35001             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
35002 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
35003 if test "${ac_cv_header_GL_glu_h+set}" = set; then
35004   echo $ECHO_N "(cached) $ECHO_C" >&6
35005 else
35006   cat >conftest.$ac_ext <<_ACEOF
35007 /* confdefs.h.  */
35008 _ACEOF
35009 cat confdefs.h >>conftest.$ac_ext
35010 cat >>conftest.$ac_ext <<_ACEOF
35011 /* end confdefs.h.  */
35012
35013
35014 #include <GL/glu.h>
35015 _ACEOF
35016 rm -f conftest.$ac_objext
35017 if { (ac_try="$ac_compile"
35018 case "(($ac_try" in
35019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35020   *) ac_try_echo=$ac_try;;
35021 esac
35022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35023   (eval "$ac_compile") 2>conftest.er1
35024   ac_status=$?
35025   grep -v '^ *+' conftest.er1 >conftest.err
35026   rm -f conftest.er1
35027   cat conftest.err >&5
35028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35029   (exit $ac_status); } && {
35030          test -z "$ac_c_werror_flag" ||
35031          test ! -s conftest.err
35032        } && test -s conftest.$ac_objext; then
35033   ac_cv_header_GL_glu_h=yes
35034 else
35035   echo "$as_me: failed program was:" >&5
35036 sed 's/^/| /' conftest.$ac_ext >&5
35037
35038         ac_cv_header_GL_glu_h=no
35039 fi
35040
35041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35042 fi
35043 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35044 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35045 if test $ac_cv_header_GL_glu_h = yes; then
35046
35047                 found_gl=0
35048
35049                 { echo "$as_me:$LINENO: checking for -lGL" >&5
35050 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
35051
35052   ac_find_libraries=
35053   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib
35054   do
35055     for ac_extension in a so sl dylib dll.a; do
35056       if test -f "$ac_dir/libGL.$ac_extension"; then
35057         ac_find_libraries=$ac_dir
35058         break 2
35059       fi
35060     done
35061   done
35062
35063                 if test "$ac_find_libraries" != "" ; then
35064                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
35065 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
35066
35067
35068     if test "$ac_find_libraries" = "default location"; then
35069     ac_path_to_link=""
35070   else
35071     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35072     result=$?
35073     if test $result = 0; then
35074       ac_path_to_link=""
35075     else
35076       ac_path_to_link=" -L$ac_find_libraries"
35077     fi
35078   fi
35079
35080                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
35081                         LDFLAGS_GL="$ac_path_to_link"
35082                     fi
35083
35084                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
35085 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
35086
35087   ac_find_libraries=
35088   for ac_dir in $SEARCH_LIB
35089   do
35090     for ac_extension in a so sl dylib dll.a; do
35091       if test -f "$ac_dir/libGLU.$ac_extension"; then
35092         ac_find_libraries=$ac_dir
35093         break 2
35094       fi
35095     done
35096   done
35097
35098                     if test "$ac_find_libraries" != "" ; then
35099
35100     if test "$ac_find_libraries" = "default location"; then
35101     ac_path_to_link=""
35102   else
35103     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35104     result=$?
35105     if test $result = 0; then
35106       ac_path_to_link=""
35107     else
35108       ac_path_to_link=" -L$ac_find_libraries"
35109     fi
35110   fi
35111
35112                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
35113                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
35114                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
35115                         fi
35116
35117                         found_gl=1
35118                         OPENGL_LIBS="-lGL -lGLU"
35119                         { echo "$as_me:$LINENO: result: yes" >&5
35120 echo "${ECHO_T}yes" >&6; }
35121                     else
35122                         { echo "$as_me:$LINENO: result: no" >&5
35123 echo "${ECHO_T}no" >&6; }
35124                     fi
35125                 else
35126                     { echo "$as_me:$LINENO: result: no" >&5
35127 echo "${ECHO_T}no" >&6; }
35128                 fi
35129
35130                 if test "$found_gl" != 1; then
35131                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
35132 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
35133
35134   ac_find_libraries=
35135   for ac_dir in $SEARCH_LIB
35136   do
35137     for ac_extension in a so sl dylib dll.a; do
35138       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
35139         ac_find_libraries=$ac_dir
35140         break 2
35141       fi
35142     done
35143   done
35144
35145                     if test "$ac_find_libraries" != "" ; then
35146
35147     if test "$ac_find_libraries" = "default location"; then
35148     ac_path_to_link=""
35149   else
35150     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35151     result=$?
35152     if test $result = 0; then
35153       ac_path_to_link=""
35154     else
35155       ac_path_to_link=" -L$ac_find_libraries"
35156     fi
35157   fi
35158
35159                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
35160                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
35161                         { echo "$as_me:$LINENO: result: yes" >&5
35162 echo "${ECHO_T}yes" >&6; }
35163                     else
35164                         { echo "$as_me:$LINENO: result: no" >&5
35165 echo "${ECHO_T}no" >&6; }
35166                     fi
35167                 fi
35168
35169 fi
35170
35171
35172
35173 fi
35174
35175
35176
35177         if test "x$OPENGL_LIBS" = "x"; then
35178             if test "$wxUSE_OPENGL" = "yes"; then
35179                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
35180 echo "$as_me: error: OpenGL libraries not available" >&2;}
35181    { (exit 1); exit 1; }; }
35182             else
35183                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
35184 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
35185                 wxUSE_OPENGL=no
35186                 USE_OPENGL=0
35187             fi
35188         fi
35189     else
35190         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35191 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35192         wxUSE_OPENGL="no"
35193     fi
35194
35195     if test "$wxUSE_OPENGL" = "auto"; then
35196                                 wxUSE_OPENGL=yes
35197     fi
35198
35199     if test "$wxUSE_OPENGL" = "yes"; then
35200         USE_OPENGL=1
35201         cat >>confdefs.h <<\_ACEOF
35202 #define wxUSE_OPENGL 1
35203 _ACEOF
35204
35205         cat >>confdefs.h <<\_ACEOF
35206 #define wxUSE_GLCANVAS 1
35207 _ACEOF
35208
35209         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
35210     fi
35211 fi
35212
35213
35214 if test -n "$TOOLKIT" ; then
35215     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
35216 fi
35217
35218
35219
35220 if test "$wxUSE_SHARED" = "yes"; then
35221     case "${host}" in
35222       *-pc-msdosdjgpp )
35223                 wxUSE_SHARED=no
35224         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
35225 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
35226       ;;
35227     esac
35228 fi
35229
35230 if test "$wxUSE_SHARED" = "yes"; then
35231
35232
35233     case "${host}" in
35234         *-*-cygwin* | *-*-mingw* )
35235                                                                                                 wx_cv_version_script=no
35236             ;;
35237
35238         *)
35239             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
35240 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
35241 if test "${wx_cv_version_script+set}" = set; then
35242   echo $ECHO_N "(cached) $ECHO_C" >&6
35243 else
35244
35245                 echo "VER_1 { *; };" >conftest.sym
35246                 echo "int main() { return 0; }" >conftest.cpp
35247
35248                 if { ac_try='
35249                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35250                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
35251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35252   (eval $ac_try) 2>&5
35253   ac_status=$?
35254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255   (exit $ac_status); }; } ; then
35256                   if test -s conftest.stderr ; then
35257                       wx_cv_version_script=no
35258                   else
35259                       wx_cv_version_script=yes
35260                   fi
35261                 else
35262                   wx_cv_version_script=no
35263                 fi
35264
35265                                                                                                                                                                                                 if test $wx_cv_version_script = yes
35266                 then
35267                   echo "struct B { virtual ~B() { } }; \
35268                         struct D : public B { }; \
35269                         void F() { D d; }" > conftest.cpp
35270
35271                   if { ac_try='
35272                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35273                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
35274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35275   (eval $ac_try) 2>&5
35276   ac_status=$?
35277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278   (exit $ac_status); }; } &&
35279                      { ac_try='
35280                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35281                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
35282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35283   (eval $ac_try) 2>&5
35284   ac_status=$?
35285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286   (exit $ac_status); }; }
35287                   then
35288                     if { ac_try='
35289                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35290                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
35291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35292   (eval $ac_try) 2>&5
35293   ac_status=$?
35294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295   (exit $ac_status); }; }
35296                     then
35297                       wx_cv_version_script=yes
35298                     else
35299                       wx_cv_version_script=no
35300                     fi
35301                   fi
35302                 fi
35303
35304                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
35305                 rm -f conftest1.output conftest2.output conftest3.output
35306
35307 fi
35308 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
35309 echo "${ECHO_T}$wx_cv_version_script" >&6; }
35310
35311             if test $wx_cv_version_script = yes ; then
35312                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
35313             fi
35314             ;;
35315     esac
35316
35317
35318             if test "$wxUSE_VISIBILITY" != "no"; then
35319
35320
35321   if test -n "$GCC"; then
35322     CFLAGS_VISIBILITY="-fvisibility=hidden"
35323     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
35324     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
35325 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
35326     if test "${wx_cv_cc_visibility+set}" = set; then
35327   echo $ECHO_N "(cached) $ECHO_C" >&6
35328 else
35329
35330       wx_save_CXXFLAGS="$CXXFLAGS"
35331       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35332       ac_ext=cpp
35333 ac_cpp='$CXXCPP $CPPFLAGS'
35334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35337
35338       cat >conftest.$ac_ext <<_ACEOF
35339 /* confdefs.h.  */
35340 _ACEOF
35341 cat confdefs.h >>conftest.$ac_ext
35342 cat >>conftest.$ac_ext <<_ACEOF
35343 /* end confdefs.h.  */
35344
35345          /* we need gcc >= 4.0, older versions with visibility support
35346             didn't have class visibility: */
35347          #if defined(__GNUC__) && __GNUC__ < 4
35348          error this gcc is too old;
35349          #endif
35350
35351          /* visibility only makes sense for ELF shared libs: */
35352          #if !defined(__ELF__) && !defined(__APPLE__)
35353          error this platform has no visibility;
35354          #endif
35355
35356          /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */
35357          #if defined(__clang__)
35358          clang compiler is still broken w.r.t. visibility;
35359          #endif
35360
35361          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
35362          extern __attribute__((__visibility__("default"))) int exportedvar;
35363          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
35364          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
35365          class __attribute__((__visibility__("default"))) Foo {
35366            Foo() {}
35367          };
35368
35369 int
35370 main ()
35371 {
35372
35373   ;
35374   return 0;
35375 }
35376 _ACEOF
35377 rm -f conftest.$ac_objext
35378 if { (ac_try="$ac_compile"
35379 case "(($ac_try" in
35380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35381   *) ac_try_echo=$ac_try;;
35382 esac
35383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35384   (eval "$ac_compile") 2>conftest.er1
35385   ac_status=$?
35386   grep -v '^ *+' conftest.er1 >conftest.err
35387   rm -f conftest.er1
35388   cat conftest.err >&5
35389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390   (exit $ac_status); } && {
35391          test -z "$ac_cxx_werror_flag" ||
35392          test ! -s conftest.err
35393        } && test -s conftest.$ac_objext; then
35394   wx_cv_cc_visibility=yes
35395 else
35396   echo "$as_me: failed program was:" >&5
35397 sed 's/^/| /' conftest.$ac_ext >&5
35398
35399         wx_cv_cc_visibility=no
35400 fi
35401
35402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35403       ac_ext=c
35404 ac_cpp='$CPP $CPPFLAGS'
35405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35408
35409       CXXFLAGS="$wx_save_CXXFLAGS"
35410 fi
35411
35412     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
35413 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
35414     if test $wx_cv_cc_visibility = yes; then
35415                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
35416 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
35417       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
35418   echo $ECHO_N "(cached) $ECHO_C" >&6
35419 else
35420
35421         wx_save_CXXFLAGS="$CXXFLAGS"
35422         wx_save_LDFLAGS="$LDFLAGS"
35423         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35424         LDFLAGS="$LDFLAGS -shared -fPIC"
35425         ac_ext=cpp
35426 ac_cpp='$CXXCPP $CPPFLAGS'
35427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35430
35431         cat >conftest.$ac_ext <<_ACEOF
35432 /* confdefs.h.  */
35433 _ACEOF
35434 cat confdefs.h >>conftest.$ac_ext
35435 cat >>conftest.$ac_ext <<_ACEOF
35436 /* end confdefs.h.  */
35437
35438             #include <string>
35439
35440 int
35441 main ()
35442 {
35443
35444             std::string s("hello");
35445             return s.length();
35446
35447   ;
35448   return 0;
35449 }
35450 _ACEOF
35451 rm -f conftest.$ac_objext conftest$ac_exeext
35452 if { (ac_try="$ac_link"
35453 case "(($ac_try" in
35454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35455   *) ac_try_echo=$ac_try;;
35456 esac
35457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35458   (eval "$ac_link") 2>conftest.er1
35459   ac_status=$?
35460   grep -v '^ *+' conftest.er1 >conftest.err
35461   rm -f conftest.er1
35462   cat conftest.err >&5
35463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35464   (exit $ac_status); } && {
35465          test -z "$ac_cxx_werror_flag" ||
35466          test ! -s conftest.err
35467        } && test -s conftest$ac_exeext &&
35468        $as_test_x conftest$ac_exeext; then
35469   wx_cv_cc_broken_libstdcxx_visibility=no
35470 else
35471   echo "$as_me: failed program was:" >&5
35472 sed 's/^/| /' conftest.$ac_ext >&5
35473
35474         wx_cv_cc_broken_libstdcxx_visibility=yes
35475 fi
35476
35477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35478       conftest$ac_exeext conftest.$ac_ext
35479         ac_ext=c
35480 ac_cpp='$CPP $CPPFLAGS'
35481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35484
35485         CXXFLAGS="$wx_save_CXXFLAGS"
35486         LDFLAGS="$wx_save_LDFLAGS"
35487 fi
35488
35489       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
35490 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
35491
35492       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35493         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
35494 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
35495         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
35496   echo $ECHO_N "(cached) $ECHO_C" >&6
35497 else
35498
35499           ac_ext=cpp
35500 ac_cpp='$CXXCPP $CPPFLAGS'
35501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35504
35505           cat >conftest.$ac_ext <<_ACEOF
35506 /* confdefs.h.  */
35507 _ACEOF
35508 cat confdefs.h >>conftest.$ac_ext
35509 cat >>conftest.$ac_ext <<_ACEOF
35510 /* end confdefs.h.  */
35511
35512               #pragma GCC visibility push(default)
35513               #include <string>
35514               #pragma GCC visibility pop
35515
35516 int
35517 main ()
35518 {
35519
35520               std::string s("hello");
35521               return s.length();
35522
35523   ;
35524   return 0;
35525 }
35526 _ACEOF
35527 rm -f conftest.$ac_objext conftest$ac_exeext
35528 if { (ac_try="$ac_link"
35529 case "(($ac_try" in
35530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35531   *) ac_try_echo=$ac_try;;
35532 esac
35533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35534   (eval "$ac_link") 2>conftest.er1
35535   ac_status=$?
35536   grep -v '^ *+' conftest.er1 >conftest.err
35537   rm -f conftest.er1
35538   cat conftest.err >&5
35539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35540   (exit $ac_status); } && {
35541          test -z "$ac_cxx_werror_flag" ||
35542          test ! -s conftest.err
35543        } && test -s conftest$ac_exeext &&
35544        $as_test_x conftest$ac_exeext; then
35545   wx_cv_cc_visibility_workaround=no
35546 else
35547   echo "$as_me: failed program was:" >&5
35548 sed 's/^/| /' conftest.$ac_ext >&5
35549
35550         wx_cv_cc_visibility_workaround=yes
35551 fi
35552
35553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35554       conftest$ac_exeext conftest.$ac_ext
35555           ac_ext=c
35556 ac_cpp='$CPP $CPPFLAGS'
35557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35560
35561
35562 fi
35563
35564         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
35565 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
35566
35567         if test $wx_cv_cc_visibility_workaround = no; then
35568                     wx_cv_cc_visibility=no
35569         fi
35570       fi
35571     fi
35572
35573     if test $wx_cv_cc_visibility = yes; then
35574       cat >>confdefs.h <<\_ACEOF
35575 #define HAVE_VISIBILITY 1
35576 _ACEOF
35577
35578       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35579         cat >>confdefs.h <<\_ACEOF
35580 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
35581 _ACEOF
35582
35583       fi
35584     else
35585       CFLAGS_VISIBILITY=""
35586       CXXFLAGS_VISIBILITY=""
35587     fi
35588
35589
35590   fi
35591
35592     fi
35593
35594         if test "x$SUNCXX" = xyes; then
35595         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
35596         WXCONFIG_RPATH="-R\$libdir"
35597     else
35598     case "${host}" in
35599       *-*-linux* | *-*-gnu* )
35600         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35601         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35602         ;;
35603
35604       *-*-solaris2* )
35605
35606                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
35607
35608                         saveLdflags="$LDFLAGS"
35609         LDFLAGS="$saveLdflags -Wl,-rpath,/"
35610         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
35611 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
35612         cat >conftest.$ac_ext <<_ACEOF
35613 /* confdefs.h.  */
35614 _ACEOF
35615 cat confdefs.h >>conftest.$ac_ext
35616 cat >>conftest.$ac_ext <<_ACEOF
35617 /* end confdefs.h.  */
35618
35619 int
35620 main ()
35621 {
35622
35623   ;
35624   return 0;
35625 }
35626 _ACEOF
35627 rm -f conftest.$ac_objext conftest$ac_exeext
35628 if { (ac_try="$ac_link"
35629 case "(($ac_try" in
35630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35631   *) ac_try_echo=$ac_try;;
35632 esac
35633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35634   (eval "$ac_link") 2>conftest.er1
35635   ac_status=$?
35636   grep -v '^ *+' conftest.er1 >conftest.err
35637   rm -f conftest.er1
35638   cat conftest.err >&5
35639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35640   (exit $ac_status); } && {
35641          test -z "$ac_c_werror_flag" ||
35642          test ! -s conftest.err
35643        } && test -s conftest$ac_exeext &&
35644        $as_test_x conftest$ac_exeext; then
35645
35646                 { echo "$as_me:$LINENO: result: yes" >&5
35647 echo "${ECHO_T}yes" >&6; }
35648                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35649                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35650
35651 else
35652   echo "$as_me: failed program was:" >&5
35653 sed 's/^/| /' conftest.$ac_ext >&5
35654
35655
35656                 { echo "$as_me:$LINENO: result: no" >&5
35657 echo "${ECHO_T}no" >&6; }
35658                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
35659 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
35660                 LDFLAGS="$saveLdflags -Wl,-R,/"
35661                 cat >conftest.$ac_ext <<_ACEOF
35662 /* confdefs.h.  */
35663 _ACEOF
35664 cat confdefs.h >>conftest.$ac_ext
35665 cat >>conftest.$ac_ext <<_ACEOF
35666 /* end confdefs.h.  */
35667
35668 int
35669 main ()
35670 {
35671
35672   ;
35673   return 0;
35674 }
35675 _ACEOF
35676 rm -f conftest.$ac_objext conftest$ac_exeext
35677 if { (ac_try="$ac_link"
35678 case "(($ac_try" in
35679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35680   *) ac_try_echo=$ac_try;;
35681 esac
35682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35683   (eval "$ac_link") 2>conftest.er1
35684   ac_status=$?
35685   grep -v '^ *+' conftest.er1 >conftest.err
35686   rm -f conftest.er1
35687   cat conftest.err >&5
35688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35689   (exit $ac_status); } && {
35690          test -z "$ac_c_werror_flag" ||
35691          test ! -s conftest.err
35692        } && test -s conftest$ac_exeext &&
35693        $as_test_x conftest$ac_exeext; then
35694
35695                         { echo "$as_me:$LINENO: result: yes" >&5
35696 echo "${ECHO_T}yes" >&6; }
35697                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
35698                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
35699
35700 else
35701   echo "$as_me: failed program was:" >&5
35702 sed 's/^/| /' conftest.$ac_ext >&5
35703
35704
35705                         { echo "$as_me:$LINENO: result: no" >&5
35706 echo "${ECHO_T}no" >&6; }
35707
35708 fi
35709
35710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35711       conftest$ac_exeext conftest.$ac_ext
35712
35713 fi
35714
35715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35716       conftest$ac_exeext conftest.$ac_ext
35717         LDFLAGS="$saveLdflags"
35718       ;;
35719
35720       *-*-darwin* )
35721         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
35722         if test "$install_name_tool" -a -x "$install_name_tool"; then
35723             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
35724             cat <<EOF >change-install-names
35725 #!/bin/sh
35726 libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
35727 for i in \${libnames} ; do
35728     ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i}
35729     for dep in \${libnames} ; do
35730         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i}
35731     done
35732 done
35733 EOF
35734             chmod +x change-install-names
35735             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}"
35736         fi
35737
35738                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
35739       ;;
35740
35741       *-*-cygwin* | *-*-mingw32* )
35742         ;;
35743
35744       *-*-hpux* )
35745         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
35746         WXCONFIG_RPATH="-Wl,+b,\$libdir"
35747         ;;
35748
35749     esac
35750     fi
35751
35752             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
35753
35754     if test $wxUSE_RPATH = "no"; then
35755         SAMPLES_RPATH_FLAG=''
35756         DYLIB_PATH_POSTLINK=''
35757         WXCONFIG_RPATH=''
35758     fi
35759
35760     SHARED=1
35761
35762 else
35763
35764     config_linkage_component="-static"
35765     SHARED=0
35766
35767 fi
35768
35769
35770 UNICODE=0
35771 lib_unicode_suffix=
35772 WX_CHARTYPE="ansi"
35773 if test "$wxUSE_UNICODE" = "yes"; then
35774     lib_unicode_suffix=u
35775     WX_CHARTYPE="unicode"
35776     UNICODE=1
35777 fi
35778
35779 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
35780 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
35781
35782 DEBUG_INFO=0
35783 if test "$wxUSE_DEBUG_INFO" = "yes"; then
35784     DEBUG_INFO=1
35785 fi
35786
35787 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
35788
35789 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
35790
35791 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
35792
35793
35794 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
35795     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35796 else
35797     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35798 fi
35799 if test "${TOOLKIT_DIR}" = "os2"; then
35800     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35801 else
35802     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35803 fi
35804
35805
35806
35807 if test "$wxUSE_OLD_COCOA" = 1; then
35808
35809     ac_ext=c
35810 ac_cpp='$CPP $CPPFLAGS'
35811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35814
35815 ac_ext=m
35816
35817     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
35818 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
35819     cat >conftest.$ac_ext <<_ACEOF
35820 /* confdefs.h.  */
35821 _ACEOF
35822 cat confdefs.h >>conftest.$ac_ext
35823 cat >>conftest.$ac_ext <<_ACEOF
35824 /* end confdefs.h.  */
35825 #include <AppKit/NSEvent.h>
35826 #include <CoreFoundation/CoreFoundation.h>
35827
35828 int
35829 main ()
35830 {
35831
35832   ;
35833   return 0;
35834 }
35835 _ACEOF
35836 rm -f conftest.$ac_objext
35837 if { (ac_try="$ac_compile"
35838 case "(($ac_try" in
35839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35840   *) ac_try_echo=$ac_try;;
35841 esac
35842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35843   (eval "$ac_compile") 2>conftest.er1
35844   ac_status=$?
35845   grep -v '^ *+' conftest.er1 >conftest.err
35846   rm -f conftest.er1
35847   cat conftest.err >&5
35848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849   (exit $ac_status); } && {
35850          test -z "$ac_c_werror_flag" ||
35851          test ! -s conftest.err
35852        } && test -s conftest.$ac_objext; then
35853   { echo "$as_me:$LINENO: result: no" >&5
35854 echo "${ECHO_T}no" >&6; }
35855 else
35856   echo "$as_me: failed program was:" >&5
35857 sed 's/^/| /' conftest.$ac_ext >&5
35858
35859         { echo "$as_me:$LINENO: result: yes" >&5
35860 echo "${ECHO_T}yes" >&6; }
35861         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
35862 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
35863         cat >conftest.$ac_ext <<_ACEOF
35864 /* confdefs.h.  */
35865 _ACEOF
35866 cat confdefs.h >>conftest.$ac_ext
35867 cat >>conftest.$ac_ext <<_ACEOF
35868 /* end confdefs.h.  */
35869 #define __Point__ 1
35870 #include <AppKit/NSEvent.h>
35871 #include <CoreFoundation/CoreFoundation.h>
35872
35873 int
35874 main ()
35875 {
35876
35877   ;
35878   return 0;
35879 }
35880 _ACEOF
35881 rm -f conftest.$ac_objext
35882 if { (ac_try="$ac_compile"
35883 case "(($ac_try" in
35884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35885   *) ac_try_echo=$ac_try;;
35886 esac
35887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35888   (eval "$ac_compile") 2>conftest.er1
35889   ac_status=$?
35890   grep -v '^ *+' conftest.er1 >conftest.err
35891   rm -f conftest.er1
35892   cat conftest.err >&5
35893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35894   (exit $ac_status); } && {
35895          test -z "$ac_c_werror_flag" ||
35896          test ! -s conftest.err
35897        } && test -s conftest.$ac_objext; then
35898   { echo "$as_me:$LINENO: result: yes" >&5
35899 echo "${ECHO_T}yes" >&6; }
35900             cat >>confdefs.h <<\_ACEOF
35901 #define __Point__ 1
35902 _ACEOF
35903
35904
35905 else
35906   echo "$as_me: failed program was:" >&5
35907 sed 's/^/| /' conftest.$ac_ext >&5
35908
35909         { { echo "$as_me:$LINENO: error: no
35910 See \`config.log' for more details." >&5
35911 echo "$as_me: error: no
35912 See \`config.log' for more details." >&2;}
35913    { (exit 1); exit 1; }; }
35914
35915 fi
35916
35917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35918
35919 fi
35920
35921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35922     ac_ext=c
35923 ac_cpp='$CPP $CPPFLAGS'
35924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35927
35928 fi
35929
35930
35931 { echo "$as_me:$LINENO: checking for mode_t" >&5
35932 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
35933 if test "${ac_cv_type_mode_t+set}" = set; then
35934   echo $ECHO_N "(cached) $ECHO_C" >&6
35935 else
35936   cat >conftest.$ac_ext <<_ACEOF
35937 /* confdefs.h.  */
35938 _ACEOF
35939 cat confdefs.h >>conftest.$ac_ext
35940 cat >>conftest.$ac_ext <<_ACEOF
35941 /* end confdefs.h.  */
35942 $ac_includes_default
35943 typedef mode_t ac__type_new_;
35944 int
35945 main ()
35946 {
35947 if ((ac__type_new_ *) 0)
35948   return 0;
35949 if (sizeof (ac__type_new_))
35950   return 0;
35951   ;
35952   return 0;
35953 }
35954 _ACEOF
35955 rm -f conftest.$ac_objext
35956 if { (ac_try="$ac_compile"
35957 case "(($ac_try" in
35958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35959   *) ac_try_echo=$ac_try;;
35960 esac
35961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35962   (eval "$ac_compile") 2>conftest.er1
35963   ac_status=$?
35964   grep -v '^ *+' conftest.er1 >conftest.err
35965   rm -f conftest.er1
35966   cat conftest.err >&5
35967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968   (exit $ac_status); } && {
35969          test -z "$ac_c_werror_flag" ||
35970          test ! -s conftest.err
35971        } && test -s conftest.$ac_objext; then
35972   ac_cv_type_mode_t=yes
35973 else
35974   echo "$as_me: failed program was:" >&5
35975 sed 's/^/| /' conftest.$ac_ext >&5
35976
35977         ac_cv_type_mode_t=no
35978 fi
35979
35980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35981 fi
35982 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
35983 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
35984 if test $ac_cv_type_mode_t = yes; then
35985   :
35986 else
35987
35988 cat >>confdefs.h <<_ACEOF
35989 #define mode_t int
35990 _ACEOF
35991
35992 fi
35993
35994 { echo "$as_me:$LINENO: checking for off_t" >&5
35995 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
35996 if test "${ac_cv_type_off_t+set}" = set; then
35997   echo $ECHO_N "(cached) $ECHO_C" >&6
35998 else
35999   cat >conftest.$ac_ext <<_ACEOF
36000 /* confdefs.h.  */
36001 _ACEOF
36002 cat confdefs.h >>conftest.$ac_ext
36003 cat >>conftest.$ac_ext <<_ACEOF
36004 /* end confdefs.h.  */
36005 $ac_includes_default
36006 typedef off_t ac__type_new_;
36007 int
36008 main ()
36009 {
36010 if ((ac__type_new_ *) 0)
36011   return 0;
36012 if (sizeof (ac__type_new_))
36013   return 0;
36014   ;
36015   return 0;
36016 }
36017 _ACEOF
36018 rm -f conftest.$ac_objext
36019 if { (ac_try="$ac_compile"
36020 case "(($ac_try" in
36021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36022   *) ac_try_echo=$ac_try;;
36023 esac
36024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36025   (eval "$ac_compile") 2>conftest.er1
36026   ac_status=$?
36027   grep -v '^ *+' conftest.er1 >conftest.err
36028   rm -f conftest.er1
36029   cat conftest.err >&5
36030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36031   (exit $ac_status); } && {
36032          test -z "$ac_c_werror_flag" ||
36033          test ! -s conftest.err
36034        } && test -s conftest.$ac_objext; then
36035   ac_cv_type_off_t=yes
36036 else
36037   echo "$as_me: failed program was:" >&5
36038 sed 's/^/| /' conftest.$ac_ext >&5
36039
36040         ac_cv_type_off_t=no
36041 fi
36042
36043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36044 fi
36045 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36046 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
36047 if test $ac_cv_type_off_t = yes; then
36048   :
36049 else
36050
36051 cat >>confdefs.h <<_ACEOF
36052 #define off_t long int
36053 _ACEOF
36054
36055 fi
36056
36057 { echo "$as_me:$LINENO: checking for pid_t" >&5
36058 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
36059 if test "${ac_cv_type_pid_t+set}" = set; then
36060   echo $ECHO_N "(cached) $ECHO_C" >&6
36061 else
36062   cat >conftest.$ac_ext <<_ACEOF
36063 /* confdefs.h.  */
36064 _ACEOF
36065 cat confdefs.h >>conftest.$ac_ext
36066 cat >>conftest.$ac_ext <<_ACEOF
36067 /* end confdefs.h.  */
36068 $ac_includes_default
36069 typedef pid_t ac__type_new_;
36070 int
36071 main ()
36072 {
36073 if ((ac__type_new_ *) 0)
36074   return 0;
36075 if (sizeof (ac__type_new_))
36076   return 0;
36077   ;
36078   return 0;
36079 }
36080 _ACEOF
36081 rm -f conftest.$ac_objext
36082 if { (ac_try="$ac_compile"
36083 case "(($ac_try" in
36084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36085   *) ac_try_echo=$ac_try;;
36086 esac
36087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36088   (eval "$ac_compile") 2>conftest.er1
36089   ac_status=$?
36090   grep -v '^ *+' conftest.er1 >conftest.err
36091   rm -f conftest.er1
36092   cat conftest.err >&5
36093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36094   (exit $ac_status); } && {
36095          test -z "$ac_c_werror_flag" ||
36096          test ! -s conftest.err
36097        } && test -s conftest.$ac_objext; then
36098   ac_cv_type_pid_t=yes
36099 else
36100   echo "$as_me: failed program was:" >&5
36101 sed 's/^/| /' conftest.$ac_ext >&5
36102
36103         ac_cv_type_pid_t=no
36104 fi
36105
36106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36107 fi
36108 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
36109 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
36110 if test $ac_cv_type_pid_t = yes; then
36111   :
36112 else
36113
36114 cat >>confdefs.h <<_ACEOF
36115 #define pid_t int
36116 _ACEOF
36117
36118 fi
36119
36120 { echo "$as_me:$LINENO: checking for size_t" >&5
36121 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
36122 if test "${ac_cv_type_size_t+set}" = set; then
36123   echo $ECHO_N "(cached) $ECHO_C" >&6
36124 else
36125   cat >conftest.$ac_ext <<_ACEOF
36126 /* confdefs.h.  */
36127 _ACEOF
36128 cat confdefs.h >>conftest.$ac_ext
36129 cat >>conftest.$ac_ext <<_ACEOF
36130 /* end confdefs.h.  */
36131 $ac_includes_default
36132 typedef size_t ac__type_new_;
36133 int
36134 main ()
36135 {
36136 if ((ac__type_new_ *) 0)
36137   return 0;
36138 if (sizeof (ac__type_new_))
36139   return 0;
36140   ;
36141   return 0;
36142 }
36143 _ACEOF
36144 rm -f conftest.$ac_objext
36145 if { (ac_try="$ac_compile"
36146 case "(($ac_try" in
36147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36148   *) ac_try_echo=$ac_try;;
36149 esac
36150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36151   (eval "$ac_compile") 2>conftest.er1
36152   ac_status=$?
36153   grep -v '^ *+' conftest.er1 >conftest.err
36154   rm -f conftest.er1
36155   cat conftest.err >&5
36156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36157   (exit $ac_status); } && {
36158          test -z "$ac_c_werror_flag" ||
36159          test ! -s conftest.err
36160        } && test -s conftest.$ac_objext; then
36161   ac_cv_type_size_t=yes
36162 else
36163   echo "$as_me: failed program was:" >&5
36164 sed 's/^/| /' conftest.$ac_ext >&5
36165
36166         ac_cv_type_size_t=no
36167 fi
36168
36169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36170 fi
36171 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
36172 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
36173 if test $ac_cv_type_size_t = yes; then
36174   :
36175 else
36176
36177 cat >>confdefs.h <<_ACEOF
36178 #define size_t unsigned int
36179 _ACEOF
36180
36181 fi
36182
36183
36184 { echo "$as_me:$LINENO: checking for ssize_t" >&5
36185 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
36186 if test "${ac_cv_type_ssize_t+set}" = set; then
36187   echo $ECHO_N "(cached) $ECHO_C" >&6
36188 else
36189   cat >conftest.$ac_ext <<_ACEOF
36190 /* confdefs.h.  */
36191 _ACEOF
36192 cat confdefs.h >>conftest.$ac_ext
36193 cat >>conftest.$ac_ext <<_ACEOF
36194 /* end confdefs.h.  */
36195 $ac_includes_default
36196 typedef ssize_t ac__type_new_;
36197 int
36198 main ()
36199 {
36200 if ((ac__type_new_ *) 0)
36201   return 0;
36202 if (sizeof (ac__type_new_))
36203   return 0;
36204   ;
36205   return 0;
36206 }
36207 _ACEOF
36208 rm -f conftest.$ac_objext
36209 if { (ac_try="$ac_compile"
36210 case "(($ac_try" in
36211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36212   *) ac_try_echo=$ac_try;;
36213 esac
36214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36215   (eval "$ac_compile") 2>conftest.er1
36216   ac_status=$?
36217   grep -v '^ *+' conftest.er1 >conftest.err
36218   rm -f conftest.er1
36219   cat conftest.err >&5
36220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36221   (exit $ac_status); } && {
36222          test -z "$ac_c_werror_flag" ||
36223          test ! -s conftest.err
36224        } && test -s conftest.$ac_objext; then
36225   ac_cv_type_ssize_t=yes
36226 else
36227   echo "$as_me: failed program was:" >&5
36228 sed 's/^/| /' conftest.$ac_ext >&5
36229
36230         ac_cv_type_ssize_t=no
36231 fi
36232
36233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36234 fi
36235 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36236 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
36237 if test $ac_cv_type_ssize_t = yes; then
36238
36239 cat >>confdefs.h <<_ACEOF
36240 #define HAVE_SSIZE_T 1
36241 _ACEOF
36242
36243
36244 fi
36245
36246
36247 ac_ext=cpp
36248 ac_cpp='$CXXCPP $CPPFLAGS'
36249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36252  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
36253 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
36254 if test "${wx_cv_size_t_is_uint+set}" = set; then
36255   echo $ECHO_N "(cached) $ECHO_C" >&6
36256 else
36257
36258                             cat >conftest.$ac_ext <<_ACEOF
36259 /* confdefs.h.  */
36260 _ACEOF
36261 cat confdefs.h >>conftest.$ac_ext
36262 cat >>conftest.$ac_ext <<_ACEOF
36263 /* end confdefs.h.  */
36264 #include <stddef.h>
36265 int
36266 main ()
36267 {
36268
36269             return 0; }
36270
36271             struct Foo { void foo(size_t); void foo(unsigned int); };
36272
36273             int bar() {
36274
36275   ;
36276   return 0;
36277 }
36278 _ACEOF
36279 rm -f conftest.$ac_objext
36280 if { (ac_try="$ac_compile"
36281 case "(($ac_try" in
36282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36283   *) ac_try_echo=$ac_try;;
36284 esac
36285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36286   (eval "$ac_compile") 2>conftest.er1
36287   ac_status=$?
36288   grep -v '^ *+' conftest.er1 >conftest.err
36289   rm -f conftest.er1
36290   cat conftest.err >&5
36291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292   (exit $ac_status); } && {
36293          test -z "$ac_cxx_werror_flag" ||
36294          test ! -s conftest.err
36295        } && test -s conftest.$ac_objext; then
36296   wx_cv_size_t_is_uint=no
36297 else
36298   echo "$as_me: failed program was:" >&5
36299 sed 's/^/| /' conftest.$ac_ext >&5
36300
36301         wx_cv_size_t_is_uint=yes
36302
36303 fi
36304
36305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36306
36307
36308 fi
36309 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
36310 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
36311
36312 if test "$wx_cv_size_t_is_uint" = "yes"; then
36313     cat >>confdefs.h <<\_ACEOF
36314 #define wxSIZE_T_IS_UINT 1
36315 _ACEOF
36316
36317 else
36318     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
36319 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
36320 if test "${wx_cv_size_t_is_ulong+set}" = set; then
36321   echo $ECHO_N "(cached) $ECHO_C" >&6
36322 else
36323   cat >conftest.$ac_ext <<_ACEOF
36324 /* confdefs.h.  */
36325 _ACEOF
36326 cat confdefs.h >>conftest.$ac_ext
36327 cat >>conftest.$ac_ext <<_ACEOF
36328 /* end confdefs.h.  */
36329 #include <stddef.h>
36330 int
36331 main ()
36332 {
36333
36334                 return 0; }
36335
36336                 struct Foo { void foo(size_t); void foo(unsigned long); };
36337
36338                 int bar() {
36339
36340   ;
36341   return 0;
36342 }
36343 _ACEOF
36344 rm -f conftest.$ac_objext
36345 if { (ac_try="$ac_compile"
36346 case "(($ac_try" in
36347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36348   *) ac_try_echo=$ac_try;;
36349 esac
36350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36351   (eval "$ac_compile") 2>conftest.er1
36352   ac_status=$?
36353   grep -v '^ *+' conftest.er1 >conftest.err
36354   rm -f conftest.er1
36355   cat conftest.err >&5
36356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36357   (exit $ac_status); } && {
36358          test -z "$ac_cxx_werror_flag" ||
36359          test ! -s conftest.err
36360        } && test -s conftest.$ac_objext; then
36361   wx_cv_size_t_is_ulong=no
36362 else
36363   echo "$as_me: failed program was:" >&5
36364 sed 's/^/| /' conftest.$ac_ext >&5
36365
36366         wx_cv_size_t_is_ulong=yes
36367
36368 fi
36369
36370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36371
36372 fi
36373 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
36374 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
36375
36376     if test "$wx_cv_size_t_is_ulong" = "yes"; then
36377         cat >>confdefs.h <<\_ACEOF
36378 #define wxSIZE_T_IS_ULONG 1
36379 _ACEOF
36380
36381     fi
36382 fi
36383
36384 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
36385 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
36386 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
36387   echo $ECHO_N "(cached) $ECHO_C" >&6
36388 else
36389   cat >conftest.$ac_ext <<_ACEOF
36390 /* confdefs.h.  */
36391 _ACEOF
36392 cat confdefs.h >>conftest.$ac_ext
36393 cat >>conftest.$ac_ext <<_ACEOF
36394 /* end confdefs.h.  */
36395 #include <wchar.h>
36396 int
36397 main ()
36398 {
36399
36400             return 0; }
36401
36402             struct Foo { void foo(wchar_t);
36403                          void foo(unsigned short);
36404                          void foo(unsigned int);
36405                          void foo(unsigned long); };
36406
36407             int bar() {
36408
36409   ;
36410   return 0;
36411 }
36412 _ACEOF
36413 rm -f conftest.$ac_objext
36414 if { (ac_try="$ac_compile"
36415 case "(($ac_try" in
36416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36417   *) ac_try_echo=$ac_try;;
36418 esac
36419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36420   (eval "$ac_compile") 2>conftest.er1
36421   ac_status=$?
36422   grep -v '^ *+' conftest.er1 >conftest.err
36423   rm -f conftest.er1
36424   cat conftest.err >&5
36425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426   (exit $ac_status); } && {
36427          test -z "$ac_cxx_werror_flag" ||
36428          test ! -s conftest.err
36429        } && test -s conftest.$ac_objext; then
36430   wx_cv_wchar_t_is_separate_type=yes
36431 else
36432   echo "$as_me: failed program was:" >&5
36433 sed 's/^/| /' conftest.$ac_ext >&5
36434
36435         wx_cv_wchar_t_is_separate_type=no
36436
36437 fi
36438
36439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36440
36441 fi
36442 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
36443 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
36444
36445 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
36446     cat >>confdefs.h <<\_ACEOF
36447 #define wxWCHAR_T_IS_REAL_TYPE 1
36448 _ACEOF
36449
36450 else
36451     cat >>confdefs.h <<\_ACEOF
36452 #define wxWCHAR_T_IS_REAL_TYPE 0
36453 _ACEOF
36454
36455 fi
36456
36457 ac_ext=c
36458 ac_cpp='$CPP $CPPFLAGS'
36459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36462
36463
36464 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
36465 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
36466 if test "${wx_cv_struct_pw_gecos+set}" = set; then
36467   echo $ECHO_N "(cached) $ECHO_C" >&6
36468 else
36469
36470         cat >conftest.$ac_ext <<_ACEOF
36471 /* confdefs.h.  */
36472 _ACEOF
36473 cat confdefs.h >>conftest.$ac_ext
36474 cat >>conftest.$ac_ext <<_ACEOF
36475 /* end confdefs.h.  */
36476 #include <pwd.h>
36477 int
36478 main ()
36479 {
36480
36481                 char *p;
36482                 struct passwd *pw;
36483                 p = pw->pw_gecos;
36484
36485   ;
36486   return 0;
36487 }
36488 _ACEOF
36489 rm -f conftest.$ac_objext
36490 if { (ac_try="$ac_compile"
36491 case "(($ac_try" in
36492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36493   *) ac_try_echo=$ac_try;;
36494 esac
36495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36496   (eval "$ac_compile") 2>conftest.er1
36497   ac_status=$?
36498   grep -v '^ *+' conftest.er1 >conftest.err
36499   rm -f conftest.er1
36500   cat conftest.err >&5
36501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36502   (exit $ac_status); } && {
36503          test -z "$ac_c_werror_flag" ||
36504          test ! -s conftest.err
36505        } && test -s conftest.$ac_objext; then
36506
36507                 wx_cv_struct_pw_gecos=yes
36508
36509 else
36510   echo "$as_me: failed program was:" >&5
36511 sed 's/^/| /' conftest.$ac_ext >&5
36512
36513
36514                 wx_cv_struct_pw_gecos=no
36515
36516
36517 fi
36518
36519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36520
36521
36522 fi
36523 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
36524 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
36525
36526 if test "$wx_cv_struct_pw_gecos" = "yes"; then
36527     cat >>confdefs.h <<\_ACEOF
36528 #define HAVE_PW_GECOS 1
36529 _ACEOF
36530
36531 fi
36532
36533
36534 WCSLEN_FOUND=0
36535 WCHAR_LINK=
36536
36537 for ac_func in wcslen
36538 do
36539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36543   echo $ECHO_N "(cached) $ECHO_C" >&6
36544 else
36545   cat >conftest.$ac_ext <<_ACEOF
36546 /* confdefs.h.  */
36547 _ACEOF
36548 cat confdefs.h >>conftest.$ac_ext
36549 cat >>conftest.$ac_ext <<_ACEOF
36550 /* end confdefs.h.  */
36551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36553 #define $ac_func innocuous_$ac_func
36554
36555 /* System header to define __stub macros and hopefully few prototypes,
36556     which can conflict with char $ac_func (); below.
36557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36558     <limits.h> exists even on freestanding compilers.  */
36559
36560 #ifdef __STDC__
36561 # include <limits.h>
36562 #else
36563 # include <assert.h>
36564 #endif
36565
36566 #undef $ac_func
36567
36568 /* Override any GCC internal prototype to avoid an error.
36569    Use char because int might match the return type of a GCC
36570    builtin and then its argument prototype would still apply.  */
36571 #ifdef __cplusplus
36572 extern "C"
36573 #endif
36574 char $ac_func ();
36575 /* The GNU C library defines this for functions which it implements
36576     to always fail with ENOSYS.  Some functions are actually named
36577     something starting with __ and the normal name is an alias.  */
36578 #if defined __stub_$ac_func || defined __stub___$ac_func
36579 choke me
36580 #endif
36581
36582 int
36583 main ()
36584 {
36585 return $ac_func ();
36586   ;
36587   return 0;
36588 }
36589 _ACEOF
36590 rm -f conftest.$ac_objext conftest$ac_exeext
36591 if { (ac_try="$ac_link"
36592 case "(($ac_try" in
36593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36594   *) ac_try_echo=$ac_try;;
36595 esac
36596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36597   (eval "$ac_link") 2>conftest.er1
36598   ac_status=$?
36599   grep -v '^ *+' conftest.er1 >conftest.err
36600   rm -f conftest.er1
36601   cat conftest.err >&5
36602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36603   (exit $ac_status); } && {
36604          test -z "$ac_c_werror_flag" ||
36605          test ! -s conftest.err
36606        } && test -s conftest$ac_exeext &&
36607        $as_test_x conftest$ac_exeext; then
36608   eval "$as_ac_var=yes"
36609 else
36610   echo "$as_me: failed program was:" >&5
36611 sed 's/^/| /' conftest.$ac_ext >&5
36612
36613         eval "$as_ac_var=no"
36614 fi
36615
36616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36617       conftest$ac_exeext conftest.$ac_ext
36618 fi
36619 ac_res=`eval echo '${'$as_ac_var'}'`
36620                { echo "$as_me:$LINENO: result: $ac_res" >&5
36621 echo "${ECHO_T}$ac_res" >&6; }
36622 if test `eval echo '${'$as_ac_var'}'` = yes; then
36623   cat >>confdefs.h <<_ACEOF
36624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36625 _ACEOF
36626  WCSLEN_FOUND=1
36627 fi
36628 done
36629
36630
36631 if test "$WCSLEN_FOUND" = 0; then
36632     if test "$TOOLKIT" = "MSW"; then
36633         { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
36634 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
36635 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
36636   echo $ECHO_N "(cached) $ECHO_C" >&6
36637 else
36638   ac_check_lib_save_LIBS=$LIBS
36639 LIBS="-lmsvcrt  $LIBS"
36640 cat >conftest.$ac_ext <<_ACEOF
36641 /* confdefs.h.  */
36642 _ACEOF
36643 cat confdefs.h >>conftest.$ac_ext
36644 cat >>conftest.$ac_ext <<_ACEOF
36645 /* end confdefs.h.  */
36646
36647 /* Override any GCC internal prototype to avoid an error.
36648    Use char because int might match the return type of a GCC
36649    builtin and then its argument prototype would still apply.  */
36650 #ifdef __cplusplus
36651 extern "C"
36652 #endif
36653 char wcslen ();
36654 int
36655 main ()
36656 {
36657 return wcslen ();
36658   ;
36659   return 0;
36660 }
36661 _ACEOF
36662 rm -f conftest.$ac_objext conftest$ac_exeext
36663 if { (ac_try="$ac_link"
36664 case "(($ac_try" in
36665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36666   *) ac_try_echo=$ac_try;;
36667 esac
36668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36669   (eval "$ac_link") 2>conftest.er1
36670   ac_status=$?
36671   grep -v '^ *+' conftest.er1 >conftest.err
36672   rm -f conftest.er1
36673   cat conftest.err >&5
36674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675   (exit $ac_status); } && {
36676          test -z "$ac_c_werror_flag" ||
36677          test ! -s conftest.err
36678        } && test -s conftest$ac_exeext &&
36679        $as_test_x conftest$ac_exeext; then
36680   ac_cv_lib_msvcrt_wcslen=yes
36681 else
36682   echo "$as_me: failed program was:" >&5
36683 sed 's/^/| /' conftest.$ac_ext >&5
36684
36685         ac_cv_lib_msvcrt_wcslen=no
36686 fi
36687
36688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36689       conftest$ac_exeext conftest.$ac_ext
36690 LIBS=$ac_check_lib_save_LIBS
36691 fi
36692 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
36693 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
36694 if test $ac_cv_lib_msvcrt_wcslen = yes; then
36695   WCHAR_OK=1
36696 fi
36697
36698     else
36699         { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
36700 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
36701 if test "${ac_cv_lib_w_wcslen+set}" = set; then
36702   echo $ECHO_N "(cached) $ECHO_C" >&6
36703 else
36704   ac_check_lib_save_LIBS=$LIBS
36705 LIBS="-lw  $LIBS"
36706 cat >conftest.$ac_ext <<_ACEOF
36707 /* confdefs.h.  */
36708 _ACEOF
36709 cat confdefs.h >>conftest.$ac_ext
36710 cat >>conftest.$ac_ext <<_ACEOF
36711 /* end confdefs.h.  */
36712
36713 /* Override any GCC internal prototype to avoid an error.
36714    Use char because int might match the return type of a GCC
36715    builtin and then its argument prototype would still apply.  */
36716 #ifdef __cplusplus
36717 extern "C"
36718 #endif
36719 char wcslen ();
36720 int
36721 main ()
36722 {
36723 return wcslen ();
36724   ;
36725   return 0;
36726 }
36727 _ACEOF
36728 rm -f conftest.$ac_objext conftest$ac_exeext
36729 if { (ac_try="$ac_link"
36730 case "(($ac_try" in
36731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36732   *) ac_try_echo=$ac_try;;
36733 esac
36734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36735   (eval "$ac_link") 2>conftest.er1
36736   ac_status=$?
36737   grep -v '^ *+' conftest.er1 >conftest.err
36738   rm -f conftest.er1
36739   cat conftest.err >&5
36740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741   (exit $ac_status); } && {
36742          test -z "$ac_c_werror_flag" ||
36743          test ! -s conftest.err
36744        } && test -s conftest$ac_exeext &&
36745        $as_test_x conftest$ac_exeext; then
36746   ac_cv_lib_w_wcslen=yes
36747 else
36748   echo "$as_me: failed program was:" >&5
36749 sed 's/^/| /' conftest.$ac_ext >&5
36750
36751         ac_cv_lib_w_wcslen=no
36752 fi
36753
36754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36755       conftest$ac_exeext conftest.$ac_ext
36756 LIBS=$ac_check_lib_save_LIBS
36757 fi
36758 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
36759 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
36760 if test $ac_cv_lib_w_wcslen = yes; then
36761
36762                         WCHAR_LINK=" -lw"
36763                         WCSLEN_FOUND=1
36764
36765 fi
36766
36767     fi
36768 fi
36769
36770 if test "$WCSLEN_FOUND" = 1; then
36771     cat >>confdefs.h <<\_ACEOF
36772 #define HAVE_WCSLEN 1
36773 _ACEOF
36774
36775 fi
36776
36777
36778
36779
36780
36781
36782
36783 for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
36784 do
36785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36789   echo $ECHO_N "(cached) $ECHO_C" >&6
36790 else
36791   cat >conftest.$ac_ext <<_ACEOF
36792 /* confdefs.h.  */
36793 _ACEOF
36794 cat confdefs.h >>conftest.$ac_ext
36795 cat >>conftest.$ac_ext <<_ACEOF
36796 /* end confdefs.h.  */
36797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36799 #define $ac_func innocuous_$ac_func
36800
36801 /* System header to define __stub macros and hopefully few prototypes,
36802     which can conflict with char $ac_func (); below.
36803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36804     <limits.h> exists even on freestanding compilers.  */
36805
36806 #ifdef __STDC__
36807 # include <limits.h>
36808 #else
36809 # include <assert.h>
36810 #endif
36811
36812 #undef $ac_func
36813
36814 /* Override any GCC internal prototype to avoid an error.
36815    Use char because int might match the return type of a GCC
36816    builtin and then its argument prototype would still apply.  */
36817 #ifdef __cplusplus
36818 extern "C"
36819 #endif
36820 char $ac_func ();
36821 /* The GNU C library defines this for functions which it implements
36822     to always fail with ENOSYS.  Some functions are actually named
36823     something starting with __ and the normal name is an alias.  */
36824 #if defined __stub_$ac_func || defined __stub___$ac_func
36825 choke me
36826 #endif
36827
36828 int
36829 main ()
36830 {
36831 return $ac_func ();
36832   ;
36833   return 0;
36834 }
36835 _ACEOF
36836 rm -f conftest.$ac_objext conftest$ac_exeext
36837 if { (ac_try="$ac_link"
36838 case "(($ac_try" in
36839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36840   *) ac_try_echo=$ac_try;;
36841 esac
36842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36843   (eval "$ac_link") 2>conftest.er1
36844   ac_status=$?
36845   grep -v '^ *+' conftest.er1 >conftest.err
36846   rm -f conftest.er1
36847   cat conftest.err >&5
36848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36849   (exit $ac_status); } && {
36850          test -z "$ac_c_werror_flag" ||
36851          test ! -s conftest.err
36852        } && test -s conftest$ac_exeext &&
36853        $as_test_x conftest$ac_exeext; then
36854   eval "$as_ac_var=yes"
36855 else
36856   echo "$as_me: failed program was:" >&5
36857 sed 's/^/| /' conftest.$ac_ext >&5
36858
36859         eval "$as_ac_var=no"
36860 fi
36861
36862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36863       conftest$ac_exeext conftest.$ac_ext
36864 fi
36865 ac_res=`eval echo '${'$as_ac_var'}'`
36866                { echo "$as_me:$LINENO: result: $ac_res" >&5
36867 echo "${ECHO_T}$ac_res" >&6; }
36868 if test `eval echo '${'$as_ac_var'}'` = yes; then
36869   cat >>confdefs.h <<_ACEOF
36870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36871 _ACEOF
36872
36873 fi
36874 done
36875
36876
36877 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
36878     CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
36879 fi
36880
36881 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
36882 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
36883 if test "${ac_cv_type_mbstate_t+set}" = set; then
36884   echo $ECHO_N "(cached) $ECHO_C" >&6
36885 else
36886   cat >conftest.$ac_ext <<_ACEOF
36887 /* confdefs.h.  */
36888 _ACEOF
36889 cat confdefs.h >>conftest.$ac_ext
36890 cat >>conftest.$ac_ext <<_ACEOF
36891 /* end confdefs.h.  */
36892 #include <wchar.h>
36893
36894 typedef mbstate_t ac__type_new_;
36895 int
36896 main ()
36897 {
36898 if ((ac__type_new_ *) 0)
36899   return 0;
36900 if (sizeof (ac__type_new_))
36901   return 0;
36902   ;
36903   return 0;
36904 }
36905 _ACEOF
36906 rm -f conftest.$ac_objext
36907 if { (ac_try="$ac_compile"
36908 case "(($ac_try" in
36909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36910   *) ac_try_echo=$ac_try;;
36911 esac
36912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36913   (eval "$ac_compile") 2>conftest.er1
36914   ac_status=$?
36915   grep -v '^ *+' conftest.er1 >conftest.err
36916   rm -f conftest.er1
36917   cat conftest.err >&5
36918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36919   (exit $ac_status); } && {
36920          test -z "$ac_c_werror_flag" ||
36921          test ! -s conftest.err
36922        } && test -s conftest.$ac_objext; then
36923   ac_cv_type_mbstate_t=yes
36924 else
36925   echo "$as_me: failed program was:" >&5
36926 sed 's/^/| /' conftest.$ac_ext >&5
36927
36928         ac_cv_type_mbstate_t=no
36929 fi
36930
36931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36932 fi
36933 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
36934 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
36935 if test $ac_cv_type_mbstate_t = yes; then
36936
36937 cat >>confdefs.h <<_ACEOF
36938 #define HAVE_MBSTATE_T 1
36939 _ACEOF
36940
36941
36942 for ac_func in wcsrtombs
36943 do
36944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36948   echo $ECHO_N "(cached) $ECHO_C" >&6
36949 else
36950   cat >conftest.$ac_ext <<_ACEOF
36951 /* confdefs.h.  */
36952 _ACEOF
36953 cat confdefs.h >>conftest.$ac_ext
36954 cat >>conftest.$ac_ext <<_ACEOF
36955 /* end confdefs.h.  */
36956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36958 #define $ac_func innocuous_$ac_func
36959
36960 /* System header to define __stub macros and hopefully few prototypes,
36961     which can conflict with char $ac_func (); below.
36962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36963     <limits.h> exists even on freestanding compilers.  */
36964
36965 #ifdef __STDC__
36966 # include <limits.h>
36967 #else
36968 # include <assert.h>
36969 #endif
36970
36971 #undef $ac_func
36972
36973 /* Override any GCC internal prototype to avoid an error.
36974    Use char because int might match the return type of a GCC
36975    builtin and then its argument prototype would still apply.  */
36976 #ifdef __cplusplus
36977 extern "C"
36978 #endif
36979 char $ac_func ();
36980 /* The GNU C library defines this for functions which it implements
36981     to always fail with ENOSYS.  Some functions are actually named
36982     something starting with __ and the normal name is an alias.  */
36983 #if defined __stub_$ac_func || defined __stub___$ac_func
36984 choke me
36985 #endif
36986
36987 int
36988 main ()
36989 {
36990 return $ac_func ();
36991   ;
36992   return 0;
36993 }
36994 _ACEOF
36995 rm -f conftest.$ac_objext conftest$ac_exeext
36996 if { (ac_try="$ac_link"
36997 case "(($ac_try" in
36998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36999   *) ac_try_echo=$ac_try;;
37000 esac
37001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37002   (eval "$ac_link") 2>conftest.er1
37003   ac_status=$?
37004   grep -v '^ *+' conftest.er1 >conftest.err
37005   rm -f conftest.er1
37006   cat conftest.err >&5
37007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37008   (exit $ac_status); } && {
37009          test -z "$ac_c_werror_flag" ||
37010          test ! -s conftest.err
37011        } && test -s conftest$ac_exeext &&
37012        $as_test_x conftest$ac_exeext; then
37013   eval "$as_ac_var=yes"
37014 else
37015   echo "$as_me: failed program was:" >&5
37016 sed 's/^/| /' conftest.$ac_ext >&5
37017
37018         eval "$as_ac_var=no"
37019 fi
37020
37021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37022       conftest$ac_exeext conftest.$ac_ext
37023 fi
37024 ac_res=`eval echo '${'$as_ac_var'}'`
37025                { echo "$as_me:$LINENO: result: $ac_res" >&5
37026 echo "${ECHO_T}$ac_res" >&6; }
37027 if test `eval echo '${'$as_ac_var'}'` = yes; then
37028   cat >>confdefs.h <<_ACEOF
37029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37030 _ACEOF
37031
37032 fi
37033 done
37034
37035 fi
37036
37037
37038
37039
37040
37041 for ac_func in snprintf vsnprintf vsscanf
37042 do
37043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37047   echo $ECHO_N "(cached) $ECHO_C" >&6
37048 else
37049   cat >conftest.$ac_ext <<_ACEOF
37050 /* confdefs.h.  */
37051 _ACEOF
37052 cat confdefs.h >>conftest.$ac_ext
37053 cat >>conftest.$ac_ext <<_ACEOF
37054 /* end confdefs.h.  */
37055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37057 #define $ac_func innocuous_$ac_func
37058
37059 /* System header to define __stub macros and hopefully few prototypes,
37060     which can conflict with char $ac_func (); below.
37061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37062     <limits.h> exists even on freestanding compilers.  */
37063
37064 #ifdef __STDC__
37065 # include <limits.h>
37066 #else
37067 # include <assert.h>
37068 #endif
37069
37070 #undef $ac_func
37071
37072 /* Override any GCC internal prototype to avoid an error.
37073    Use char because int might match the return type of a GCC
37074    builtin and then its argument prototype would still apply.  */
37075 #ifdef __cplusplus
37076 extern "C"
37077 #endif
37078 char $ac_func ();
37079 /* The GNU C library defines this for functions which it implements
37080     to always fail with ENOSYS.  Some functions are actually named
37081     something starting with __ and the normal name is an alias.  */
37082 #if defined __stub_$ac_func || defined __stub___$ac_func
37083 choke me
37084 #endif
37085
37086 int
37087 main ()
37088 {
37089 return $ac_func ();
37090   ;
37091   return 0;
37092 }
37093 _ACEOF
37094 rm -f conftest.$ac_objext conftest$ac_exeext
37095 if { (ac_try="$ac_link"
37096 case "(($ac_try" in
37097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37098   *) ac_try_echo=$ac_try;;
37099 esac
37100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37101   (eval "$ac_link") 2>conftest.er1
37102   ac_status=$?
37103   grep -v '^ *+' conftest.er1 >conftest.err
37104   rm -f conftest.er1
37105   cat conftest.err >&5
37106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37107   (exit $ac_status); } && {
37108          test -z "$ac_c_werror_flag" ||
37109          test ! -s conftest.err
37110        } && test -s conftest$ac_exeext &&
37111        $as_test_x conftest$ac_exeext; then
37112   eval "$as_ac_var=yes"
37113 else
37114   echo "$as_me: failed program was:" >&5
37115 sed 's/^/| /' conftest.$ac_ext >&5
37116
37117         eval "$as_ac_var=no"
37118 fi
37119
37120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37121       conftest$ac_exeext conftest.$ac_ext
37122 fi
37123 ac_res=`eval echo '${'$as_ac_var'}'`
37124                { echo "$as_me:$LINENO: result: $ac_res" >&5
37125 echo "${ECHO_T}$ac_res" >&6; }
37126 if test `eval echo '${'$as_ac_var'}'` = yes; then
37127   cat >>confdefs.h <<_ACEOF
37128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37129 _ACEOF
37130
37131 fi
37132 done
37133
37134
37135 ac_ext=cpp
37136 ac_cpp='$CXXCPP $CPPFLAGS'
37137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37140
37141 if test "$ac_cv_func_vsnprintf" = "yes"; then
37142         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
37143 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
37144 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
37145   echo $ECHO_N "(cached) $ECHO_C" >&6
37146 else
37147
37148                                                             cat >conftest.$ac_ext <<_ACEOF
37149 /* confdefs.h.  */
37150 _ACEOF
37151 cat confdefs.h >>conftest.$ac_ext
37152 cat >>conftest.$ac_ext <<_ACEOF
37153 /* end confdefs.h.  */
37154
37155                     #include <stdio.h>
37156                     #include <stdarg.h>
37157                     #ifdef __MSL__
37158                     #if __MSL__ >= 0x6000
37159                     namespace std {}
37160                     using namespace std;
37161                     #endif
37162                     #endif
37163
37164 int
37165 main ()
37166 {
37167
37168                     char *buf;
37169                     va_list ap;
37170                     vsnprintf(buf, 10u, "%s", ap);
37171
37172   ;
37173   return 0;
37174 }
37175 _ACEOF
37176 rm -f conftest.$ac_objext
37177 if { (ac_try="$ac_compile"
37178 case "(($ac_try" in
37179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37180   *) ac_try_echo=$ac_try;;
37181 esac
37182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37183   (eval "$ac_compile") 2>conftest.er1
37184   ac_status=$?
37185   grep -v '^ *+' conftest.er1 >conftest.err
37186   rm -f conftest.er1
37187   cat conftest.err >&5
37188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37189   (exit $ac_status); } && {
37190          test -z "$ac_cxx_werror_flag" ||
37191          test ! -s conftest.err
37192        } && test -s conftest.$ac_objext; then
37193   wx_cv_func_vsnprintf_decl=yes
37194 else
37195   echo "$as_me: failed program was:" >&5
37196 sed 's/^/| /' conftest.$ac_ext >&5
37197
37198         wx_cv_func_vsnprintf_decl=no
37199
37200 fi
37201
37202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37203
37204
37205 fi
37206 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
37207 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
37208
37209     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
37210         cat >>confdefs.h <<\_ACEOF
37211 #define HAVE_VSNPRINTF_DECL 1
37212 _ACEOF
37213
37214
37215                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
37216 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
37217 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
37218   echo $ECHO_N "(cached) $ECHO_C" >&6
37219 else
37220
37221                 cat >conftest.$ac_ext <<_ACEOF
37222 /* confdefs.h.  */
37223 _ACEOF
37224 cat confdefs.h >>conftest.$ac_ext
37225 cat >>conftest.$ac_ext <<_ACEOF
37226 /* end confdefs.h.  */
37227
37228                         #include <stdio.h>
37229                         #include <stdarg.h>
37230                         #ifdef __MSL__
37231                         #if __MSL__ >= 0x6000
37232                         namespace std {}
37233                         using namespace std;
37234                         #endif
37235                         #endif
37236
37237 int
37238 main ()
37239 {
37240
37241                         char *buf;
37242                         va_list ap;
37243                         const char *fmt = "%s";
37244                         vsnprintf(buf, 10u, fmt, ap);
37245
37246   ;
37247   return 0;
37248 }
37249 _ACEOF
37250 rm -f conftest.$ac_objext
37251 if { (ac_try="$ac_compile"
37252 case "(($ac_try" in
37253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37254   *) ac_try_echo=$ac_try;;
37255 esac
37256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37257   (eval "$ac_compile") 2>conftest.er1
37258   ac_status=$?
37259   grep -v '^ *+' conftest.er1 >conftest.err
37260   rm -f conftest.er1
37261   cat conftest.err >&5
37262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37263   (exit $ac_status); } && {
37264          test -z "$ac_cxx_werror_flag" ||
37265          test ! -s conftest.err
37266        } && test -s conftest.$ac_objext; then
37267   wx_cv_func_broken_vsnprintf_decl=no
37268 else
37269   echo "$as_me: failed program was:" >&5
37270 sed 's/^/| /' conftest.$ac_ext >&5
37271
37272         wx_cv_func_broken_vsnprintf_decl=yes
37273
37274 fi
37275
37276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37277
37278
37279 fi
37280 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
37281 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
37282
37283         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
37284             cat >>confdefs.h <<\_ACEOF
37285 #define HAVE_BROKEN_VSNPRINTF_DECL 1
37286 _ACEOF
37287
37288         fi
37289     fi
37290 fi
37291
37292 if test "$ac_cv_func_snprintf" = "yes"; then
37293     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
37294 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
37295 if test "${wx_cv_func_snprintf_decl+set}" = set; then
37296   echo $ECHO_N "(cached) $ECHO_C" >&6
37297 else
37298
37299             cat >conftest.$ac_ext <<_ACEOF
37300 /* confdefs.h.  */
37301 _ACEOF
37302 cat confdefs.h >>conftest.$ac_ext
37303 cat >>conftest.$ac_ext <<_ACEOF
37304 /* end confdefs.h.  */
37305
37306                     #include <stdio.h>
37307                     #include <stdarg.h>
37308                     #ifdef __MSL__
37309                     #if __MSL__ >= 0x6000
37310                     namespace std {}
37311                     using namespace std;
37312                     #endif
37313                     #endif
37314
37315 int
37316 main ()
37317 {
37318
37319                     char *buf;
37320                     snprintf(buf, 10u, "%s", "wx");
37321
37322   ;
37323   return 0;
37324 }
37325 _ACEOF
37326 rm -f conftest.$ac_objext
37327 if { (ac_try="$ac_compile"
37328 case "(($ac_try" in
37329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37330   *) ac_try_echo=$ac_try;;
37331 esac
37332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37333   (eval "$ac_compile") 2>conftest.er1
37334   ac_status=$?
37335   grep -v '^ *+' conftest.er1 >conftest.err
37336   rm -f conftest.er1
37337   cat conftest.err >&5
37338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339   (exit $ac_status); } && {
37340          test -z "$ac_cxx_werror_flag" ||
37341          test ! -s conftest.err
37342        } && test -s conftest.$ac_objext; then
37343   wx_cv_func_snprintf_decl=yes
37344 else
37345   echo "$as_me: failed program was:" >&5
37346 sed 's/^/| /' conftest.$ac_ext >&5
37347
37348         wx_cv_func_snprintf_decl=no
37349
37350 fi
37351
37352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37353
37354
37355 fi
37356 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
37357 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
37358
37359     if test "$wx_cv_func_snprintf_decl" = "yes"; then
37360         cat >>confdefs.h <<\_ACEOF
37361 #define HAVE_SNPRINTF_DECL 1
37362 _ACEOF
37363
37364     fi
37365
37366     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
37367
37368                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
37369 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
37370 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
37371   echo $ECHO_N "(cached) $ECHO_C" >&6
37372 else
37373
37374                 if test "$cross_compiling" = yes; then
37375
37376                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
37377 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
37378 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
37379 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
37380                         wx_cv_func_snprintf_pos_params=no
37381
37382
37383 else
37384   cat >conftest.$ac_ext <<_ACEOF
37385 /* confdefs.h.  */
37386 _ACEOF
37387 cat confdefs.h >>conftest.$ac_ext
37388 cat >>conftest.$ac_ext <<_ACEOF
37389 /* end confdefs.h.  */
37390
37391                         #include <stdio.h>
37392
37393                         int main (void)
37394                         {
37395                             char buffer[128];
37396                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
37397                             if (strcmp ("2 3 1", buffer) == 0)
37398                                 exit (0);
37399                             exit (1);
37400                         }
37401
37402 _ACEOF
37403 rm -f conftest$ac_exeext
37404 if { (ac_try="$ac_link"
37405 case "(($ac_try" in
37406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37407   *) ac_try_echo=$ac_try;;
37408 esac
37409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37410   (eval "$ac_link") 2>&5
37411   ac_status=$?
37412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37414   { (case "(($ac_try" in
37415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37416   *) ac_try_echo=$ac_try;;
37417 esac
37418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37419   (eval "$ac_try") 2>&5
37420   ac_status=$?
37421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37422   (exit $ac_status); }; }; then
37423   wx_cv_func_snprintf_pos_params=no
37424 else
37425   echo "$as_me: program exited with status $ac_status" >&5
37426 echo "$as_me: failed program was:" >&5
37427 sed 's/^/| /' conftest.$ac_ext >&5
37428
37429 ( exit $ac_status )
37430 wx_cv_func_snprintf_pos_params=yes
37431 fi
37432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37433 fi
37434
37435
37436
37437
37438 fi
37439 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
37440 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
37441
37442         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
37443             cat >>confdefs.h <<\_ACEOF
37444 #define HAVE_UNIX98_PRINTF 1
37445 _ACEOF
37446
37447         fi
37448     fi
37449 fi
37450
37451 if test "$ac_cv_func_vsscanf" = "yes"; then
37452     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
37453 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
37454 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
37455   echo $ECHO_N "(cached) $ECHO_C" >&6
37456 else
37457
37458             cat >conftest.$ac_ext <<_ACEOF
37459 /* confdefs.h.  */
37460 _ACEOF
37461 cat confdefs.h >>conftest.$ac_ext
37462 cat >>conftest.$ac_ext <<_ACEOF
37463 /* end confdefs.h.  */
37464
37465                     #include <stdio.h>
37466                     #include <stdarg.h>
37467                     #ifdef __MSL__
37468                     #if __MSL__ >= 0x6000
37469                     namespace std {}
37470                     using namespace std;
37471                     #endif
37472                     #endif
37473
37474 int
37475 main ()
37476 {
37477
37478                     char *buf;
37479                     va_list args;
37480                     vsscanf(buf, "%s", args);
37481
37482   ;
37483   return 0;
37484 }
37485 _ACEOF
37486 rm -f conftest.$ac_objext
37487 if { (ac_try="$ac_compile"
37488 case "(($ac_try" in
37489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37490   *) ac_try_echo=$ac_try;;
37491 esac
37492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37493   (eval "$ac_compile") 2>conftest.er1
37494   ac_status=$?
37495   grep -v '^ *+' conftest.er1 >conftest.err
37496   rm -f conftest.er1
37497   cat conftest.err >&5
37498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37499   (exit $ac_status); } && {
37500          test -z "$ac_cxx_werror_flag" ||
37501          test ! -s conftest.err
37502        } && test -s conftest.$ac_objext; then
37503   wx_cv_func_vsscanf_decl=yes
37504 else
37505   echo "$as_me: failed program was:" >&5
37506 sed 's/^/| /' conftest.$ac_ext >&5
37507
37508         wx_cv_func_vsscanf_decl=no
37509
37510 fi
37511
37512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37513
37514
37515 fi
37516 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
37517 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
37518
37519     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
37520         cat >>confdefs.h <<\_ACEOF
37521 #define HAVE_VSSCANF_DECL 1
37522 _ACEOF
37523
37524     fi
37525 fi
37526 ac_ext=c
37527 ac_cpp='$CPP $CPPFLAGS'
37528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37531
37532
37533 if test "$wxUSE_UNICODE" = yes; then
37534
37535             wchar_headers="#include <stdio.h>
37536 #include <wchar.h>"
37537     case "${host}" in
37538         *-*-solaris2* )
37539
37540 for ac_header in widec.h
37541 do
37542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37546   echo $ECHO_N "(cached) $ECHO_C" >&6
37547 else
37548   cat >conftest.$ac_ext <<_ACEOF
37549 /* confdefs.h.  */
37550 _ACEOF
37551 cat confdefs.h >>conftest.$ac_ext
37552 cat >>conftest.$ac_ext <<_ACEOF
37553 /* end confdefs.h.  */
37554 $ac_includes_default
37555
37556 #include <$ac_header>
37557 _ACEOF
37558 rm -f conftest.$ac_objext
37559 if { (ac_try="$ac_compile"
37560 case "(($ac_try" in
37561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37562   *) ac_try_echo=$ac_try;;
37563 esac
37564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37565   (eval "$ac_compile") 2>conftest.er1
37566   ac_status=$?
37567   grep -v '^ *+' conftest.er1 >conftest.err
37568   rm -f conftest.er1
37569   cat conftest.err >&5
37570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37571   (exit $ac_status); } && {
37572          test -z "$ac_c_werror_flag" ||
37573          test ! -s conftest.err
37574        } && test -s conftest.$ac_objext; then
37575   eval "$as_ac_Header=yes"
37576 else
37577   echo "$as_me: failed program was:" >&5
37578 sed 's/^/| /' conftest.$ac_ext >&5
37579
37580         eval "$as_ac_Header=no"
37581 fi
37582
37583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37584 fi
37585 ac_res=`eval echo '${'$as_ac_Header'}'`
37586                { echo "$as_me:$LINENO: result: $ac_res" >&5
37587 echo "${ECHO_T}$ac_res" >&6; }
37588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37589   cat >>confdefs.h <<_ACEOF
37590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37591 _ACEOF
37592
37593 fi
37594
37595 done
37596
37597             if test "$ac_cv_header_widec_h" = "yes"; then
37598                 wchar_headers="$wchar_headers
37599 #include <widec.h>"
37600             fi
37601     esac
37602
37603
37604   for wx_func in putws fputws wprintf vswprintf vswscanf
37605   do
37606     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37607 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37608 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37609   echo $ECHO_N "(cached) $ECHO_C" >&6
37610 else
37611
37612         cat >conftest.$ac_ext <<_ACEOF
37613
37614             /* confdefs.h.  */
37615 _ACEOF
37616 cat confdefs.h >>conftest.$ac_ext
37617 cat >>conftest.$ac_ext <<_ACEOF
37618 /* end confdefs.h.  */
37619
37620                 $wchar_headers
37621                 $ac_includes_default
37622
37623 int
37624 main ()
37625 {
37626
37627                 #ifndef $wx_func
37628                   &$wx_func;
37629                 #endif
37630
37631
37632   ;
37633   return 0;
37634 }
37635
37636 _ACEOF
37637 rm -f conftest.$ac_objext conftest$ac_exeext
37638 if { (ac_try="$ac_link"
37639 case "(($ac_try" in
37640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37641   *) ac_try_echo=$ac_try;;
37642 esac
37643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37644   (eval "$ac_link") 2>conftest.er1
37645   ac_status=$?
37646   grep -v '^ *+' conftest.er1 >conftest.err
37647   rm -f conftest.er1
37648   cat conftest.err >&5
37649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650   (exit $ac_status); } && {
37651          test -z "$ac_c_werror_flag" ||
37652          test ! -s conftest.err
37653        } && test -s conftest$ac_exeext &&
37654        $as_test_x conftest$ac_exeext; then
37655   eval wx_cv_func_$wx_func=yes
37656 else
37657   echo "$as_me: failed program was:" >&5
37658 sed 's/^/| /' conftest.$ac_ext >&5
37659
37660         eval wx_cv_func_$wx_func=no
37661 fi
37662
37663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37664       conftest$ac_exeext conftest.$ac_ext
37665
37666 fi
37667 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37668                { echo "$as_me:$LINENO: result: $ac_res" >&5
37669 echo "${ECHO_T}$ac_res" >&6; }
37670
37671     if eval test \$wx_cv_func_$wx_func = yes
37672     then
37673       cat >>confdefs.h <<_ACEOF
37674 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37675 _ACEOF
37676
37677
37678     else
37679       :
37680
37681     fi
37682   done
37683
37684
37685                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
37686 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
37687     cat >conftest.$ac_ext <<_ACEOF
37688 /* confdefs.h.  */
37689 _ACEOF
37690 cat confdefs.h >>conftest.$ac_ext
37691 cat >>conftest.$ac_ext <<_ACEOF
37692 /* end confdefs.h.  */
37693 #include <wchar.h>
37694 int
37695 main ()
37696 {
37697 &_vsnwprintf;
37698   ;
37699   return 0;
37700 }
37701 _ACEOF
37702 rm -f conftest.$ac_objext
37703 if { (ac_try="$ac_compile"
37704 case "(($ac_try" in
37705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37706   *) ac_try_echo=$ac_try;;
37707 esac
37708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37709   (eval "$ac_compile") 2>conftest.er1
37710   ac_status=$?
37711   grep -v '^ *+' conftest.er1 >conftest.err
37712   rm -f conftest.er1
37713   cat conftest.err >&5
37714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37715   (exit $ac_status); } && {
37716          test -z "$ac_c_werror_flag" ||
37717          test ! -s conftest.err
37718        } && test -s conftest.$ac_objext; then
37719   { echo "$as_me:$LINENO: result: yes" >&5
37720 echo "${ECHO_T}yes" >&6; }
37721                     cat >>confdefs.h <<\_ACEOF
37722 #define HAVE__VSNWPRINTF 1
37723 _ACEOF
37724
37725 else
37726   echo "$as_me: failed program was:" >&5
37727 sed 's/^/| /' conftest.$ac_ext >&5
37728
37729         { echo "$as_me:$LINENO: result: no" >&5
37730 echo "${ECHO_T}no" >&6; }
37731 fi
37732
37733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
37734 fi
37735
37736 if test "$wxUSE_FILE" = "yes"; then
37737
37738   for wx_func in fsync
37739   do
37740     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37741 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37742 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37743   echo $ECHO_N "(cached) $ECHO_C" >&6
37744 else
37745
37746         cat >conftest.$ac_ext <<_ACEOF
37747
37748             /* confdefs.h.  */
37749 _ACEOF
37750 cat confdefs.h >>conftest.$ac_ext
37751 cat >>conftest.$ac_ext <<_ACEOF
37752 /* end confdefs.h.  */
37753
37754
37755                 $ac_includes_default
37756
37757 int
37758 main ()
37759 {
37760
37761                 #ifndef $wx_func
37762                   &$wx_func;
37763                 #endif
37764
37765
37766   ;
37767   return 0;
37768 }
37769
37770 _ACEOF
37771 rm -f conftest.$ac_objext conftest$ac_exeext
37772 if { (ac_try="$ac_link"
37773 case "(($ac_try" in
37774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37775   *) ac_try_echo=$ac_try;;
37776 esac
37777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37778   (eval "$ac_link") 2>conftest.er1
37779   ac_status=$?
37780   grep -v '^ *+' conftest.er1 >conftest.err
37781   rm -f conftest.er1
37782   cat conftest.err >&5
37783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37784   (exit $ac_status); } && {
37785          test -z "$ac_c_werror_flag" ||
37786          test ! -s conftest.err
37787        } && test -s conftest$ac_exeext &&
37788        $as_test_x conftest$ac_exeext; then
37789   eval wx_cv_func_$wx_func=yes
37790 else
37791   echo "$as_me: failed program was:" >&5
37792 sed 's/^/| /' conftest.$ac_ext >&5
37793
37794         eval wx_cv_func_$wx_func=no
37795 fi
37796
37797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37798       conftest$ac_exeext conftest.$ac_ext
37799
37800 fi
37801 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37802                { echo "$as_me:$LINENO: result: $ac_res" >&5
37803 echo "${ECHO_T}$ac_res" >&6; }
37804
37805     if eval test \$wx_cv_func_$wx_func = yes
37806     then
37807       cat >>confdefs.h <<_ACEOF
37808 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37809 _ACEOF
37810
37811
37812     else
37813       :
37814
37815     fi
37816   done
37817
37818 fi
37819
37820 ac_ext=cpp
37821 ac_cpp='$CXXCPP $CPPFLAGS'
37822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37825
37826
37827   for wx_func in round
37828   do
37829     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37830 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37831 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37832   echo $ECHO_N "(cached) $ECHO_C" >&6
37833 else
37834
37835         cat >conftest.$ac_ext <<_ACEOF
37836
37837             /* confdefs.h.  */
37838 _ACEOF
37839 cat confdefs.h >>conftest.$ac_ext
37840 cat >>conftest.$ac_ext <<_ACEOF
37841 /* end confdefs.h.  */
37842
37843                 #include <math.h>
37844                 $ac_includes_default
37845
37846 int
37847 main ()
37848 {
37849
37850                 #ifndef $wx_func
37851                   &$wx_func;
37852                 #endif
37853
37854
37855   ;
37856   return 0;
37857 }
37858
37859 _ACEOF
37860 rm -f conftest.$ac_objext conftest$ac_exeext
37861 if { (ac_try="$ac_link"
37862 case "(($ac_try" in
37863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37864   *) ac_try_echo=$ac_try;;
37865 esac
37866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37867   (eval "$ac_link") 2>conftest.er1
37868   ac_status=$?
37869   grep -v '^ *+' conftest.er1 >conftest.err
37870   rm -f conftest.er1
37871   cat conftest.err >&5
37872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37873   (exit $ac_status); } && {
37874          test -z "$ac_cxx_werror_flag" ||
37875          test ! -s conftest.err
37876        } && test -s conftest$ac_exeext &&
37877        $as_test_x conftest$ac_exeext; then
37878   eval wx_cv_func_$wx_func=yes
37879 else
37880   echo "$as_me: failed program was:" >&5
37881 sed 's/^/| /' conftest.$ac_ext >&5
37882
37883         eval wx_cv_func_$wx_func=no
37884 fi
37885
37886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37887       conftest$ac_exeext conftest.$ac_ext
37888
37889 fi
37890 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37891                { echo "$as_me:$LINENO: result: $ac_res" >&5
37892 echo "${ECHO_T}$ac_res" >&6; }
37893
37894     if eval test \$wx_cv_func_$wx_func = yes
37895     then
37896       cat >>confdefs.h <<_ACEOF
37897 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37898 _ACEOF
37899
37900
37901     else
37902       :
37903
37904     fi
37905   done
37906
37907 ac_ext=c
37908 ac_cpp='$CPP $CPPFLAGS'
37909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37912
37913
37914 if test "$TOOLKIT" != "MSW"; then
37915
37916 if test "$wxUSE_LIBICONV" != "no" ; then
37917
37918
37919
37920 # Check whether --with-libiconv-prefix was given.
37921 if test "${with_libiconv_prefix+set}" = set; then
37922   withval=$with_libiconv_prefix;
37923     for dir in `echo "$withval" | tr : ' '`; do
37924       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
37925       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
37926     done
37927
37928 fi
37929
37930
37931   { echo "$as_me:$LINENO: checking for iconv" >&5
37932 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
37933 if test "${am_cv_func_iconv+set}" = set; then
37934   echo $ECHO_N "(cached) $ECHO_C" >&6
37935 else
37936
37937     am_cv_func_iconv="no, consider installing GNU libiconv"
37938     am_cv_lib_iconv=no
37939     cat >conftest.$ac_ext <<_ACEOF
37940 /* confdefs.h.  */
37941 _ACEOF
37942 cat confdefs.h >>conftest.$ac_ext
37943 cat >>conftest.$ac_ext <<_ACEOF
37944 /* end confdefs.h.  */
37945 #include <stdlib.h>
37946 #include <iconv.h>
37947 int
37948 main ()
37949 {
37950 iconv_t cd = iconv_open("","");
37951        iconv(cd,NULL,NULL,NULL,NULL);
37952        iconv_close(cd);
37953   ;
37954   return 0;
37955 }
37956 _ACEOF
37957 rm -f conftest.$ac_objext conftest$ac_exeext
37958 if { (ac_try="$ac_link"
37959 case "(($ac_try" in
37960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37961   *) ac_try_echo=$ac_try;;
37962 esac
37963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37964   (eval "$ac_link") 2>conftest.er1
37965   ac_status=$?
37966   grep -v '^ *+' conftest.er1 >conftest.err
37967   rm -f conftest.er1
37968   cat conftest.err >&5
37969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37970   (exit $ac_status); } && {
37971          test -z "$ac_c_werror_flag" ||
37972          test ! -s conftest.err
37973        } && test -s conftest$ac_exeext &&
37974        $as_test_x conftest$ac_exeext; then
37975   am_cv_func_iconv=yes
37976 else
37977   echo "$as_me: failed program was:" >&5
37978 sed 's/^/| /' conftest.$ac_ext >&5
37979
37980
37981 fi
37982
37983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37984       conftest$ac_exeext conftest.$ac_ext
37985     if test "$am_cv_func_iconv" != yes; then
37986       am_save_LIBS="$LIBS"
37987       LIBS="$LIBS -liconv"
37988       cat >conftest.$ac_ext <<_ACEOF
37989 /* confdefs.h.  */
37990 _ACEOF
37991 cat confdefs.h >>conftest.$ac_ext
37992 cat >>conftest.$ac_ext <<_ACEOF
37993 /* end confdefs.h.  */
37994 #include <stdlib.h>
37995 #include <iconv.h>
37996 int
37997 main ()
37998 {
37999 iconv_t cd = iconv_open("","");
38000          iconv(cd,NULL,NULL,NULL,NULL);
38001          iconv_close(cd);
38002   ;
38003   return 0;
38004 }
38005 _ACEOF
38006 rm -f conftest.$ac_objext conftest$ac_exeext
38007 if { (ac_try="$ac_link"
38008 case "(($ac_try" in
38009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38010   *) ac_try_echo=$ac_try;;
38011 esac
38012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38013   (eval "$ac_link") 2>conftest.er1
38014   ac_status=$?
38015   grep -v '^ *+' conftest.er1 >conftest.err
38016   rm -f conftest.er1
38017   cat conftest.err >&5
38018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38019   (exit $ac_status); } && {
38020          test -z "$ac_c_werror_flag" ||
38021          test ! -s conftest.err
38022        } && test -s conftest$ac_exeext &&
38023        $as_test_x conftest$ac_exeext; then
38024   am_cv_lib_iconv=yes
38025         am_cv_func_iconv=yes
38026 else
38027   echo "$as_me: failed program was:" >&5
38028 sed 's/^/| /' conftest.$ac_ext >&5
38029
38030
38031 fi
38032
38033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38034       conftest$ac_exeext conftest.$ac_ext
38035       LIBS="$am_save_LIBS"
38036     fi
38037
38038 fi
38039 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38040 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
38041   if test "$am_cv_func_iconv" = yes; then
38042
38043 cat >>confdefs.h <<\_ACEOF
38044 #define HAVE_ICONV 1
38045 _ACEOF
38046
38047     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
38048 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
38049 if test "${wx_cv_func_iconv_const+set}" = set; then
38050   echo $ECHO_N "(cached) $ECHO_C" >&6
38051 else
38052   cat >conftest.$ac_ext <<_ACEOF
38053 /* confdefs.h.  */
38054 _ACEOF
38055 cat confdefs.h >>conftest.$ac_ext
38056 cat >>conftest.$ac_ext <<_ACEOF
38057 /* end confdefs.h.  */
38058
38059 #include <stdlib.h>
38060 #include <iconv.h>
38061 extern
38062 #ifdef __cplusplus
38063 "C"
38064 #endif
38065 #if defined(__STDC__) || defined(__cplusplus)
38066 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
38067 #else
38068 size_t iconv();
38069 #endif
38070
38071 int
38072 main ()
38073 {
38074
38075   ;
38076   return 0;
38077 }
38078 _ACEOF
38079 rm -f conftest.$ac_objext
38080 if { (ac_try="$ac_compile"
38081 case "(($ac_try" in
38082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38083   *) ac_try_echo=$ac_try;;
38084 esac
38085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38086   (eval "$ac_compile") 2>conftest.er1
38087   ac_status=$?
38088   grep -v '^ *+' conftest.er1 >conftest.err
38089   rm -f conftest.er1
38090   cat conftest.err >&5
38091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38092   (exit $ac_status); } && {
38093          test -z "$ac_c_werror_flag" ||
38094          test ! -s conftest.err
38095        } && test -s conftest.$ac_objext; then
38096   wx_cv_func_iconv_const="no"
38097 else
38098   echo "$as_me: failed program was:" >&5
38099 sed 's/^/| /' conftest.$ac_ext >&5
38100
38101         wx_cv_func_iconv_const="yes"
38102
38103 fi
38104
38105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38106
38107 fi
38108 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
38109 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
38110
38111     iconv_const=
38112     if test "x$wx_cv_func_iconv_const" = "xyes"; then
38113         iconv_const="const"
38114     fi
38115
38116
38117 cat >>confdefs.h <<_ACEOF
38118 #define ICONV_CONST $iconv_const
38119 _ACEOF
38120
38121   fi
38122   LIBICONV=
38123   if test "$am_cv_lib_iconv" = yes; then
38124     LIBICONV="-liconv"
38125   fi
38126
38127
38128     LIBS="$LIBICONV $LIBS"
38129 fi
38130
38131 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38132
38133 for ac_func in sigaction
38134 do
38135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38139   echo $ECHO_N "(cached) $ECHO_C" >&6
38140 else
38141   cat >conftest.$ac_ext <<_ACEOF
38142 /* confdefs.h.  */
38143 _ACEOF
38144 cat confdefs.h >>conftest.$ac_ext
38145 cat >>conftest.$ac_ext <<_ACEOF
38146 /* end confdefs.h.  */
38147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38149 #define $ac_func innocuous_$ac_func
38150
38151 /* System header to define __stub macros and hopefully few prototypes,
38152     which can conflict with char $ac_func (); below.
38153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38154     <limits.h> exists even on freestanding compilers.  */
38155
38156 #ifdef __STDC__
38157 # include <limits.h>
38158 #else
38159 # include <assert.h>
38160 #endif
38161
38162 #undef $ac_func
38163
38164 /* Override any GCC internal prototype to avoid an error.
38165    Use char because int might match the return type of a GCC
38166    builtin and then its argument prototype would still apply.  */
38167 #ifdef __cplusplus
38168 extern "C"
38169 #endif
38170 char $ac_func ();
38171 /* The GNU C library defines this for functions which it implements
38172     to always fail with ENOSYS.  Some functions are actually named
38173     something starting with __ and the normal name is an alias.  */
38174 #if defined __stub_$ac_func || defined __stub___$ac_func
38175 choke me
38176 #endif
38177
38178 int
38179 main ()
38180 {
38181 return $ac_func ();
38182   ;
38183   return 0;
38184 }
38185 _ACEOF
38186 rm -f conftest.$ac_objext conftest$ac_exeext
38187 if { (ac_try="$ac_link"
38188 case "(($ac_try" in
38189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38190   *) ac_try_echo=$ac_try;;
38191 esac
38192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38193   (eval "$ac_link") 2>conftest.er1
38194   ac_status=$?
38195   grep -v '^ *+' conftest.er1 >conftest.err
38196   rm -f conftest.er1
38197   cat conftest.err >&5
38198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199   (exit $ac_status); } && {
38200          test -z "$ac_c_werror_flag" ||
38201          test ! -s conftest.err
38202        } && test -s conftest$ac_exeext &&
38203        $as_test_x conftest$ac_exeext; then
38204   eval "$as_ac_var=yes"
38205 else
38206   echo "$as_me: failed program was:" >&5
38207 sed 's/^/| /' conftest.$ac_ext >&5
38208
38209         eval "$as_ac_var=no"
38210 fi
38211
38212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38213       conftest$ac_exeext conftest.$ac_ext
38214 fi
38215 ac_res=`eval echo '${'$as_ac_var'}'`
38216                { echo "$as_me:$LINENO: result: $ac_res" >&5
38217 echo "${ECHO_T}$ac_res" >&6; }
38218 if test `eval echo '${'$as_ac_var'}'` = yes; then
38219   cat >>confdefs.h <<_ACEOF
38220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38221 _ACEOF
38222
38223 fi
38224 done
38225
38226
38227     if test "$ac_cv_func_sigaction" = "no"; then
38228         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
38229 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
38230         wxUSE_ON_FATAL_EXCEPTION=no
38231     fi
38232
38233     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38234       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
38235 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
38236 if test "${wx_cv_type_sa_handler+set}" = set; then
38237   echo $ECHO_N "(cached) $ECHO_C" >&6
38238 else
38239
38240                 ac_ext=cpp
38241 ac_cpp='$CXXCPP $CPPFLAGS'
38242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38245
38246         cat >conftest.$ac_ext <<_ACEOF
38247 /* confdefs.h.  */
38248 _ACEOF
38249 cat confdefs.h >>conftest.$ac_ext
38250 cat >>conftest.$ac_ext <<_ACEOF
38251 /* end confdefs.h.  */
38252 #include <signal.h>
38253 int
38254 main ()
38255 {
38256
38257                         extern void testSigHandler(int);
38258
38259                         struct sigaction sa;
38260                         sa.sa_handler = testSigHandler;
38261
38262   ;
38263   return 0;
38264 }
38265 _ACEOF
38266 rm -f conftest.$ac_objext
38267 if { (ac_try="$ac_compile"
38268 case "(($ac_try" in
38269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38270   *) ac_try_echo=$ac_try;;
38271 esac
38272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38273   (eval "$ac_compile") 2>conftest.er1
38274   ac_status=$?
38275   grep -v '^ *+' conftest.er1 >conftest.err
38276   rm -f conftest.er1
38277   cat conftest.err >&5
38278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38279   (exit $ac_status); } && {
38280          test -z "$ac_cxx_werror_flag" ||
38281          test ! -s conftest.err
38282        } && test -s conftest.$ac_objext; then
38283
38284                         wx_cv_type_sa_handler=int
38285
38286 else
38287   echo "$as_me: failed program was:" >&5
38288 sed 's/^/| /' conftest.$ac_ext >&5
38289
38290
38291                         wx_cv_type_sa_handler=void
38292
38293 fi
38294
38295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38296         ac_ext=c
38297 ac_cpp='$CPP $CPPFLAGS'
38298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38301
38302
38303 fi
38304 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
38305 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
38306
38307       cat >>confdefs.h <<_ACEOF
38308 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
38309 _ACEOF
38310
38311     fi
38312 fi
38313
38314 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38315     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
38316 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
38317 if test "${wx_cv_func_backtrace+set}" = set; then
38318   echo $ECHO_N "(cached) $ECHO_C" >&6
38319 else
38320
38321             ac_ext=cpp
38322 ac_cpp='$CXXCPP $CPPFLAGS'
38323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38326
38327             cat >conftest.$ac_ext <<_ACEOF
38328 /* confdefs.h.  */
38329 _ACEOF
38330 cat confdefs.h >>conftest.$ac_ext
38331 cat >>conftest.$ac_ext <<_ACEOF
38332 /* end confdefs.h.  */
38333 #include <execinfo.h>
38334 int
38335 main ()
38336 {
38337
38338                     void *trace[1];
38339                     char **messages;
38340
38341                     backtrace(trace, 1);
38342                     messages = backtrace_symbols(trace, 1);
38343
38344   ;
38345   return 0;
38346 }
38347 _ACEOF
38348 rm -f conftest.$ac_objext
38349 if { (ac_try="$ac_compile"
38350 case "(($ac_try" in
38351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38352   *) ac_try_echo=$ac_try;;
38353 esac
38354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38355   (eval "$ac_compile") 2>conftest.er1
38356   ac_status=$?
38357   grep -v '^ *+' conftest.er1 >conftest.err
38358   rm -f conftest.er1
38359   cat conftest.err >&5
38360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38361   (exit $ac_status); } && {
38362          test -z "$ac_cxx_werror_flag" ||
38363          test ! -s conftest.err
38364        } && test -s conftest.$ac_objext; then
38365   wx_cv_func_backtrace=yes
38366 else
38367   echo "$as_me: failed program was:" >&5
38368 sed 's/^/| /' conftest.$ac_ext >&5
38369
38370         wx_cv_func_backtrace=no
38371
38372 fi
38373
38374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38375             ac_ext=c
38376 ac_cpp='$CPP $CPPFLAGS'
38377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38380
38381
38382
38383 fi
38384 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
38385 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
38386
38387
38388     if test "$wx_cv_func_backtrace" = "no"; then
38389         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
38390 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
38391         wxUSE_STACKWALKER=no
38392     else
38393         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
38394 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
38395 if test "${wx_cv_func_cxa_demangle+set}" = set; then
38396   echo $ECHO_N "(cached) $ECHO_C" >&6
38397 else
38398
38399                 ac_ext=cpp
38400 ac_cpp='$CXXCPP $CPPFLAGS'
38401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38404
38405                 cat >conftest.$ac_ext <<_ACEOF
38406 /* confdefs.h.  */
38407 _ACEOF
38408 cat confdefs.h >>conftest.$ac_ext
38409 cat >>conftest.$ac_ext <<_ACEOF
38410 /* end confdefs.h.  */
38411 #include <cxxabi.h>
38412 int
38413 main ()
38414 {
38415
38416                         int rc;
38417                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
38418
38419   ;
38420   return 0;
38421 }
38422 _ACEOF
38423 rm -f conftest.$ac_objext conftest$ac_exeext
38424 if { (ac_try="$ac_link"
38425 case "(($ac_try" in
38426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38427   *) ac_try_echo=$ac_try;;
38428 esac
38429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38430   (eval "$ac_link") 2>conftest.er1
38431   ac_status=$?
38432   grep -v '^ *+' conftest.er1 >conftest.err
38433   rm -f conftest.er1
38434   cat conftest.err >&5
38435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38436   (exit $ac_status); } && {
38437          test -z "$ac_cxx_werror_flag" ||
38438          test ! -s conftest.err
38439        } && test -s conftest$ac_exeext &&
38440        $as_test_x conftest$ac_exeext; then
38441   wx_cv_func_cxa_demangle=yes
38442 else
38443   echo "$as_me: failed program was:" >&5
38444 sed 's/^/| /' conftest.$ac_ext >&5
38445
38446         wx_cv_func_cxa_demangle=no
38447
38448 fi
38449
38450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38451       conftest$ac_exeext conftest.$ac_ext
38452                 ac_ext=c
38453 ac_cpp='$CPP $CPPFLAGS'
38454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38457
38458
38459
38460 fi
38461 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
38462 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
38463
38464         if test "$wx_cv_func_cxa_demangle" = "yes"; then
38465             cat >>confdefs.h <<\_ACEOF
38466 #define HAVE_CXA_DEMANGLE 1
38467 _ACEOF
38468
38469         fi
38470     fi
38471 fi
38472
38473 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
38474     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
38475 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
38476     wxUSE_STACKWALKER=no
38477 fi
38478
38479
38480
38481
38482 for ac_func in mkstemp mktemp
38483 do
38484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38488   echo $ECHO_N "(cached) $ECHO_C" >&6
38489 else
38490   cat >conftest.$ac_ext <<_ACEOF
38491 /* confdefs.h.  */
38492 _ACEOF
38493 cat confdefs.h >>conftest.$ac_ext
38494 cat >>conftest.$ac_ext <<_ACEOF
38495 /* end confdefs.h.  */
38496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38498 #define $ac_func innocuous_$ac_func
38499
38500 /* System header to define __stub macros and hopefully few prototypes,
38501     which can conflict with char $ac_func (); below.
38502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38503     <limits.h> exists even on freestanding compilers.  */
38504
38505 #ifdef __STDC__
38506 # include <limits.h>
38507 #else
38508 # include <assert.h>
38509 #endif
38510
38511 #undef $ac_func
38512
38513 /* Override any GCC internal prototype to avoid an error.
38514    Use char because int might match the return type of a GCC
38515    builtin and then its argument prototype would still apply.  */
38516 #ifdef __cplusplus
38517 extern "C"
38518 #endif
38519 char $ac_func ();
38520 /* The GNU C library defines this for functions which it implements
38521     to always fail with ENOSYS.  Some functions are actually named
38522     something starting with __ and the normal name is an alias.  */
38523 #if defined __stub_$ac_func || defined __stub___$ac_func
38524 choke me
38525 #endif
38526
38527 int
38528 main ()
38529 {
38530 return $ac_func ();
38531   ;
38532   return 0;
38533 }
38534 _ACEOF
38535 rm -f conftest.$ac_objext conftest$ac_exeext
38536 if { (ac_try="$ac_link"
38537 case "(($ac_try" in
38538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38539   *) ac_try_echo=$ac_try;;
38540 esac
38541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38542   (eval "$ac_link") 2>conftest.er1
38543   ac_status=$?
38544   grep -v '^ *+' conftest.er1 >conftest.err
38545   rm -f conftest.er1
38546   cat conftest.err >&5
38547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38548   (exit $ac_status); } && {
38549          test -z "$ac_c_werror_flag" ||
38550          test ! -s conftest.err
38551        } && test -s conftest$ac_exeext &&
38552        $as_test_x conftest$ac_exeext; then
38553   eval "$as_ac_var=yes"
38554 else
38555   echo "$as_me: failed program was:" >&5
38556 sed 's/^/| /' conftest.$ac_ext >&5
38557
38558         eval "$as_ac_var=no"
38559 fi
38560
38561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38562       conftest$ac_exeext conftest.$ac_ext
38563 fi
38564 ac_res=`eval echo '${'$as_ac_var'}'`
38565                { echo "$as_me:$LINENO: result: $ac_res" >&5
38566 echo "${ECHO_T}$ac_res" >&6; }
38567 if test `eval echo '${'$as_ac_var'}'` = yes; then
38568   cat >>confdefs.h <<_ACEOF
38569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38570 _ACEOF
38571  break
38572 fi
38573 done
38574
38575
38576 { echo "$as_me:$LINENO: checking for statfs" >&5
38577 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
38578 if test "${wx_cv_func_statfs+set}" = set; then
38579   echo $ECHO_N "(cached) $ECHO_C" >&6
38580 else
38581   cat >conftest.$ac_ext <<_ACEOF
38582 /* confdefs.h.  */
38583 _ACEOF
38584 cat confdefs.h >>conftest.$ac_ext
38585 cat >>conftest.$ac_ext <<_ACEOF
38586 /* end confdefs.h.  */
38587
38588              #if defined(__BSD__)
38589              #include <sys/param.h>
38590              #include <sys/mount.h>
38591              #else
38592              #include <sys/vfs.h>
38593              #endif
38594
38595 int
38596 main ()
38597 {
38598
38599              long l;
38600              struct statfs fs;
38601              statfs("/", &fs);
38602              l = fs.f_bsize;
38603              l += fs.f_blocks;
38604              l += fs.f_bavail;
38605
38606   ;
38607   return 0;
38608 }
38609 _ACEOF
38610 rm -f conftest.$ac_objext
38611 if { (ac_try="$ac_compile"
38612 case "(($ac_try" in
38613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38614   *) ac_try_echo=$ac_try;;
38615 esac
38616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38617   (eval "$ac_compile") 2>conftest.er1
38618   ac_status=$?
38619   grep -v '^ *+' conftest.er1 >conftest.err
38620   rm -f conftest.er1
38621   cat conftest.err >&5
38622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623   (exit $ac_status); } && {
38624          test -z "$ac_c_werror_flag" ||
38625          test ! -s conftest.err
38626        } && test -s conftest.$ac_objext; then
38627   wx_cv_func_statfs=yes
38628 else
38629   echo "$as_me: failed program was:" >&5
38630 sed 's/^/| /' conftest.$ac_ext >&5
38631
38632         wx_cv_func_statfs=no
38633
38634 fi
38635
38636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38637
38638 fi
38639 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
38640 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
38641
38642 if test "$wx_cv_func_statfs" = "yes"; then
38643         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
38644 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
38645 if test "${wx_cv_func_statfs_decl+set}" = set; then
38646   echo $ECHO_N "(cached) $ECHO_C" >&6
38647 else
38648   ac_ext=cpp
38649 ac_cpp='$CXXCPP $CPPFLAGS'
38650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38653
38654         cat >conftest.$ac_ext <<_ACEOF
38655 /* confdefs.h.  */
38656 _ACEOF
38657 cat confdefs.h >>conftest.$ac_ext
38658 cat >>conftest.$ac_ext <<_ACEOF
38659 /* end confdefs.h.  */
38660
38661                  #if defined(__BSD__)
38662                  #include <sys/param.h>
38663                  #include <sys/mount.h>
38664                  #else
38665                  #include <sys/vfs.h>
38666                  #endif
38667
38668 int
38669 main ()
38670 {
38671
38672                 struct statfs fs;
38673                 statfs("", &fs);
38674
38675   ;
38676   return 0;
38677 }
38678 _ACEOF
38679 rm -f conftest.$ac_objext
38680 if { (ac_try="$ac_compile"
38681 case "(($ac_try" in
38682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38683   *) ac_try_echo=$ac_try;;
38684 esac
38685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38686   (eval "$ac_compile") 2>conftest.er1
38687   ac_status=$?
38688   grep -v '^ *+' conftest.er1 >conftest.err
38689   rm -f conftest.er1
38690   cat conftest.err >&5
38691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38692   (exit $ac_status); } && {
38693          test -z "$ac_cxx_werror_flag" ||
38694          test ! -s conftest.err
38695        } && test -s conftest.$ac_objext; then
38696   wx_cv_func_statfs_decl=yes
38697 else
38698   echo "$as_me: failed program was:" >&5
38699 sed 's/^/| /' conftest.$ac_ext >&5
38700
38701         wx_cv_func_statfs_decl=no
38702
38703 fi
38704
38705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38706         ac_ext=c
38707 ac_cpp='$CPP $CPPFLAGS'
38708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38711
38712
38713 fi
38714 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
38715 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
38716
38717     if test "$wx_cv_func_statfs_decl" = "yes"; then
38718         cat >>confdefs.h <<\_ACEOF
38719 #define HAVE_STATFS_DECL 1
38720 _ACEOF
38721
38722     fi
38723
38724     wx_cv_type_statvfs_t="struct statfs"
38725     cat >>confdefs.h <<\_ACEOF
38726 #define HAVE_STATFS 1
38727 _ACEOF
38728
38729 else
38730     { echo "$as_me:$LINENO: checking for statvfs" >&5
38731 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
38732 if test "${wx_cv_func_statvfs+set}" = set; then
38733   echo $ECHO_N "(cached) $ECHO_C" >&6
38734 else
38735   cat >conftest.$ac_ext <<_ACEOF
38736 /* confdefs.h.  */
38737 _ACEOF
38738 cat confdefs.h >>conftest.$ac_ext
38739 cat >>conftest.$ac_ext <<_ACEOF
38740 /* end confdefs.h.  */
38741
38742                 #include <stddef.h>
38743                 #include <sys/statvfs.h>
38744
38745 int
38746 main ()
38747 {
38748
38749                 statvfs("/", NULL);
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_c_werror_flag" ||
38770          test ! -s conftest.err
38771        } && test -s conftest.$ac_objext; then
38772   wx_cv_func_statvfs=yes
38773 else
38774   echo "$as_me: failed program was:" >&5
38775 sed 's/^/| /' conftest.$ac_ext >&5
38776
38777         wx_cv_func_statvfs=no
38778
38779 fi
38780
38781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38782
38783 fi
38784 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
38785 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
38786
38787     if test "$wx_cv_func_statvfs" = "yes"; then
38788                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
38789 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
38790 if test "${wx_cv_type_statvfs_t+set}" = set; then
38791   echo $ECHO_N "(cached) $ECHO_C" >&6
38792 else
38793   ac_ext=cpp
38794 ac_cpp='$CXXCPP $CPPFLAGS'
38795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38798
38799             cat >conftest.$ac_ext <<_ACEOF
38800 /* confdefs.h.  */
38801 _ACEOF
38802 cat confdefs.h >>conftest.$ac_ext
38803 cat >>conftest.$ac_ext <<_ACEOF
38804 /* end confdefs.h.  */
38805
38806                     #include <sys/statvfs.h>
38807
38808 int
38809 main ()
38810 {
38811
38812                     long l;
38813                     statvfs_t fs;
38814                     statvfs("/", &fs);
38815                     l = fs.f_bsize;
38816                     l += fs.f_blocks;
38817                     l += fs.f_bavail;
38818
38819   ;
38820   return 0;
38821 }
38822 _ACEOF
38823 rm -f conftest.$ac_objext
38824 if { (ac_try="$ac_compile"
38825 case "(($ac_try" in
38826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38827   *) ac_try_echo=$ac_try;;
38828 esac
38829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38830   (eval "$ac_compile") 2>conftest.er1
38831   ac_status=$?
38832   grep -v '^ *+' conftest.er1 >conftest.err
38833   rm -f conftest.er1
38834   cat conftest.err >&5
38835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38836   (exit $ac_status); } && {
38837          test -z "$ac_cxx_werror_flag" ||
38838          test ! -s conftest.err
38839        } && test -s conftest.$ac_objext; then
38840   wx_cv_type_statvfs_t=statvfs_t
38841 else
38842   echo "$as_me: failed program was:" >&5
38843 sed 's/^/| /' conftest.$ac_ext >&5
38844
38845
38846                     cat >conftest.$ac_ext <<_ACEOF
38847 /* confdefs.h.  */
38848 _ACEOF
38849 cat confdefs.h >>conftest.$ac_ext
38850 cat >>conftest.$ac_ext <<_ACEOF
38851 /* end confdefs.h.  */
38852
38853                             #include <sys/statvfs.h>
38854
38855 int
38856 main ()
38857 {
38858
38859                             long l;
38860                             struct statvfs fs;
38861                             statvfs("/", &fs);
38862                             l = fs.f_bsize;
38863                             l += fs.f_blocks;
38864                             l += fs.f_bavail;
38865
38866   ;
38867   return 0;
38868 }
38869 _ACEOF
38870 rm -f conftest.$ac_objext
38871 if { (ac_try="$ac_compile"
38872 case "(($ac_try" in
38873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38874   *) ac_try_echo=$ac_try;;
38875 esac
38876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38877   (eval "$ac_compile") 2>conftest.er1
38878   ac_status=$?
38879   grep -v '^ *+' conftest.er1 >conftest.err
38880   rm -f conftest.er1
38881   cat conftest.err >&5
38882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883   (exit $ac_status); } && {
38884          test -z "$ac_cxx_werror_flag" ||
38885          test ! -s conftest.err
38886        } && test -s conftest.$ac_objext; then
38887   wx_cv_type_statvfs_t="struct statvfs"
38888 else
38889   echo "$as_me: failed program was:" >&5
38890 sed 's/^/| /' conftest.$ac_ext >&5
38891
38892         wx_cv_type_statvfs_t="unknown"
38893
38894 fi
38895
38896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38897
38898
38899 fi
38900
38901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38902             ac_ext=c
38903 ac_cpp='$CPP $CPPFLAGS'
38904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38907
38908
38909 fi
38910 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
38911 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
38912
38913         if test "$wx_cv_type_statvfs_t" != "unknown"; then
38914             cat >>confdefs.h <<\_ACEOF
38915 #define HAVE_STATVFS 1
38916 _ACEOF
38917
38918         fi
38919     else
38920                 wx_cv_type_statvfs_t="unknown"
38921     fi
38922 fi
38923
38924 if test "$wx_cv_type_statvfs_t" != "unknown"; then
38925     cat >>confdefs.h <<_ACEOF
38926 #define WX_STATFS_T $wx_cv_type_statvfs_t
38927 _ACEOF
38928
38929 else
38930     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
38931 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
38932 fi
38933
38934 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38935
38936
38937 for ac_func in fcntl flock
38938 do
38939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38943   echo $ECHO_N "(cached) $ECHO_C" >&6
38944 else
38945   cat >conftest.$ac_ext <<_ACEOF
38946 /* confdefs.h.  */
38947 _ACEOF
38948 cat confdefs.h >>conftest.$ac_ext
38949 cat >>conftest.$ac_ext <<_ACEOF
38950 /* end confdefs.h.  */
38951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38953 #define $ac_func innocuous_$ac_func
38954
38955 /* System header to define __stub macros and hopefully few prototypes,
38956     which can conflict with char $ac_func (); below.
38957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38958     <limits.h> exists even on freestanding compilers.  */
38959
38960 #ifdef __STDC__
38961 # include <limits.h>
38962 #else
38963 # include <assert.h>
38964 #endif
38965
38966 #undef $ac_func
38967
38968 /* Override any GCC internal prototype to avoid an error.
38969    Use char because int might match the return type of a GCC
38970    builtin and then its argument prototype would still apply.  */
38971 #ifdef __cplusplus
38972 extern "C"
38973 #endif
38974 char $ac_func ();
38975 /* The GNU C library defines this for functions which it implements
38976     to always fail with ENOSYS.  Some functions are actually named
38977     something starting with __ and the normal name is an alias.  */
38978 #if defined __stub_$ac_func || defined __stub___$ac_func
38979 choke me
38980 #endif
38981
38982 int
38983 main ()
38984 {
38985 return $ac_func ();
38986   ;
38987   return 0;
38988 }
38989 _ACEOF
38990 rm -f conftest.$ac_objext conftest$ac_exeext
38991 if { (ac_try="$ac_link"
38992 case "(($ac_try" in
38993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38994   *) ac_try_echo=$ac_try;;
38995 esac
38996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38997   (eval "$ac_link") 2>conftest.er1
38998   ac_status=$?
38999   grep -v '^ *+' conftest.er1 >conftest.err
39000   rm -f conftest.er1
39001   cat conftest.err >&5
39002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39003   (exit $ac_status); } && {
39004          test -z "$ac_c_werror_flag" ||
39005          test ! -s conftest.err
39006        } && test -s conftest$ac_exeext &&
39007        $as_test_x conftest$ac_exeext; then
39008   eval "$as_ac_var=yes"
39009 else
39010   echo "$as_me: failed program was:" >&5
39011 sed 's/^/| /' conftest.$ac_ext >&5
39012
39013         eval "$as_ac_var=no"
39014 fi
39015
39016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39017       conftest$ac_exeext conftest.$ac_ext
39018 fi
39019 ac_res=`eval echo '${'$as_ac_var'}'`
39020                { echo "$as_me:$LINENO: result: $ac_res" >&5
39021 echo "${ECHO_T}$ac_res" >&6; }
39022 if test `eval echo '${'$as_ac_var'}'` = yes; then
39023   cat >>confdefs.h <<_ACEOF
39024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39025 _ACEOF
39026  break
39027 fi
39028 done
39029
39030
39031     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
39032         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
39033 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
39034         wxUSE_SNGLINST_CHECKER=no
39035     fi
39036 fi
39037
39038
39039
39040 for ac_func in setenv putenv
39041 do
39042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39046   echo $ECHO_N "(cached) $ECHO_C" >&6
39047 else
39048   cat >conftest.$ac_ext <<_ACEOF
39049 /* confdefs.h.  */
39050 _ACEOF
39051 cat confdefs.h >>conftest.$ac_ext
39052 cat >>conftest.$ac_ext <<_ACEOF
39053 /* end confdefs.h.  */
39054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39056 #define $ac_func innocuous_$ac_func
39057
39058 /* System header to define __stub macros and hopefully few prototypes,
39059     which can conflict with char $ac_func (); below.
39060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39061     <limits.h> exists even on freestanding compilers.  */
39062
39063 #ifdef __STDC__
39064 # include <limits.h>
39065 #else
39066 # include <assert.h>
39067 #endif
39068
39069 #undef $ac_func
39070
39071 /* Override any GCC internal prototype to avoid an error.
39072    Use char because int might match the return type of a GCC
39073    builtin and then its argument prototype would still apply.  */
39074 #ifdef __cplusplus
39075 extern "C"
39076 #endif
39077 char $ac_func ();
39078 /* The GNU C library defines this for functions which it implements
39079     to always fail with ENOSYS.  Some functions are actually named
39080     something starting with __ and the normal name is an alias.  */
39081 #if defined __stub_$ac_func || defined __stub___$ac_func
39082 choke me
39083 #endif
39084
39085 int
39086 main ()
39087 {
39088 return $ac_func ();
39089   ;
39090   return 0;
39091 }
39092 _ACEOF
39093 rm -f conftest.$ac_objext conftest$ac_exeext
39094 if { (ac_try="$ac_link"
39095 case "(($ac_try" in
39096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39097   *) ac_try_echo=$ac_try;;
39098 esac
39099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39100   (eval "$ac_link") 2>conftest.er1
39101   ac_status=$?
39102   grep -v '^ *+' conftest.er1 >conftest.err
39103   rm -f conftest.er1
39104   cat conftest.err >&5
39105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39106   (exit $ac_status); } && {
39107          test -z "$ac_c_werror_flag" ||
39108          test ! -s conftest.err
39109        } && test -s conftest$ac_exeext &&
39110        $as_test_x conftest$ac_exeext; then
39111   eval "$as_ac_var=yes"
39112 else
39113   echo "$as_me: failed program was:" >&5
39114 sed 's/^/| /' conftest.$ac_ext >&5
39115
39116         eval "$as_ac_var=no"
39117 fi
39118
39119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39120       conftest$ac_exeext conftest.$ac_ext
39121 fi
39122 ac_res=`eval echo '${'$as_ac_var'}'`
39123                { echo "$as_me:$LINENO: result: $ac_res" >&5
39124 echo "${ECHO_T}$ac_res" >&6; }
39125 if test `eval echo '${'$as_ac_var'}'` = yes; then
39126   cat >>confdefs.h <<_ACEOF
39127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39128 _ACEOF
39129  break
39130 fi
39131 done
39132
39133 if test "$ac_cv_func_setenv" = "yes"; then
39134
39135 for ac_func in unsetenv
39136 do
39137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39141   echo $ECHO_N "(cached) $ECHO_C" >&6
39142 else
39143   cat >conftest.$ac_ext <<_ACEOF
39144 /* confdefs.h.  */
39145 _ACEOF
39146 cat confdefs.h >>conftest.$ac_ext
39147 cat >>conftest.$ac_ext <<_ACEOF
39148 /* end confdefs.h.  */
39149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39151 #define $ac_func innocuous_$ac_func
39152
39153 /* System header to define __stub macros and hopefully few prototypes,
39154     which can conflict with char $ac_func (); below.
39155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39156     <limits.h> exists even on freestanding compilers.  */
39157
39158 #ifdef __STDC__
39159 # include <limits.h>
39160 #else
39161 # include <assert.h>
39162 #endif
39163
39164 #undef $ac_func
39165
39166 /* Override any GCC internal prototype to avoid an error.
39167    Use char because int might match the return type of a GCC
39168    builtin and then its argument prototype would still apply.  */
39169 #ifdef __cplusplus
39170 extern "C"
39171 #endif
39172 char $ac_func ();
39173 /* The GNU C library defines this for functions which it implements
39174     to always fail with ENOSYS.  Some functions are actually named
39175     something starting with __ and the normal name is an alias.  */
39176 #if defined __stub_$ac_func || defined __stub___$ac_func
39177 choke me
39178 #endif
39179
39180 int
39181 main ()
39182 {
39183 return $ac_func ();
39184   ;
39185   return 0;
39186 }
39187 _ACEOF
39188 rm -f conftest.$ac_objext conftest$ac_exeext
39189 if { (ac_try="$ac_link"
39190 case "(($ac_try" in
39191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39192   *) ac_try_echo=$ac_try;;
39193 esac
39194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39195   (eval "$ac_link") 2>conftest.er1
39196   ac_status=$?
39197   grep -v '^ *+' conftest.er1 >conftest.err
39198   rm -f conftest.er1
39199   cat conftest.err >&5
39200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39201   (exit $ac_status); } && {
39202          test -z "$ac_c_werror_flag" ||
39203          test ! -s conftest.err
39204        } && test -s conftest$ac_exeext &&
39205        $as_test_x conftest$ac_exeext; then
39206   eval "$as_ac_var=yes"
39207 else
39208   echo "$as_me: failed program was:" >&5
39209 sed 's/^/| /' conftest.$ac_ext >&5
39210
39211         eval "$as_ac_var=no"
39212 fi
39213
39214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39215       conftest$ac_exeext conftest.$ac_ext
39216 fi
39217 ac_res=`eval echo '${'$as_ac_var'}'`
39218                { echo "$as_me:$LINENO: result: $ac_res" >&5
39219 echo "${ECHO_T}$ac_res" >&6; }
39220 if test `eval echo '${'$as_ac_var'}'` = yes; then
39221   cat >>confdefs.h <<_ACEOF
39222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39223 _ACEOF
39224
39225 fi
39226 done
39227
39228 fi
39229
39230 HAVE_SOME_SLEEP_FUNC=0
39231 if test "$USE_BEOS" = 1; then
39232             cat >>confdefs.h <<\_ACEOF
39233 #define HAVE_SLEEP 1
39234 _ACEOF
39235
39236     HAVE_SOME_SLEEP_FUNC=1
39237 fi
39238
39239 if test "$USE_DARWIN" = 1; then
39240             cat >>confdefs.h <<\_ACEOF
39241 #define HAVE_USLEEP 1
39242 _ACEOF
39243
39244     HAVE_SOME_SLEEP_FUNC=1
39245 fi
39246
39247 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
39248         POSIX4_LINK=
39249
39250 for ac_func in nanosleep
39251 do
39252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39256   echo $ECHO_N "(cached) $ECHO_C" >&6
39257 else
39258   cat >conftest.$ac_ext <<_ACEOF
39259 /* confdefs.h.  */
39260 _ACEOF
39261 cat confdefs.h >>conftest.$ac_ext
39262 cat >>conftest.$ac_ext <<_ACEOF
39263 /* end confdefs.h.  */
39264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39266 #define $ac_func innocuous_$ac_func
39267
39268 /* System header to define __stub macros and hopefully few prototypes,
39269     which can conflict with char $ac_func (); below.
39270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39271     <limits.h> exists even on freestanding compilers.  */
39272
39273 #ifdef __STDC__
39274 # include <limits.h>
39275 #else
39276 # include <assert.h>
39277 #endif
39278
39279 #undef $ac_func
39280
39281 /* Override any GCC internal prototype to avoid an error.
39282    Use char because int might match the return type of a GCC
39283    builtin and then its argument prototype would still apply.  */
39284 #ifdef __cplusplus
39285 extern "C"
39286 #endif
39287 char $ac_func ();
39288 /* The GNU C library defines this for functions which it implements
39289     to always fail with ENOSYS.  Some functions are actually named
39290     something starting with __ and the normal name is an alias.  */
39291 #if defined __stub_$ac_func || defined __stub___$ac_func
39292 choke me
39293 #endif
39294
39295 int
39296 main ()
39297 {
39298 return $ac_func ();
39299   ;
39300   return 0;
39301 }
39302 _ACEOF
39303 rm -f conftest.$ac_objext conftest$ac_exeext
39304 if { (ac_try="$ac_link"
39305 case "(($ac_try" in
39306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39307   *) ac_try_echo=$ac_try;;
39308 esac
39309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39310   (eval "$ac_link") 2>conftest.er1
39311   ac_status=$?
39312   grep -v '^ *+' conftest.er1 >conftest.err
39313   rm -f conftest.er1
39314   cat conftest.err >&5
39315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39316   (exit $ac_status); } && {
39317          test -z "$ac_c_werror_flag" ||
39318          test ! -s conftest.err
39319        } && test -s conftest$ac_exeext &&
39320        $as_test_x conftest$ac_exeext; then
39321   eval "$as_ac_var=yes"
39322 else
39323   echo "$as_me: failed program was:" >&5
39324 sed 's/^/| /' conftest.$ac_ext >&5
39325
39326         eval "$as_ac_var=no"
39327 fi
39328
39329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39330       conftest$ac_exeext conftest.$ac_ext
39331 fi
39332 ac_res=`eval echo '${'$as_ac_var'}'`
39333                { echo "$as_me:$LINENO: result: $ac_res" >&5
39334 echo "${ECHO_T}$ac_res" >&6; }
39335 if test `eval echo '${'$as_ac_var'}'` = yes; then
39336   cat >>confdefs.h <<_ACEOF
39337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39338 _ACEOF
39339  cat >>confdefs.h <<\_ACEOF
39340 #define HAVE_NANOSLEEP 1
39341 _ACEOF
39342
39343 else
39344
39345             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
39346 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
39347 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
39348   echo $ECHO_N "(cached) $ECHO_C" >&6
39349 else
39350   ac_check_lib_save_LIBS=$LIBS
39351 LIBS="-lposix4  $LIBS"
39352 cat >conftest.$ac_ext <<_ACEOF
39353 /* confdefs.h.  */
39354 _ACEOF
39355 cat confdefs.h >>conftest.$ac_ext
39356 cat >>conftest.$ac_ext <<_ACEOF
39357 /* end confdefs.h.  */
39358
39359 /* Override any GCC internal prototype to avoid an error.
39360    Use char because int might match the return type of a GCC
39361    builtin and then its argument prototype would still apply.  */
39362 #ifdef __cplusplus
39363 extern "C"
39364 #endif
39365 char nanosleep ();
39366 int
39367 main ()
39368 {
39369 return nanosleep ();
39370   ;
39371   return 0;
39372 }
39373 _ACEOF
39374 rm -f conftest.$ac_objext conftest$ac_exeext
39375 if { (ac_try="$ac_link"
39376 case "(($ac_try" in
39377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39378   *) ac_try_echo=$ac_try;;
39379 esac
39380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39381   (eval "$ac_link") 2>conftest.er1
39382   ac_status=$?
39383   grep -v '^ *+' conftest.er1 >conftest.err
39384   rm -f conftest.er1
39385   cat conftest.err >&5
39386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387   (exit $ac_status); } && {
39388          test -z "$ac_c_werror_flag" ||
39389          test ! -s conftest.err
39390        } && test -s conftest$ac_exeext &&
39391        $as_test_x conftest$ac_exeext; then
39392   ac_cv_lib_posix4_nanosleep=yes
39393 else
39394   echo "$as_me: failed program was:" >&5
39395 sed 's/^/| /' conftest.$ac_ext >&5
39396
39397         ac_cv_lib_posix4_nanosleep=no
39398 fi
39399
39400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39401       conftest$ac_exeext conftest.$ac_ext
39402 LIBS=$ac_check_lib_save_LIBS
39403 fi
39404 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
39405 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
39406 if test $ac_cv_lib_posix4_nanosleep = yes; then
39407
39408                     cat >>confdefs.h <<\_ACEOF
39409 #define HAVE_NANOSLEEP 1
39410 _ACEOF
39411
39412                     POSIX4_LINK=" -lposix4"
39413
39414 else
39415
39416
39417   for wx_func in usleep
39418   do
39419     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39420 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39421 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39422   echo $ECHO_N "(cached) $ECHO_C" >&6
39423 else
39424
39425         cat >conftest.$ac_ext <<_ACEOF
39426
39427             /* confdefs.h.  */
39428 _ACEOF
39429 cat confdefs.h >>conftest.$ac_ext
39430 cat >>conftest.$ac_ext <<_ACEOF
39431 /* end confdefs.h.  */
39432
39433
39434                 $ac_includes_default
39435
39436 int
39437 main ()
39438 {
39439
39440                 #ifndef $wx_func
39441                   &$wx_func;
39442                 #endif
39443
39444
39445   ;
39446   return 0;
39447 }
39448
39449 _ACEOF
39450 rm -f conftest.$ac_objext conftest$ac_exeext
39451 if { (ac_try="$ac_link"
39452 case "(($ac_try" in
39453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39454   *) ac_try_echo=$ac_try;;
39455 esac
39456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39457   (eval "$ac_link") 2>conftest.er1
39458   ac_status=$?
39459   grep -v '^ *+' conftest.er1 >conftest.err
39460   rm -f conftest.er1
39461   cat conftest.err >&5
39462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39463   (exit $ac_status); } && {
39464          test -z "$ac_c_werror_flag" ||
39465          test ! -s conftest.err
39466        } && test -s conftest$ac_exeext &&
39467        $as_test_x conftest$ac_exeext; then
39468   eval wx_cv_func_$wx_func=yes
39469 else
39470   echo "$as_me: failed program was:" >&5
39471 sed 's/^/| /' conftest.$ac_ext >&5
39472
39473         eval wx_cv_func_$wx_func=no
39474 fi
39475
39476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39477       conftest$ac_exeext conftest.$ac_ext
39478
39479 fi
39480 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39481                { echo "$as_me:$LINENO: result: $ac_res" >&5
39482 echo "${ECHO_T}$ac_res" >&6; }
39483
39484     if eval test \$wx_cv_func_$wx_func = yes
39485     then
39486       cat >>confdefs.h <<_ACEOF
39487 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39488 _ACEOF
39489
39490
39491     else
39492       :
39493       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
39494 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
39495
39496     fi
39497   done
39498
39499
39500
39501 fi
39502
39503
39504
39505 fi
39506 done
39507
39508 fi
39509
39510
39511   for wx_func in uname
39512   do
39513     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39514 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39515 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39516   echo $ECHO_N "(cached) $ECHO_C" >&6
39517 else
39518
39519         cat >conftest.$ac_ext <<_ACEOF
39520
39521             /* confdefs.h.  */
39522 _ACEOF
39523 cat confdefs.h >>conftest.$ac_ext
39524 cat >>conftest.$ac_ext <<_ACEOF
39525 /* end confdefs.h.  */
39526
39527                 #include <sys/utsname.h>
39528                 $ac_includes_default
39529
39530 int
39531 main ()
39532 {
39533
39534                 #ifndef $wx_func
39535                   &$wx_func;
39536                 #endif
39537
39538
39539   ;
39540   return 0;
39541 }
39542
39543 _ACEOF
39544 rm -f conftest.$ac_objext conftest$ac_exeext
39545 if { (ac_try="$ac_link"
39546 case "(($ac_try" in
39547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39548   *) ac_try_echo=$ac_try;;
39549 esac
39550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39551   (eval "$ac_link") 2>conftest.er1
39552   ac_status=$?
39553   grep -v '^ *+' conftest.er1 >conftest.err
39554   rm -f conftest.er1
39555   cat conftest.err >&5
39556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39557   (exit $ac_status); } && {
39558          test -z "$ac_c_werror_flag" ||
39559          test ! -s conftest.err
39560        } && test -s conftest$ac_exeext &&
39561        $as_test_x conftest$ac_exeext; then
39562   eval wx_cv_func_$wx_func=yes
39563 else
39564   echo "$as_me: failed program was:" >&5
39565 sed 's/^/| /' conftest.$ac_ext >&5
39566
39567         eval wx_cv_func_$wx_func=no
39568 fi
39569
39570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39571       conftest$ac_exeext conftest.$ac_ext
39572
39573 fi
39574 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39575                { echo "$as_me:$LINENO: result: $ac_res" >&5
39576 echo "${ECHO_T}$ac_res" >&6; }
39577
39578     if eval test \$wx_cv_func_$wx_func = yes
39579     then
39580       cat >>confdefs.h <<_ACEOF
39581 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39582 _ACEOF
39583
39584
39585     else
39586       :
39587
39588     fi
39589   done
39590
39591 if test "$wx_cv_func_uname" != yes; then
39592
39593   for wx_func in gethostname
39594   do
39595     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39596 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39597 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39598   echo $ECHO_N "(cached) $ECHO_C" >&6
39599 else
39600
39601         cat >conftest.$ac_ext <<_ACEOF
39602
39603             /* confdefs.h.  */
39604 _ACEOF
39605 cat confdefs.h >>conftest.$ac_ext
39606 cat >>conftest.$ac_ext <<_ACEOF
39607 /* end confdefs.h.  */
39608
39609
39610                 $ac_includes_default
39611
39612 int
39613 main ()
39614 {
39615
39616                 #ifndef $wx_func
39617                   &$wx_func;
39618                 #endif
39619
39620
39621   ;
39622   return 0;
39623 }
39624
39625 _ACEOF
39626 rm -f conftest.$ac_objext conftest$ac_exeext
39627 if { (ac_try="$ac_link"
39628 case "(($ac_try" in
39629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39630   *) ac_try_echo=$ac_try;;
39631 esac
39632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39633   (eval "$ac_link") 2>conftest.er1
39634   ac_status=$?
39635   grep -v '^ *+' conftest.er1 >conftest.err
39636   rm -f conftest.er1
39637   cat conftest.err >&5
39638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639   (exit $ac_status); } && {
39640          test -z "$ac_c_werror_flag" ||
39641          test ! -s conftest.err
39642        } && test -s conftest$ac_exeext &&
39643        $as_test_x conftest$ac_exeext; then
39644   eval wx_cv_func_$wx_func=yes
39645 else
39646   echo "$as_me: failed program was:" >&5
39647 sed 's/^/| /' conftest.$ac_ext >&5
39648
39649         eval wx_cv_func_$wx_func=no
39650 fi
39651
39652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39653       conftest$ac_exeext conftest.$ac_ext
39654
39655 fi
39656 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39657                { echo "$as_me:$LINENO: result: $ac_res" >&5
39658 echo "${ECHO_T}$ac_res" >&6; }
39659
39660     if eval test \$wx_cv_func_$wx_func = yes
39661     then
39662       cat >>confdefs.h <<_ACEOF
39663 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39664 _ACEOF
39665
39666
39667     else
39668       :
39669
39670     fi
39671   done
39672
39673 fi
39674
39675
39676   for wx_func in strtok_r
39677   do
39678     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39679 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39680 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39681   echo $ECHO_N "(cached) $ECHO_C" >&6
39682 else
39683
39684         cat >conftest.$ac_ext <<_ACEOF
39685
39686             /* confdefs.h.  */
39687 _ACEOF
39688 cat confdefs.h >>conftest.$ac_ext
39689 cat >>conftest.$ac_ext <<_ACEOF
39690 /* end confdefs.h.  */
39691
39692                 #define _REENTRANT
39693                 $ac_includes_default
39694
39695 int
39696 main ()
39697 {
39698
39699                 #ifndef $wx_func
39700                   &$wx_func;
39701                 #endif
39702
39703
39704   ;
39705   return 0;
39706 }
39707
39708 _ACEOF
39709 rm -f conftest.$ac_objext conftest$ac_exeext
39710 if { (ac_try="$ac_link"
39711 case "(($ac_try" in
39712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39713   *) ac_try_echo=$ac_try;;
39714 esac
39715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39716   (eval "$ac_link") 2>conftest.er1
39717   ac_status=$?
39718   grep -v '^ *+' conftest.er1 >conftest.err
39719   rm -f conftest.er1
39720   cat conftest.err >&5
39721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39722   (exit $ac_status); } && {
39723          test -z "$ac_c_werror_flag" ||
39724          test ! -s conftest.err
39725        } && test -s conftest$ac_exeext &&
39726        $as_test_x conftest$ac_exeext; then
39727   eval wx_cv_func_$wx_func=yes
39728 else
39729   echo "$as_me: failed program was:" >&5
39730 sed 's/^/| /' conftest.$ac_ext >&5
39731
39732         eval wx_cv_func_$wx_func=no
39733 fi
39734
39735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39736       conftest$ac_exeext conftest.$ac_ext
39737
39738 fi
39739 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39740                { echo "$as_me:$LINENO: result: $ac_res" >&5
39741 echo "${ECHO_T}$ac_res" >&6; }
39742
39743     if eval test \$wx_cv_func_$wx_func = yes
39744     then
39745       cat >>confdefs.h <<_ACEOF
39746 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39747 _ACEOF
39748
39749
39750     else
39751       :
39752
39753     fi
39754   done
39755
39756
39757 INET_LINK=
39758
39759 for ac_func in inet_addr
39760 do
39761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39762 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39765   echo $ECHO_N "(cached) $ECHO_C" >&6
39766 else
39767   cat >conftest.$ac_ext <<_ACEOF
39768 /* confdefs.h.  */
39769 _ACEOF
39770 cat confdefs.h >>conftest.$ac_ext
39771 cat >>conftest.$ac_ext <<_ACEOF
39772 /* end confdefs.h.  */
39773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39774    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39775 #define $ac_func innocuous_$ac_func
39776
39777 /* System header to define __stub macros and hopefully few prototypes,
39778     which can conflict with char $ac_func (); below.
39779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39780     <limits.h> exists even on freestanding compilers.  */
39781
39782 #ifdef __STDC__
39783 # include <limits.h>
39784 #else
39785 # include <assert.h>
39786 #endif
39787
39788 #undef $ac_func
39789
39790 /* Override any GCC internal prototype to avoid an error.
39791    Use char because int might match the return type of a GCC
39792    builtin and then its argument prototype would still apply.  */
39793 #ifdef __cplusplus
39794 extern "C"
39795 #endif
39796 char $ac_func ();
39797 /* The GNU C library defines this for functions which it implements
39798     to always fail with ENOSYS.  Some functions are actually named
39799     something starting with __ and the normal name is an alias.  */
39800 #if defined __stub_$ac_func || defined __stub___$ac_func
39801 choke me
39802 #endif
39803
39804 int
39805 main ()
39806 {
39807 return $ac_func ();
39808   ;
39809   return 0;
39810 }
39811 _ACEOF
39812 rm -f conftest.$ac_objext conftest$ac_exeext
39813 if { (ac_try="$ac_link"
39814 case "(($ac_try" in
39815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39816   *) ac_try_echo=$ac_try;;
39817 esac
39818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39819   (eval "$ac_link") 2>conftest.er1
39820   ac_status=$?
39821   grep -v '^ *+' conftest.er1 >conftest.err
39822   rm -f conftest.er1
39823   cat conftest.err >&5
39824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39825   (exit $ac_status); } && {
39826          test -z "$ac_c_werror_flag" ||
39827          test ! -s conftest.err
39828        } && test -s conftest$ac_exeext &&
39829        $as_test_x conftest$ac_exeext; then
39830   eval "$as_ac_var=yes"
39831 else
39832   echo "$as_me: failed program was:" >&5
39833 sed 's/^/| /' conftest.$ac_ext >&5
39834
39835         eval "$as_ac_var=no"
39836 fi
39837
39838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39839       conftest$ac_exeext conftest.$ac_ext
39840 fi
39841 ac_res=`eval echo '${'$as_ac_var'}'`
39842                { echo "$as_me:$LINENO: result: $ac_res" >&5
39843 echo "${ECHO_T}$ac_res" >&6; }
39844 if test `eval echo '${'$as_ac_var'}'` = yes; then
39845   cat >>confdefs.h <<_ACEOF
39846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39847 _ACEOF
39848  cat >>confdefs.h <<\_ACEOF
39849 #define HAVE_INET_ADDR 1
39850 _ACEOF
39851
39852 else
39853
39854         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
39855 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
39856 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
39857   echo $ECHO_N "(cached) $ECHO_C" >&6
39858 else
39859   ac_check_lib_save_LIBS=$LIBS
39860 LIBS="-lnsl  $LIBS"
39861 cat >conftest.$ac_ext <<_ACEOF
39862 /* confdefs.h.  */
39863 _ACEOF
39864 cat confdefs.h >>conftest.$ac_ext
39865 cat >>conftest.$ac_ext <<_ACEOF
39866 /* end confdefs.h.  */
39867
39868 /* Override any GCC internal prototype to avoid an error.
39869    Use char because int might match the return type of a GCC
39870    builtin and then its argument prototype would still apply.  */
39871 #ifdef __cplusplus
39872 extern "C"
39873 #endif
39874 char inet_addr ();
39875 int
39876 main ()
39877 {
39878 return inet_addr ();
39879   ;
39880   return 0;
39881 }
39882 _ACEOF
39883 rm -f conftest.$ac_objext conftest$ac_exeext
39884 if { (ac_try="$ac_link"
39885 case "(($ac_try" in
39886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39887   *) ac_try_echo=$ac_try;;
39888 esac
39889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39890   (eval "$ac_link") 2>conftest.er1
39891   ac_status=$?
39892   grep -v '^ *+' conftest.er1 >conftest.err
39893   rm -f conftest.er1
39894   cat conftest.err >&5
39895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39896   (exit $ac_status); } && {
39897          test -z "$ac_c_werror_flag" ||
39898          test ! -s conftest.err
39899        } && test -s conftest$ac_exeext &&
39900        $as_test_x conftest$ac_exeext; then
39901   ac_cv_lib_nsl_inet_addr=yes
39902 else
39903   echo "$as_me: failed program was:" >&5
39904 sed 's/^/| /' conftest.$ac_ext >&5
39905
39906         ac_cv_lib_nsl_inet_addr=no
39907 fi
39908
39909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39910       conftest$ac_exeext conftest.$ac_ext
39911 LIBS=$ac_check_lib_save_LIBS
39912 fi
39913 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
39914 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
39915 if test $ac_cv_lib_nsl_inet_addr = yes; then
39916   INET_LINK="nsl"
39917 else
39918
39919                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
39920 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
39921 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
39922   echo $ECHO_N "(cached) $ECHO_C" >&6
39923 else
39924   ac_check_lib_save_LIBS=$LIBS
39925 LIBS="-lresolv  $LIBS"
39926 cat >conftest.$ac_ext <<_ACEOF
39927 /* confdefs.h.  */
39928 _ACEOF
39929 cat confdefs.h >>conftest.$ac_ext
39930 cat >>conftest.$ac_ext <<_ACEOF
39931 /* end confdefs.h.  */
39932
39933 /* Override any GCC internal prototype to avoid an error.
39934    Use char because int might match the return type of a GCC
39935    builtin and then its argument prototype would still apply.  */
39936 #ifdef __cplusplus
39937 extern "C"
39938 #endif
39939 char inet_addr ();
39940 int
39941 main ()
39942 {
39943 return inet_addr ();
39944   ;
39945   return 0;
39946 }
39947 _ACEOF
39948 rm -f conftest.$ac_objext conftest$ac_exeext
39949 if { (ac_try="$ac_link"
39950 case "(($ac_try" in
39951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39952   *) ac_try_echo=$ac_try;;
39953 esac
39954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39955   (eval "$ac_link") 2>conftest.er1
39956   ac_status=$?
39957   grep -v '^ *+' conftest.er1 >conftest.err
39958   rm -f conftest.er1
39959   cat conftest.err >&5
39960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961   (exit $ac_status); } && {
39962          test -z "$ac_c_werror_flag" ||
39963          test ! -s conftest.err
39964        } && test -s conftest$ac_exeext &&
39965        $as_test_x conftest$ac_exeext; then
39966   ac_cv_lib_resolv_inet_addr=yes
39967 else
39968   echo "$as_me: failed program was:" >&5
39969 sed 's/^/| /' conftest.$ac_ext >&5
39970
39971         ac_cv_lib_resolv_inet_addr=no
39972 fi
39973
39974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39975       conftest$ac_exeext conftest.$ac_ext
39976 LIBS=$ac_check_lib_save_LIBS
39977 fi
39978 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
39979 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
39980 if test $ac_cv_lib_resolv_inet_addr = yes; then
39981   INET_LINK="resolv"
39982 else
39983
39984                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
39985 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
39986 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
39987   echo $ECHO_N "(cached) $ECHO_C" >&6
39988 else
39989   ac_check_lib_save_LIBS=$LIBS
39990 LIBS="-lsocket  $LIBS"
39991 cat >conftest.$ac_ext <<_ACEOF
39992 /* confdefs.h.  */
39993 _ACEOF
39994 cat confdefs.h >>conftest.$ac_ext
39995 cat >>conftest.$ac_ext <<_ACEOF
39996 /* end confdefs.h.  */
39997
39998 /* Override any GCC internal prototype to avoid an error.
39999    Use char because int might match the return type of a GCC
40000    builtin and then its argument prototype would still apply.  */
40001 #ifdef __cplusplus
40002 extern "C"
40003 #endif
40004 char inet_addr ();
40005 int
40006 main ()
40007 {
40008 return inet_addr ();
40009   ;
40010   return 0;
40011 }
40012 _ACEOF
40013 rm -f conftest.$ac_objext conftest$ac_exeext
40014 if { (ac_try="$ac_link"
40015 case "(($ac_try" in
40016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40017   *) ac_try_echo=$ac_try;;
40018 esac
40019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40020   (eval "$ac_link") 2>conftest.er1
40021   ac_status=$?
40022   grep -v '^ *+' conftest.er1 >conftest.err
40023   rm -f conftest.er1
40024   cat conftest.err >&5
40025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026   (exit $ac_status); } && {
40027          test -z "$ac_c_werror_flag" ||
40028          test ! -s conftest.err
40029        } && test -s conftest$ac_exeext &&
40030        $as_test_x conftest$ac_exeext; then
40031   ac_cv_lib_socket_inet_addr=yes
40032 else
40033   echo "$as_me: failed program was:" >&5
40034 sed 's/^/| /' conftest.$ac_ext >&5
40035
40036         ac_cv_lib_socket_inet_addr=no
40037 fi
40038
40039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40040       conftest$ac_exeext conftest.$ac_ext
40041 LIBS=$ac_check_lib_save_LIBS
40042 fi
40043 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
40044 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
40045 if test $ac_cv_lib_socket_inet_addr = yes; then
40046   INET_LINK="socket"
40047
40048 fi
40049
40050
40051
40052 fi
40053
40054
40055
40056 fi
40057
40058
40059
40060 fi
40061 done
40062
40063
40064
40065 for ac_func in inet_aton
40066 do
40067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40071   echo $ECHO_N "(cached) $ECHO_C" >&6
40072 else
40073   cat >conftest.$ac_ext <<_ACEOF
40074 /* confdefs.h.  */
40075 _ACEOF
40076 cat confdefs.h >>conftest.$ac_ext
40077 cat >>conftest.$ac_ext <<_ACEOF
40078 /* end confdefs.h.  */
40079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40081 #define $ac_func innocuous_$ac_func
40082
40083 /* System header to define __stub macros and hopefully few prototypes,
40084     which can conflict with char $ac_func (); below.
40085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40086     <limits.h> exists even on freestanding compilers.  */
40087
40088 #ifdef __STDC__
40089 # include <limits.h>
40090 #else
40091 # include <assert.h>
40092 #endif
40093
40094 #undef $ac_func
40095
40096 /* Override any GCC internal prototype to avoid an error.
40097    Use char because int might match the return type of a GCC
40098    builtin and then its argument prototype would still apply.  */
40099 #ifdef __cplusplus
40100 extern "C"
40101 #endif
40102 char $ac_func ();
40103 /* The GNU C library defines this for functions which it implements
40104     to always fail with ENOSYS.  Some functions are actually named
40105     something starting with __ and the normal name is an alias.  */
40106 #if defined __stub_$ac_func || defined __stub___$ac_func
40107 choke me
40108 #endif
40109
40110 int
40111 main ()
40112 {
40113 return $ac_func ();
40114   ;
40115   return 0;
40116 }
40117 _ACEOF
40118 rm -f conftest.$ac_objext conftest$ac_exeext
40119 if { (ac_try="$ac_link"
40120 case "(($ac_try" in
40121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40122   *) ac_try_echo=$ac_try;;
40123 esac
40124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40125   (eval "$ac_link") 2>conftest.er1
40126   ac_status=$?
40127   grep -v '^ *+' conftest.er1 >conftest.err
40128   rm -f conftest.er1
40129   cat conftest.err >&5
40130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40131   (exit $ac_status); } && {
40132          test -z "$ac_c_werror_flag" ||
40133          test ! -s conftest.err
40134        } && test -s conftest$ac_exeext &&
40135        $as_test_x conftest$ac_exeext; then
40136   eval "$as_ac_var=yes"
40137 else
40138   echo "$as_me: failed program was:" >&5
40139 sed 's/^/| /' conftest.$ac_ext >&5
40140
40141         eval "$as_ac_var=no"
40142 fi
40143
40144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40145       conftest$ac_exeext conftest.$ac_ext
40146 fi
40147 ac_res=`eval echo '${'$as_ac_var'}'`
40148                { echo "$as_me:$LINENO: result: $ac_res" >&5
40149 echo "${ECHO_T}$ac_res" >&6; }
40150 if test `eval echo '${'$as_ac_var'}'` = yes; then
40151   cat >>confdefs.h <<_ACEOF
40152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40153 _ACEOF
40154  cat >>confdefs.h <<\_ACEOF
40155 #define HAVE_INET_ATON 1
40156 _ACEOF
40157
40158 else
40159
40160                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
40161 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
40162 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
40163 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
40164   echo $ECHO_N "(cached) $ECHO_C" >&6
40165 else
40166   ac_check_lib_save_LIBS=$LIBS
40167 LIBS="-l$INET_LINK  $LIBS"
40168 cat >conftest.$ac_ext <<_ACEOF
40169 /* confdefs.h.  */
40170 _ACEOF
40171 cat confdefs.h >>conftest.$ac_ext
40172 cat >>conftest.$ac_ext <<_ACEOF
40173 /* end confdefs.h.  */
40174
40175 /* Override any GCC internal prototype to avoid an error.
40176    Use char because int might match the return type of a GCC
40177    builtin and then its argument prototype would still apply.  */
40178 #ifdef __cplusplus
40179 extern "C"
40180 #endif
40181 char inet_aton ();
40182 int
40183 main ()
40184 {
40185 return inet_aton ();
40186   ;
40187   return 0;
40188 }
40189 _ACEOF
40190 rm -f conftest.$ac_objext conftest$ac_exeext
40191 if { (ac_try="$ac_link"
40192 case "(($ac_try" in
40193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40194   *) ac_try_echo=$ac_try;;
40195 esac
40196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40197   (eval "$ac_link") 2>conftest.er1
40198   ac_status=$?
40199   grep -v '^ *+' conftest.er1 >conftest.err
40200   rm -f conftest.er1
40201   cat conftest.err >&5
40202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203   (exit $ac_status); } && {
40204          test -z "$ac_c_werror_flag" ||
40205          test ! -s conftest.err
40206        } && test -s conftest$ac_exeext &&
40207        $as_test_x conftest$ac_exeext; then
40208   eval "$as_ac_Lib=yes"
40209 else
40210   echo "$as_me: failed program was:" >&5
40211 sed 's/^/| /' conftest.$ac_ext >&5
40212
40213         eval "$as_ac_Lib=no"
40214 fi
40215
40216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40217       conftest$ac_exeext conftest.$ac_ext
40218 LIBS=$ac_check_lib_save_LIBS
40219 fi
40220 ac_res=`eval echo '${'$as_ac_Lib'}'`
40221                { echo "$as_me:$LINENO: result: $ac_res" >&5
40222 echo "${ECHO_T}$ac_res" >&6; }
40223 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
40224   cat >>confdefs.h <<\_ACEOF
40225 #define HAVE_INET_ATON 1
40226 _ACEOF
40227
40228 fi
40229
40230
40231 fi
40232 done
40233
40234
40235 if test "x$INET_LINK" != "x"; then
40236     cat >>confdefs.h <<\_ACEOF
40237 #define HAVE_INET_ADDR 1
40238 _ACEOF
40239
40240     INET_LINK=" -l$INET_LINK"
40241 fi
40242
40243
40244   for wx_func in fdopen
40245   do
40246     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40247 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40248 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40249   echo $ECHO_N "(cached) $ECHO_C" >&6
40250 else
40251
40252         cat >conftest.$ac_ext <<_ACEOF
40253
40254             /* confdefs.h.  */
40255 _ACEOF
40256 cat confdefs.h >>conftest.$ac_ext
40257 cat >>conftest.$ac_ext <<_ACEOF
40258 /* end confdefs.h.  */
40259
40260
40261                 $ac_includes_default
40262
40263 int
40264 main ()
40265 {
40266
40267                 #ifndef $wx_func
40268                   &$wx_func;
40269                 #endif
40270
40271
40272   ;
40273   return 0;
40274 }
40275
40276 _ACEOF
40277 rm -f conftest.$ac_objext conftest$ac_exeext
40278 if { (ac_try="$ac_link"
40279 case "(($ac_try" in
40280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40281   *) ac_try_echo=$ac_try;;
40282 esac
40283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40284   (eval "$ac_link") 2>conftest.er1
40285   ac_status=$?
40286   grep -v '^ *+' conftest.er1 >conftest.err
40287   rm -f conftest.er1
40288   cat conftest.err >&5
40289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290   (exit $ac_status); } && {
40291          test -z "$ac_c_werror_flag" ||
40292          test ! -s conftest.err
40293        } && test -s conftest$ac_exeext &&
40294        $as_test_x conftest$ac_exeext; then
40295   eval wx_cv_func_$wx_func=yes
40296 else
40297   echo "$as_me: failed program was:" >&5
40298 sed 's/^/| /' conftest.$ac_ext >&5
40299
40300         eval wx_cv_func_$wx_func=no
40301 fi
40302
40303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40304       conftest$ac_exeext conftest.$ac_ext
40305
40306 fi
40307 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40308                { echo "$as_me:$LINENO: result: $ac_res" >&5
40309 echo "${ECHO_T}$ac_res" >&6; }
40310
40311     if eval test \$wx_cv_func_$wx_func = yes
40312     then
40313       cat >>confdefs.h <<_ACEOF
40314 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40315 _ACEOF
40316
40317
40318     else
40319       :
40320
40321     fi
40322   done
40323
40324
40325 if test "$wxUSE_TARSTREAM" = "yes"; then
40326
40327   for wx_func in sysconf
40328   do
40329     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40330 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40331 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40332   echo $ECHO_N "(cached) $ECHO_C" >&6
40333 else
40334
40335         cat >conftest.$ac_ext <<_ACEOF
40336
40337             /* confdefs.h.  */
40338 _ACEOF
40339 cat confdefs.h >>conftest.$ac_ext
40340 cat >>conftest.$ac_ext <<_ACEOF
40341 /* end confdefs.h.  */
40342
40343
40344                 $ac_includes_default
40345
40346 int
40347 main ()
40348 {
40349
40350                 #ifndef $wx_func
40351                   &$wx_func;
40352                 #endif
40353
40354
40355   ;
40356   return 0;
40357 }
40358
40359 _ACEOF
40360 rm -f conftest.$ac_objext conftest$ac_exeext
40361 if { (ac_try="$ac_link"
40362 case "(($ac_try" in
40363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40364   *) ac_try_echo=$ac_try;;
40365 esac
40366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40367   (eval "$ac_link") 2>conftest.er1
40368   ac_status=$?
40369   grep -v '^ *+' conftest.er1 >conftest.err
40370   rm -f conftest.er1
40371   cat conftest.err >&5
40372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40373   (exit $ac_status); } && {
40374          test -z "$ac_c_werror_flag" ||
40375          test ! -s conftest.err
40376        } && test -s conftest$ac_exeext &&
40377        $as_test_x conftest$ac_exeext; then
40378   eval wx_cv_func_$wx_func=yes
40379 else
40380   echo "$as_me: failed program was:" >&5
40381 sed 's/^/| /' conftest.$ac_ext >&5
40382
40383         eval wx_cv_func_$wx_func=no
40384 fi
40385
40386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40387       conftest$ac_exeext conftest.$ac_ext
40388
40389 fi
40390 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40391                { echo "$as_me:$LINENO: result: $ac_res" >&5
40392 echo "${ECHO_T}$ac_res" >&6; }
40393
40394     if eval test \$wx_cv_func_$wx_func = yes
40395     then
40396       cat >>confdefs.h <<_ACEOF
40397 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40398 _ACEOF
40399
40400
40401     else
40402       :
40403
40404     fi
40405   done
40406
40407
40408
40409   for wx_func in getpwuid_r
40410   do
40411     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40412 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40413 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40414   echo $ECHO_N "(cached) $ECHO_C" >&6
40415 else
40416
40417         cat >conftest.$ac_ext <<_ACEOF
40418
40419             /* confdefs.h.  */
40420 _ACEOF
40421 cat confdefs.h >>conftest.$ac_ext
40422 cat >>conftest.$ac_ext <<_ACEOF
40423 /* end confdefs.h.  */
40424
40425
40426                     #define _REENTRANT
40427                     #include <pwd.h>
40428
40429                 $ac_includes_default
40430
40431 int
40432 main ()
40433 {
40434
40435                 #ifndef $wx_func
40436                   &$wx_func;
40437                 #endif
40438
40439                     struct passwd pw, *ppw;
40440                     char buf[1024];
40441                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
40442
40443
40444   ;
40445   return 0;
40446 }
40447
40448 _ACEOF
40449 rm -f conftest.$ac_objext conftest$ac_exeext
40450 if { (ac_try="$ac_link"
40451 case "(($ac_try" in
40452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40453   *) ac_try_echo=$ac_try;;
40454 esac
40455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40456   (eval "$ac_link") 2>conftest.er1
40457   ac_status=$?
40458   grep -v '^ *+' conftest.er1 >conftest.err
40459   rm -f conftest.er1
40460   cat conftest.err >&5
40461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40462   (exit $ac_status); } && {
40463          test -z "$ac_c_werror_flag" ||
40464          test ! -s conftest.err
40465        } && test -s conftest$ac_exeext &&
40466        $as_test_x conftest$ac_exeext; then
40467   eval wx_cv_func_$wx_func=yes
40468 else
40469   echo "$as_me: failed program was:" >&5
40470 sed 's/^/| /' conftest.$ac_ext >&5
40471
40472         eval wx_cv_func_$wx_func=no
40473 fi
40474
40475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40476       conftest$ac_exeext conftest.$ac_ext
40477
40478 fi
40479 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40480                { echo "$as_me:$LINENO: result: $ac_res" >&5
40481 echo "${ECHO_T}$ac_res" >&6; }
40482
40483     if eval test \$wx_cv_func_$wx_func = yes
40484     then
40485       cat >>confdefs.h <<_ACEOF
40486 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40487 _ACEOF
40488
40489
40490     else
40491       :
40492
40493     fi
40494   done
40495
40496
40497
40498   for wx_func in getgrgid_r
40499   do
40500     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40501 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40502 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40503   echo $ECHO_N "(cached) $ECHO_C" >&6
40504 else
40505
40506         cat >conftest.$ac_ext <<_ACEOF
40507
40508             /* confdefs.h.  */
40509 _ACEOF
40510 cat confdefs.h >>conftest.$ac_ext
40511 cat >>conftest.$ac_ext <<_ACEOF
40512 /* end confdefs.h.  */
40513
40514
40515                     #define _REENTRANT
40516                     #include <grp.h>
40517
40518                 $ac_includes_default
40519
40520 int
40521 main ()
40522 {
40523
40524                 #ifndef $wx_func
40525                   &$wx_func;
40526                 #endif
40527
40528                     struct group grp, *pgrp;
40529                     char buf[1024];
40530                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
40531
40532
40533   ;
40534   return 0;
40535 }
40536
40537 _ACEOF
40538 rm -f conftest.$ac_objext conftest$ac_exeext
40539 if { (ac_try="$ac_link"
40540 case "(($ac_try" in
40541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40542   *) ac_try_echo=$ac_try;;
40543 esac
40544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40545   (eval "$ac_link") 2>conftest.er1
40546   ac_status=$?
40547   grep -v '^ *+' conftest.er1 >conftest.err
40548   rm -f conftest.er1
40549   cat conftest.err >&5
40550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40551   (exit $ac_status); } && {
40552          test -z "$ac_c_werror_flag" ||
40553          test ! -s conftest.err
40554        } && test -s conftest$ac_exeext &&
40555        $as_test_x conftest$ac_exeext; then
40556   eval wx_cv_func_$wx_func=yes
40557 else
40558   echo "$as_me: failed program was:" >&5
40559 sed 's/^/| /' conftest.$ac_ext >&5
40560
40561         eval wx_cv_func_$wx_func=no
40562 fi
40563
40564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40565       conftest$ac_exeext conftest.$ac_ext
40566
40567 fi
40568 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40569                { echo "$as_me:$LINENO: result: $ac_res" >&5
40570 echo "${ECHO_T}$ac_res" >&6; }
40571
40572     if eval test \$wx_cv_func_$wx_func = yes
40573     then
40574       cat >>confdefs.h <<_ACEOF
40575 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40576 _ACEOF
40577
40578
40579     else
40580       :
40581
40582     fi
40583   done
40584
40585 fi
40586
40587 fi
40588
40589
40590
40591 cat >confcache <<\_ACEOF
40592 # This file is a shell script that caches the results of configure
40593 # tests run on this system so they can be shared between configure
40594 # scripts and configure runs, see configure's option --config-cache.
40595 # It is not useful on other systems.  If it contains results you don't
40596 # want to keep, you may remove or edit it.
40597 #
40598 # config.status only pays attention to the cache file if you give it
40599 # the --recheck option to rerun configure.
40600 #
40601 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40602 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40603 # following values.
40604
40605 _ACEOF
40606
40607 # The following way of writing the cache mishandles newlines in values,
40608 # but we know of no workaround that is simple, portable, and efficient.
40609 # So, we kill variables containing newlines.
40610 # Ultrix sh set writes to stderr and can't be redirected directly,
40611 # and sets the high bit in the cache file unless we assign to the vars.
40612 (
40613   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40614     eval ac_val=\$$ac_var
40615     case $ac_val in #(
40616     *${as_nl}*)
40617       case $ac_var in #(
40618       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
40619 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
40620       esac
40621       case $ac_var in #(
40622       _ | IFS | as_nl) ;; #(
40623       *) $as_unset $ac_var ;;
40624       esac ;;
40625     esac
40626   done
40627
40628   (set) 2>&1 |
40629     case $as_nl`(ac_space=' '; set) 2>&1` in #(
40630     *${as_nl}ac_space=\ *)
40631       # `set' does not quote correctly, so add quotes (double-quote
40632       # substitution turns \\\\ into \\, and sed turns \\ into \).
40633       sed -n \
40634         "s/'/'\\\\''/g;
40635           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40636       ;; #(
40637     *)
40638       # `set' quotes correctly as required by POSIX, so do not add quotes.
40639       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40640       ;;
40641     esac |
40642     sort
40643 ) |
40644   sed '
40645      /^ac_cv_env_/b end
40646      t clear
40647      :clear
40648      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40649      t end
40650      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40651      :end' >>confcache
40652 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40653   if test -w "$cache_file"; then
40654     test "x$cache_file" != "x/dev/null" &&
40655       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
40656 echo "$as_me: updating cache $cache_file" >&6;}
40657     cat confcache >$cache_file
40658   else
40659     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
40660 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40661   fi
40662 fi
40663 rm -f confcache
40664
40665
40666 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40667
40668
40669     THREADS_LINK=
40670     THREADS_CFLAGS=
40671
40672     if test "$wxUSE_THREADS" = "yes" ; then
40673         if test "$USE_BEOS" = 1; then
40674             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
40675 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
40676             wxUSE_THREADS="no"
40677         fi
40678     fi
40679
40680     if test "$wxUSE_THREADS" = "yes" ; then
40681
40682
40683                                 THREAD_OPTS="-pthread"
40684         if test "x$SUNCXX" = xyes; then
40685             THREAD_OPTS="-mt lthread $THREAD_OPTS"
40686         fi
40687
40688         case "${host}" in
40689           *-*-solaris2* | *-*-sunos4* )
40690                 if test "x$GCC" = "xyes"; then
40691                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
40692                 fi
40693                 ;;
40694           *-*-freebsd*)
40695                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
40696                 ;;
40697           *-*-darwin* | *-*-cygwin* )
40698                                                 THREAD_OPTS=""
40699                 ;;
40700           *-*-aix*)
40701                                 THREAD_OPTS="pthreads"
40702                 ;;
40703           *-hp-hpux* )
40704                 if test "x$GCC" = "xyes"; then
40705                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
40706                         THREAD_OPTS=""
40707                 else
40708                                                             THREAD_OPTS="-mt"
40709                 fi
40710                 ;;
40711
40712           *-*-irix* )
40713                                                                 if test "x$GCC" = "xyes"; then
40714                     THREAD_OPTS=""
40715                 fi
40716                 ;;
40717
40718           *-*-qnx*)
40719                                                 THREAD_OPTS=""
40720                 ;;
40721
40722           *-*-*UnixWare*)
40723                                 if test "x$GCC" != "xyes"; then
40724                     THREAD_OPTS="-Ethread"
40725                 fi
40726                 ;;
40727         esac
40728
40729         case "${host}" in
40730             *-*-qnx*)
40731                                                                 THREAD_OPTS="none pthread"
40732                 ;;
40733
40734             *)
40735                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
40736                 ;;
40737         esac
40738
40739                 THREADS_OK=no
40740         for flag in $THREAD_OPTS; do
40741             case $flag in
40742                 none)
40743                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
40744 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
40745                     ;;
40746
40747                 -*)
40748                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
40749 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
40750                     THREADS_CFLAGS="$flag"
40751                     ;;
40752
40753                 *)
40754                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
40755 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
40756                     THREADS_LINK="-l$flag"
40757                     ;;
40758               esac
40759
40760               save_LIBS="$LIBS"
40761               save_CFLAGS="$CFLAGS"
40762               LIBS="$THREADS_LINK $LIBS"
40763               CFLAGS="$THREADS_CFLAGS $CFLAGS"
40764
40765               cat >conftest.$ac_ext <<_ACEOF
40766 /* confdefs.h.  */
40767 _ACEOF
40768 cat confdefs.h >>conftest.$ac_ext
40769 cat >>conftest.$ac_ext <<_ACEOF
40770 /* end confdefs.h.  */
40771 #include <pthread.h>
40772 int
40773 main ()
40774 {
40775 pthread_create(0,0,0,0);
40776   ;
40777   return 0;
40778 }
40779 _ACEOF
40780 rm -f conftest.$ac_objext conftest$ac_exeext
40781 if { (ac_try="$ac_link"
40782 case "(($ac_try" in
40783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40784   *) ac_try_echo=$ac_try;;
40785 esac
40786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40787   (eval "$ac_link") 2>conftest.er1
40788   ac_status=$?
40789   grep -v '^ *+' conftest.er1 >conftest.err
40790   rm -f conftest.er1
40791   cat conftest.err >&5
40792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40793   (exit $ac_status); } && {
40794          test -z "$ac_c_werror_flag" ||
40795          test ! -s conftest.err
40796        } && test -s conftest$ac_exeext &&
40797        $as_test_x conftest$ac_exeext; then
40798   THREADS_OK=yes
40799 else
40800   echo "$as_me: failed program was:" >&5
40801 sed 's/^/| /' conftest.$ac_ext >&5
40802
40803
40804 fi
40805
40806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40807       conftest$ac_exeext conftest.$ac_ext
40808
40809               LIBS="$save_LIBS"
40810               CFLAGS="$save_CFLAGS"
40811
40812               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
40813 echo "${ECHO_T}$THREADS_OK" >&6; }
40814               if test "x$THREADS_OK" = "xyes"; then
40815                       break;
40816               fi
40817
40818               THREADS_LINK=""
40819               THREADS_CFLAGS=""
40820       done
40821
40822       if test "x$THREADS_OK" != "xyes"; then
40823           wxUSE_THREADS=no
40824           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
40825 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
40826       else
40827                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
40828           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
40829           LIBS="$THREADS_LINK $LIBS"
40830
40831           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
40832 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
40833           flag=no
40834           case "${host}" in
40835             *-aix*)
40836                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
40837                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
40838                 flag="-D_THREAD_SAFE"
40839                 ;;
40840             *-freebsd*)
40841                 flag="-D_THREAD_SAFE"
40842                 ;;
40843             *-hp-hpux* )
40844                 flag="-D_REENTRANT"
40845                 if test "x$GCC" != "xyes"; then
40846                                         flag="$flag -D_RWSTD_MULTI_THREAD"
40847                 fi
40848                 ;;
40849             *solaris* | alpha*-osf*)
40850                 flag="-D_REENTRANT"
40851                 ;;
40852           esac
40853           { echo "$as_me:$LINENO: result: ${flag}" >&5
40854 echo "${ECHO_T}${flag}" >&6; }
40855           if test "x$flag" != xno; then
40856               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
40857           fi
40858
40859                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
40860       fi
40861     fi
40862
40863         if test "$wxUSE_THREADS" = "yes" ; then
40864
40865 for ac_func in thr_setconcurrency
40866 do
40867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40871   echo $ECHO_N "(cached) $ECHO_C" >&6
40872 else
40873   cat >conftest.$ac_ext <<_ACEOF
40874 /* confdefs.h.  */
40875 _ACEOF
40876 cat confdefs.h >>conftest.$ac_ext
40877 cat >>conftest.$ac_ext <<_ACEOF
40878 /* end confdefs.h.  */
40879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40881 #define $ac_func innocuous_$ac_func
40882
40883 /* System header to define __stub macros and hopefully few prototypes,
40884     which can conflict with char $ac_func (); below.
40885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40886     <limits.h> exists even on freestanding compilers.  */
40887
40888 #ifdef __STDC__
40889 # include <limits.h>
40890 #else
40891 # include <assert.h>
40892 #endif
40893
40894 #undef $ac_func
40895
40896 /* Override any GCC internal prototype to avoid an error.
40897    Use char because int might match the return type of a GCC
40898    builtin and then its argument prototype would still apply.  */
40899 #ifdef __cplusplus
40900 extern "C"
40901 #endif
40902 char $ac_func ();
40903 /* The GNU C library defines this for functions which it implements
40904     to always fail with ENOSYS.  Some functions are actually named
40905     something starting with __ and the normal name is an alias.  */
40906 #if defined __stub_$ac_func || defined __stub___$ac_func
40907 choke me
40908 #endif
40909
40910 int
40911 main ()
40912 {
40913 return $ac_func ();
40914   ;
40915   return 0;
40916 }
40917 _ACEOF
40918 rm -f conftest.$ac_objext conftest$ac_exeext
40919 if { (ac_try="$ac_link"
40920 case "(($ac_try" in
40921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40922   *) ac_try_echo=$ac_try;;
40923 esac
40924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40925   (eval "$ac_link") 2>conftest.er1
40926   ac_status=$?
40927   grep -v '^ *+' conftest.er1 >conftest.err
40928   rm -f conftest.er1
40929   cat conftest.err >&5
40930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40931   (exit $ac_status); } && {
40932          test -z "$ac_c_werror_flag" ||
40933          test ! -s conftest.err
40934        } && test -s conftest$ac_exeext &&
40935        $as_test_x conftest$ac_exeext; then
40936   eval "$as_ac_var=yes"
40937 else
40938   echo "$as_me: failed program was:" >&5
40939 sed 's/^/| /' conftest.$ac_ext >&5
40940
40941         eval "$as_ac_var=no"
40942 fi
40943
40944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40945       conftest$ac_exeext conftest.$ac_ext
40946 fi
40947 ac_res=`eval echo '${'$as_ac_var'}'`
40948                { echo "$as_me:$LINENO: result: $ac_res" >&5
40949 echo "${ECHO_T}$ac_res" >&6; }
40950 if test `eval echo '${'$as_ac_var'}'` = yes; then
40951   cat >>confdefs.h <<_ACEOF
40952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40953 _ACEOF
40954
40955 fi
40956 done
40957
40958
40959                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
40960 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
40961 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
40962   echo $ECHO_N "(cached) $ECHO_C" >&6
40963 else
40964
40965                                 ac_ext=cpp
40966 ac_cpp='$CXXCPP $CPPFLAGS'
40967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40970
40971         cat >conftest.$ac_ext <<_ACEOF
40972 /* confdefs.h.  */
40973 _ACEOF
40974 cat confdefs.h >>conftest.$ac_ext
40975 cat >>conftest.$ac_ext <<_ACEOF
40976 /* end confdefs.h.  */
40977 #include <pthread.h>
40978                void ThreadCleanupFunc(void *p);
40979
40980 int
40981 main ()
40982 {
40983
40984                 void *p;
40985                 pthread_cleanup_push(ThreadCleanupFunc, p);
40986                 pthread_cleanup_pop(0);
40987
40988   ;
40989   return 0;
40990 }
40991 _ACEOF
40992 rm -f conftest.$ac_objext
40993 if { (ac_try="$ac_compile"
40994 case "(($ac_try" in
40995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40996   *) ac_try_echo=$ac_try;;
40997 esac
40998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40999   (eval "$ac_compile") 2>conftest.er1
41000   ac_status=$?
41001   grep -v '^ *+' conftest.er1 >conftest.err
41002   rm -f conftest.er1
41003   cat conftest.err >&5
41004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41005   (exit $ac_status); } && {
41006          test -z "$ac_cxx_werror_flag" ||
41007          test ! -s conftest.err
41008        } && test -s conftest.$ac_objext; then
41009
41010                wx_cv_func_pthread_cleanup=yes
41011
41012 else
41013   echo "$as_me: failed program was:" >&5
41014 sed 's/^/| /' conftest.$ac_ext >&5
41015
41016
41017                wx_cv_func_pthread_cleanup=no
41018
41019
41020 fi
41021
41022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41023         ac_ext=c
41024 ac_cpp='$CPP $CPPFLAGS'
41025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41028
41029
41030 fi
41031 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
41032 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
41033       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
41034         cat >>confdefs.h <<\_ACEOF
41035 #define wxHAVE_PTHREAD_CLEANUP 1
41036 _ACEOF
41037
41038       fi
41039
41040
41041 for ac_header in sched.h
41042 do
41043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41047   echo $ECHO_N "(cached) $ECHO_C" >&6
41048 else
41049   cat >conftest.$ac_ext <<_ACEOF
41050 /* confdefs.h.  */
41051 _ACEOF
41052 cat confdefs.h >>conftest.$ac_ext
41053 cat >>conftest.$ac_ext <<_ACEOF
41054 /* end confdefs.h.  */
41055 $ac_includes_default
41056
41057 #include <$ac_header>
41058 _ACEOF
41059 rm -f conftest.$ac_objext
41060 if { (ac_try="$ac_compile"
41061 case "(($ac_try" in
41062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41063   *) ac_try_echo=$ac_try;;
41064 esac
41065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41066   (eval "$ac_compile") 2>conftest.er1
41067   ac_status=$?
41068   grep -v '^ *+' conftest.er1 >conftest.err
41069   rm -f conftest.er1
41070   cat conftest.err >&5
41071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072   (exit $ac_status); } && {
41073          test -z "$ac_c_werror_flag" ||
41074          test ! -s conftest.err
41075        } && test -s conftest.$ac_objext; then
41076   eval "$as_ac_Header=yes"
41077 else
41078   echo "$as_me: failed program was:" >&5
41079 sed 's/^/| /' conftest.$ac_ext >&5
41080
41081         eval "$as_ac_Header=no"
41082 fi
41083
41084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41085 fi
41086 ac_res=`eval echo '${'$as_ac_Header'}'`
41087                { echo "$as_me:$LINENO: result: $ac_res" >&5
41088 echo "${ECHO_T}$ac_res" >&6; }
41089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41090   cat >>confdefs.h <<_ACEOF
41091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41092 _ACEOF
41093
41094 fi
41095
41096 done
41097
41098       if test "$ac_cv_header_sched_h" = "yes"; then
41099           { echo "$as_me:$LINENO: checking for sched_yield" >&5
41100 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
41101 if test "${ac_cv_func_sched_yield+set}" = set; then
41102   echo $ECHO_N "(cached) $ECHO_C" >&6
41103 else
41104   cat >conftest.$ac_ext <<_ACEOF
41105 /* confdefs.h.  */
41106 _ACEOF
41107 cat confdefs.h >>conftest.$ac_ext
41108 cat >>conftest.$ac_ext <<_ACEOF
41109 /* end confdefs.h.  */
41110 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
41111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41112 #define sched_yield innocuous_sched_yield
41113
41114 /* System header to define __stub macros and hopefully few prototypes,
41115     which can conflict with char sched_yield (); below.
41116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41117     <limits.h> exists even on freestanding compilers.  */
41118
41119 #ifdef __STDC__
41120 # include <limits.h>
41121 #else
41122 # include <assert.h>
41123 #endif
41124
41125 #undef sched_yield
41126
41127 /* Override any GCC internal prototype to avoid an error.
41128    Use char because int might match the return type of a GCC
41129    builtin and then its argument prototype would still apply.  */
41130 #ifdef __cplusplus
41131 extern "C"
41132 #endif
41133 char sched_yield ();
41134 /* The GNU C library defines this for functions which it implements
41135     to always fail with ENOSYS.  Some functions are actually named
41136     something starting with __ and the normal name is an alias.  */
41137 #if defined __stub_sched_yield || defined __stub___sched_yield
41138 choke me
41139 #endif
41140
41141 int
41142 main ()
41143 {
41144 return sched_yield ();
41145   ;
41146   return 0;
41147 }
41148 _ACEOF
41149 rm -f conftest.$ac_objext conftest$ac_exeext
41150 if { (ac_try="$ac_link"
41151 case "(($ac_try" in
41152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41153   *) ac_try_echo=$ac_try;;
41154 esac
41155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41156   (eval "$ac_link") 2>conftest.er1
41157   ac_status=$?
41158   grep -v '^ *+' conftest.er1 >conftest.err
41159   rm -f conftest.er1
41160   cat conftest.err >&5
41161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41162   (exit $ac_status); } && {
41163          test -z "$ac_c_werror_flag" ||
41164          test ! -s conftest.err
41165        } && test -s conftest$ac_exeext &&
41166        $as_test_x conftest$ac_exeext; then
41167   ac_cv_func_sched_yield=yes
41168 else
41169   echo "$as_me: failed program was:" >&5
41170 sed 's/^/| /' conftest.$ac_ext >&5
41171
41172         ac_cv_func_sched_yield=no
41173 fi
41174
41175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41176       conftest$ac_exeext conftest.$ac_ext
41177 fi
41178 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
41179 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
41180 if test $ac_cv_func_sched_yield = yes; then
41181   cat >>confdefs.h <<\_ACEOF
41182 #define HAVE_SCHED_YIELD 1
41183 _ACEOF
41184
41185 else
41186
41187                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
41188 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
41189 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
41190   echo $ECHO_N "(cached) $ECHO_C" >&6
41191 else
41192   ac_check_lib_save_LIBS=$LIBS
41193 LIBS="-lposix4  $LIBS"
41194 cat >conftest.$ac_ext <<_ACEOF
41195 /* confdefs.h.  */
41196 _ACEOF
41197 cat confdefs.h >>conftest.$ac_ext
41198 cat >>conftest.$ac_ext <<_ACEOF
41199 /* end confdefs.h.  */
41200
41201 /* Override any GCC internal prototype to avoid an error.
41202    Use char because int might match the return type of a GCC
41203    builtin and then its argument prototype would still apply.  */
41204 #ifdef __cplusplus
41205 extern "C"
41206 #endif
41207 char sched_yield ();
41208 int
41209 main ()
41210 {
41211 return sched_yield ();
41212   ;
41213   return 0;
41214 }
41215 _ACEOF
41216 rm -f conftest.$ac_objext conftest$ac_exeext
41217 if { (ac_try="$ac_link"
41218 case "(($ac_try" in
41219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41220   *) ac_try_echo=$ac_try;;
41221 esac
41222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41223   (eval "$ac_link") 2>conftest.er1
41224   ac_status=$?
41225   grep -v '^ *+' conftest.er1 >conftest.err
41226   rm -f conftest.er1
41227   cat conftest.err >&5
41228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41229   (exit $ac_status); } && {
41230          test -z "$ac_c_werror_flag" ||
41231          test ! -s conftest.err
41232        } && test -s conftest$ac_exeext &&
41233        $as_test_x conftest$ac_exeext; then
41234   ac_cv_lib_posix4_sched_yield=yes
41235 else
41236   echo "$as_me: failed program was:" >&5
41237 sed 's/^/| /' conftest.$ac_ext >&5
41238
41239         ac_cv_lib_posix4_sched_yield=no
41240 fi
41241
41242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41243       conftest$ac_exeext conftest.$ac_ext
41244 LIBS=$ac_check_lib_save_LIBS
41245 fi
41246 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
41247 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
41248 if test $ac_cv_lib_posix4_sched_yield = yes; then
41249   cat >>confdefs.h <<\_ACEOF
41250 #define HAVE_SCHED_YIELD 1
41251 _ACEOF
41252  POSIX4_LINK=" -lposix4"
41253 else
41254   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
41255 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
41256
41257 fi
41258
41259
41260
41261 fi
41262
41263       fi
41264
41265                                           HAVE_PRIOR_FUNCS=0
41266       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
41267 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
41268 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
41269   echo $ECHO_N "(cached) $ECHO_C" >&6
41270 else
41271   cat >conftest.$ac_ext <<_ACEOF
41272 /* confdefs.h.  */
41273 _ACEOF
41274 cat confdefs.h >>conftest.$ac_ext
41275 cat >>conftest.$ac_ext <<_ACEOF
41276 /* end confdefs.h.  */
41277 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
41278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41279 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
41280
41281 /* System header to define __stub macros and hopefully few prototypes,
41282     which can conflict with char pthread_attr_getschedpolicy (); below.
41283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41284     <limits.h> exists even on freestanding compilers.  */
41285
41286 #ifdef __STDC__
41287 # include <limits.h>
41288 #else
41289 # include <assert.h>
41290 #endif
41291
41292 #undef pthread_attr_getschedpolicy
41293
41294 /* Override any GCC internal prototype to avoid an error.
41295    Use char because int might match the return type of a GCC
41296    builtin and then its argument prototype would still apply.  */
41297 #ifdef __cplusplus
41298 extern "C"
41299 #endif
41300 char pthread_attr_getschedpolicy ();
41301 /* The GNU C library defines this for functions which it implements
41302     to always fail with ENOSYS.  Some functions are actually named
41303     something starting with __ and the normal name is an alias.  */
41304 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
41305 choke me
41306 #endif
41307
41308 int
41309 main ()
41310 {
41311 return pthread_attr_getschedpolicy ();
41312   ;
41313   return 0;
41314 }
41315 _ACEOF
41316 rm -f conftest.$ac_objext conftest$ac_exeext
41317 if { (ac_try="$ac_link"
41318 case "(($ac_try" in
41319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41320   *) ac_try_echo=$ac_try;;
41321 esac
41322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41323   (eval "$ac_link") 2>conftest.er1
41324   ac_status=$?
41325   grep -v '^ *+' conftest.er1 >conftest.err
41326   rm -f conftest.er1
41327   cat conftest.err >&5
41328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41329   (exit $ac_status); } && {
41330          test -z "$ac_c_werror_flag" ||
41331          test ! -s conftest.err
41332        } && test -s conftest$ac_exeext &&
41333        $as_test_x conftest$ac_exeext; then
41334   ac_cv_func_pthread_attr_getschedpolicy=yes
41335 else
41336   echo "$as_me: failed program was:" >&5
41337 sed 's/^/| /' conftest.$ac_ext >&5
41338
41339         ac_cv_func_pthread_attr_getschedpolicy=no
41340 fi
41341
41342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41343       conftest$ac_exeext conftest.$ac_ext
41344 fi
41345 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
41346 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
41347 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
41348   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
41349 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
41350 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
41351   echo $ECHO_N "(cached) $ECHO_C" >&6
41352 else
41353   cat >conftest.$ac_ext <<_ACEOF
41354 /* confdefs.h.  */
41355 _ACEOF
41356 cat confdefs.h >>conftest.$ac_ext
41357 cat >>conftest.$ac_ext <<_ACEOF
41358 /* end confdefs.h.  */
41359 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
41360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41361 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
41362
41363 /* System header to define __stub macros and hopefully few prototypes,
41364     which can conflict with char pthread_attr_setschedparam (); below.
41365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41366     <limits.h> exists even on freestanding compilers.  */
41367
41368 #ifdef __STDC__
41369 # include <limits.h>
41370 #else
41371 # include <assert.h>
41372 #endif
41373
41374 #undef pthread_attr_setschedparam
41375
41376 /* Override any GCC internal prototype to avoid an error.
41377    Use char because int might match the return type of a GCC
41378    builtin and then its argument prototype would still apply.  */
41379 #ifdef __cplusplus
41380 extern "C"
41381 #endif
41382 char pthread_attr_setschedparam ();
41383 /* The GNU C library defines this for functions which it implements
41384     to always fail with ENOSYS.  Some functions are actually named
41385     something starting with __ and the normal name is an alias.  */
41386 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
41387 choke me
41388 #endif
41389
41390 int
41391 main ()
41392 {
41393 return pthread_attr_setschedparam ();
41394   ;
41395   return 0;
41396 }
41397 _ACEOF
41398 rm -f conftest.$ac_objext conftest$ac_exeext
41399 if { (ac_try="$ac_link"
41400 case "(($ac_try" in
41401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41402   *) ac_try_echo=$ac_try;;
41403 esac
41404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41405   (eval "$ac_link") 2>conftest.er1
41406   ac_status=$?
41407   grep -v '^ *+' conftest.er1 >conftest.err
41408   rm -f conftest.er1
41409   cat conftest.err >&5
41410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41411   (exit $ac_status); } && {
41412          test -z "$ac_c_werror_flag" ||
41413          test ! -s conftest.err
41414        } && test -s conftest$ac_exeext &&
41415        $as_test_x conftest$ac_exeext; then
41416   ac_cv_func_pthread_attr_setschedparam=yes
41417 else
41418   echo "$as_me: failed program was:" >&5
41419 sed 's/^/| /' conftest.$ac_ext >&5
41420
41421         ac_cv_func_pthread_attr_setschedparam=no
41422 fi
41423
41424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41425       conftest$ac_exeext conftest.$ac_ext
41426 fi
41427 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41428 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
41429 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41430   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41431 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
41432 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41433   echo $ECHO_N "(cached) $ECHO_C" >&6
41434 else
41435   cat >conftest.$ac_ext <<_ACEOF
41436 /* confdefs.h.  */
41437 _ACEOF
41438 cat confdefs.h >>conftest.$ac_ext
41439 cat >>conftest.$ac_ext <<_ACEOF
41440 /* end confdefs.h.  */
41441 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41443 #define sched_get_priority_max innocuous_sched_get_priority_max
41444
41445 /* System header to define __stub macros and hopefully few prototypes,
41446     which can conflict with char sched_get_priority_max (); below.
41447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41448     <limits.h> exists even on freestanding compilers.  */
41449
41450 #ifdef __STDC__
41451 # include <limits.h>
41452 #else
41453 # include <assert.h>
41454 #endif
41455
41456 #undef sched_get_priority_max
41457
41458 /* Override any GCC internal prototype to avoid an error.
41459    Use char because int might match the return type of a GCC
41460    builtin and then its argument prototype would still apply.  */
41461 #ifdef __cplusplus
41462 extern "C"
41463 #endif
41464 char sched_get_priority_max ();
41465 /* The GNU C library defines this for functions which it implements
41466     to always fail with ENOSYS.  Some functions are actually named
41467     something starting with __ and the normal name is an alias.  */
41468 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
41469 choke me
41470 #endif
41471
41472 int
41473 main ()
41474 {
41475 return sched_get_priority_max ();
41476   ;
41477   return 0;
41478 }
41479 _ACEOF
41480 rm -f conftest.$ac_objext conftest$ac_exeext
41481 if { (ac_try="$ac_link"
41482 case "(($ac_try" in
41483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41484   *) ac_try_echo=$ac_try;;
41485 esac
41486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41487   (eval "$ac_link") 2>conftest.er1
41488   ac_status=$?
41489   grep -v '^ *+' conftest.er1 >conftest.err
41490   rm -f conftest.er1
41491   cat conftest.err >&5
41492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41493   (exit $ac_status); } && {
41494          test -z "$ac_c_werror_flag" ||
41495          test ! -s conftest.err
41496        } && test -s conftest$ac_exeext &&
41497        $as_test_x conftest$ac_exeext; then
41498   ac_cv_func_sched_get_priority_max=yes
41499 else
41500   echo "$as_me: failed program was:" >&5
41501 sed 's/^/| /' conftest.$ac_ext >&5
41502
41503         ac_cv_func_sched_get_priority_max=no
41504 fi
41505
41506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41507       conftest$ac_exeext conftest.$ac_ext
41508 fi
41509 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
41510 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
41511 if test $ac_cv_func_sched_get_priority_max = yes; then
41512   HAVE_PRIOR_FUNCS=1
41513 else
41514   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
41515 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
41516 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
41517   echo $ECHO_N "(cached) $ECHO_C" >&6
41518 else
41519   ac_check_lib_save_LIBS=$LIBS
41520 LIBS="-lposix4  $LIBS"
41521 cat >conftest.$ac_ext <<_ACEOF
41522 /* confdefs.h.  */
41523 _ACEOF
41524 cat confdefs.h >>conftest.$ac_ext
41525 cat >>conftest.$ac_ext <<_ACEOF
41526 /* end confdefs.h.  */
41527
41528 /* Override any GCC internal prototype to avoid an error.
41529    Use char because int might match the return type of a GCC
41530    builtin and then its argument prototype would still apply.  */
41531 #ifdef __cplusplus
41532 extern "C"
41533 #endif
41534 char sched_get_priority_max ();
41535 int
41536 main ()
41537 {
41538 return sched_get_priority_max ();
41539   ;
41540   return 0;
41541 }
41542 _ACEOF
41543 rm -f conftest.$ac_objext conftest$ac_exeext
41544 if { (ac_try="$ac_link"
41545 case "(($ac_try" in
41546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41547   *) ac_try_echo=$ac_try;;
41548 esac
41549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41550   (eval "$ac_link") 2>conftest.er1
41551   ac_status=$?
41552   grep -v '^ *+' conftest.er1 >conftest.err
41553   rm -f conftest.er1
41554   cat conftest.err >&5
41555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41556   (exit $ac_status); } && {
41557          test -z "$ac_c_werror_flag" ||
41558          test ! -s conftest.err
41559        } && test -s conftest$ac_exeext &&
41560        $as_test_x conftest$ac_exeext; then
41561   ac_cv_lib_posix4_sched_get_priority_max=yes
41562 else
41563   echo "$as_me: failed program was:" >&5
41564 sed 's/^/| /' conftest.$ac_ext >&5
41565
41566         ac_cv_lib_posix4_sched_get_priority_max=no
41567 fi
41568
41569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41570       conftest$ac_exeext conftest.$ac_ext
41571 LIBS=$ac_check_lib_save_LIBS
41572 fi
41573 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
41574 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
41575 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
41576
41577                                 HAVE_PRIOR_FUNCS=1
41578                                 POSIX4_LINK=" -lposix4"
41579
41580 fi
41581
41582
41583 fi
41584
41585
41586 fi
41587
41588
41589 fi
41590
41591
41592       if test "$HAVE_PRIOR_FUNCS" = 1; then
41593         cat >>confdefs.h <<\_ACEOF
41594 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
41595 _ACEOF
41596
41597       else
41598         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
41599 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
41600       fi
41601
41602       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
41603 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
41604 if test "${ac_cv_func_pthread_cancel+set}" = set; then
41605   echo $ECHO_N "(cached) $ECHO_C" >&6
41606 else
41607   cat >conftest.$ac_ext <<_ACEOF
41608 /* confdefs.h.  */
41609 _ACEOF
41610 cat confdefs.h >>conftest.$ac_ext
41611 cat >>conftest.$ac_ext <<_ACEOF
41612 /* end confdefs.h.  */
41613 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
41614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41615 #define pthread_cancel innocuous_pthread_cancel
41616
41617 /* System header to define __stub macros and hopefully few prototypes,
41618     which can conflict with char pthread_cancel (); below.
41619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41620     <limits.h> exists even on freestanding compilers.  */
41621
41622 #ifdef __STDC__
41623 # include <limits.h>
41624 #else
41625 # include <assert.h>
41626 #endif
41627
41628 #undef pthread_cancel
41629
41630 /* Override any GCC internal prototype to avoid an error.
41631    Use char because int might match the return type of a GCC
41632    builtin and then its argument prototype would still apply.  */
41633 #ifdef __cplusplus
41634 extern "C"
41635 #endif
41636 char pthread_cancel ();
41637 /* The GNU C library defines this for functions which it implements
41638     to always fail with ENOSYS.  Some functions are actually named
41639     something starting with __ and the normal name is an alias.  */
41640 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
41641 choke me
41642 #endif
41643
41644 int
41645 main ()
41646 {
41647 return pthread_cancel ();
41648   ;
41649   return 0;
41650 }
41651 _ACEOF
41652 rm -f conftest.$ac_objext conftest$ac_exeext
41653 if { (ac_try="$ac_link"
41654 case "(($ac_try" in
41655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41656   *) ac_try_echo=$ac_try;;
41657 esac
41658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41659   (eval "$ac_link") 2>conftest.er1
41660   ac_status=$?
41661   grep -v '^ *+' conftest.er1 >conftest.err
41662   rm -f conftest.er1
41663   cat conftest.err >&5
41664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41665   (exit $ac_status); } && {
41666          test -z "$ac_c_werror_flag" ||
41667          test ! -s conftest.err
41668        } && test -s conftest$ac_exeext &&
41669        $as_test_x conftest$ac_exeext; then
41670   ac_cv_func_pthread_cancel=yes
41671 else
41672   echo "$as_me: failed program was:" >&5
41673 sed 's/^/| /' conftest.$ac_ext >&5
41674
41675         ac_cv_func_pthread_cancel=no
41676 fi
41677
41678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41679       conftest$ac_exeext conftest.$ac_ext
41680 fi
41681 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
41682 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
41683 if test $ac_cv_func_pthread_cancel = yes; then
41684   cat >>confdefs.h <<\_ACEOF
41685 #define HAVE_PTHREAD_CANCEL 1
41686 _ACEOF
41687
41688 else
41689   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
41690 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
41691 fi
41692
41693
41694       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
41695 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
41696 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
41697   echo $ECHO_N "(cached) $ECHO_C" >&6
41698 else
41699   cat >conftest.$ac_ext <<_ACEOF
41700 /* confdefs.h.  */
41701 _ACEOF
41702 cat confdefs.h >>conftest.$ac_ext
41703 cat >>conftest.$ac_ext <<_ACEOF
41704 /* end confdefs.h.  */
41705 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
41706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41707 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
41708
41709 /* System header to define __stub macros and hopefully few prototypes,
41710     which can conflict with char pthread_mutex_timedlock (); below.
41711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41712     <limits.h> exists even on freestanding compilers.  */
41713
41714 #ifdef __STDC__
41715 # include <limits.h>
41716 #else
41717 # include <assert.h>
41718 #endif
41719
41720 #undef pthread_mutex_timedlock
41721
41722 /* Override any GCC internal prototype to avoid an error.
41723    Use char because int might match the return type of a GCC
41724    builtin and then its argument prototype would still apply.  */
41725 #ifdef __cplusplus
41726 extern "C"
41727 #endif
41728 char pthread_mutex_timedlock ();
41729 /* The GNU C library defines this for functions which it implements
41730     to always fail with ENOSYS.  Some functions are actually named
41731     something starting with __ and the normal name is an alias.  */
41732 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
41733 choke me
41734 #endif
41735
41736 int
41737 main ()
41738 {
41739 return pthread_mutex_timedlock ();
41740   ;
41741   return 0;
41742 }
41743 _ACEOF
41744 rm -f conftest.$ac_objext conftest$ac_exeext
41745 if { (ac_try="$ac_link"
41746 case "(($ac_try" in
41747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41748   *) ac_try_echo=$ac_try;;
41749 esac
41750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41751   (eval "$ac_link") 2>conftest.er1
41752   ac_status=$?
41753   grep -v '^ *+' conftest.er1 >conftest.err
41754   rm -f conftest.er1
41755   cat conftest.err >&5
41756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41757   (exit $ac_status); } && {
41758          test -z "$ac_c_werror_flag" ||
41759          test ! -s conftest.err
41760        } && test -s conftest$ac_exeext &&
41761        $as_test_x conftest$ac_exeext; then
41762   ac_cv_func_pthread_mutex_timedlock=yes
41763 else
41764   echo "$as_me: failed program was:" >&5
41765 sed 's/^/| /' conftest.$ac_ext >&5
41766
41767         ac_cv_func_pthread_mutex_timedlock=no
41768 fi
41769
41770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41771       conftest$ac_exeext conftest.$ac_ext
41772 fi
41773 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
41774 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
41775 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
41776   cat >>confdefs.h <<\_ACEOF
41777 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
41778 _ACEOF
41779
41780 else
41781   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
41782 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
41783 fi
41784
41785
41786       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
41787 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
41788 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
41789   echo $ECHO_N "(cached) $ECHO_C" >&6
41790 else
41791   cat >conftest.$ac_ext <<_ACEOF
41792 /* confdefs.h.  */
41793 _ACEOF
41794 cat confdefs.h >>conftest.$ac_ext
41795 cat >>conftest.$ac_ext <<_ACEOF
41796 /* end confdefs.h.  */
41797 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
41798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41799 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
41800
41801 /* System header to define __stub macros and hopefully few prototypes,
41802     which can conflict with char pthread_attr_setstacksize (); below.
41803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41804     <limits.h> exists even on freestanding compilers.  */
41805
41806 #ifdef __STDC__
41807 # include <limits.h>
41808 #else
41809 # include <assert.h>
41810 #endif
41811
41812 #undef pthread_attr_setstacksize
41813
41814 /* Override any GCC internal prototype to avoid an error.
41815    Use char because int might match the return type of a GCC
41816    builtin and then its argument prototype would still apply.  */
41817 #ifdef __cplusplus
41818 extern "C"
41819 #endif
41820 char pthread_attr_setstacksize ();
41821 /* The GNU C library defines this for functions which it implements
41822     to always fail with ENOSYS.  Some functions are actually named
41823     something starting with __ and the normal name is an alias.  */
41824 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
41825 choke me
41826 #endif
41827
41828 int
41829 main ()
41830 {
41831 return pthread_attr_setstacksize ();
41832   ;
41833   return 0;
41834 }
41835 _ACEOF
41836 rm -f conftest.$ac_objext conftest$ac_exeext
41837 if { (ac_try="$ac_link"
41838 case "(($ac_try" in
41839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41840   *) ac_try_echo=$ac_try;;
41841 esac
41842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41843   (eval "$ac_link") 2>conftest.er1
41844   ac_status=$?
41845   grep -v '^ *+' conftest.er1 >conftest.err
41846   rm -f conftest.er1
41847   cat conftest.err >&5
41848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849   (exit $ac_status); } && {
41850          test -z "$ac_c_werror_flag" ||
41851          test ! -s conftest.err
41852        } && test -s conftest$ac_exeext &&
41853        $as_test_x conftest$ac_exeext; then
41854   ac_cv_func_pthread_attr_setstacksize=yes
41855 else
41856   echo "$as_me: failed program was:" >&5
41857 sed 's/^/| /' conftest.$ac_ext >&5
41858
41859         ac_cv_func_pthread_attr_setstacksize=no
41860 fi
41861
41862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41863       conftest$ac_exeext conftest.$ac_ext
41864 fi
41865 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
41866 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
41867 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
41868   cat >>confdefs.h <<\_ACEOF
41869 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
41870 _ACEOF
41871
41872 fi
41873
41874
41875
41876       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
41877 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
41878 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
41879   echo $ECHO_N "(cached) $ECHO_C" >&6
41880 else
41881
41882         cat >conftest.$ac_ext <<_ACEOF
41883 /* confdefs.h.  */
41884 _ACEOF
41885 cat confdefs.h >>conftest.$ac_ext
41886 cat >>conftest.$ac_ext <<_ACEOF
41887 /* end confdefs.h.  */
41888 #include <pthread.h>
41889 int
41890 main ()
41891 {
41892
41893                pthread_mutexattr_t attr;
41894                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41895
41896   ;
41897   return 0;
41898 }
41899 _ACEOF
41900 rm -f conftest.$ac_objext
41901 if { (ac_try="$ac_compile"
41902 case "(($ac_try" in
41903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41904   *) ac_try_echo=$ac_try;;
41905 esac
41906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41907   (eval "$ac_compile") 2>conftest.er1
41908   ac_status=$?
41909   grep -v '^ *+' conftest.er1 >conftest.err
41910   rm -f conftest.er1
41911   cat conftest.err >&5
41912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41913   (exit $ac_status); } && {
41914          test -z "$ac_c_werror_flag" ||
41915          test ! -s conftest.err
41916        } && test -s conftest.$ac_objext; then
41917   wx_cv_type_pthread_mutexattr_t=yes
41918 else
41919   echo "$as_me: failed program was:" >&5
41920 sed 's/^/| /' conftest.$ac_ext >&5
41921
41922         wx_cv_type_pthread_mutexattr_t=no
41923
41924 fi
41925
41926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41927
41928 fi
41929 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
41930 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
41931
41932       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
41933         cat >>confdefs.h <<\_ACEOF
41934 #define HAVE_PTHREAD_MUTEXATTR_T 1
41935 _ACEOF
41936
41937
41938                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
41939 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
41940 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
41941   echo $ECHO_N "(cached) $ECHO_C" >&6
41942 else
41943
41944                        cat >conftest.$ac_ext <<_ACEOF
41945 /* confdefs.h.  */
41946 _ACEOF
41947 cat confdefs.h >>conftest.$ac_ext
41948 cat >>conftest.$ac_ext <<_ACEOF
41949 /* end confdefs.h.  */
41950 #include <pthread.h>
41951 int
41952 main ()
41953 {
41954
41955                                pthread_mutexattr_t attr;
41956                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41957
41958   ;
41959   return 0;
41960 }
41961 _ACEOF
41962 rm -f conftest.$ac_objext
41963 if { (ac_try="$ac_compile"
41964 case "(($ac_try" in
41965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41966   *) ac_try_echo=$ac_try;;
41967 esac
41968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41969   (eval "$ac_compile") 2>conftest.er1
41970   ac_status=$?
41971   grep -v '^ *+' conftest.er1 >conftest.err
41972   rm -f conftest.er1
41973   cat conftest.err >&5
41974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41975   (exit $ac_status); } && {
41976          test -z "$ac_c_werror_flag" ||
41977          test ! -s conftest.err
41978        } && test -s conftest.$ac_objext; then
41979   wx_cv_func_pthread_mutexattr_settype_decl=yes
41980 else
41981   echo "$as_me: failed program was:" >&5
41982 sed 's/^/| /' conftest.$ac_ext >&5
41983
41984         wx_cv_func_pthread_mutexattr_settype_decl=no
41985
41986 fi
41987
41988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41989
41990 fi
41991 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
41992 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
41993         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
41994             cat >>confdefs.h <<\_ACEOF
41995 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
41996 _ACEOF
41997
41998         fi
41999       else
42000                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
42001 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
42002 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
42003   echo $ECHO_N "(cached) $ECHO_C" >&6
42004 else
42005
42006             cat >conftest.$ac_ext <<_ACEOF
42007 /* confdefs.h.  */
42008 _ACEOF
42009 cat confdefs.h >>conftest.$ac_ext
42010 cat >>conftest.$ac_ext <<_ACEOF
42011 /* end confdefs.h.  */
42012 #include <pthread.h>
42013 int
42014 main ()
42015 {
42016
42017                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
42018
42019   ;
42020   return 0;
42021 }
42022 _ACEOF
42023 rm -f conftest.$ac_objext
42024 if { (ac_try="$ac_compile"
42025 case "(($ac_try" in
42026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42027   *) ac_try_echo=$ac_try;;
42028 esac
42029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42030   (eval "$ac_compile") 2>conftest.er1
42031   ac_status=$?
42032   grep -v '^ *+' conftest.er1 >conftest.err
42033   rm -f conftest.er1
42034   cat conftest.err >&5
42035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42036   (exit $ac_status); } && {
42037          test -z "$ac_c_werror_flag" ||
42038          test ! -s conftest.err
42039        } && test -s conftest.$ac_objext; then
42040
42041                     wx_cv_type_pthread_rec_mutex_init=yes
42042
42043 else
42044   echo "$as_me: failed program was:" >&5
42045 sed 's/^/| /' conftest.$ac_ext >&5
42046
42047
42048                     wx_cv_type_pthread_rec_mutex_init=no
42049
42050
42051 fi
42052
42053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42054
42055 fi
42056 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
42057 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
42058         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
42059           cat >>confdefs.h <<\_ACEOF
42060 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
42061 _ACEOF
42062
42063         else
42064                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
42065 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
42066         fi
42067       fi
42068
42069       if test "$wxUSE_COMPILER_TLS" = "auto"; then
42070           if test "$USE_NETBSD" = 1; then
42071               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
42072 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
42073               wxUSE_COMPILER_TLS=no
42074           else
42075               wxUSE_COMPILER_TLS=yes
42076           fi
42077       fi
42078
42079       if test "$wxUSE_COMPILER_TLS" = "yes"; then
42080                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
42081 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
42082 if test "${wx_cv_cc___thread+set}" = set; then
42083   echo $ECHO_N "(cached) $ECHO_C" >&6
42084 else
42085
42086                   cat >conftest.$ac_ext <<_ACEOF
42087 /* confdefs.h.  */
42088 _ACEOF
42089 cat confdefs.h >>conftest.$ac_ext
42090 cat >>conftest.$ac_ext <<_ACEOF
42091 /* end confdefs.h.  */
42092 #include <pthread.h>
42093 int
42094 main ()
42095 {
42096
42097                           static __thread int n = 0;
42098                           static __thread int *p = 0;
42099
42100   ;
42101   return 0;
42102 }
42103 _ACEOF
42104 rm -f conftest.$ac_objext
42105 if { (ac_try="$ac_compile"
42106 case "(($ac_try" in
42107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42108   *) ac_try_echo=$ac_try;;
42109 esac
42110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42111   (eval "$ac_compile") 2>conftest.er1
42112   ac_status=$?
42113   grep -v '^ *+' conftest.er1 >conftest.err
42114   rm -f conftest.er1
42115   cat conftest.err >&5
42116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42117   (exit $ac_status); } && {
42118          test -z "$ac_c_werror_flag" ||
42119          test ! -s conftest.err
42120        } && test -s conftest.$ac_objext; then
42121   wx_cv_cc___thread=yes
42122 else
42123   echo "$as_me: failed program was:" >&5
42124 sed 's/^/| /' conftest.$ac_ext >&5
42125
42126         wx_cv_cc___thread=no
42127
42128 fi
42129
42130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42131
42132
42133 fi
42134 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
42135 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
42136
42137           if test "$wx_cv_cc___thread" = "yes"; then
42138
42139   GXX_VERSION=""
42140
42141
42142
42143   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
42144 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
42145
42146   if  test "x$GCC" = "xyes" ; then
42147
42148     if  test -z "" ; then
42149
42150       ax_gcc_option_test="int main()
42151 {
42152         return 0;
42153 }"
42154
42155 else
42156
42157       ax_gcc_option_test=""
42158
42159 fi
42160
42161
42162     # Dump the test program to file
42163     cat <<EOF > conftest.c
42164 $ax_gcc_option_test
42165 EOF
42166
42167     # Dump back the file to the log, useful for debugging purposes
42168     { ac_try='cat conftest.c 1>&5'
42169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42170   (eval $ac_try) 2>&5
42171   ac_status=$?
42172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42173   (exit $ac_status); }; }
42174
42175     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
42176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42177   (eval $ac_try) 2>&5
42178   ac_status=$?
42179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42180   (exit $ac_status); }; } ; then
42181
42182                 { echo "$as_me:$LINENO: result: yes" >&5
42183 echo "${ECHO_T}yes" >&6; }
42184
42185     ax_gcc_version_option=yes
42186
42187
42188 else
42189
42190                 { echo "$as_me:$LINENO: result: no" >&5
42191 echo "${ECHO_T}no" >&6; }
42192
42193     ax_gcc_version_option=no
42194
42195
42196 fi
42197
42198
42199 else
42200
42201     { echo "$as_me:$LINENO: result: no gcc available" >&5
42202 echo "${ECHO_T}no gcc available" >&6; }
42203
42204 fi
42205
42206
42207   if test "x$GXX" = "xyes"; then
42208
42209     if test "x$ax_gxx_version_option" != "no"; then
42210
42211       { echo "$as_me:$LINENO: checking gxx version" >&5
42212 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
42213 if test "${ax_cv_gxx_version+set}" = set; then
42214   echo $ECHO_N "(cached) $ECHO_C" >&6
42215 else
42216
42217         ax_cv_gxx_version="`$CXX -dumpversion`"
42218         if test "x$ax_cv_gxx_version" = "x"; then
42219
42220           ax_cv_gxx_version=""
42221
42222 fi
42223
42224
42225 fi
42226 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
42227 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
42228       GXX_VERSION=$ax_cv_gxx_version
42229
42230 fi
42231
42232
42233 fi
42234
42235
42236
42237               if test -n "$ax_cv_gxx_version"; then
42238                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
42239 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
42240                   case "$ax_cv_gxx_version" in
42241                     1.* | 2.* | 3.* )
42242                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
42243 echo "${ECHO_T}no, it's broken" >&6; }
42244                         wx_cv_cc___thread=no
42245                         ;;
42246                     *)
42247                         { echo "$as_me:$LINENO: result: yes, it works" >&5
42248 echo "${ECHO_T}yes, it works" >&6; }
42249                         ;;
42250                   esac
42251               fi
42252           fi
42253
42254           if test "$wx_cv_cc___thread" = "yes"; then
42255             cat >>confdefs.h <<\_ACEOF
42256 #define HAVE___THREAD_KEYWORD 1
42257 _ACEOF
42258
42259           fi
42260         fi
42261     fi
42262
42263 else
42264     if test "$wxUSE_THREADS" = "yes" ; then
42265       case "${host}" in
42266         x86_64-*-mingw32* )
42267         ;;
42268         *-*-mingw32* )
42269                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
42270 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
42271 if test "${wx_cv_cflags_mthread+set}" = set; then
42272   echo $ECHO_N "(cached) $ECHO_C" >&6
42273 else
42274
42275                     CFLAGS_OLD="$CFLAGS"
42276                     CFLAGS="-mthreads $CFLAGS"
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
42284 int
42285 main ()
42286 {
42287
42288   ;
42289   return 0;
42290 }
42291 _ACEOF
42292 rm -f conftest.$ac_objext
42293 if { (ac_try="$ac_compile"
42294 case "(($ac_try" in
42295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42296   *) ac_try_echo=$ac_try;;
42297 esac
42298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42299   (eval "$ac_compile") 2>conftest.er1
42300   ac_status=$?
42301   grep -v '^ *+' conftest.er1 >conftest.err
42302   rm -f conftest.er1
42303   cat conftest.err >&5
42304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42305   (exit $ac_status); } && {
42306          test -z "$ac_c_werror_flag" ||
42307          test ! -s conftest.err
42308        } && test -s conftest.$ac_objext; then
42309   wx_cv_cflags_mthread=yes
42310 else
42311   echo "$as_me: failed program was:" >&5
42312 sed 's/^/| /' conftest.$ac_ext >&5
42313
42314         wx_cv_cflags_mthread=no
42315
42316 fi
42317
42318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42319
42320
42321 fi
42322 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
42323 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
42324
42325             if test "$wx_cv_cflags_mthread" = "yes"; then
42326                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
42327                 LDFLAGS="$LDFLAGS -mthreads"
42328             else
42329                                 CFLAGS="$CFLAGS_OLD"
42330             fi
42331         ;;
42332         *-pc-os2*emx )
42333             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
42334             LDFLAGS="$LDFLAGS -Zmt"
42335         ;;
42336       esac
42337     fi
42338 fi
42339
42340 { echo "$as_me:$LINENO: checking for localtime_r" >&5
42341 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
42342 if test "${ac_cv_func_localtime_r+set}" = set; then
42343   echo $ECHO_N "(cached) $ECHO_C" >&6
42344 else
42345   cat >conftest.$ac_ext <<_ACEOF
42346 /* confdefs.h.  */
42347 _ACEOF
42348 cat confdefs.h >>conftest.$ac_ext
42349 cat >>conftest.$ac_ext <<_ACEOF
42350 /* end confdefs.h.  */
42351 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
42352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42353 #define localtime_r innocuous_localtime_r
42354
42355 /* System header to define __stub macros and hopefully few prototypes,
42356     which can conflict with char localtime_r (); below.
42357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42358     <limits.h> exists even on freestanding compilers.  */
42359
42360 #ifdef __STDC__
42361 # include <limits.h>
42362 #else
42363 # include <assert.h>
42364 #endif
42365
42366 #undef localtime_r
42367
42368 /* Override any GCC internal prototype to avoid an error.
42369    Use char because int might match the return type of a GCC
42370    builtin and then its argument prototype would still apply.  */
42371 #ifdef __cplusplus
42372 extern "C"
42373 #endif
42374 char localtime_r ();
42375 /* The GNU C library defines this for functions which it implements
42376     to always fail with ENOSYS.  Some functions are actually named
42377     something starting with __ and the normal name is an alias.  */
42378 #if defined __stub_localtime_r || defined __stub___localtime_r
42379 choke me
42380 #endif
42381
42382 int
42383 main ()
42384 {
42385 return localtime_r ();
42386   ;
42387   return 0;
42388 }
42389 _ACEOF
42390 rm -f conftest.$ac_objext conftest$ac_exeext
42391 if { (ac_try="$ac_link"
42392 case "(($ac_try" in
42393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42394   *) ac_try_echo=$ac_try;;
42395 esac
42396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42397   (eval "$ac_link") 2>conftest.er1
42398   ac_status=$?
42399   grep -v '^ *+' conftest.er1 >conftest.err
42400   rm -f conftest.er1
42401   cat conftest.err >&5
42402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42403   (exit $ac_status); } && {
42404          test -z "$ac_c_werror_flag" ||
42405          test ! -s conftest.err
42406        } && test -s conftest$ac_exeext &&
42407        $as_test_x conftest$ac_exeext; then
42408   ac_cv_func_localtime_r=yes
42409 else
42410   echo "$as_me: failed program was:" >&5
42411 sed 's/^/| /' conftest.$ac_ext >&5
42412
42413         ac_cv_func_localtime_r=no
42414 fi
42415
42416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42417       conftest$ac_exeext conftest.$ac_ext
42418 fi
42419 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42420 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42421 if test $ac_cv_func_localtime_r = yes; then
42422    cat >>confdefs.h <<\_ACEOF
42423 #define HAVE_LOCALTIME_R 1
42424 _ACEOF
42425
42426 fi
42427
42428 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42429 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42430 if test "${ac_cv_func_gmtime_r+set}" = set; then
42431   echo $ECHO_N "(cached) $ECHO_C" >&6
42432 else
42433   cat >conftest.$ac_ext <<_ACEOF
42434 /* confdefs.h.  */
42435 _ACEOF
42436 cat confdefs.h >>conftest.$ac_ext
42437 cat >>conftest.$ac_ext <<_ACEOF
42438 /* end confdefs.h.  */
42439 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42441 #define gmtime_r innocuous_gmtime_r
42442
42443 /* System header to define __stub macros and hopefully few prototypes,
42444     which can conflict with char gmtime_r (); below.
42445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42446     <limits.h> exists even on freestanding compilers.  */
42447
42448 #ifdef __STDC__
42449 # include <limits.h>
42450 #else
42451 # include <assert.h>
42452 #endif
42453
42454 #undef gmtime_r
42455
42456 /* Override any GCC internal prototype to avoid an error.
42457    Use char because int might match the return type of a GCC
42458    builtin and then its argument prototype would still apply.  */
42459 #ifdef __cplusplus
42460 extern "C"
42461 #endif
42462 char gmtime_r ();
42463 /* The GNU C library defines this for functions which it implements
42464     to always fail with ENOSYS.  Some functions are actually named
42465     something starting with __ and the normal name is an alias.  */
42466 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42467 choke me
42468 #endif
42469
42470 int
42471 main ()
42472 {
42473 return gmtime_r ();
42474   ;
42475   return 0;
42476 }
42477 _ACEOF
42478 rm -f conftest.$ac_objext conftest$ac_exeext
42479 if { (ac_try="$ac_link"
42480 case "(($ac_try" in
42481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42482   *) ac_try_echo=$ac_try;;
42483 esac
42484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42485   (eval "$ac_link") 2>conftest.er1
42486   ac_status=$?
42487   grep -v '^ *+' conftest.er1 >conftest.err
42488   rm -f conftest.er1
42489   cat conftest.err >&5
42490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42491   (exit $ac_status); } && {
42492          test -z "$ac_c_werror_flag" ||
42493          test ! -s conftest.err
42494        } && test -s conftest$ac_exeext &&
42495        $as_test_x conftest$ac_exeext; then
42496   ac_cv_func_gmtime_r=yes
42497 else
42498   echo "$as_me: failed program was:" >&5
42499 sed 's/^/| /' conftest.$ac_ext >&5
42500
42501         ac_cv_func_gmtime_r=no
42502 fi
42503
42504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42505       conftest$ac_exeext conftest.$ac_ext
42506 fi
42507 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42508 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42509 if test $ac_cv_func_gmtime_r = yes; then
42510    cat >>confdefs.h <<\_ACEOF
42511 #define HAVE_GMTIME_R 1
42512 _ACEOF
42513
42514 fi
42515
42516
42517
42518
42519     ac_ext=c
42520 ac_cpp='$CPP $CPPFLAGS'
42521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42524
42525     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42526 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42527
42528     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42529   echo $ECHO_N "(cached) $ECHO_C" >&6
42530 else
42531
42532
42533 ################################################################
42534
42535 ac_cv_func_which_gethostbyname_r=unknown
42536
42537 #
42538 # ONE ARGUMENT (sanity check)
42539 #
42540
42541 # This should fail, as there is no variant of gethostbyname_r() that takes
42542 # a single argument. If it actually compiles, then we can assume that
42543 # netdb.h is not declaring the function, and the compiler is thereby
42544 # assuming an implicit prototype. In which case, we're out of luck.
42545 #
42546 cat >conftest.$ac_ext <<_ACEOF
42547 /* confdefs.h.  */
42548 _ACEOF
42549 cat confdefs.h >>conftest.$ac_ext
42550 cat >>conftest.$ac_ext <<_ACEOF
42551 /* end confdefs.h.  */
42552 #include <netdb.h>
42553 int
42554 main ()
42555 {
42556
42557             char *name = "www.gnu.org";
42558             (void)gethostbyname_r(name) /* ; */
42559
42560
42561   ;
42562   return 0;
42563 }
42564 _ACEOF
42565 rm -f conftest.$ac_objext
42566 if { (ac_try="$ac_compile"
42567 case "(($ac_try" in
42568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42569   *) ac_try_echo=$ac_try;;
42570 esac
42571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42572   (eval "$ac_compile") 2>conftest.er1
42573   ac_status=$?
42574   grep -v '^ *+' conftest.er1 >conftest.err
42575   rm -f conftest.er1
42576   cat conftest.err >&5
42577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42578   (exit $ac_status); } && {
42579          test -z "$ac_c_werror_flag" ||
42580          test ! -s conftest.err
42581        } && test -s conftest.$ac_objext; then
42582   ac_cv_func_which_gethostbyname_r=no
42583
42584 else
42585   echo "$as_me: failed program was:" >&5
42586 sed 's/^/| /' conftest.$ac_ext >&5
42587
42588
42589 fi
42590
42591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42592
42593 #
42594 # SIX ARGUMENTS
42595 # (e.g. Linux)
42596 #
42597
42598 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42599
42600 cat >conftest.$ac_ext <<_ACEOF
42601 /* confdefs.h.  */
42602 _ACEOF
42603 cat confdefs.h >>conftest.$ac_ext
42604 cat >>conftest.$ac_ext <<_ACEOF
42605 /* end confdefs.h.  */
42606 #include <netdb.h>
42607 int
42608 main ()
42609 {
42610
42611             char *name = "www.gnu.org";
42612             struct hostent ret, *retp;
42613             char buf[1024];
42614             int buflen = 1024;
42615             int my_h_errno;
42616             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42617
42618
42619   ;
42620   return 0;
42621 }
42622 _ACEOF
42623 rm -f conftest.$ac_objext
42624 if { (ac_try="$ac_compile"
42625 case "(($ac_try" in
42626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42627   *) ac_try_echo=$ac_try;;
42628 esac
42629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42630   (eval "$ac_compile") 2>conftest.er1
42631   ac_status=$?
42632   grep -v '^ *+' conftest.er1 >conftest.err
42633   rm -f conftest.er1
42634   cat conftest.err >&5
42635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42636   (exit $ac_status); } && {
42637          test -z "$ac_c_werror_flag" ||
42638          test ! -s conftest.err
42639        } && test -s conftest.$ac_objext; then
42640   ac_cv_func_which_gethostbyname_r=six
42641
42642 else
42643   echo "$as_me: failed program was:" >&5
42644 sed 's/^/| /' conftest.$ac_ext >&5
42645
42646
42647 fi
42648
42649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42650
42651 fi
42652
42653 #
42654 # FIVE ARGUMENTS
42655 # (e.g. Solaris)
42656 #
42657
42658 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42659
42660 cat >conftest.$ac_ext <<_ACEOF
42661 /* confdefs.h.  */
42662 _ACEOF
42663 cat confdefs.h >>conftest.$ac_ext
42664 cat >>conftest.$ac_ext <<_ACEOF
42665 /* end confdefs.h.  */
42666 #include <netdb.h>
42667 int
42668 main ()
42669 {
42670
42671             char *name = "www.gnu.org";
42672             struct hostent ret;
42673             char buf[1024];
42674             int buflen = 1024;
42675             int my_h_errno;
42676             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
42677
42678
42679   ;
42680   return 0;
42681 }
42682 _ACEOF
42683 rm -f conftest.$ac_objext
42684 if { (ac_try="$ac_compile"
42685 case "(($ac_try" in
42686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42687   *) ac_try_echo=$ac_try;;
42688 esac
42689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42690   (eval "$ac_compile") 2>conftest.er1
42691   ac_status=$?
42692   grep -v '^ *+' conftest.er1 >conftest.err
42693   rm -f conftest.er1
42694   cat conftest.err >&5
42695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42696   (exit $ac_status); } && {
42697          test -z "$ac_c_werror_flag" ||
42698          test ! -s conftest.err
42699        } && test -s conftest.$ac_objext; then
42700   ac_cv_func_which_gethostbyname_r=five
42701
42702 else
42703   echo "$as_me: failed program was:" >&5
42704 sed 's/^/| /' conftest.$ac_ext >&5
42705
42706
42707 fi
42708
42709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42710
42711 fi
42712
42713 #
42714 # THREE ARGUMENTS
42715 # (e.g. AIX, HP-UX, Tru64)
42716 #
42717
42718 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42719
42720 cat >conftest.$ac_ext <<_ACEOF
42721 /* confdefs.h.  */
42722 _ACEOF
42723 cat confdefs.h >>conftest.$ac_ext
42724 cat >>conftest.$ac_ext <<_ACEOF
42725 /* end confdefs.h.  */
42726 #include <netdb.h>
42727 int
42728 main ()
42729 {
42730
42731             char *name = "www.gnu.org";
42732             struct hostent ret;
42733             struct hostent_data data;
42734             (void)gethostbyname_r(name, &ret, &data) /* ; */
42735
42736
42737   ;
42738   return 0;
42739 }
42740 _ACEOF
42741 rm -f conftest.$ac_objext
42742 if { (ac_try="$ac_compile"
42743 case "(($ac_try" in
42744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42745   *) ac_try_echo=$ac_try;;
42746 esac
42747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42748   (eval "$ac_compile") 2>conftest.er1
42749   ac_status=$?
42750   grep -v '^ *+' conftest.er1 >conftest.err
42751   rm -f conftest.er1
42752   cat conftest.err >&5
42753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42754   (exit $ac_status); } && {
42755          test -z "$ac_c_werror_flag" ||
42756          test ! -s conftest.err
42757        } && test -s conftest.$ac_objext; then
42758   ac_cv_func_which_gethostbyname_r=three
42759
42760 else
42761   echo "$as_me: failed program was:" >&5
42762 sed 's/^/| /' conftest.$ac_ext >&5
42763
42764
42765 fi
42766
42767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42768
42769 fi
42770
42771 ################################################################
42772
42773
42774 fi
42775
42776 case "$ac_cv_func_which_gethostbyname_r" in
42777     three)
42778     { echo "$as_me:$LINENO: result: three" >&5
42779 echo "${ECHO_T}three" >&6; }
42780     cat >>confdefs.h <<\_ACEOF
42781 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
42782 _ACEOF
42783
42784     ;;
42785
42786     five)
42787     { echo "$as_me:$LINENO: result: five" >&5
42788 echo "${ECHO_T}five" >&6; }
42789     cat >>confdefs.h <<\_ACEOF
42790 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
42791 _ACEOF
42792
42793     ;;
42794
42795     six)
42796     { echo "$as_me:$LINENO: result: six" >&5
42797 echo "${ECHO_T}six" >&6; }
42798     cat >>confdefs.h <<\_ACEOF
42799 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
42800 _ACEOF
42801
42802     ;;
42803
42804     no)
42805     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
42806 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
42807     ;;
42808
42809     unknown)
42810     { echo "$as_me:$LINENO: result: can't tell" >&5
42811 echo "${ECHO_T}can't tell" >&6; }
42812     ;;
42813
42814     *)
42815     { { echo "$as_me:$LINENO: error: internal error" >&5
42816 echo "$as_me: error: internal error" >&2;}
42817    { (exit 1); exit 1; }; }
42818     ;;
42819 esac
42820
42821 ac_ext=c
42822 ac_cpp='$CPP $CPPFLAGS'
42823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42826
42827
42828
42829       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
42830               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
42831           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
42832 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
42833 if test "${ac_cv_func_gethostbyname+set}" = set; then
42834   echo $ECHO_N "(cached) $ECHO_C" >&6
42835 else
42836   cat >conftest.$ac_ext <<_ACEOF
42837 /* confdefs.h.  */
42838 _ACEOF
42839 cat confdefs.h >>conftest.$ac_ext
42840 cat >>conftest.$ac_ext <<_ACEOF
42841 /* end confdefs.h.  */
42842 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
42843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42844 #define gethostbyname innocuous_gethostbyname
42845
42846 /* System header to define __stub macros and hopefully few prototypes,
42847     which can conflict with char gethostbyname (); below.
42848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42849     <limits.h> exists even on freestanding compilers.  */
42850
42851 #ifdef __STDC__
42852 # include <limits.h>
42853 #else
42854 # include <assert.h>
42855 #endif
42856
42857 #undef gethostbyname
42858
42859 /* Override any GCC internal prototype to avoid an error.
42860    Use char because int might match the return type of a GCC
42861    builtin and then its argument prototype would still apply.  */
42862 #ifdef __cplusplus
42863 extern "C"
42864 #endif
42865 char gethostbyname ();
42866 /* The GNU C library defines this for functions which it implements
42867     to always fail with ENOSYS.  Some functions are actually named
42868     something starting with __ and the normal name is an alias.  */
42869 #if defined __stub_gethostbyname || defined __stub___gethostbyname
42870 choke me
42871 #endif
42872
42873 int
42874 main ()
42875 {
42876 return gethostbyname ();
42877   ;
42878   return 0;
42879 }
42880 _ACEOF
42881 rm -f conftest.$ac_objext conftest$ac_exeext
42882 if { (ac_try="$ac_link"
42883 case "(($ac_try" in
42884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42885   *) ac_try_echo=$ac_try;;
42886 esac
42887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42888   (eval "$ac_link") 2>conftest.er1
42889   ac_status=$?
42890   grep -v '^ *+' conftest.er1 >conftest.err
42891   rm -f conftest.er1
42892   cat conftest.err >&5
42893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42894   (exit $ac_status); } && {
42895          test -z "$ac_c_werror_flag" ||
42896          test ! -s conftest.err
42897        } && test -s conftest$ac_exeext &&
42898        $as_test_x conftest$ac_exeext; then
42899   ac_cv_func_gethostbyname=yes
42900 else
42901   echo "$as_me: failed program was:" >&5
42902 sed 's/^/| /' conftest.$ac_ext >&5
42903
42904         ac_cv_func_gethostbyname=no
42905 fi
42906
42907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42908       conftest$ac_exeext conftest.$ac_ext
42909 fi
42910 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
42911 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
42912 if test $ac_cv_func_gethostbyname = yes; then
42913    cat >>confdefs.h <<\_ACEOF
42914 #define HAVE_GETHOSTBYNAME 1
42915 _ACEOF
42916
42917 fi
42918
42919       fi
42920
42921 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
42922 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
42923 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
42924   echo $ECHO_N "(cached) $ECHO_C" >&6
42925 else
42926
42927                 ac_ext=cpp
42928 ac_cpp='$CXXCPP $CPPFLAGS'
42929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42932
42933
42934         cat >conftest.$ac_ext <<_ACEOF
42935 /* confdefs.h.  */
42936 _ACEOF
42937 cat confdefs.h >>conftest.$ac_ext
42938 cat >>conftest.$ac_ext <<_ACEOF
42939 /* end confdefs.h.  */
42940 #include <netdb.h>
42941 int
42942 main ()
42943 {
42944
42945                 char *name;
42946                 char *proto;
42947                 struct servent *se, *res;
42948                 char buffer[2048];
42949                 int buflen = 2048;
42950                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
42951
42952   ;
42953   return 0;
42954 }
42955 _ACEOF
42956 rm -f conftest.$ac_objext
42957 if { (ac_try="$ac_compile"
42958 case "(($ac_try" in
42959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42960   *) ac_try_echo=$ac_try;;
42961 esac
42962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42963   (eval "$ac_compile") 2>conftest.er1
42964   ac_status=$?
42965   grep -v '^ *+' conftest.er1 >conftest.err
42966   rm -f conftest.er1
42967   cat conftest.err >&5
42968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42969   (exit $ac_status); } && {
42970          test -z "$ac_cxx_werror_flag" ||
42971          test ! -s conftest.err
42972        } && test -s conftest.$ac_objext; then
42973   ac_cv_func_which_getservbyname_r=six
42974 else
42975   echo "$as_me: failed program was:" >&5
42976 sed 's/^/| /' conftest.$ac_ext >&5
42977
42978
42979                 cat >conftest.$ac_ext <<_ACEOF
42980 /* confdefs.h.  */
42981 _ACEOF
42982 cat confdefs.h >>conftest.$ac_ext
42983 cat >>conftest.$ac_ext <<_ACEOF
42984 /* end confdefs.h.  */
42985 #include <netdb.h>
42986 int
42987 main ()
42988 {
42989
42990                         char *name;
42991                         char *proto;
42992                         struct servent *se;
42993                         char buffer[2048];
42994                         int buflen = 2048;
42995                         (void) getservbyname_r(name, proto, se, buffer, buflen)
42996
42997   ;
42998   return 0;
42999 }
43000 _ACEOF
43001 rm -f conftest.$ac_objext
43002 if { (ac_try="$ac_compile"
43003 case "(($ac_try" in
43004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43005   *) ac_try_echo=$ac_try;;
43006 esac
43007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43008   (eval "$ac_compile") 2>conftest.er1
43009   ac_status=$?
43010   grep -v '^ *+' conftest.er1 >conftest.err
43011   rm -f conftest.er1
43012   cat conftest.err >&5
43013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43014   (exit $ac_status); } && {
43015          test -z "$ac_cxx_werror_flag" ||
43016          test ! -s conftest.err
43017        } && test -s conftest.$ac_objext; then
43018   ac_cv_func_which_getservbyname_r=five
43019 else
43020   echo "$as_me: failed program was:" >&5
43021 sed 's/^/| /' conftest.$ac_ext >&5
43022
43023
43024                         cat >conftest.$ac_ext <<_ACEOF
43025 /* confdefs.h.  */
43026 _ACEOF
43027 cat confdefs.h >>conftest.$ac_ext
43028 cat >>conftest.$ac_ext <<_ACEOF
43029 /* end confdefs.h.  */
43030 #include <netdb.h>
43031 int
43032 main ()
43033 {
43034
43035                                 char *name;
43036                                 char *proto;
43037                                 struct servent *se;
43038                                 struct servent_data data;
43039                                 (void) getservbyname_r(name, proto, se, &data);
43040
43041   ;
43042   return 0;
43043 }
43044 _ACEOF
43045 rm -f conftest.$ac_objext
43046 if { (ac_try="$ac_compile"
43047 case "(($ac_try" in
43048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43049   *) ac_try_echo=$ac_try;;
43050 esac
43051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43052   (eval "$ac_compile") 2>conftest.er1
43053   ac_status=$?
43054   grep -v '^ *+' conftest.er1 >conftest.err
43055   rm -f conftest.er1
43056   cat conftest.err >&5
43057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43058   (exit $ac_status); } && {
43059          test -z "$ac_cxx_werror_flag" ||
43060          test ! -s conftest.err
43061        } && test -s conftest.$ac_objext; then
43062   ac_cv_func_which_getservbyname_r=four
43063 else
43064   echo "$as_me: failed program was:" >&5
43065 sed 's/^/| /' conftest.$ac_ext >&5
43066
43067         ac_cv_func_which_getservbyname_r=no
43068
43069 fi
43070
43071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43072
43073
43074 fi
43075
43076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43077
43078
43079 fi
43080
43081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43082         ac_ext=c
43083 ac_cpp='$CPP $CPPFLAGS'
43084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43087
43088
43089
43090 fi
43091 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
43092 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
43093
43094 if test $ac_cv_func_which_getservbyname_r = six; then
43095   cat >>confdefs.h <<\_ACEOF
43096 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
43097 _ACEOF
43098
43099 elif test $ac_cv_func_which_getservbyname_r = five; then
43100   cat >>confdefs.h <<\_ACEOF
43101 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
43102 _ACEOF
43103
43104 elif test $ac_cv_func_which_getservbyname_r = four; then
43105   cat >>confdefs.h <<\_ACEOF
43106 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
43107 _ACEOF
43108
43109 fi
43110
43111
43112       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
43113               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
43114
43115 for ac_func in getservbyname
43116 do
43117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43121   echo $ECHO_N "(cached) $ECHO_C" >&6
43122 else
43123   cat >conftest.$ac_ext <<_ACEOF
43124 /* confdefs.h.  */
43125 _ACEOF
43126 cat confdefs.h >>conftest.$ac_ext
43127 cat >>conftest.$ac_ext <<_ACEOF
43128 /* end confdefs.h.  */
43129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43131 #define $ac_func innocuous_$ac_func
43132
43133 /* System header to define __stub macros and hopefully few prototypes,
43134     which can conflict with char $ac_func (); below.
43135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43136     <limits.h> exists even on freestanding compilers.  */
43137
43138 #ifdef __STDC__
43139 # include <limits.h>
43140 #else
43141 # include <assert.h>
43142 #endif
43143
43144 #undef $ac_func
43145
43146 /* Override any GCC internal prototype to avoid an error.
43147    Use char because int might match the return type of a GCC
43148    builtin and then its argument prototype would still apply.  */
43149 #ifdef __cplusplus
43150 extern "C"
43151 #endif
43152 char $ac_func ();
43153 /* The GNU C library defines this for functions which it implements
43154     to always fail with ENOSYS.  Some functions are actually named
43155     something starting with __ and the normal name is an alias.  */
43156 #if defined __stub_$ac_func || defined __stub___$ac_func
43157 choke me
43158 #endif
43159
43160 int
43161 main ()
43162 {
43163 return $ac_func ();
43164   ;
43165   return 0;
43166 }
43167 _ACEOF
43168 rm -f conftest.$ac_objext conftest$ac_exeext
43169 if { (ac_try="$ac_link"
43170 case "(($ac_try" in
43171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43172   *) ac_try_echo=$ac_try;;
43173 esac
43174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43175   (eval "$ac_link") 2>conftest.er1
43176   ac_status=$?
43177   grep -v '^ *+' conftest.er1 >conftest.err
43178   rm -f conftest.er1
43179   cat conftest.err >&5
43180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43181   (exit $ac_status); } && {
43182          test -z "$ac_c_werror_flag" ||
43183          test ! -s conftest.err
43184        } && test -s conftest$ac_exeext &&
43185        $as_test_x conftest$ac_exeext; then
43186   eval "$as_ac_var=yes"
43187 else
43188   echo "$as_me: failed program was:" >&5
43189 sed 's/^/| /' conftest.$ac_ext >&5
43190
43191         eval "$as_ac_var=no"
43192 fi
43193
43194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43195       conftest$ac_exeext conftest.$ac_ext
43196 fi
43197 ac_res=`eval echo '${'$as_ac_var'}'`
43198                { echo "$as_me:$LINENO: result: $ac_res" >&5
43199 echo "${ECHO_T}$ac_res" >&6; }
43200 if test `eval echo '${'$as_ac_var'}'` = yes; then
43201   cat >>confdefs.h <<_ACEOF
43202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43203 _ACEOF
43204   cat >>confdefs.h <<\_ACEOF
43205 #define HAVE_GETSERVBYNAME 1
43206 _ACEOF
43207
43208 fi
43209 done
43210
43211       fi
43212
43213 if test "$wxUSE_THREADS" = "yes"; then
43214   cat >>confdefs.h <<\_ACEOF
43215 #define wxUSE_THREADS 1
43216 _ACEOF
43217
43218
43219   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
43220 else
43221       if test "$wx_cv_func_strtok_r" = "yes"; then
43222     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
43223 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
43224     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
43225         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
43226         { echo "$as_me:$LINENO: result: yes" >&5
43227 echo "${ECHO_T}yes" >&6; }
43228     else
43229         { echo "$as_me:$LINENO: result: no" >&5
43230 echo "${ECHO_T}no" >&6; }
43231     fi
43232   fi
43233 fi
43234
43235 if test "$WXGTK2" = 1 ; then
43236   cat >>confdefs.h <<_ACEOF
43237 #define __WXGTK20__ $WXGTK2
43238 _ACEOF
43239
43240 fi
43241
43242 if test "$WXGTK127" = 1 ; then
43243   cat >>confdefs.h <<_ACEOF
43244 #define __WXGTK127__ $WXGTK127
43245 _ACEOF
43246
43247 fi
43248
43249 if test "$WXGPE" = 1 ; then
43250   cat >>confdefs.h <<_ACEOF
43251 #define __WXGPE__ $WXGPE
43252 _ACEOF
43253
43254 fi
43255
43256 DEBUG_CFLAGS=
43257 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
43258                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
43259 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
43260 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
43261     DEBUG_CFLAGS="-g"
43262 fi
43263
43264 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
43265     wxUSE_DEBUG_INFO=yes
43266     if test "$GCC" = yes; then
43267         DEBUG_CFLAGS="-ggdb"
43268     fi
43269 fi
43270
43271 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
43272     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
43273
43274     if test "$wxUSE_GTK" = 1 ; then
43275         if test "x$wxGTK_VERSION" = "x1" ; then
43276             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
43277         else
43278             CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS"
43279         fi
43280     fi
43281 fi
43282
43283 if test "$wxUSE_MEM_TRACING" = "yes" ; then
43284     cat >>confdefs.h <<\_ACEOF
43285 #define wxUSE_MEMORY_TRACING 1
43286 _ACEOF
43287
43288     cat >>confdefs.h <<\_ACEOF
43289 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
43290 _ACEOF
43291
43292     cat >>confdefs.h <<\_ACEOF
43293 #define wxUSE_DEBUG_NEW_ALWAYS 1
43294 _ACEOF
43295
43296     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
43297 fi
43298
43299 if test "$wxUSE_DMALLOC" = "yes" ; then
43300     DMALLOC_LIBS="-ldmallocthcxx"
43301 fi
43302
43303 PROFILE_FLAGS=
43304 if test "$wxUSE_PROFILE" = "yes" ; then
43305     PROFILE_FLAGS=" -pg"
43306 fi
43307
43308 if test "$GCC" = "yes" ; then
43309     if test "$wxUSE_NO_RTTI" = "yes" ; then
43310                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
43311     fi
43312     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43313         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
43314     fi
43315     if test "$wxUSE_PERMISSIVE" = "yes" ; then
43316         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
43317     fi
43318
43319                                                 case "${host}" in
43320       powerpc*-*-aix* )
43321         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
43322         ;;
43323       *-hppa* )
43324         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
43325         ;;
43326     esac
43327 fi
43328
43329 OPTIMISE_CFLAGS=
43330 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
43331                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
43332 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
43333 else
43334     if test "$wxUSE_OPTIMISE" = "no" ; then
43335         if test "$GCC" = yes ; then
43336                                     OPTIMISE_CFLAGS="-O0"
43337         fi
43338     else
43339         if test "$GCC" = yes ; then
43340             case "${host}" in
43341                 *-pc-os2_emx | *-pc-os2-emx )
43342                                                             OPTIMISE_CFLAGS="-O2"
43343                 ;;
43344                 *)
43345                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
43346                 ;;
43347             esac
43348         else
43349             OPTIMISE_CFLAGS="-O"
43350         fi
43351     fi
43352 fi
43353
43354
43355 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
43356     cat >>confdefs.h <<\_ACEOF
43357 #define WXWIN_COMPATIBILITY_2_6 1
43358 _ACEOF
43359
43360
43361     WXWIN_COMPATIBILITY_2_8="yes"
43362 fi
43363
43364 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43365     cat >>confdefs.h <<\_ACEOF
43366 #define WXWIN_COMPATIBILITY_2_8 1
43367 _ACEOF
43368
43369 fi
43370
43371
43372 if test "$wxUSE_GUI" = "yes"; then
43373     cat >>confdefs.h <<\_ACEOF
43374 #define wxUSE_GUI 1
43375 _ACEOF
43376
43377
43378                                             fi
43379
43380
43381 if test "$wxUSE_UNIX" = "yes"; then
43382   cat >>confdefs.h <<\_ACEOF
43383 #define wxUSE_UNIX 1
43384 _ACEOF
43385
43386 fi
43387
43388
43389 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43390
43391     HAVE_DL_FUNCS=0
43392     HAVE_SHL_FUNCS=0
43393     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43394         if test "$USE_DOS" = 1; then
43395             HAVE_DL_FUNCS=0
43396         else
43397
43398 for ac_func in dlopen
43399 do
43400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43404   echo $ECHO_N "(cached) $ECHO_C" >&6
43405 else
43406   cat >conftest.$ac_ext <<_ACEOF
43407 /* confdefs.h.  */
43408 _ACEOF
43409 cat confdefs.h >>conftest.$ac_ext
43410 cat >>conftest.$ac_ext <<_ACEOF
43411 /* end confdefs.h.  */
43412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43414 #define $ac_func innocuous_$ac_func
43415
43416 /* System header to define __stub macros and hopefully few prototypes,
43417     which can conflict with char $ac_func (); below.
43418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43419     <limits.h> exists even on freestanding compilers.  */
43420
43421 #ifdef __STDC__
43422 # include <limits.h>
43423 #else
43424 # include <assert.h>
43425 #endif
43426
43427 #undef $ac_func
43428
43429 /* Override any GCC internal prototype to avoid an error.
43430    Use char because int might match the return type of a GCC
43431    builtin and then its argument prototype would still apply.  */
43432 #ifdef __cplusplus
43433 extern "C"
43434 #endif
43435 char $ac_func ();
43436 /* The GNU C library defines this for functions which it implements
43437     to always fail with ENOSYS.  Some functions are actually named
43438     something starting with __ and the normal name is an alias.  */
43439 #if defined __stub_$ac_func || defined __stub___$ac_func
43440 choke me
43441 #endif
43442
43443 int
43444 main ()
43445 {
43446 return $ac_func ();
43447   ;
43448   return 0;
43449 }
43450 _ACEOF
43451 rm -f conftest.$ac_objext conftest$ac_exeext
43452 if { (ac_try="$ac_link"
43453 case "(($ac_try" in
43454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43455   *) ac_try_echo=$ac_try;;
43456 esac
43457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43458   (eval "$ac_link") 2>conftest.er1
43459   ac_status=$?
43460   grep -v '^ *+' conftest.er1 >conftest.err
43461   rm -f conftest.er1
43462   cat conftest.err >&5
43463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43464   (exit $ac_status); } && {
43465          test -z "$ac_c_werror_flag" ||
43466          test ! -s conftest.err
43467        } && test -s conftest$ac_exeext &&
43468        $as_test_x conftest$ac_exeext; then
43469   eval "$as_ac_var=yes"
43470 else
43471   echo "$as_me: failed program was:" >&5
43472 sed 's/^/| /' conftest.$ac_ext >&5
43473
43474         eval "$as_ac_var=no"
43475 fi
43476
43477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43478       conftest$ac_exeext conftest.$ac_ext
43479 fi
43480 ac_res=`eval echo '${'$as_ac_var'}'`
43481                { echo "$as_me:$LINENO: result: $ac_res" >&5
43482 echo "${ECHO_T}$ac_res" >&6; }
43483 if test `eval echo '${'$as_ac_var'}'` = yes; then
43484   cat >>confdefs.h <<_ACEOF
43485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43486 _ACEOF
43487
43488                 cat >>confdefs.h <<\_ACEOF
43489 #define HAVE_DLOPEN 1
43490 _ACEOF
43491
43492                 HAVE_DL_FUNCS=1
43493
43494 else
43495
43496                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43497 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43498 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43499   echo $ECHO_N "(cached) $ECHO_C" >&6
43500 else
43501   ac_check_lib_save_LIBS=$LIBS
43502 LIBS="-ldl  $LIBS"
43503 cat >conftest.$ac_ext <<_ACEOF
43504 /* confdefs.h.  */
43505 _ACEOF
43506 cat confdefs.h >>conftest.$ac_ext
43507 cat >>conftest.$ac_ext <<_ACEOF
43508 /* end confdefs.h.  */
43509
43510 /* Override any GCC internal prototype to avoid an error.
43511    Use char because int might match the return type of a GCC
43512    builtin and then its argument prototype would still apply.  */
43513 #ifdef __cplusplus
43514 extern "C"
43515 #endif
43516 char dlopen ();
43517 int
43518 main ()
43519 {
43520 return dlopen ();
43521   ;
43522   return 0;
43523 }
43524 _ACEOF
43525 rm -f conftest.$ac_objext conftest$ac_exeext
43526 if { (ac_try="$ac_link"
43527 case "(($ac_try" in
43528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43529   *) ac_try_echo=$ac_try;;
43530 esac
43531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43532   (eval "$ac_link") 2>conftest.er1
43533   ac_status=$?
43534   grep -v '^ *+' conftest.er1 >conftest.err
43535   rm -f conftest.er1
43536   cat conftest.err >&5
43537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43538   (exit $ac_status); } && {
43539          test -z "$ac_c_werror_flag" ||
43540          test ! -s conftest.err
43541        } && test -s conftest$ac_exeext &&
43542        $as_test_x conftest$ac_exeext; then
43543   ac_cv_lib_dl_dlopen=yes
43544 else
43545   echo "$as_me: failed program was:" >&5
43546 sed 's/^/| /' conftest.$ac_ext >&5
43547
43548         ac_cv_lib_dl_dlopen=no
43549 fi
43550
43551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43552       conftest$ac_exeext conftest.$ac_ext
43553 LIBS=$ac_check_lib_save_LIBS
43554 fi
43555 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43556 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43557 if test $ac_cv_lib_dl_dlopen = yes; then
43558
43559                                 cat >>confdefs.h <<\_ACEOF
43560 #define HAVE_DLOPEN 1
43561 _ACEOF
43562
43563                                 HAVE_DL_FUNCS=1
43564                                 DL_LINK=" -ldl$DL_LINK"
43565
43566 else
43567
43568
43569 for ac_func in shl_load
43570 do
43571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43575   echo $ECHO_N "(cached) $ECHO_C" >&6
43576 else
43577   cat >conftest.$ac_ext <<_ACEOF
43578 /* confdefs.h.  */
43579 _ACEOF
43580 cat confdefs.h >>conftest.$ac_ext
43581 cat >>conftest.$ac_ext <<_ACEOF
43582 /* end confdefs.h.  */
43583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43585 #define $ac_func innocuous_$ac_func
43586
43587 /* System header to define __stub macros and hopefully few prototypes,
43588     which can conflict with char $ac_func (); below.
43589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43590     <limits.h> exists even on freestanding compilers.  */
43591
43592 #ifdef __STDC__
43593 # include <limits.h>
43594 #else
43595 # include <assert.h>
43596 #endif
43597
43598 #undef $ac_func
43599
43600 /* Override any GCC internal prototype to avoid an error.
43601    Use char because int might match the return type of a GCC
43602    builtin and then its argument prototype would still apply.  */
43603 #ifdef __cplusplus
43604 extern "C"
43605 #endif
43606 char $ac_func ();
43607 /* The GNU C library defines this for functions which it implements
43608     to always fail with ENOSYS.  Some functions are actually named
43609     something starting with __ and the normal name is an alias.  */
43610 #if defined __stub_$ac_func || defined __stub___$ac_func
43611 choke me
43612 #endif
43613
43614 int
43615 main ()
43616 {
43617 return $ac_func ();
43618   ;
43619   return 0;
43620 }
43621 _ACEOF
43622 rm -f conftest.$ac_objext conftest$ac_exeext
43623 if { (ac_try="$ac_link"
43624 case "(($ac_try" in
43625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43626   *) ac_try_echo=$ac_try;;
43627 esac
43628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43629   (eval "$ac_link") 2>conftest.er1
43630   ac_status=$?
43631   grep -v '^ *+' conftest.er1 >conftest.err
43632   rm -f conftest.er1
43633   cat conftest.err >&5
43634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43635   (exit $ac_status); } && {
43636          test -z "$ac_c_werror_flag" ||
43637          test ! -s conftest.err
43638        } && test -s conftest$ac_exeext &&
43639        $as_test_x conftest$ac_exeext; then
43640   eval "$as_ac_var=yes"
43641 else
43642   echo "$as_me: failed program was:" >&5
43643 sed 's/^/| /' conftest.$ac_ext >&5
43644
43645         eval "$as_ac_var=no"
43646 fi
43647
43648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43649       conftest$ac_exeext conftest.$ac_ext
43650 fi
43651 ac_res=`eval echo '${'$as_ac_var'}'`
43652                { echo "$as_me:$LINENO: result: $ac_res" >&5
43653 echo "${ECHO_T}$ac_res" >&6; }
43654 if test `eval echo '${'$as_ac_var'}'` = yes; then
43655   cat >>confdefs.h <<_ACEOF
43656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43657 _ACEOF
43658
43659                                                 cat >>confdefs.h <<\_ACEOF
43660 #define HAVE_SHL_LOAD 1
43661 _ACEOF
43662
43663                                                 HAVE_SHL_FUNCS=1
43664
43665 else
43666
43667                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
43668 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
43669 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
43670   echo $ECHO_N "(cached) $ECHO_C" >&6
43671 else
43672   ac_check_lib_save_LIBS=$LIBS
43673 LIBS="-lshl_load  $LIBS"
43674 cat >conftest.$ac_ext <<_ACEOF
43675 /* confdefs.h.  */
43676 _ACEOF
43677 cat confdefs.h >>conftest.$ac_ext
43678 cat >>conftest.$ac_ext <<_ACEOF
43679 /* end confdefs.h.  */
43680
43681 /* Override any GCC internal prototype to avoid an error.
43682    Use char because int might match the return type of a GCC
43683    builtin and then its argument prototype would still apply.  */
43684 #ifdef __cplusplus
43685 extern "C"
43686 #endif
43687 char dld ();
43688 int
43689 main ()
43690 {
43691 return dld ();
43692   ;
43693   return 0;
43694 }
43695 _ACEOF
43696 rm -f conftest.$ac_objext conftest$ac_exeext
43697 if { (ac_try="$ac_link"
43698 case "(($ac_try" in
43699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43700   *) ac_try_echo=$ac_try;;
43701 esac
43702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43703   (eval "$ac_link") 2>conftest.er1
43704   ac_status=$?
43705   grep -v '^ *+' conftest.er1 >conftest.err
43706   rm -f conftest.er1
43707   cat conftest.err >&5
43708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43709   (exit $ac_status); } && {
43710          test -z "$ac_c_werror_flag" ||
43711          test ! -s conftest.err
43712        } && test -s conftest$ac_exeext &&
43713        $as_test_x conftest$ac_exeext; then
43714   ac_cv_lib_shl_load_dld=yes
43715 else
43716   echo "$as_me: failed program was:" >&5
43717 sed 's/^/| /' conftest.$ac_ext >&5
43718
43719         ac_cv_lib_shl_load_dld=no
43720 fi
43721
43722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43723       conftest$ac_exeext conftest.$ac_ext
43724 LIBS=$ac_check_lib_save_LIBS
43725 fi
43726 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
43727 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
43728 if test $ac_cv_lib_shl_load_dld = yes; then
43729
43730                                                                 HAVE_SHL_FUNCS=1
43731                                                                 DL_LINK=" -ldld$DL_LINK"
43732
43733 fi
43734
43735
43736 fi
43737 done
43738
43739
43740 fi
43741
43742
43743 fi
43744 done
43745
43746
43747                         if test "$HAVE_DL_FUNCS" = 1; then
43748
43749 for ac_func in dlerror
43750 do
43751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43755   echo $ECHO_N "(cached) $ECHO_C" >&6
43756 else
43757   cat >conftest.$ac_ext <<_ACEOF
43758 /* confdefs.h.  */
43759 _ACEOF
43760 cat confdefs.h >>conftest.$ac_ext
43761 cat >>conftest.$ac_ext <<_ACEOF
43762 /* end confdefs.h.  */
43763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43765 #define $ac_func innocuous_$ac_func
43766
43767 /* System header to define __stub macros and hopefully few prototypes,
43768     which can conflict with char $ac_func (); below.
43769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43770     <limits.h> exists even on freestanding compilers.  */
43771
43772 #ifdef __STDC__
43773 # include <limits.h>
43774 #else
43775 # include <assert.h>
43776 #endif
43777
43778 #undef $ac_func
43779
43780 /* Override any GCC internal prototype to avoid an error.
43781    Use char because int might match the return type of a GCC
43782    builtin and then its argument prototype would still apply.  */
43783 #ifdef __cplusplus
43784 extern "C"
43785 #endif
43786 char $ac_func ();
43787 /* The GNU C library defines this for functions which it implements
43788     to always fail with ENOSYS.  Some functions are actually named
43789     something starting with __ and the normal name is an alias.  */
43790 #if defined __stub_$ac_func || defined __stub___$ac_func
43791 choke me
43792 #endif
43793
43794 int
43795 main ()
43796 {
43797 return $ac_func ();
43798   ;
43799   return 0;
43800 }
43801 _ACEOF
43802 rm -f conftest.$ac_objext conftest$ac_exeext
43803 if { (ac_try="$ac_link"
43804 case "(($ac_try" in
43805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43806   *) ac_try_echo=$ac_try;;
43807 esac
43808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43809   (eval "$ac_link") 2>conftest.er1
43810   ac_status=$?
43811   grep -v '^ *+' conftest.er1 >conftest.err
43812   rm -f conftest.er1
43813   cat conftest.err >&5
43814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43815   (exit $ac_status); } && {
43816          test -z "$ac_c_werror_flag" ||
43817          test ! -s conftest.err
43818        } && test -s conftest$ac_exeext &&
43819        $as_test_x conftest$ac_exeext; then
43820   eval "$as_ac_var=yes"
43821 else
43822   echo "$as_me: failed program was:" >&5
43823 sed 's/^/| /' conftest.$ac_ext >&5
43824
43825         eval "$as_ac_var=no"
43826 fi
43827
43828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43829       conftest$ac_exeext conftest.$ac_ext
43830 fi
43831 ac_res=`eval echo '${'$as_ac_var'}'`
43832                { echo "$as_me:$LINENO: result: $ac_res" >&5
43833 echo "${ECHO_T}$ac_res" >&6; }
43834 if test `eval echo '${'$as_ac_var'}'` = yes; then
43835   cat >>confdefs.h <<_ACEOF
43836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43837 _ACEOF
43838  cat >>confdefs.h <<\_ACEOF
43839 #define HAVE_DLERROR 1
43840 _ACEOF
43841
43842 else
43843
43844                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
43845 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
43846 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
43847   echo $ECHO_N "(cached) $ECHO_C" >&6
43848 else
43849   ac_check_lib_save_LIBS=$LIBS
43850 LIBS="-ldl  $LIBS"
43851 cat >conftest.$ac_ext <<_ACEOF
43852 /* confdefs.h.  */
43853 _ACEOF
43854 cat confdefs.h >>conftest.$ac_ext
43855 cat >>conftest.$ac_ext <<_ACEOF
43856 /* end confdefs.h.  */
43857
43858 /* Override any GCC internal prototype to avoid an error.
43859    Use char because int might match the return type of a GCC
43860    builtin and then its argument prototype would still apply.  */
43861 #ifdef __cplusplus
43862 extern "C"
43863 #endif
43864 char dlerror ();
43865 int
43866 main ()
43867 {
43868 return dlerror ();
43869   ;
43870   return 0;
43871 }
43872 _ACEOF
43873 rm -f conftest.$ac_objext conftest$ac_exeext
43874 if { (ac_try="$ac_link"
43875 case "(($ac_try" in
43876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43877   *) ac_try_echo=$ac_try;;
43878 esac
43879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43880   (eval "$ac_link") 2>conftest.er1
43881   ac_status=$?
43882   grep -v '^ *+' conftest.er1 >conftest.err
43883   rm -f conftest.er1
43884   cat conftest.err >&5
43885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43886   (exit $ac_status); } && {
43887          test -z "$ac_c_werror_flag" ||
43888          test ! -s conftest.err
43889        } && test -s conftest$ac_exeext &&
43890        $as_test_x conftest$ac_exeext; then
43891   ac_cv_lib_dl_dlerror=yes
43892 else
43893   echo "$as_me: failed program was:" >&5
43894 sed 's/^/| /' conftest.$ac_ext >&5
43895
43896         ac_cv_lib_dl_dlerror=no
43897 fi
43898
43899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43900       conftest$ac_exeext conftest.$ac_ext
43901 LIBS=$ac_check_lib_save_LIBS
43902 fi
43903 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
43904 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
43905 if test $ac_cv_lib_dl_dlerror = yes; then
43906   cat >>confdefs.h <<\_ACEOF
43907 #define HAVE_DLERROR 1
43908 _ACEOF
43909
43910 fi
43911
43912
43913
43914 fi
43915 done
43916
43917             fi
43918         fi
43919
43920                 if test "$USE_DARWIN" = 1; then
43921                         HAVE_DL_FUNCS=1
43922         fi
43923
43924         if test "$HAVE_DL_FUNCS" = 0; then
43925             if test "$HAVE_SHL_FUNCS" = 0; then
43926               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
43927                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
43928 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
43929                   wxUSE_DYNAMIC_LOADER=no
43930                   wxUSE_DYNLIB_CLASS=no
43931               else
43932                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
43933 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
43934               fi
43935             fi
43936         fi
43937     fi
43938 fi
43939
43940 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
43941     cat >>confdefs.h <<\_ACEOF
43942 #define wxUSE_DYNAMIC_LOADER 1
43943 _ACEOF
43944
43945 fi
43946 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43947     cat >>confdefs.h <<\_ACEOF
43948 #define wxUSE_DYNLIB_CLASS 1
43949 _ACEOF
43950
43951 fi
43952
43953
43954
43955 if test "$wxUSE_PLUGINS" = "yes" ; then
43956     if test "$wxUSE_SHARED" = "no" ; then
43957         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
43958 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
43959         wxUSE_PLUGINS=no
43960     fi
43961     if test "$wxUSE_MONOLITHIC" = "yes" ; then
43962         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
43963 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
43964         wxUSE_PLUGINS=no
43965     fi
43966     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
43967         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
43968 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
43969         wxUSE_PLUGINS=no
43970     fi
43971     if test "$wxUSE_PLUGINS" = "yes" ; then
43972         cat >>confdefs.h <<\_ACEOF
43973 #define wxUSE_PLUGINS 1
43974 _ACEOF
43975
43976     fi
43977 fi
43978
43979
43980 if test "$wxUSE_FSWATCHER" = "yes"; then
43981                 if test "$wxUSE_MSW" != "1"; then
43982         if test "$wxUSE_UNIX" = "yes"; then
43983
43984 for ac_header in sys/inotify.h
43985 do
43986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43990   echo $ECHO_N "(cached) $ECHO_C" >&6
43991 else
43992   cat >conftest.$ac_ext <<_ACEOF
43993 /* confdefs.h.  */
43994 _ACEOF
43995 cat confdefs.h >>conftest.$ac_ext
43996 cat >>conftest.$ac_ext <<_ACEOF
43997 /* end confdefs.h.  */
43998 $ac_includes_default
43999
44000 #include <$ac_header>
44001 _ACEOF
44002 rm -f conftest.$ac_objext
44003 if { (ac_try="$ac_compile"
44004 case "(($ac_try" in
44005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44006   *) ac_try_echo=$ac_try;;
44007 esac
44008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44009   (eval "$ac_compile") 2>conftest.er1
44010   ac_status=$?
44011   grep -v '^ *+' conftest.er1 >conftest.err
44012   rm -f conftest.er1
44013   cat conftest.err >&5
44014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44015   (exit $ac_status); } && {
44016          test -z "$ac_c_werror_flag" ||
44017          test ! -s conftest.err
44018        } && test -s conftest.$ac_objext; then
44019   eval "$as_ac_Header=yes"
44020 else
44021   echo "$as_me: failed program was:" >&5
44022 sed 's/^/| /' conftest.$ac_ext >&5
44023
44024         eval "$as_ac_Header=no"
44025 fi
44026
44027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44028 fi
44029 ac_res=`eval echo '${'$as_ac_Header'}'`
44030                { echo "$as_me:$LINENO: result: $ac_res" >&5
44031 echo "${ECHO_T}$ac_res" >&6; }
44032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44033   cat >>confdefs.h <<_ACEOF
44034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44035 _ACEOF
44036
44037 fi
44038
44039 done
44040
44041             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
44042                 cat >>confdefs.h <<\_ACEOF
44043 #define wxHAS_INOTIFY 1
44044 _ACEOF
44045
44046             else
44047
44048 for ac_header in sys/event.h
44049 do
44050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44054   echo $ECHO_N "(cached) $ECHO_C" >&6
44055 else
44056   cat >conftest.$ac_ext <<_ACEOF
44057 /* confdefs.h.  */
44058 _ACEOF
44059 cat confdefs.h >>conftest.$ac_ext
44060 cat >>conftest.$ac_ext <<_ACEOF
44061 /* end confdefs.h.  */
44062 $ac_includes_default
44063
44064 #include <$ac_header>
44065 _ACEOF
44066 rm -f conftest.$ac_objext
44067 if { (ac_try="$ac_compile"
44068 case "(($ac_try" in
44069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44070   *) ac_try_echo=$ac_try;;
44071 esac
44072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44073   (eval "$ac_compile") 2>conftest.er1
44074   ac_status=$?
44075   grep -v '^ *+' conftest.er1 >conftest.err
44076   rm -f conftest.er1
44077   cat conftest.err >&5
44078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44079   (exit $ac_status); } && {
44080          test -z "$ac_c_werror_flag" ||
44081          test ! -s conftest.err
44082        } && test -s conftest.$ac_objext; then
44083   eval "$as_ac_Header=yes"
44084 else
44085   echo "$as_me: failed program was:" >&5
44086 sed 's/^/| /' conftest.$ac_ext >&5
44087
44088         eval "$as_ac_Header=no"
44089 fi
44090
44091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44092 fi
44093 ac_res=`eval echo '${'$as_ac_Header'}'`
44094                { echo "$as_me:$LINENO: result: $ac_res" >&5
44095 echo "${ECHO_T}$ac_res" >&6; }
44096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44097   cat >>confdefs.h <<_ACEOF
44098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44099 _ACEOF
44100
44101 fi
44102
44103 done
44104
44105                 if test "$ac_cv_header_sys_event_h" = "yes"; then
44106                     cat >>confdefs.h <<\_ACEOF
44107 #define wxHAS_KQUEUE 1
44108 _ACEOF
44109
44110                 else
44111                     wxUSE_FSWATCHER=no
44112                 fi
44113             fi
44114         else
44115             wxUSE_FSWATCHER=no
44116         fi
44117     else
44118         if test "$wxUSE_THREADS" != "yes"; then
44119             { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&5
44120 echo "$as_me: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&2;}
44121             wxUSE_FSWATCHER=no
44122         fi
44123     fi
44124
44125     if test "$wxUSE_FSWATCHER" = "yes"; then
44126         cat >>confdefs.h <<\_ACEOF
44127 #define wxUSE_FSWATCHER 1
44128 _ACEOF
44129
44130         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
44131     else
44132         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
44133 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
44134     fi
44135 fi
44136
44137
44138 if test "$wxUSE_STL" = "yes"; then
44139   cat >>confdefs.h <<\_ACEOF
44140 #define wxUSE_STL 1
44141 _ACEOF
44142
44143 fi
44144
44145 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44146   cat >>confdefs.h <<\_ACEOF
44147 #define wxUSE_EXTENDED_RTTI 1
44148 _ACEOF
44149
44150 fi
44151
44152 if test "$wxUSE_ANY" = "yes"; then
44153     cat >>confdefs.h <<\_ACEOF
44154 #define wxUSE_ANY 1
44155 _ACEOF
44156
44157 fi
44158
44159 if test "$wxUSE_APPLE_IEEE" = "yes"; then
44160   cat >>confdefs.h <<\_ACEOF
44161 #define wxUSE_APPLE_IEEE 1
44162 _ACEOF
44163
44164 fi
44165
44166 if test "$wxUSE_TIMER" = "yes"; then
44167   cat >>confdefs.h <<\_ACEOF
44168 #define wxUSE_TIMER 1
44169 _ACEOF
44170
44171 fi
44172
44173 if test "$USE_UNIX" = 1 ; then
44174         if test "$wxUSE_MGL" != 1; then
44175                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44176 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
44177 if test "${ac_cv_header_sys_soundcard+set}" = set; then
44178   echo $ECHO_N "(cached) $ECHO_C" >&6
44179 else
44180
44181             cat >conftest.$ac_ext <<_ACEOF
44182 /* confdefs.h.  */
44183 _ACEOF
44184 cat confdefs.h >>conftest.$ac_ext
44185 cat >>conftest.$ac_ext <<_ACEOF
44186 /* end confdefs.h.  */
44187
44188                     #include <sys/ioctl.h>
44189                     #include <sys/soundcard.h>
44190
44191 int
44192 main ()
44193 {
44194
44195                     ioctl(0, SNDCTL_DSP_SPEED, 0);
44196
44197   ;
44198   return 0;
44199 }
44200 _ACEOF
44201 rm -f conftest.$ac_objext conftest$ac_exeext
44202 if { (ac_try="$ac_link"
44203 case "(($ac_try" in
44204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44205   *) ac_try_echo=$ac_try;;
44206 esac
44207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44208   (eval "$ac_link") 2>conftest.er1
44209   ac_status=$?
44210   grep -v '^ *+' conftest.er1 >conftest.err
44211   rm -f conftest.er1
44212   cat conftest.err >&5
44213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44214   (exit $ac_status); } && {
44215          test -z "$ac_c_werror_flag" ||
44216          test ! -s conftest.err
44217        } && test -s conftest$ac_exeext &&
44218        $as_test_x conftest$ac_exeext; then
44219   ac_cv_header_sys_soundcard=yes
44220 else
44221   echo "$as_me: failed program was:" >&5
44222 sed 's/^/| /' conftest.$ac_ext >&5
44223
44224
44225                     saveLibs="$LIBS"
44226                     LIBS="$saveLibs -lossaudio"
44227                     cat >conftest.$ac_ext <<_ACEOF
44228 /* confdefs.h.  */
44229 _ACEOF
44230 cat confdefs.h >>conftest.$ac_ext
44231 cat >>conftest.$ac_ext <<_ACEOF
44232 /* end confdefs.h.  */
44233
44234                             #include <sys/ioctl.h>
44235                             #include <sys/soundcard.h>
44236
44237 int
44238 main ()
44239 {
44240
44241                             ioctl(0, SNDCTL_DSP_SPEED, 0);
44242
44243   ;
44244   return 0;
44245 }
44246 _ACEOF
44247 rm -f conftest.$ac_objext conftest$ac_exeext
44248 if { (ac_try="$ac_link"
44249 case "(($ac_try" in
44250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44251   *) ac_try_echo=$ac_try;;
44252 esac
44253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44254   (eval "$ac_link") 2>conftest.er1
44255   ac_status=$?
44256   grep -v '^ *+' conftest.er1 >conftest.err
44257   rm -f conftest.er1
44258   cat conftest.err >&5
44259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44260   (exit $ac_status); } && {
44261          test -z "$ac_c_werror_flag" ||
44262          test ! -s conftest.err
44263        } && test -s conftest$ac_exeext &&
44264        $as_test_x conftest$ac_exeext; then
44265   ac_cv_header_sys_soundcard=yes
44266 else
44267   echo "$as_me: failed program was:" >&5
44268 sed 's/^/| /' conftest.$ac_ext >&5
44269
44270
44271                             LIBS="$saveLibs"
44272                             ac_cv_header_sys_soundcard=no
44273
44274
44275 fi
44276
44277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44278       conftest$ac_exeext conftest.$ac_ext
44279
44280
44281 fi
44282
44283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44284       conftest$ac_exeext conftest.$ac_ext
44285
44286 fi
44287 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44288 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
44289     fi
44290
44291     if test "$ac_cv_header_sys_soundcard" = "yes"; then
44292         cat >>confdefs.h <<\_ACEOF
44293 #define HAVE_SYS_SOUNDCARD_H 1
44294 _ACEOF
44295
44296     fi
44297 fi
44298
44299 WITH_PLUGIN_SDL=0
44300 if test "$wxUSE_SOUND" = "yes"; then
44301   if test "$USE_UNIX" = 1 ; then
44302     if test "$wxUSE_LIBSDL" != "no"; then
44303
44304 # Check whether --with-sdl-prefix was given.
44305 if test "${with_sdl_prefix+set}" = set; then
44306   withval=$with_sdl_prefix; sdl_prefix="$withval"
44307 else
44308   sdl_prefix=""
44309 fi
44310
44311
44312 # Check whether --with-sdl-exec-prefix was given.
44313 if test "${with_sdl_exec_prefix+set}" = set; then
44314   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
44315 else
44316   sdl_exec_prefix=""
44317 fi
44318
44319 # Check whether --enable-sdltest was given.
44320 if test "${enable_sdltest+set}" = set; then
44321   enableval=$enable_sdltest;
44322 else
44323   enable_sdltest=yes
44324 fi
44325
44326
44327   if test x$sdl_exec_prefix != x ; then
44328     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44329     if test x${SDL_CONFIG+set} != xset ; then
44330       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44331     fi
44332   fi
44333   if test x$sdl_prefix != x ; then
44334     sdl_args="$sdl_args --prefix=$sdl_prefix"
44335     if test x${SDL_CONFIG+set} != xset ; then
44336       SDL_CONFIG=$sdl_prefix/bin/sdl-config
44337     fi
44338   fi
44339
44340   if test "x$prefix" != xNONE; then
44341     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44342   fi
44343   # Extract the first word of "sdl-config", so it can be a program name with args.
44344 set dummy sdl-config; ac_word=$2
44345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44347 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44348   echo $ECHO_N "(cached) $ECHO_C" >&6
44349 else
44350   case $SDL_CONFIG in
44351   [\\/]* | ?:[\\/]*)
44352   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44353   ;;
44354   *)
44355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44356 for as_dir in $PATH
44357 do
44358   IFS=$as_save_IFS
44359   test -z "$as_dir" && as_dir=.
44360   for ac_exec_ext in '' $ac_executable_extensions; do
44361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44362     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44364     break 2
44365   fi
44366 done
44367 done
44368 IFS=$as_save_IFS
44369
44370   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44371   ;;
44372 esac
44373 fi
44374 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44375 if test -n "$SDL_CONFIG"; then
44376   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44377 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44378 else
44379   { echo "$as_me:$LINENO: result: no" >&5
44380 echo "${ECHO_T}no" >&6; }
44381 fi
44382
44383
44384   min_sdl_version=1.2.0
44385   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44386 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44387   no_sdl=""
44388   if test "$SDL_CONFIG" = "no" ; then
44389     no_sdl=yes
44390   else
44391     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44392     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44393
44394     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44395            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44396     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44397            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44398     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44399            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44400     if test "x$enable_sdltest" = "xyes" ; then
44401       ac_save_CFLAGS="$CFLAGS"
44402       ac_save_CXXFLAGS="$CXXFLAGS"
44403       ac_save_LIBS="$LIBS"
44404       CFLAGS="$CFLAGS $SDL_CFLAGS"
44405       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44406       LIBS="$LIBS $SDL_LIBS"
44407       rm -f conf.sdltest
44408       if test "$cross_compiling" = yes; then
44409   echo $ac_n "cross compiling; assumed OK... $ac_c"
44410 else
44411   cat >conftest.$ac_ext <<_ACEOF
44412 /* confdefs.h.  */
44413 _ACEOF
44414 cat confdefs.h >>conftest.$ac_ext
44415 cat >>conftest.$ac_ext <<_ACEOF
44416 /* end confdefs.h.  */
44417
44418 #include <stdio.h>
44419 #include <stdlib.h>
44420 #include <string.h>
44421 #include "SDL.h"
44422
44423 char*
44424 my_strdup (char *str)
44425 {
44426   char *new_str;
44427
44428   if (str)
44429     {
44430       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44431       strcpy (new_str, str);
44432     }
44433   else
44434     new_str = NULL;
44435
44436   return new_str;
44437 }
44438
44439 int main (int argc, char *argv[])
44440 {
44441   int major, minor, micro;
44442   char *tmp_version;
44443
44444   /* This hangs on some systems (?)
44445   system ("touch conf.sdltest");
44446   */
44447   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44448
44449   /* HP/UX 9 (%@#!) writes to sscanf strings */
44450   tmp_version = my_strdup("$min_sdl_version");
44451   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44452      printf("%s, bad version string\n", "$min_sdl_version");
44453      exit(1);
44454    }
44455
44456    if (($sdl_major_version > major) ||
44457       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44458       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44459     {
44460       return 0;
44461     }
44462   else
44463     {
44464       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44465       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44466       printf("*** best to upgrade to the required version.\n");
44467       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44468       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44469       printf("*** config.cache before re-running configure\n");
44470       return 1;
44471     }
44472 }
44473
44474
44475 _ACEOF
44476 rm -f conftest$ac_exeext
44477 if { (ac_try="$ac_link"
44478 case "(($ac_try" in
44479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44480   *) ac_try_echo=$ac_try;;
44481 esac
44482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44483   (eval "$ac_link") 2>&5
44484   ac_status=$?
44485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44486   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44487   { (case "(($ac_try" in
44488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44489   *) ac_try_echo=$ac_try;;
44490 esac
44491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44492   (eval "$ac_try") 2>&5
44493   ac_status=$?
44494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44495   (exit $ac_status); }; }; then
44496   :
44497 else
44498   echo "$as_me: program exited with status $ac_status" >&5
44499 echo "$as_me: failed program was:" >&5
44500 sed 's/^/| /' conftest.$ac_ext >&5
44501
44502 ( exit $ac_status )
44503 no_sdl=yes
44504 fi
44505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44506 fi
44507
44508
44509        CFLAGS="$ac_save_CFLAGS"
44510        CXXFLAGS="$ac_save_CXXFLAGS"
44511        LIBS="$ac_save_LIBS"
44512      fi
44513   fi
44514   if test "x$no_sdl" = x ; then
44515      { echo "$as_me:$LINENO: result: yes" >&5
44516 echo "${ECHO_T}yes" >&6; }
44517
44518                     EXTRALIBS_SDL="$SDL_LIBS"
44519                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44520                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44521                     cat >>confdefs.h <<\_ACEOF
44522 #define wxUSE_LIBSDL 1
44523 _ACEOF
44524
44525
44526   else
44527      { echo "$as_me:$LINENO: result: no" >&5
44528 echo "${ECHO_T}no" >&6; }
44529      if test "$SDL_CONFIG" = "no" ; then
44530        echo "*** The sdl-config script installed by SDL could not be found"
44531        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44532        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44533        echo "*** full path to sdl-config."
44534      else
44535        if test -f conf.sdltest ; then
44536         :
44537        else
44538           echo "*** Could not run SDL test program, checking why..."
44539           CFLAGS="$CFLAGS $SDL_CFLAGS"
44540           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44541           LIBS="$LIBS $SDL_LIBS"
44542           cat >conftest.$ac_ext <<_ACEOF
44543 /* confdefs.h.  */
44544 _ACEOF
44545 cat confdefs.h >>conftest.$ac_ext
44546 cat >>conftest.$ac_ext <<_ACEOF
44547 /* end confdefs.h.  */
44548
44549 #include <stdio.h>
44550 #include "SDL.h"
44551
44552 int main(int argc, char *argv[])
44553 { return 0; }
44554 #undef  main
44555 #define main K_and_R_C_main
44556
44557 int
44558 main ()
44559 {
44560  return 0;
44561   ;
44562   return 0;
44563 }
44564 _ACEOF
44565 rm -f conftest.$ac_objext conftest$ac_exeext
44566 if { (ac_try="$ac_link"
44567 case "(($ac_try" in
44568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44569   *) ac_try_echo=$ac_try;;
44570 esac
44571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44572   (eval "$ac_link") 2>conftest.er1
44573   ac_status=$?
44574   grep -v '^ *+' conftest.er1 >conftest.err
44575   rm -f conftest.er1
44576   cat conftest.err >&5
44577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44578   (exit $ac_status); } && {
44579          test -z "$ac_c_werror_flag" ||
44580          test ! -s conftest.err
44581        } && test -s conftest$ac_exeext &&
44582        $as_test_x conftest$ac_exeext; then
44583    echo "*** The test program compiled, but did not run. This usually means"
44584           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44585           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44586           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44587           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44588           echo "*** is required on your system"
44589           echo "***"
44590           echo "*** If you have an old version installed, it is best to remove it, although"
44591           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44592 else
44593   echo "$as_me: failed program was:" >&5
44594 sed 's/^/| /' conftest.$ac_ext >&5
44595
44596          echo "*** The test program failed to compile or link. See the file config.log for the"
44597           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44598           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44599           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44600 fi
44601
44602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44603       conftest$ac_exeext conftest.$ac_ext
44604           CFLAGS="$ac_save_CFLAGS"
44605           CXXFLAGS="$ac_save_CXXFLAGS"
44606           LIBS="$ac_save_LIBS"
44607        fi
44608      fi
44609      SDL_CFLAGS=""
44610      SDL_LIBS=""
44611      wxUSE_LIBSDL="no"
44612   fi
44613
44614
44615   rm -f conf.sdltest
44616
44617       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44618         WITH_PLUGIN_SDL=1
44619       fi
44620     fi
44621   else
44622         if test "$wxUSE_MGL" = 1; then
44623         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44624 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44625         wxUSE_SOUND="no"
44626     fi
44627   fi
44628 fi
44629
44630 if test "$wxUSE_SOUND" = "yes"; then
44631   cat >>confdefs.h <<\_ACEOF
44632 #define wxUSE_SOUND 1
44633 _ACEOF
44634
44635   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44636 fi
44637
44638 if test "$WXGTK2" = 1; then
44639
44640
44641 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44642         if test -n "$ac_tool_prefix"; then
44643   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44644 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44647 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44648   echo $ECHO_N "(cached) $ECHO_C" >&6
44649 else
44650   case $PKG_CONFIG in
44651   [\\/]* | ?:[\\/]*)
44652   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44653   ;;
44654   *)
44655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44656 for as_dir in $PATH
44657 do
44658   IFS=$as_save_IFS
44659   test -z "$as_dir" && as_dir=.
44660   for ac_exec_ext in '' $ac_executable_extensions; do
44661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44662     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44664     break 2
44665   fi
44666 done
44667 done
44668 IFS=$as_save_IFS
44669
44670   ;;
44671 esac
44672 fi
44673 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44674 if test -n "$PKG_CONFIG"; then
44675   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44676 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44677 else
44678   { echo "$as_me:$LINENO: result: no" >&5
44679 echo "${ECHO_T}no" >&6; }
44680 fi
44681
44682
44683 fi
44684 if test -z "$ac_cv_path_PKG_CONFIG"; then
44685   ac_pt_PKG_CONFIG=$PKG_CONFIG
44686   # Extract the first word of "pkg-config", so it can be a program name with args.
44687 set dummy pkg-config; ac_word=$2
44688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44690 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44691   echo $ECHO_N "(cached) $ECHO_C" >&6
44692 else
44693   case $ac_pt_PKG_CONFIG in
44694   [\\/]* | ?:[\\/]*)
44695   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44696   ;;
44697   *)
44698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44699 for as_dir in $PATH
44700 do
44701   IFS=$as_save_IFS
44702   test -z "$as_dir" && as_dir=.
44703   for ac_exec_ext in '' $ac_executable_extensions; do
44704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44705     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44707     break 2
44708   fi
44709 done
44710 done
44711 IFS=$as_save_IFS
44712
44713   ;;
44714 esac
44715 fi
44716 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44717 if test -n "$ac_pt_PKG_CONFIG"; then
44718   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44719 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44720 else
44721   { echo "$as_me:$LINENO: result: no" >&5
44722 echo "${ECHO_T}no" >&6; }
44723 fi
44724
44725   if test "x$ac_pt_PKG_CONFIG" = x; then
44726     PKG_CONFIG=""
44727   else
44728     case $cross_compiling:$ac_tool_warned in
44729 yes:)
44730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44731 whose name does not start with the host triplet.  If you think this
44732 configuration is useful to you, please write to autoconf@gnu.org." >&5
44733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44734 whose name does not start with the host triplet.  If you think this
44735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44736 ac_tool_warned=yes ;;
44737 esac
44738     PKG_CONFIG=$ac_pt_PKG_CONFIG
44739   fi
44740 else
44741   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44742 fi
44743
44744 fi
44745 if test -n "$PKG_CONFIG"; then
44746         _pkg_min_version=0.9.0
44747         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44748 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44749         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44750                 { echo "$as_me:$LINENO: result: yes" >&5
44751 echo "${ECHO_T}yes" >&6; }
44752         else
44753                 { echo "$as_me:$LINENO: result: no" >&5
44754 echo "${ECHO_T}no" >&6; }
44755                 PKG_CONFIG=""
44756         fi
44757
44758 fi
44759
44760     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44761
44762         if test "$wxUSE_GTKPRINT" = "yes" ; then
44763
44764
44765 pkg_failed=no
44766 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
44767 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
44768
44769 if test -n "$PKG_CONFIG"; then
44770     if test -n "$GTKPRINT_CFLAGS"; then
44771         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
44772     else
44773         if test -n "$PKG_CONFIG" && \
44774     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44775   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44776   ac_status=$?
44777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44778   (exit $ac_status); }; then
44779   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44780 else
44781   pkg_failed=yes
44782 fi
44783     fi
44784 else
44785         pkg_failed=untried
44786 fi
44787 if test -n "$PKG_CONFIG"; then
44788     if test -n "$GTKPRINT_LIBS"; then
44789         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
44790     else
44791         if test -n "$PKG_CONFIG" && \
44792     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44793   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44794   ac_status=$?
44795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44796   (exit $ac_status); }; then
44797   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44798 else
44799   pkg_failed=yes
44800 fi
44801     fi
44802 else
44803         pkg_failed=untried
44804 fi
44805
44806
44807
44808 if test $pkg_failed = yes; then
44809
44810 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44811         _pkg_short_errors_supported=yes
44812 else
44813         _pkg_short_errors_supported=no
44814 fi
44815         if test $_pkg_short_errors_supported = yes; then
44816                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44817         else
44818                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44819         fi
44820         # Put the nasty error message in config.log where it belongs
44821         echo "$GTKPRINT_PKG_ERRORS" >&5
44822
44823
44824                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44825 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44826                         wxUSE_GTKPRINT="no"
44827
44828
44829 elif test $pkg_failed = untried; then
44830
44831                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44832 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44833                         wxUSE_GTKPRINT="no"
44834
44835
44836 else
44837         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
44838         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
44839         { echo "$as_me:$LINENO: result: yes" >&5
44840 echo "${ECHO_T}yes" >&6; }
44841
44842                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
44843                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
44844                         cat >>confdefs.h <<\_ACEOF
44845 #define wxUSE_GTKPRINT 1
44846 _ACEOF
44847
44848
44849 fi
44850         fi
44851
44852         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
44853
44854
44855 pkg_failed=no
44856 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
44857 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
44858
44859 if test -n "$PKG_CONFIG"; then
44860     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
44861         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
44862     else
44863         if test -n "$PKG_CONFIG" && \
44864     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44865   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44866   ac_status=$?
44867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44868   (exit $ac_status); }; then
44869   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44870 else
44871   pkg_failed=yes
44872 fi
44873     fi
44874 else
44875         pkg_failed=untried
44876 fi
44877 if test -n "$PKG_CONFIG"; then
44878     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
44879         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
44880     else
44881         if test -n "$PKG_CONFIG" && \
44882     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44883   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44884   ac_status=$?
44885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44886   (exit $ac_status); }; then
44887   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44888 else
44889   pkg_failed=yes
44890 fi
44891     fi
44892 else
44893         pkg_failed=untried
44894 fi
44895
44896
44897
44898 if test $pkg_failed = yes; then
44899
44900 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44901         _pkg_short_errors_supported=yes
44902 else
44903         _pkg_short_errors_supported=no
44904 fi
44905         if test $_pkg_short_errors_supported = yes; then
44906                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44907         else
44908                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44909         fi
44910         # Put the nasty error message in config.log where it belongs
44911         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
44912
44913
44914                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44915 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44916                         wxUSE_LIBGNOMEPRINT="no"
44917
44918
44919 elif test $pkg_failed = untried; then
44920
44921                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44922 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44923                         wxUSE_LIBGNOMEPRINT="no"
44924
44925
44926 else
44927         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
44928         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
44929         { echo "$as_me:$LINENO: result: yes" >&5
44930 echo "${ECHO_T}yes" >&6; }
44931
44932                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
44933                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
44934                         cat >>confdefs.h <<\_ACEOF
44935 #define wxUSE_LIBGNOMEPRINT 1
44936 _ACEOF
44937
44938
44939 fi
44940         fi
44941     fi
44942
44943     if test "$wxUSE_MIMETYPE" = "yes" ; then
44944         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
44945
44946
44947 pkg_failed=no
44948 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
44949 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
44950
44951 if test -n "$PKG_CONFIG"; then
44952     if test -n "$GNOMEVFS_CFLAGS"; then
44953         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
44954     else
44955         if test -n "$PKG_CONFIG" && \
44956     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44957   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44958   ac_status=$?
44959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44960   (exit $ac_status); }; then
44961   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44962 else
44963   pkg_failed=yes
44964 fi
44965     fi
44966 else
44967         pkg_failed=untried
44968 fi
44969 if test -n "$PKG_CONFIG"; then
44970     if test -n "$GNOMEVFS_LIBS"; then
44971         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
44972     else
44973         if test -n "$PKG_CONFIG" && \
44974     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44975   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44976   ac_status=$?
44977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44978   (exit $ac_status); }; then
44979   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44980 else
44981   pkg_failed=yes
44982 fi
44983     fi
44984 else
44985         pkg_failed=untried
44986 fi
44987
44988
44989
44990 if test $pkg_failed = yes; then
44991
44992 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44993         _pkg_short_errors_supported=yes
44994 else
44995         _pkg_short_errors_supported=no
44996 fi
44997         if test $_pkg_short_errors_supported = yes; then
44998                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44999         else
45000                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45001         fi
45002         # Put the nasty error message in config.log where it belongs
45003         echo "$GNOMEVFS_PKG_ERRORS" >&5
45004
45005
45006                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45007 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45008                         wxUSE_LIBGNOMEVFS="no"
45009
45010
45011 elif test $pkg_failed = untried; then
45012
45013                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45014 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45015                         wxUSE_LIBGNOMEVFS="no"
45016
45017
45018 else
45019         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
45020         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
45021         { echo "$as_me:$LINENO: result: yes" >&5
45022 echo "${ECHO_T}yes" >&6; }
45023
45024                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
45025                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
45026                         cat >>confdefs.h <<\_ACEOF
45027 #define wxUSE_LIBGNOMEVFS 1
45028 _ACEOF
45029
45030
45031 fi
45032         fi
45033     fi
45034
45035     if test "$wxUSE_LIBHILDON" = "yes" ; then
45036
45037 pkg_failed=no
45038 { echo "$as_me:$LINENO: checking for HILDON" >&5
45039 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
45040
45041 if test -n "$PKG_CONFIG"; then
45042     if test -n "$HILDON_CFLAGS"; then
45043         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
45044     else
45045         if test -n "$PKG_CONFIG" && \
45046     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45047   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45048   ac_status=$?
45049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45050   (exit $ac_status); }; then
45051   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
45052 else
45053   pkg_failed=yes
45054 fi
45055     fi
45056 else
45057         pkg_failed=untried
45058 fi
45059 if test -n "$PKG_CONFIG"; then
45060     if test -n "$HILDON_LIBS"; then
45061         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
45062     else
45063         if test -n "$PKG_CONFIG" && \
45064     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45065   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45066   ac_status=$?
45067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45068   (exit $ac_status); }; then
45069   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
45070 else
45071   pkg_failed=yes
45072 fi
45073     fi
45074 else
45075         pkg_failed=untried
45076 fi
45077
45078
45079
45080 if test $pkg_failed = yes; then
45081
45082 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45083         _pkg_short_errors_supported=yes
45084 else
45085         _pkg_short_errors_supported=no
45086 fi
45087         if test $_pkg_short_errors_supported = yes; then
45088                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45089         else
45090                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45091         fi
45092         # Put the nasty error message in config.log where it belongs
45093         echo "$HILDON_PKG_ERRORS" >&5
45094
45095
45096                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45097 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45098                         wxUSE_LIBHILDON="no"
45099                         ac_hildon_lgpl=0
45100
45101
45102 elif test $pkg_failed = untried; then
45103
45104                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45105 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45106                         wxUSE_LIBHILDON="no"
45107                         ac_hildon_lgpl=0
45108
45109
45110 else
45111         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45112         HILDON_LIBS=$pkg_cv_HILDON_LIBS
45113         { echo "$as_me:$LINENO: result: yes" >&5
45114 echo "${ECHO_T}yes" >&6; }
45115
45116                 EXTRALIBS_HILDON="$HILDON_LIBS"
45117                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
45118                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45119                 cat >>confdefs.h <<\_ACEOF
45120 #define wxUSE_LIBHILDON 1
45121 _ACEOF
45122
45123                 ac_hildon_lgpl=1
45124
45125 fi
45126
45127         if test "$ac_hildon_lgpl" = 0 ; then
45128
45129 pkg_failed=no
45130 { echo "$as_me:$LINENO: checking for HILDON2" >&5
45131 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
45132
45133 if test -n "$PKG_CONFIG"; then
45134     if test -n "$HILDON2_CFLAGS"; then
45135         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
45136     else
45137         if test -n "$PKG_CONFIG" && \
45138     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
45139   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
45140   ac_status=$?
45141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45142   (exit $ac_status); }; then
45143   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
45144 else
45145   pkg_failed=yes
45146 fi
45147     fi
45148 else
45149         pkg_failed=untried
45150 fi
45151 if test -n "$PKG_CONFIG"; then
45152     if test -n "$HILDON2_LIBS"; then
45153         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
45154     else
45155         if test -n "$PKG_CONFIG" && \
45156     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
45157   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
45158   ac_status=$?
45159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45160   (exit $ac_status); }; then
45161   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
45162 else
45163   pkg_failed=yes
45164 fi
45165     fi
45166 else
45167         pkg_failed=untried
45168 fi
45169
45170
45171
45172 if test $pkg_failed = yes; then
45173
45174 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45175         _pkg_short_errors_supported=yes
45176 else
45177         _pkg_short_errors_supported=no
45178 fi
45179         if test $_pkg_short_errors_supported = yes; then
45180                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
45181         else
45182                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
45183         fi
45184         # Put the nasty error message in config.log where it belongs
45185         echo "$HILDON2_PKG_ERRORS" >&5
45186
45187
45188                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
45189 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
45190                             wxUSE_LIBHILDON2="no"
45191
45192
45193 elif test $pkg_failed = untried; then
45194
45195                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
45196 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
45197                             wxUSE_LIBHILDON2="no"
45198
45199
45200 else
45201         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
45202         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
45203         { echo "$as_me:$LINENO: result: yes" >&5
45204 echo "${ECHO_T}yes" >&6; }
45205
45206                     EXTRALIBS_HILDON="$HILDON2_LIBS"
45207                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
45208                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
45209                     cat >>confdefs.h <<\_ACEOF
45210 #define wxUSE_LIBHILDON2 1
45211 _ACEOF
45212
45213
45214 fi
45215         fi
45216     fi
45217 fi
45218
45219 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45220   cat >>confdefs.h <<\_ACEOF
45221 #define wxUSE_CMDLINE_PARSER 1
45222 _ACEOF
45223
45224 fi
45225
45226 if test "$wxUSE_STOPWATCH" = "yes"; then
45227   cat >>confdefs.h <<\_ACEOF
45228 #define wxUSE_STOPWATCH 1
45229 _ACEOF
45230
45231 fi
45232
45233 if test "$wxUSE_DATETIME" = "yes"; then
45234   cat >>confdefs.h <<\_ACEOF
45235 #define wxUSE_DATETIME 1
45236 _ACEOF
45237
45238 fi
45239
45240 if test "$wxUSE_FILE" = "yes"; then
45241   cat >>confdefs.h <<\_ACEOF
45242 #define wxUSE_FILE 1
45243 _ACEOF
45244
45245 fi
45246
45247 if test "$wxUSE_FFILE" = "yes"; then
45248   cat >>confdefs.h <<\_ACEOF
45249 #define wxUSE_FFILE 1
45250 _ACEOF
45251
45252 fi
45253
45254 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45255   if test "$wxUSE_STREAMS" != yes; then
45256     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45257 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45258     wxUSE_ARCHIVE_STREAMS=no
45259   else
45260     cat >>confdefs.h <<\_ACEOF
45261 #define wxUSE_ARCHIVE_STREAMS 1
45262 _ACEOF
45263
45264   fi
45265 fi
45266
45267 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45268   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45269     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45270 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45271   elif test "$wxUSE_ZLIB" = "no"; then
45272     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45273 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45274   else
45275     cat >>confdefs.h <<\_ACEOF
45276 #define wxUSE_ZIPSTREAM 1
45277 _ACEOF
45278
45279   fi
45280 fi
45281
45282 if test "$wxUSE_TARSTREAM" = "yes"; then
45283   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45284     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45285 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45286   else
45287     cat >>confdefs.h <<\_ACEOF
45288 #define wxUSE_TARSTREAM 1
45289 _ACEOF
45290
45291   fi
45292 fi
45293
45294 if test "$wxUSE_FILE_HISTORY" = "yes"; then
45295   cat >>confdefs.h <<\_ACEOF
45296 #define wxUSE_FILE_HISTORY 1
45297 _ACEOF
45298
45299 fi
45300
45301 if test "$wxUSE_FILESYSTEM" = "yes"; then
45302   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45303     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45304 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45305     wxUSE_FILESYSTEM=no
45306   else
45307     cat >>confdefs.h <<\_ACEOF
45308 #define wxUSE_FILESYSTEM 1
45309 _ACEOF
45310
45311   fi
45312 fi
45313
45314 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45315   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45316     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45317 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45318   else
45319     cat >>confdefs.h <<\_ACEOF
45320 #define wxUSE_FS_ARCHIVE 1
45321 _ACEOF
45322
45323   fi
45324 fi
45325
45326 if test "$wxUSE_FS_ZIP" = "yes"; then
45327   if test "$wxUSE_FS_ARCHIVE" != yes; then
45328     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45329 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45330   else
45331     cat >>confdefs.h <<\_ACEOF
45332 #define wxUSE_FS_ZIP 1
45333 _ACEOF
45334
45335   fi
45336 fi
45337
45338 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45339   if test "$USE_UNIX" != 1; then
45340     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45341 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45342     wxUSE_ON_FATAL_EXCEPTION=no
45343   else
45344     cat >>confdefs.h <<\_ACEOF
45345 #define wxUSE_ON_FATAL_EXCEPTION 1
45346 _ACEOF
45347
45348   fi
45349 fi
45350
45351 if test "$wxUSE_STACKWALKER" = "yes"; then
45352     cat >>confdefs.h <<\_ACEOF
45353 #define wxUSE_STACKWALKER 1
45354 _ACEOF
45355
45356 fi
45357
45358 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45359     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
45360         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45361 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45362         wxUSE_DEBUGREPORT=no
45363     else
45364         cat >>confdefs.h <<\_ACEOF
45365 #define wxUSE_DEBUGREPORT 1
45366 _ACEOF
45367
45368         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45369             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45370         fi
45371     fi
45372 fi
45373
45374 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45375   cat >>confdefs.h <<\_ACEOF
45376 #define wxUSE_SNGLINST_CHECKER 1
45377 _ACEOF
45378
45379 fi
45380
45381 if test "$wxUSE_BUSYINFO" = "yes"; then
45382   cat >>confdefs.h <<\_ACEOF
45383 #define wxUSE_BUSYINFO 1
45384 _ACEOF
45385
45386 fi
45387
45388 if test "$wxUSE_HOTKEY" = "yes"; then
45389   if test "$wxUSE_MSW" != 1 -a "$wxUSE_OSX_COCOA" != 1 -a "$wxUSE_OSX_CARBON" != 1; then
45390     { echo "$as_me:$LINENO: WARNING: Hot keys not supported by the current toolkit, disabled" >&5
45391 echo "$as_me: WARNING: Hot keys not supported by the current toolkit, disabled" >&2;}
45392     wxUSE_HOTKEY=no
45393   fi
45394 elif test "$wxUSE_HOTKEY" = "auto"; then
45395   if test "$wxUSE_MSW" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OSX_CARBON" = 1; then
45396     wxUSE_HOTKEY=yes
45397   fi
45398 fi
45399 if test "$wxUSE_HOTKEY" = "yes"; then
45400   cat >>confdefs.h <<\_ACEOF
45401 #define wxUSE_HOTKEY 1
45402 _ACEOF
45403
45404 fi
45405
45406 if test "$wxUSE_STD_CONTAINERS" = "yes"; then
45407   cat >>confdefs.h <<\_ACEOF
45408 #define wxUSE_STD_CONTAINERS 1
45409 _ACEOF
45410
45411 fi
45412
45413 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45414   cat >>confdefs.h <<\_ACEOF
45415 #define wxUSE_STD_IOSTREAM 1
45416 _ACEOF
45417
45418 fi
45419
45420 if test "$wxUSE_STD_STRING" = "yes"; then
45421   cat >>confdefs.h <<\_ACEOF
45422 #define wxUSE_STD_STRING 1
45423 _ACEOF
45424
45425 fi
45426
45427 if test "$wxUSE_STD_STRING_CONV_IN_WXSTRING" = "yes"; then
45428   cat >>confdefs.h <<\_ACEOF
45429 #define wxUSE_STD_STRING_CONV_IN_WXSTRING 1
45430 _ACEOF
45431
45432 fi
45433
45434 if test "$wxUSE_STDPATHS" = "yes"; then
45435   cat >>confdefs.h <<\_ACEOF
45436 #define wxUSE_STDPATHS 1
45437 _ACEOF
45438
45439 fi
45440
45441 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45442     cat >>confdefs.h <<\_ACEOF
45443 #define wxUSE_TEXTBUFFER 1
45444 _ACEOF
45445
45446 fi
45447
45448 if test "$wxUSE_TEXTFILE" = "yes"; then
45449   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45450     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45451 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45452   else
45453     cat >>confdefs.h <<\_ACEOF
45454 #define wxUSE_TEXTFILE 1
45455 _ACEOF
45456
45457   fi
45458 fi
45459
45460 if test "$wxUSE_CONFIG" = "yes" ; then
45461   if test "$wxUSE_TEXTFILE" != "yes"; then
45462     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45463 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45464   else
45465     cat >>confdefs.h <<\_ACEOF
45466 #define wxUSE_CONFIG 1
45467 _ACEOF
45468
45469     cat >>confdefs.h <<\_ACEOF
45470 #define wxUSE_CONFIG_NATIVE 1
45471 _ACEOF
45472
45473     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45474   fi
45475 fi
45476
45477 if test "$wxUSE_INTL" = "yes" ; then
45478   if test "$wxUSE_FILE" != "yes"; then
45479     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45480 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45481   else
45482     cat >>confdefs.h <<\_ACEOF
45483 #define wxUSE_INTL 1
45484 _ACEOF
45485
45486     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45487     GUIDIST="$GUIDIST INTL_DIST"
45488   fi
45489 fi
45490
45491 if test "$wxUSE_XLOCALE" = "yes" ; then
45492     cat >>confdefs.h <<\_ACEOF
45493 #define wxUSE_XLOCALE 1
45494 _ACEOF
45495
45496     { echo "$as_me:$LINENO: checking for locale_t" >&5
45497 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
45498 if test "${ac_cv_type_locale_t+set}" = set; then
45499   echo $ECHO_N "(cached) $ECHO_C" >&6
45500 else
45501   cat >conftest.$ac_ext <<_ACEOF
45502 /* confdefs.h.  */
45503 _ACEOF
45504 cat confdefs.h >>conftest.$ac_ext
45505 cat >>conftest.$ac_ext <<_ACEOF
45506 /* end confdefs.h.  */
45507 #include <xlocale.h>
45508                     #include <locale.h>
45509
45510 typedef locale_t ac__type_new_;
45511 int
45512 main ()
45513 {
45514 if ((ac__type_new_ *) 0)
45515   return 0;
45516 if (sizeof (ac__type_new_))
45517   return 0;
45518   ;
45519   return 0;
45520 }
45521 _ACEOF
45522 rm -f conftest.$ac_objext
45523 if { (ac_try="$ac_compile"
45524 case "(($ac_try" in
45525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45526   *) ac_try_echo=$ac_try;;
45527 esac
45528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45529   (eval "$ac_compile") 2>conftest.er1
45530   ac_status=$?
45531   grep -v '^ *+' conftest.er1 >conftest.err
45532   rm -f conftest.er1
45533   cat conftest.err >&5
45534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45535   (exit $ac_status); } && {
45536          test -z "$ac_c_werror_flag" ||
45537          test ! -s conftest.err
45538        } && test -s conftest.$ac_objext; then
45539   ac_cv_type_locale_t=yes
45540 else
45541   echo "$as_me: failed program was:" >&5
45542 sed 's/^/| /' conftest.$ac_ext >&5
45543
45544         ac_cv_type_locale_t=no
45545 fi
45546
45547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45548 fi
45549 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
45550 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
45551 if test $ac_cv_type_locale_t = yes; then
45552
45553 cat >>confdefs.h <<_ACEOF
45554 #define HAVE_LOCALE_T 1
45555 _ACEOF
45556
45557
45558 fi
45559
45560 fi
45561
45562 if test "$wxUSE_LOG" = "yes"; then
45563   cat >>confdefs.h <<\_ACEOF
45564 #define wxUSE_LOG 1
45565 _ACEOF
45566
45567
45568     if test "$wxUSE_LOGGUI" = "yes"; then
45569       cat >>confdefs.h <<\_ACEOF
45570 #define wxUSE_LOGGUI 1
45571 _ACEOF
45572
45573     fi
45574
45575     if test "$wxUSE_LOGWINDOW" = "yes"; then
45576       cat >>confdefs.h <<\_ACEOF
45577 #define wxUSE_LOGWINDOW 1
45578 _ACEOF
45579
45580     fi
45581
45582     if test "$wxUSE_LOGDIALOG" = "yes"; then
45583       cat >>confdefs.h <<\_ACEOF
45584 #define wxUSE_LOG_DIALOG 1
45585 _ACEOF
45586
45587     fi
45588
45589         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45590 fi
45591
45592 if test "$wxUSE_LONGLONG" = "yes"; then
45593   cat >>confdefs.h <<\_ACEOF
45594 #define wxUSE_LONGLONG 1
45595 _ACEOF
45596
45597 fi
45598
45599 if test "$wxUSE_GEOMETRY" = "yes"; then
45600   cat >>confdefs.h <<\_ACEOF
45601 #define wxUSE_GEOMETRY 1
45602 _ACEOF
45603
45604 fi
45605
45606 if test "$wxUSE_BASE64" = "yes"; then
45607   cat >>confdefs.h <<\_ACEOF
45608 #define wxUSE_BASE64 1
45609 _ACEOF
45610
45611 fi
45612
45613 if test "$wxUSE_STREAMS" = "yes" ; then
45614   cat >>confdefs.h <<\_ACEOF
45615 #define wxUSE_STREAMS 1
45616 _ACEOF
45617
45618 fi
45619
45620 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45621   cat >>confdefs.h <<\_ACEOF
45622 #define wxUSE_PRINTF_POS_PARAMS 1
45623 _ACEOF
45624
45625 fi
45626
45627 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45628   cat >>confdefs.h <<\_ACEOF
45629 #define wxUSE_OBJC_UNIQUIFYING 1
45630 _ACEOF
45631
45632 fi
45633
45634
45635 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45636     cat >>confdefs.h <<\_ACEOF
45637 #define wxUSE_CONSOLE_EVENTLOOP 1
45638 _ACEOF
45639
45640
45641     if test "$wxUSE_UNIX" = "yes"; then
45642         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45643             cat >>confdefs.h <<\_ACEOF
45644 #define wxUSE_SELECT_DISPATCHER 1
45645 _ACEOF
45646
45647         fi
45648
45649         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45650
45651 for ac_header in sys/epoll.h
45652 do
45653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45657   echo $ECHO_N "(cached) $ECHO_C" >&6
45658 else
45659   cat >conftest.$ac_ext <<_ACEOF
45660 /* confdefs.h.  */
45661 _ACEOF
45662 cat confdefs.h >>conftest.$ac_ext
45663 cat >>conftest.$ac_ext <<_ACEOF
45664 /* end confdefs.h.  */
45665 $ac_includes_default
45666
45667 #include <$ac_header>
45668 _ACEOF
45669 rm -f conftest.$ac_objext
45670 if { (ac_try="$ac_compile"
45671 case "(($ac_try" in
45672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45673   *) ac_try_echo=$ac_try;;
45674 esac
45675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45676   (eval "$ac_compile") 2>conftest.er1
45677   ac_status=$?
45678   grep -v '^ *+' conftest.er1 >conftest.err
45679   rm -f conftest.er1
45680   cat conftest.err >&5
45681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45682   (exit $ac_status); } && {
45683          test -z "$ac_c_werror_flag" ||
45684          test ! -s conftest.err
45685        } && test -s conftest.$ac_objext; then
45686   eval "$as_ac_Header=yes"
45687 else
45688   echo "$as_me: failed program was:" >&5
45689 sed 's/^/| /' conftest.$ac_ext >&5
45690
45691         eval "$as_ac_Header=no"
45692 fi
45693
45694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45695 fi
45696 ac_res=`eval echo '${'$as_ac_Header'}'`
45697                { echo "$as_me:$LINENO: result: $ac_res" >&5
45698 echo "${ECHO_T}$ac_res" >&6; }
45699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45700   cat >>confdefs.h <<_ACEOF
45701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45702 _ACEOF
45703
45704 fi
45705
45706 done
45707
45708             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45709                 cat >>confdefs.h <<\_ACEOF
45710 #define wxUSE_EPOLL_DISPATCHER 1
45711 _ACEOF
45712
45713             else
45714                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45715 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45716             fi
45717         fi
45718     fi
45719 fi
45720
45721
45722
45723
45724 for ac_func in gettimeofday ftime
45725 do
45726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45730   echo $ECHO_N "(cached) $ECHO_C" >&6
45731 else
45732   cat >conftest.$ac_ext <<_ACEOF
45733 /* confdefs.h.  */
45734 _ACEOF
45735 cat confdefs.h >>conftest.$ac_ext
45736 cat >>conftest.$ac_ext <<_ACEOF
45737 /* end confdefs.h.  */
45738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45740 #define $ac_func innocuous_$ac_func
45741
45742 /* System header to define __stub macros and hopefully few prototypes,
45743     which can conflict with char $ac_func (); below.
45744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45745     <limits.h> exists even on freestanding compilers.  */
45746
45747 #ifdef __STDC__
45748 # include <limits.h>
45749 #else
45750 # include <assert.h>
45751 #endif
45752
45753 #undef $ac_func
45754
45755 /* Override any GCC internal prototype to avoid an error.
45756    Use char because int might match the return type of a GCC
45757    builtin and then its argument prototype would still apply.  */
45758 #ifdef __cplusplus
45759 extern "C"
45760 #endif
45761 char $ac_func ();
45762 /* The GNU C library defines this for functions which it implements
45763     to always fail with ENOSYS.  Some functions are actually named
45764     something starting with __ and the normal name is an alias.  */
45765 #if defined __stub_$ac_func || defined __stub___$ac_func
45766 choke me
45767 #endif
45768
45769 int
45770 main ()
45771 {
45772 return $ac_func ();
45773   ;
45774   return 0;
45775 }
45776 _ACEOF
45777 rm -f conftest.$ac_objext conftest$ac_exeext
45778 if { (ac_try="$ac_link"
45779 case "(($ac_try" in
45780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45781   *) ac_try_echo=$ac_try;;
45782 esac
45783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45784   (eval "$ac_link") 2>conftest.er1
45785   ac_status=$?
45786   grep -v '^ *+' conftest.er1 >conftest.err
45787   rm -f conftest.er1
45788   cat conftest.err >&5
45789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45790   (exit $ac_status); } && {
45791          test -z "$ac_c_werror_flag" ||
45792          test ! -s conftest.err
45793        } && test -s conftest$ac_exeext &&
45794        $as_test_x conftest$ac_exeext; then
45795   eval "$as_ac_var=yes"
45796 else
45797   echo "$as_me: failed program was:" >&5
45798 sed 's/^/| /' conftest.$ac_ext >&5
45799
45800         eval "$as_ac_var=no"
45801 fi
45802
45803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45804       conftest$ac_exeext conftest.$ac_ext
45805 fi
45806 ac_res=`eval echo '${'$as_ac_var'}'`
45807                { echo "$as_me:$LINENO: result: $ac_res" >&5
45808 echo "${ECHO_T}$ac_res" >&6; }
45809 if test `eval echo '${'$as_ac_var'}'` = yes; then
45810   cat >>confdefs.h <<_ACEOF
45811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45812 _ACEOF
45813  break
45814 fi
45815 done
45816
45817
45818 if test "$ac_cv_func_gettimeofday" = "yes"; then
45819     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45820 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45821 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45822   echo $ECHO_N "(cached) $ECHO_C" >&6
45823 else
45824
45825                 cat >conftest.$ac_ext <<_ACEOF
45826 /* confdefs.h.  */
45827 _ACEOF
45828 cat confdefs.h >>conftest.$ac_ext
45829 cat >>conftest.$ac_ext <<_ACEOF
45830 /* end confdefs.h.  */
45831
45832                 #include <sys/time.h>
45833                 #include <unistd.h>
45834
45835 int
45836 main ()
45837 {
45838
45839                 struct timeval tv;
45840                 gettimeofday(&tv, NULL);
45841
45842   ;
45843   return 0;
45844 }
45845 _ACEOF
45846 rm -f conftest.$ac_objext
45847 if { (ac_try="$ac_compile"
45848 case "(($ac_try" in
45849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45850   *) ac_try_echo=$ac_try;;
45851 esac
45852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45853   (eval "$ac_compile") 2>conftest.er1
45854   ac_status=$?
45855   grep -v '^ *+' conftest.er1 >conftest.err
45856   rm -f conftest.er1
45857   cat conftest.err >&5
45858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45859   (exit $ac_status); } && {
45860          test -z "$ac_c_werror_flag" ||
45861          test ! -s conftest.err
45862        } && test -s conftest.$ac_objext; then
45863   wx_cv_func_gettimeofday_has_2_args=yes
45864 else
45865   echo "$as_me: failed program was:" >&5
45866 sed 's/^/| /' conftest.$ac_ext >&5
45867
45868         cat >conftest.$ac_ext <<_ACEOF
45869 /* confdefs.h.  */
45870 _ACEOF
45871 cat confdefs.h >>conftest.$ac_ext
45872 cat >>conftest.$ac_ext <<_ACEOF
45873 /* end confdefs.h.  */
45874
45875                     #include <sys/time.h>
45876                     #include <unistd.h>
45877
45878 int
45879 main ()
45880 {
45881
45882                     struct timeval tv;
45883                     gettimeofday(&tv);
45884
45885   ;
45886   return 0;
45887 }
45888 _ACEOF
45889 rm -f conftest.$ac_objext
45890 if { (ac_try="$ac_compile"
45891 case "(($ac_try" in
45892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45893   *) ac_try_echo=$ac_try;;
45894 esac
45895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45896   (eval "$ac_compile") 2>conftest.er1
45897   ac_status=$?
45898   grep -v '^ *+' conftest.er1 >conftest.err
45899   rm -f conftest.er1
45900   cat conftest.err >&5
45901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45902   (exit $ac_status); } && {
45903          test -z "$ac_c_werror_flag" ||
45904          test ! -s conftest.err
45905        } && test -s conftest.$ac_objext; then
45906   wx_cv_func_gettimeofday_has_2_args=no
45907 else
45908   echo "$as_me: failed program was:" >&5
45909 sed 's/^/| /' conftest.$ac_ext >&5
45910
45911
45912                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45913 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45914                     wx_cv_func_gettimeofday_has_2_args=unknown
45915
45916
45917 fi
45918
45919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45920
45921 fi
45922
45923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45924
45925 fi
45926 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45927 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45928
45929     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45930         cat >>confdefs.h <<\_ACEOF
45931 #define WX_GETTIMEOFDAY_NO_TZ 1
45932 _ACEOF
45933
45934     fi
45935 fi
45936
45937 if test "$wxUSE_DATETIME" = "yes"; then
45938             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
45939 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
45940 if test "${wx_cv_var_timezone+set}" = set; then
45941   echo $ECHO_N "(cached) $ECHO_C" >&6
45942 else
45943
45944                         ac_ext=cpp
45945 ac_cpp='$CXXCPP $CPPFLAGS'
45946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45949
45950                         cat >conftest.$ac_ext <<_ACEOF
45951 /* confdefs.h.  */
45952 _ACEOF
45953 cat confdefs.h >>conftest.$ac_ext
45954 cat >>conftest.$ac_ext <<_ACEOF
45955 /* end confdefs.h.  */
45956
45957                                 #include <time.h>
45958
45959 int
45960 main ()
45961 {
45962
45963                                 int tz;
45964                                 tz = timezone;
45965
45966   ;
45967   return 0;
45968 }
45969 _ACEOF
45970 rm -f conftest.$ac_objext
45971 if { (ac_try="$ac_compile"
45972 case "(($ac_try" in
45973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45974   *) ac_try_echo=$ac_try;;
45975 esac
45976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45977   (eval "$ac_compile") 2>conftest.er1
45978   ac_status=$?
45979   grep -v '^ *+' conftest.er1 >conftest.err
45980   rm -f conftest.er1
45981   cat conftest.err >&5
45982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45983   (exit $ac_status); } && {
45984          test -z "$ac_cxx_werror_flag" ||
45985          test ! -s conftest.err
45986        } && test -s conftest.$ac_objext; then
45987
45988                                 wx_cv_var_timezone=timezone
45989
45990 else
45991   echo "$as_me: failed program was:" >&5
45992 sed 's/^/| /' conftest.$ac_ext >&5
45993
45994
45995                                 cat >conftest.$ac_ext <<_ACEOF
45996 /* confdefs.h.  */
45997 _ACEOF
45998 cat confdefs.h >>conftest.$ac_ext
45999 cat >>conftest.$ac_ext <<_ACEOF
46000 /* end confdefs.h.  */
46001
46002                                         #include <time.h>
46003
46004 int
46005 main ()
46006 {
46007
46008                                         int tz;
46009                                         tz = _timezone;
46010
46011   ;
46012   return 0;
46013 }
46014 _ACEOF
46015 rm -f conftest.$ac_objext
46016 if { (ac_try="$ac_compile"
46017 case "(($ac_try" in
46018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46019   *) ac_try_echo=$ac_try;;
46020 esac
46021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46022   (eval "$ac_compile") 2>conftest.er1
46023   ac_status=$?
46024   grep -v '^ *+' conftest.er1 >conftest.err
46025   rm -f conftest.er1
46026   cat conftest.err >&5
46027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46028   (exit $ac_status); } && {
46029          test -z "$ac_cxx_werror_flag" ||
46030          test ! -s conftest.err
46031        } && test -s conftest.$ac_objext; then
46032
46033                                         wx_cv_var_timezone=_timezone
46034
46035 else
46036   echo "$as_me: failed program was:" >&5
46037 sed 's/^/| /' conftest.$ac_ext >&5
46038
46039
46040                                         cat >conftest.$ac_ext <<_ACEOF
46041 /* confdefs.h.  */
46042 _ACEOF
46043 cat confdefs.h >>conftest.$ac_ext
46044 cat >>conftest.$ac_ext <<_ACEOF
46045 /* end confdefs.h.  */
46046
46047                                                 #include <time.h>
46048
46049 int
46050 main ()
46051 {
46052
46053                                                 int tz;
46054                                                 tz = __timezone;
46055
46056   ;
46057   return 0;
46058 }
46059 _ACEOF
46060 rm -f conftest.$ac_objext
46061 if { (ac_try="$ac_compile"
46062 case "(($ac_try" in
46063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46064   *) ac_try_echo=$ac_try;;
46065 esac
46066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46067   (eval "$ac_compile") 2>conftest.er1
46068   ac_status=$?
46069   grep -v '^ *+' conftest.er1 >conftest.err
46070   rm -f conftest.er1
46071   cat conftest.err >&5
46072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46073   (exit $ac_status); } && {
46074          test -z "$ac_cxx_werror_flag" ||
46075          test ! -s conftest.err
46076        } && test -s conftest.$ac_objext; then
46077
46078                                                 wx_cv_var_timezone=__timezone
46079
46080 else
46081   echo "$as_me: failed program was:" >&5
46082 sed 's/^/| /' conftest.$ac_ext >&5
46083
46084
46085                                                 if test "$USE_DOS" = 0 ; then
46086                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46087 echo "$as_me: WARNING: no timezone variable" >&2;}
46088                                                 fi
46089
46090
46091 fi
46092
46093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46094
46095
46096 fi
46097
46098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46099
46100
46101 fi
46102
46103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46104                         ac_ext=c
46105 ac_cpp='$CPP $CPPFLAGS'
46106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46109
46110
46111
46112 fi
46113 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
46114 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
46115
46116         if test "x$wx_cv_var_timezone" != x ; then
46117         cat >>confdefs.h <<_ACEOF
46118 #define WX_TIMEZONE $wx_cv_var_timezone
46119 _ACEOF
46120
46121     fi
46122
46123
46124 for ac_func in localtime
46125 do
46126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46130   echo $ECHO_N "(cached) $ECHO_C" >&6
46131 else
46132   cat >conftest.$ac_ext <<_ACEOF
46133 /* confdefs.h.  */
46134 _ACEOF
46135 cat confdefs.h >>conftest.$ac_ext
46136 cat >>conftest.$ac_ext <<_ACEOF
46137 /* end confdefs.h.  */
46138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46140 #define $ac_func innocuous_$ac_func
46141
46142 /* System header to define __stub macros and hopefully few prototypes,
46143     which can conflict with char $ac_func (); below.
46144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46145     <limits.h> exists even on freestanding compilers.  */
46146
46147 #ifdef __STDC__
46148 # include <limits.h>
46149 #else
46150 # include <assert.h>
46151 #endif
46152
46153 #undef $ac_func
46154
46155 /* Override any GCC internal prototype to avoid an error.
46156    Use char because int might match the return type of a GCC
46157    builtin and then its argument prototype would still apply.  */
46158 #ifdef __cplusplus
46159 extern "C"
46160 #endif
46161 char $ac_func ();
46162 /* The GNU C library defines this for functions which it implements
46163     to always fail with ENOSYS.  Some functions are actually named
46164     something starting with __ and the normal name is an alias.  */
46165 #if defined __stub_$ac_func || defined __stub___$ac_func
46166 choke me
46167 #endif
46168
46169 int
46170 main ()
46171 {
46172 return $ac_func ();
46173   ;
46174   return 0;
46175 }
46176 _ACEOF
46177 rm -f conftest.$ac_objext conftest$ac_exeext
46178 if { (ac_try="$ac_link"
46179 case "(($ac_try" in
46180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46181   *) ac_try_echo=$ac_try;;
46182 esac
46183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46184   (eval "$ac_link") 2>conftest.er1
46185   ac_status=$?
46186   grep -v '^ *+' conftest.er1 >conftest.err
46187   rm -f conftest.er1
46188   cat conftest.err >&5
46189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46190   (exit $ac_status); } && {
46191          test -z "$ac_c_werror_flag" ||
46192          test ! -s conftest.err
46193        } && test -s conftest$ac_exeext &&
46194        $as_test_x conftest$ac_exeext; then
46195   eval "$as_ac_var=yes"
46196 else
46197   echo "$as_me: failed program was:" >&5
46198 sed 's/^/| /' conftest.$ac_ext >&5
46199
46200         eval "$as_ac_var=no"
46201 fi
46202
46203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46204       conftest$ac_exeext conftest.$ac_ext
46205 fi
46206 ac_res=`eval echo '${'$as_ac_var'}'`
46207                { echo "$as_me:$LINENO: result: $ac_res" >&5
46208 echo "${ECHO_T}$ac_res" >&6; }
46209 if test `eval echo '${'$as_ac_var'}'` = yes; then
46210   cat >>confdefs.h <<_ACEOF
46211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46212 _ACEOF
46213
46214 fi
46215 done
46216
46217
46218     if test "$ac_cv_func_localtime" = "yes"; then
46219         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
46220 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
46221 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
46222   echo $ECHO_N "(cached) $ECHO_C" >&6
46223 else
46224
46225             cat >conftest.$ac_ext <<_ACEOF
46226 /* confdefs.h.  */
46227 _ACEOF
46228 cat confdefs.h >>conftest.$ac_ext
46229 cat >>conftest.$ac_ext <<_ACEOF
46230 /* end confdefs.h.  */
46231
46232                     #include <time.h>
46233
46234 int
46235 main ()
46236 {
46237
46238                     struct tm tm;
46239                     tm.tm_gmtoff++;
46240
46241   ;
46242   return 0;
46243 }
46244 _ACEOF
46245 rm -f conftest.$ac_objext
46246 if { (ac_try="$ac_compile"
46247 case "(($ac_try" in
46248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46249   *) ac_try_echo=$ac_try;;
46250 esac
46251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46252   (eval "$ac_compile") 2>conftest.er1
46253   ac_status=$?
46254   grep -v '^ *+' conftest.er1 >conftest.err
46255   rm -f conftest.er1
46256   cat conftest.err >&5
46257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46258   (exit $ac_status); } && {
46259          test -z "$ac_c_werror_flag" ||
46260          test ! -s conftest.err
46261        } && test -s conftest.$ac_objext; then
46262
46263                     wx_cv_struct_tm_has_gmtoff=yes
46264
46265 else
46266   echo "$as_me: failed program was:" >&5
46267 sed 's/^/| /' conftest.$ac_ext >&5
46268
46269         wx_cv_struct_tm_has_gmtoff=no
46270
46271 fi
46272
46273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46274
46275 fi
46276 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
46277 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
46278     fi
46279
46280     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46281         cat >>confdefs.h <<\_ACEOF
46282 #define WX_GMTOFF_IN_TM 1
46283 _ACEOF
46284
46285     fi
46286
46287     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46288 fi
46289
46290
46291 if test "$wxUSE_SOCKETS" = "yes"; then
46292     if test "$wxUSE_MGL" = 1; then
46293         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46294 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46295         wxUSE_SOCKETS="no"
46296     fi
46297 fi
46298
46299 if test "$wxUSE_SOCKETS" = "yes"; then
46300         if test "$TOOLKIT" != "MSW"; then
46301                 { echo "$as_me:$LINENO: checking for socket" >&5
46302 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
46303 if test "${ac_cv_func_socket+set}" = set; then
46304   echo $ECHO_N "(cached) $ECHO_C" >&6
46305 else
46306   cat >conftest.$ac_ext <<_ACEOF
46307 /* confdefs.h.  */
46308 _ACEOF
46309 cat confdefs.h >>conftest.$ac_ext
46310 cat >>conftest.$ac_ext <<_ACEOF
46311 /* end confdefs.h.  */
46312 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
46313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46314 #define socket innocuous_socket
46315
46316 /* System header to define __stub macros and hopefully few prototypes,
46317     which can conflict with char socket (); below.
46318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46319     <limits.h> exists even on freestanding compilers.  */
46320
46321 #ifdef __STDC__
46322 # include <limits.h>
46323 #else
46324 # include <assert.h>
46325 #endif
46326
46327 #undef socket
46328
46329 /* Override any GCC internal prototype to avoid an error.
46330    Use char because int might match the return type of a GCC
46331    builtin and then its argument prototype would still apply.  */
46332 #ifdef __cplusplus
46333 extern "C"
46334 #endif
46335 char socket ();
46336 /* The GNU C library defines this for functions which it implements
46337     to always fail with ENOSYS.  Some functions are actually named
46338     something starting with __ and the normal name is an alias.  */
46339 #if defined __stub_socket || defined __stub___socket
46340 choke me
46341 #endif
46342
46343 int
46344 main ()
46345 {
46346 return socket ();
46347   ;
46348   return 0;
46349 }
46350 _ACEOF
46351 rm -f conftest.$ac_objext conftest$ac_exeext
46352 if { (ac_try="$ac_link"
46353 case "(($ac_try" in
46354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46355   *) ac_try_echo=$ac_try;;
46356 esac
46357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46358   (eval "$ac_link") 2>conftest.er1
46359   ac_status=$?
46360   grep -v '^ *+' conftest.er1 >conftest.err
46361   rm -f conftest.er1
46362   cat conftest.err >&5
46363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46364   (exit $ac_status); } && {
46365          test -z "$ac_c_werror_flag" ||
46366          test ! -s conftest.err
46367        } && test -s conftest$ac_exeext &&
46368        $as_test_x conftest$ac_exeext; then
46369   ac_cv_func_socket=yes
46370 else
46371   echo "$as_me: failed program was:" >&5
46372 sed 's/^/| /' conftest.$ac_ext >&5
46373
46374         ac_cv_func_socket=no
46375 fi
46376
46377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46378       conftest$ac_exeext conftest.$ac_ext
46379 fi
46380 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46381 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46382 if test $ac_cv_func_socket = yes; then
46383   :
46384 else
46385
46386                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46387 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46388 if test "${ac_cv_lib_socket_socket+set}" = set; then
46389   echo $ECHO_N "(cached) $ECHO_C" >&6
46390 else
46391   ac_check_lib_save_LIBS=$LIBS
46392 LIBS="-lsocket  $LIBS"
46393 cat >conftest.$ac_ext <<_ACEOF
46394 /* confdefs.h.  */
46395 _ACEOF
46396 cat confdefs.h >>conftest.$ac_ext
46397 cat >>conftest.$ac_ext <<_ACEOF
46398 /* end confdefs.h.  */
46399
46400 /* Override any GCC internal prototype to avoid an error.
46401    Use char because int might match the return type of a GCC
46402    builtin and then its argument prototype would still apply.  */
46403 #ifdef __cplusplus
46404 extern "C"
46405 #endif
46406 char socket ();
46407 int
46408 main ()
46409 {
46410 return socket ();
46411   ;
46412   return 0;
46413 }
46414 _ACEOF
46415 rm -f conftest.$ac_objext conftest$ac_exeext
46416 if { (ac_try="$ac_link"
46417 case "(($ac_try" in
46418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46419   *) ac_try_echo=$ac_try;;
46420 esac
46421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46422   (eval "$ac_link") 2>conftest.er1
46423   ac_status=$?
46424   grep -v '^ *+' conftest.er1 >conftest.err
46425   rm -f conftest.er1
46426   cat conftest.err >&5
46427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46428   (exit $ac_status); } && {
46429          test -z "$ac_c_werror_flag" ||
46430          test ! -s conftest.err
46431        } && test -s conftest$ac_exeext &&
46432        $as_test_x conftest$ac_exeext; then
46433   ac_cv_lib_socket_socket=yes
46434 else
46435   echo "$as_me: failed program was:" >&5
46436 sed 's/^/| /' conftest.$ac_ext >&5
46437
46438         ac_cv_lib_socket_socket=no
46439 fi
46440
46441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46442       conftest$ac_exeext conftest.$ac_ext
46443 LIBS=$ac_check_lib_save_LIBS
46444 fi
46445 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46446 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46447 if test $ac_cv_lib_socket_socket = yes; then
46448   if test "$INET_LINK" != " -lsocket"; then
46449                         INET_LINK="$INET_LINK -lsocket"
46450                     fi
46451 else
46452
46453                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46454 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46455                         wxUSE_SOCKETS=no
46456
46457
46458 fi
46459
46460
46461
46462 fi
46463
46464     fi
46465 fi
46466
46467 if test "$wxUSE_SOCKETS" = "yes" ; then
46468                 if test "$TOOLKIT" != "MSW"; then
46469                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46470 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46471 if test "${wx_cv_type_getsockname3+set}" = set; then
46472   echo $ECHO_N "(cached) $ECHO_C" >&6
46473 else
46474
46475                 ac_ext=cpp
46476 ac_cpp='$CXXCPP $CPPFLAGS'
46477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46480
46481                 cat >conftest.$ac_ext <<_ACEOF
46482 /* confdefs.h.  */
46483 _ACEOF
46484 cat confdefs.h >>conftest.$ac_ext
46485 cat >>conftest.$ac_ext <<_ACEOF
46486 /* end confdefs.h.  */
46487
46488                         #include <sys/types.h>
46489                         #include <sys/socket.h>
46490
46491 int
46492 main ()
46493 {
46494
46495                         socklen_t len;
46496                         getsockname(0, 0, &len);
46497
46498   ;
46499   return 0;
46500 }
46501 _ACEOF
46502 rm -f conftest.$ac_objext
46503 if { (ac_try="$ac_compile"
46504 case "(($ac_try" in
46505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46506   *) ac_try_echo=$ac_try;;
46507 esac
46508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46509   (eval "$ac_compile") 2>conftest.er1
46510   ac_status=$?
46511   grep -v '^ *+' conftest.er1 >conftest.err
46512   rm -f conftest.er1
46513   cat conftest.err >&5
46514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46515   (exit $ac_status); } && {
46516          test -z "$ac_cxx_werror_flag" ||
46517          test ! -s conftest.err
46518        } && test -s conftest.$ac_objext; then
46519   wx_cv_type_getsockname3=socklen_t
46520 else
46521   echo "$as_me: failed program was:" >&5
46522 sed 's/^/| /' conftest.$ac_ext >&5
46523
46524
46525                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46526                         if test "$GCC" = yes ; then
46527                             CFLAGS="-Werror $CFLAGS"
46528                         fi
46529
46530                         cat >conftest.$ac_ext <<_ACEOF
46531 /* confdefs.h.  */
46532 _ACEOF
46533 cat confdefs.h >>conftest.$ac_ext
46534 cat >>conftest.$ac_ext <<_ACEOF
46535 /* end confdefs.h.  */
46536
46537                                 #include <sys/types.h>
46538                                 #include <sys/socket.h>
46539
46540 int
46541 main ()
46542 {
46543
46544                                 size_t len;
46545                                 getsockname(0, 0, &len);
46546
46547   ;
46548   return 0;
46549 }
46550 _ACEOF
46551 rm -f conftest.$ac_objext
46552 if { (ac_try="$ac_compile"
46553 case "(($ac_try" in
46554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46555   *) ac_try_echo=$ac_try;;
46556 esac
46557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46558   (eval "$ac_compile") 2>conftest.er1
46559   ac_status=$?
46560   grep -v '^ *+' conftest.er1 >conftest.err
46561   rm -f conftest.er1
46562   cat conftest.err >&5
46563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46564   (exit $ac_status); } && {
46565          test -z "$ac_cxx_werror_flag" ||
46566          test ! -s conftest.err
46567        } && test -s conftest.$ac_objext; then
46568   wx_cv_type_getsockname3=size_t
46569 else
46570   echo "$as_me: failed program was:" >&5
46571 sed 's/^/| /' conftest.$ac_ext >&5
46572
46573         cat >conftest.$ac_ext <<_ACEOF
46574 /* confdefs.h.  */
46575 _ACEOF
46576 cat confdefs.h >>conftest.$ac_ext
46577 cat >>conftest.$ac_ext <<_ACEOF
46578 /* end confdefs.h.  */
46579
46580                                     #include <sys/types.h>
46581                                     #include <sys/socket.h>
46582
46583 int
46584 main ()
46585 {
46586
46587                                     int len;
46588                                     getsockname(0, 0, &len);
46589
46590   ;
46591   return 0;
46592 }
46593 _ACEOF
46594 rm -f conftest.$ac_objext
46595 if { (ac_try="$ac_compile"
46596 case "(($ac_try" in
46597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46598   *) ac_try_echo=$ac_try;;
46599 esac
46600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46601   (eval "$ac_compile") 2>conftest.er1
46602   ac_status=$?
46603   grep -v '^ *+' conftest.er1 >conftest.err
46604   rm -f conftest.er1
46605   cat conftest.err >&5
46606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46607   (exit $ac_status); } && {
46608          test -z "$ac_cxx_werror_flag" ||
46609          test ! -s conftest.err
46610        } && test -s conftest.$ac_objext; then
46611   wx_cv_type_getsockname3=int
46612 else
46613   echo "$as_me: failed program was:" >&5
46614 sed 's/^/| /' conftest.$ac_ext >&5
46615
46616         wx_cv_type_getsockname3=unknown
46617
46618 fi
46619
46620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46621
46622 fi
46623
46624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46625
46626                         CFLAGS="$CFLAGS_OLD"
46627
46628
46629 fi
46630
46631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46632                 ac_ext=c
46633 ac_cpp='$CPP $CPPFLAGS'
46634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46637
46638
46639 fi
46640 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46641 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46642
46643         if test "$wx_cv_type_getsockname3" = "unknown"; then
46644             wxUSE_SOCKETS=no
46645             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46646 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46647         else
46648             cat >>confdefs.h <<_ACEOF
46649 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46650 _ACEOF
46651
46652         fi
46653                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46654 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46655 if test "${wx_cv_type_getsockopt5+set}" = set; then
46656   echo $ECHO_N "(cached) $ECHO_C" >&6
46657 else
46658
46659                                                                                                 ac_ext=cpp
46660 ac_cpp='$CXXCPP $CPPFLAGS'
46661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46664
46665                 cat >conftest.$ac_ext <<_ACEOF
46666 /* confdefs.h.  */
46667 _ACEOF
46668 cat confdefs.h >>conftest.$ac_ext
46669 cat >>conftest.$ac_ext <<_ACEOF
46670 /* end confdefs.h.  */
46671
46672                         #include <sys/types.h>
46673                         #include <sys/socket.h>
46674
46675 int
46676 main ()
46677 {
46678
46679                         socklen_t len;
46680                         getsockopt(0, 0, 0, 0, &len);
46681
46682   ;
46683   return 0;
46684 }
46685 _ACEOF
46686 rm -f conftest.$ac_objext
46687 if { (ac_try="$ac_compile"
46688 case "(($ac_try" in
46689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46690   *) ac_try_echo=$ac_try;;
46691 esac
46692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46693   (eval "$ac_compile") 2>conftest.er1
46694   ac_status=$?
46695   grep -v '^ *+' conftest.er1 >conftest.err
46696   rm -f conftest.er1
46697   cat conftest.err >&5
46698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46699   (exit $ac_status); } && {
46700          test -z "$ac_cxx_werror_flag" ||
46701          test ! -s conftest.err
46702        } && test -s conftest.$ac_objext; then
46703   wx_cv_type_getsockopt5=socklen_t
46704 else
46705   echo "$as_me: failed program was:" >&5
46706 sed 's/^/| /' conftest.$ac_ext >&5
46707
46708
46709                         cat >conftest.$ac_ext <<_ACEOF
46710 /* confdefs.h.  */
46711 _ACEOF
46712 cat confdefs.h >>conftest.$ac_ext
46713 cat >>conftest.$ac_ext <<_ACEOF
46714 /* end confdefs.h.  */
46715
46716                                 #include <sys/types.h>
46717                                 #include <sys/socket.h>
46718
46719 int
46720 main ()
46721 {
46722
46723                                 size_t len;
46724                                 getsockopt(0, 0, 0, 0, &len);
46725
46726   ;
46727   return 0;
46728 }
46729 _ACEOF
46730 rm -f conftest.$ac_objext
46731 if { (ac_try="$ac_compile"
46732 case "(($ac_try" in
46733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46734   *) ac_try_echo=$ac_try;;
46735 esac
46736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46737   (eval "$ac_compile") 2>conftest.er1
46738   ac_status=$?
46739   grep -v '^ *+' conftest.er1 >conftest.err
46740   rm -f conftest.er1
46741   cat conftest.err >&5
46742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46743   (exit $ac_status); } && {
46744          test -z "$ac_cxx_werror_flag" ||
46745          test ! -s conftest.err
46746        } && test -s conftest.$ac_objext; then
46747   wx_cv_type_getsockopt5=size_t
46748 else
46749   echo "$as_me: failed program was:" >&5
46750 sed 's/^/| /' conftest.$ac_ext >&5
46751
46752         cat >conftest.$ac_ext <<_ACEOF
46753 /* confdefs.h.  */
46754 _ACEOF
46755 cat confdefs.h >>conftest.$ac_ext
46756 cat >>conftest.$ac_ext <<_ACEOF
46757 /* end confdefs.h.  */
46758
46759                                     #include <sys/types.h>
46760                                     #include <sys/socket.h>
46761
46762 int
46763 main ()
46764 {
46765
46766                                     int len;
46767                                     getsockopt(0, 0, 0, 0, &len);
46768
46769   ;
46770   return 0;
46771 }
46772 _ACEOF
46773 rm -f conftest.$ac_objext
46774 if { (ac_try="$ac_compile"
46775 case "(($ac_try" in
46776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46777   *) ac_try_echo=$ac_try;;
46778 esac
46779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46780   (eval "$ac_compile") 2>conftest.er1
46781   ac_status=$?
46782   grep -v '^ *+' conftest.er1 >conftest.err
46783   rm -f conftest.er1
46784   cat conftest.err >&5
46785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46786   (exit $ac_status); } && {
46787          test -z "$ac_cxx_werror_flag" ||
46788          test ! -s conftest.err
46789        } && test -s conftest.$ac_objext; then
46790   wx_cv_type_getsockopt5=int
46791 else
46792   echo "$as_me: failed program was:" >&5
46793 sed 's/^/| /' conftest.$ac_ext >&5
46794
46795         wx_cv_type_getsockopt5=unknown
46796
46797 fi
46798
46799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46800
46801 fi
46802
46803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46804
46805
46806 fi
46807
46808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46809                 ac_ext=c
46810 ac_cpp='$CPP $CPPFLAGS'
46811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46814
46815
46816 fi
46817 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
46818 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
46819
46820         if test "$wx_cv_type_getsockopt5" = "unknown"; then
46821             wxUSE_SOCKETS=no
46822             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46823 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46824         else
46825             cat >>confdefs.h <<_ACEOF
46826 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
46827 _ACEOF
46828
46829         fi
46830     fi
46831 fi
46832
46833 if test "$wxUSE_SOCKETS" = "yes" ; then
46834     if test "$wxUSE_IPV6" = "yes"; then
46835         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
46836 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
46837 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
46838   echo $ECHO_N "(cached) $ECHO_C" >&6
46839 else
46840
46841                 cat >conftest.$ac_ext <<_ACEOF
46842 /* confdefs.h.  */
46843 _ACEOF
46844 cat confdefs.h >>conftest.$ac_ext
46845 cat >>conftest.$ac_ext <<_ACEOF
46846 /* end confdefs.h.  */
46847
46848                         #include <sys/types.h>
46849                         #include <sys/socket.h>
46850                         #include <netinet/in.h>
46851
46852 int
46853 main ()
46854 {
46855
46856                         struct sockaddr_in6 sa6;
46857
46858   ;
46859   return 0;
46860 }
46861 _ACEOF
46862 rm -f conftest.$ac_objext
46863 if { (ac_try="$ac_compile"
46864 case "(($ac_try" in
46865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46866   *) ac_try_echo=$ac_try;;
46867 esac
46868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46869   (eval "$ac_compile") 2>conftest.er1
46870   ac_status=$?
46871   grep -v '^ *+' conftest.er1 >conftest.err
46872   rm -f conftest.er1
46873   cat conftest.err >&5
46874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46875   (exit $ac_status); } && {
46876          test -z "$ac_c_werror_flag" ||
46877          test ! -s conftest.err
46878        } && test -s conftest.$ac_objext; then
46879   wx_cv_type_sockaddr_in6=yes
46880 else
46881   echo "$as_me: failed program was:" >&5
46882 sed 's/^/| /' conftest.$ac_ext >&5
46883
46884         wx_cv_type_sockaddr_in6=no
46885
46886 fi
46887
46888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46889
46890
46891 fi
46892 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
46893 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
46894
46895         if test "$wx_cv_type_sockaddr_in6"="yes"; then
46896             cat >>confdefs.h <<\_ACEOF
46897 #define wxUSE_IPV6 1
46898 _ACEOF
46899
46900         else
46901             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
46902 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
46903         fi
46904     fi
46905
46906     cat >>confdefs.h <<\_ACEOF
46907 #define wxUSE_SOCKETS 1
46908 _ACEOF
46909
46910     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46911 fi
46912
46913 if test "$wxUSE_PROTOCOL" = "yes"; then
46914     if test "$wxUSE_SOCKETS" != "yes"; then
46915         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
46916 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
46917         wxUSE_PROTOCOL=no
46918     fi
46919 fi
46920
46921 if test "$wxUSE_PROTOCOL" = "yes"; then
46922     cat >>confdefs.h <<\_ACEOF
46923 #define wxUSE_PROTOCOL 1
46924 _ACEOF
46925
46926
46927     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
46928         cat >>confdefs.h <<\_ACEOF
46929 #define wxUSE_PROTOCOL_HTTP 1
46930 _ACEOF
46931
46932     fi
46933     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
46934         cat >>confdefs.h <<\_ACEOF
46935 #define wxUSE_PROTOCOL_FTP 1
46936 _ACEOF
46937
46938     fi
46939     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
46940         cat >>confdefs.h <<\_ACEOF
46941 #define wxUSE_PROTOCOL_FILE 1
46942 _ACEOF
46943
46944     fi
46945 else
46946     if test "$wxUSE_FS_INET" = "yes"; then
46947         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
46948 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
46949         wxUSE_FS_INET="no"
46950     fi
46951 fi
46952
46953 if test "$wxUSE_URL" = "yes"; then
46954     if test "$wxUSE_PROTOCOL" != "yes"; then
46955         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
46956 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
46957         wxUSE_URL=no
46958     fi
46959     if test "$wxUSE_URL" = "yes"; then
46960         cat >>confdefs.h <<\_ACEOF
46961 #define wxUSE_URL 1
46962 _ACEOF
46963
46964     fi
46965 fi
46966
46967 if test "$wxUSE_VARIANT" = "yes"; then
46968     cat >>confdefs.h <<\_ACEOF
46969 #define wxUSE_VARIANT 1
46970 _ACEOF
46971
46972 fi
46973
46974 if test "$wxUSE_FS_INET" = "yes"; then
46975   cat >>confdefs.h <<\_ACEOF
46976 #define wxUSE_FS_INET 1
46977 _ACEOF
46978
46979 fi
46980
46981
46982 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
46983     wxUSE_JOYSTICK=no
46984
46985         if test "$TOOLKIT" = "MSW"; then
46986         wxUSE_JOYSTICK=yes
46987
46988         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
46989         if test "$USE_DARWIN" = 1; then
46990                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
46991 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
46992             ac_ext=cpp
46993 ac_cpp='$CXXCPP $CPPFLAGS'
46994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46997
46998             cat >conftest.$ac_ext <<_ACEOF
46999 /* confdefs.h.  */
47000 _ACEOF
47001 cat confdefs.h >>conftest.$ac_ext
47002 cat >>conftest.$ac_ext <<_ACEOF
47003 /* end confdefs.h.  */
47004  #include <IOKit/hid/IOHIDLib.h>
47005 int
47006 main ()
47007 {
47008  IOHIDQueueInterface *qi = NULL;
47009                               IOHIDCallbackFunction cb = NULL;
47010                               qi->setEventCallout(NULL, cb, NULL, NULL);
47011   ;
47012   return 0;
47013 }
47014 _ACEOF
47015 rm -f conftest.$ac_objext
47016 if { (ac_try="$ac_compile"
47017 case "(($ac_try" in
47018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47019   *) ac_try_echo=$ac_try;;
47020 esac
47021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47022   (eval "$ac_compile") 2>conftest.er1
47023   ac_status=$?
47024   grep -v '^ *+' conftest.er1 >conftest.err
47025   rm -f conftest.er1
47026   cat conftest.err >&5
47027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47028   (exit $ac_status); } && {
47029          test -z "$ac_cxx_werror_flag" ||
47030          test ! -s conftest.err
47031        } && test -s conftest.$ac_objext; then
47032    wxUSE_JOYSTICK=yes
47033
47034 else
47035   echo "$as_me: failed program was:" >&5
47036 sed 's/^/| /' conftest.$ac_ext >&5
47037
47038
47039 fi
47040
47041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47042             ac_ext=c
47043 ac_cpp='$CPP $CPPFLAGS'
47044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47047
47048             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
47049 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
47050         fi
47051
47052         else
47053                 if test "$wxUSE_MGL" != 1; then
47054
47055 for ac_header in linux/joystick.h
47056 do
47057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47061   echo $ECHO_N "(cached) $ECHO_C" >&6
47062 else
47063   cat >conftest.$ac_ext <<_ACEOF
47064 /* confdefs.h.  */
47065 _ACEOF
47066 cat confdefs.h >>conftest.$ac_ext
47067 cat >>conftest.$ac_ext <<_ACEOF
47068 /* end confdefs.h.  */
47069 $ac_includes_default
47070
47071 #include <$ac_header>
47072 _ACEOF
47073 rm -f conftest.$ac_objext
47074 if { (ac_try="$ac_compile"
47075 case "(($ac_try" in
47076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47077   *) ac_try_echo=$ac_try;;
47078 esac
47079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47080   (eval "$ac_compile") 2>conftest.er1
47081   ac_status=$?
47082   grep -v '^ *+' conftest.er1 >conftest.err
47083   rm -f conftest.er1
47084   cat conftest.err >&5
47085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47086   (exit $ac_status); } && {
47087          test -z "$ac_c_werror_flag" ||
47088          test ! -s conftest.err
47089        } && test -s conftest.$ac_objext; then
47090   eval "$as_ac_Header=yes"
47091 else
47092   echo "$as_me: failed program was:" >&5
47093 sed 's/^/| /' conftest.$ac_ext >&5
47094
47095         eval "$as_ac_Header=no"
47096 fi
47097
47098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47099 fi
47100 ac_res=`eval echo '${'$as_ac_Header'}'`
47101                { echo "$as_me:$LINENO: result: $ac_res" >&5
47102 echo "${ECHO_T}$ac_res" >&6; }
47103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47104   cat >>confdefs.h <<_ACEOF
47105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47106 _ACEOF
47107  wxUSE_JOYSTICK=yes
47108 fi
47109
47110 done
47111
47112         fi
47113     fi
47114
47115     if test "$wxUSE_JOYSTICK" = "yes"; then
47116         cat >>confdefs.h <<\_ACEOF
47117 #define wxUSE_JOYSTICK 1
47118 _ACEOF
47119
47120         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47121     else
47122         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47123 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
47124     fi
47125 fi
47126
47127
47128
47129 if test "$wxUSE_FONTENUM" = "yes" ; then
47130   cat >>confdefs.h <<\_ACEOF
47131 #define wxUSE_FONTENUM 1
47132 _ACEOF
47133
47134 fi
47135
47136 if test "$wxUSE_FONTMAP" = "yes" ; then
47137   cat >>confdefs.h <<\_ACEOF
47138 #define wxUSE_FONTMAP 1
47139 _ACEOF
47140
47141 fi
47142
47143 if test "$wxUSE_UNICODE" = "yes" ; then
47144   cat >>confdefs.h <<\_ACEOF
47145 #define wxUSE_UNICODE 1
47146 _ACEOF
47147
47148
47149   if test "$USE_WIN32" != 1; then
47150       wxUSE_UNICODE_MSLU=no
47151   fi
47152
47153   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47154         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47155 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47156 if test "${ac_cv_lib_unicows_main+set}" = set; then
47157   echo $ECHO_N "(cached) $ECHO_C" >&6
47158 else
47159   ac_check_lib_save_LIBS=$LIBS
47160 LIBS="-lunicows  $LIBS"
47161 cat >conftest.$ac_ext <<_ACEOF
47162 /* confdefs.h.  */
47163 _ACEOF
47164 cat confdefs.h >>conftest.$ac_ext
47165 cat >>conftest.$ac_ext <<_ACEOF
47166 /* end confdefs.h.  */
47167
47168
47169 int
47170 main ()
47171 {
47172 return main ();
47173   ;
47174   return 0;
47175 }
47176 _ACEOF
47177 rm -f conftest.$ac_objext conftest$ac_exeext
47178 if { (ac_try="$ac_link"
47179 case "(($ac_try" in
47180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47181   *) ac_try_echo=$ac_try;;
47182 esac
47183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47184   (eval "$ac_link") 2>conftest.er1
47185   ac_status=$?
47186   grep -v '^ *+' conftest.er1 >conftest.err
47187   rm -f conftest.er1
47188   cat conftest.err >&5
47189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47190   (exit $ac_status); } && {
47191          test -z "$ac_c_werror_flag" ||
47192          test ! -s conftest.err
47193        } && test -s conftest$ac_exeext &&
47194        $as_test_x conftest$ac_exeext; then
47195   ac_cv_lib_unicows_main=yes
47196 else
47197   echo "$as_me: failed program was:" >&5
47198 sed 's/^/| /' conftest.$ac_ext >&5
47199
47200         ac_cv_lib_unicows_main=no
47201 fi
47202
47203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47204       conftest$ac_exeext conftest.$ac_ext
47205 LIBS=$ac_check_lib_save_LIBS
47206 fi
47207 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47208 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
47209 if test $ac_cv_lib_unicows_main = yes; then
47210
47211                 cat >>confdefs.h <<\_ACEOF
47212 #define wxUSE_UNICODE_MSLU 1
47213 _ACEOF
47214
47215
47216 else
47217
47218                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47219                              Applications will only run on Windows NT/2000/XP!" >&5
47220 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47221                              Applications will only run on Windows NT/2000/XP!" >&2;}
47222                 wxUSE_UNICODE_MSLU=no
47223
47224 fi
47225
47226     fi
47227 fi
47228
47229 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47230     cat >>confdefs.h <<\_ACEOF
47231 #define wxUSE_UNICODE_UTF8 1
47232 _ACEOF
47233
47234
47235     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47236         cat >>confdefs.h <<\_ACEOF
47237 #define wxUSE_UTF8_LOCALE_ONLY 1
47238 _ACEOF
47239
47240     fi
47241 fi
47242
47243
47244 if test "$wxUSE_CONSTRAINTS" = "yes"; then
47245     cat >>confdefs.h <<\_ACEOF
47246 #define wxUSE_CONSTRAINTS 1
47247 _ACEOF
47248
47249     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47250 fi
47251
47252 if test "$wxUSE_MDI" = "yes"; then
47253     cat >>confdefs.h <<\_ACEOF
47254 #define wxUSE_MDI 1
47255 _ACEOF
47256
47257
47258     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47259         cat >>confdefs.h <<\_ACEOF
47260 #define wxUSE_MDI_ARCHITECTURE 1
47261 _ACEOF
47262
47263         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47264     fi
47265 fi
47266
47267 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47268     cat >>confdefs.h <<\_ACEOF
47269 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
47270 _ACEOF
47271
47272     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47273 fi
47274
47275 if test "$wxUSE_HELP" = "yes"; then
47276     cat >>confdefs.h <<\_ACEOF
47277 #define wxUSE_HELP 1
47278 _ACEOF
47279
47280     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47281
47282     if test "$wxUSE_MSW" = 1; then
47283       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47284         cat >>confdefs.h <<\_ACEOF
47285 #define wxUSE_MS_HTML_HELP 1
47286 _ACEOF
47287
47288       fi
47289     fi
47290
47291     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47292       if test "$wxUSE_HTML" = "yes"; then
47293         cat >>confdefs.h <<\_ACEOF
47294 #define wxUSE_WXHTML_HELP 1
47295 _ACEOF
47296
47297       else
47298         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47299 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47300         wxUSE_WXHTML_HELP=no
47301       fi
47302     fi
47303 fi
47304
47305 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47306     cat >>confdefs.h <<\_ACEOF
47307 #define wxUSE_PRINTING_ARCHITECTURE 1
47308 _ACEOF
47309
47310     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47311 fi
47312
47313 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47314   cat >>confdefs.h <<\_ACEOF
47315 #define wxUSE_POSTSCRIPT 1
47316 _ACEOF
47317
47318 fi
47319
47320 cat >>confdefs.h <<\_ACEOF
47321 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47322 _ACEOF
47323
47324
47325 if test "$wxUSE_SVG" = "yes"; then
47326     cat >>confdefs.h <<\_ACEOF
47327 #define wxUSE_SVG 1
47328 _ACEOF
47329
47330 fi
47331
47332
47333 if test "$wxUSE_METAFILE" = "yes"; then
47334     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47335         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47336 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47337         wxUSE_METAFILE=no
47338     fi
47339 elif test "$wxUSE_METAFILE" = "auto"; then
47340     if test "$wxUSE_MSW" = 1 -o "$wxUSE_MAC" = 1 -o "$wxUSE_PM" = 1; then
47341         wxUSE_METAFILE=yes
47342     fi
47343 fi
47344
47345 if test "$wxUSE_METAFILE" = "yes"; then
47346     cat >>confdefs.h <<\_ACEOF
47347 #define wxUSE_METAFILE 1
47348 _ACEOF
47349
47350     if test "$wxUSE_MSW" = 1; then
47351                 cat >>confdefs.h <<\_ACEOF
47352 #define wxUSE_ENH_METAFILE 1
47353 _ACEOF
47354
47355     fi
47356 fi
47357
47358
47359 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
47360                           -o "$wxUSE_CLIPBOARD"     = "yes" \
47361                           -o "$wxUSE_OLE"     = "yes" \
47362                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47363     { echo "$as_me:$LINENO: checking for ole2.h" >&5
47364 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
47365 if test "${ac_cv_header_ole2_h+set}" = set; then
47366   echo $ECHO_N "(cached) $ECHO_C" >&6
47367 else
47368   cat >conftest.$ac_ext <<_ACEOF
47369 /* confdefs.h.  */
47370 _ACEOF
47371 cat confdefs.h >>conftest.$ac_ext
47372 cat >>conftest.$ac_ext <<_ACEOF
47373 /* end confdefs.h.  */
47374
47375
47376 #include <ole2.h>
47377 _ACEOF
47378 rm -f conftest.$ac_objext
47379 if { (ac_try="$ac_compile"
47380 case "(($ac_try" in
47381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47382   *) ac_try_echo=$ac_try;;
47383 esac
47384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47385   (eval "$ac_compile") 2>conftest.er1
47386   ac_status=$?
47387   grep -v '^ *+' conftest.er1 >conftest.err
47388   rm -f conftest.er1
47389   cat conftest.err >&5
47390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47391   (exit $ac_status); } && {
47392          test -z "$ac_c_werror_flag" ||
47393          test ! -s conftest.err
47394        } && test -s conftest.$ac_objext; then
47395   ac_cv_header_ole2_h=yes
47396 else
47397   echo "$as_me: failed program was:" >&5
47398 sed 's/^/| /' conftest.$ac_ext >&5
47399
47400         ac_cv_header_ole2_h=no
47401 fi
47402
47403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47404 fi
47405 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47406 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47407
47408
47409
47410     if test "$ac_cv_header_ole2_h" = "yes" ; then
47411         if test "$GCC" = yes ; then
47412             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47413 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47414             cat >conftest.$ac_ext <<_ACEOF
47415 /* confdefs.h.  */
47416 _ACEOF
47417 cat confdefs.h >>conftest.$ac_ext
47418 cat >>conftest.$ac_ext <<_ACEOF
47419 /* end confdefs.h.  */
47420 #include <windows.h>
47421                             #include <ole2.h>
47422 int
47423 main ()
47424 {
47425
47426   ;
47427   return 0;
47428 }
47429 _ACEOF
47430 rm -f conftest.$ac_objext
47431 if { (ac_try="$ac_compile"
47432 case "(($ac_try" in
47433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47434   *) ac_try_echo=$ac_try;;
47435 esac
47436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47437   (eval "$ac_compile") 2>conftest.er1
47438   ac_status=$?
47439   grep -v '^ *+' conftest.er1 >conftest.err
47440   rm -f conftest.er1
47441   cat conftest.err >&5
47442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47443   (exit $ac_status); } && {
47444          test -z "$ac_c_werror_flag" ||
47445          test ! -s conftest.err
47446        } && test -s conftest.$ac_objext; then
47447   { echo "$as_me:$LINENO: result: no" >&5
47448 echo "${ECHO_T}no" >&6; }
47449 else
47450   echo "$as_me: failed program was:" >&5
47451 sed 's/^/| /' conftest.$ac_ext >&5
47452
47453         { echo "$as_me:$LINENO: result: yes" >&5
47454 echo "${ECHO_T}yes" >&6; }
47455                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47456 fi
47457
47458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47459             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47460             if test "$wxUSE_OLE" = "yes" ; then
47461                 cat >>confdefs.h <<\_ACEOF
47462 #define wxUSE_OLE 1
47463 _ACEOF
47464
47465                 cat >>confdefs.h <<\_ACEOF
47466 #define wxUSE_OLE_AUTOMATION 1
47467 _ACEOF
47468
47469                 cat >>confdefs.h <<\_ACEOF
47470 #define wxUSE_ACTIVEX 1
47471 _ACEOF
47472
47473                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47474             fi
47475         fi
47476
47477                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47478             cat >>confdefs.h <<\_ACEOF
47479 #define wxUSE_DATAOBJ 1
47480 _ACEOF
47481
47482         fi
47483     else
47484         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47485 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47486
47487         wxUSE_CLIPBOARD=no
47488         wxUSE_DRAG_AND_DROP=no
47489         wxUSE_DATAOBJ=no
47490         wxUSE_OLE=no
47491     fi
47492 fi
47493
47494 if test "$wxUSE_IPC" = "yes"; then
47495     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47496         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47497 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47498         wxUSE_IPC=no
47499     fi
47500
47501     if test "$wxUSE_IPC" = "yes"; then
47502         cat >>confdefs.h <<\_ACEOF
47503 #define wxUSE_IPC 1
47504 _ACEOF
47505
47506         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47507     fi
47508 fi
47509
47510 if test "$wxUSE_DATAOBJ" = "yes"; then
47511     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47512         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47513 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47514         wxUSE_DATAOBJ=no
47515     else
47516         cat >>confdefs.h <<\_ACEOF
47517 #define wxUSE_DATAOBJ 1
47518 _ACEOF
47519
47520     fi
47521 else
47522     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47523 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47524     wxUSE_CLIPBOARD=no
47525     wxUSE_DRAG_AND_DROP=no
47526 fi
47527
47528 if test "$wxUSE_CLIPBOARD" = "yes"; then
47529     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47530         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47531 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47532         wxUSE_CLIPBOARD=no
47533     fi
47534
47535     if test "$wxUSE_CLIPBOARD" = "yes"; then
47536         cat >>confdefs.h <<\_ACEOF
47537 #define wxUSE_CLIPBOARD 1
47538 _ACEOF
47539
47540     fi
47541 fi
47542
47543 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47544     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47545             "$wxUSE_DFB" = 1; then
47546         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47547 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47548         wxUSE_DRAG_AND_DROP=no
47549     fi
47550
47551     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47552         cat >>confdefs.h <<\_ACEOF
47553 #define wxUSE_DRAG_AND_DROP 1
47554 _ACEOF
47555
47556     fi
47557
47558 fi
47559
47560 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47561     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47562 fi
47563
47564 if test "$wxUSE_CLIPBOARD" = "yes"; then
47565     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
47566 fi
47567
47568 if test "$wxUSE_SPLINES" = "yes" ; then
47569   cat >>confdefs.h <<\_ACEOF
47570 #define wxUSE_SPLINES 1
47571 _ACEOF
47572
47573 fi
47574
47575 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47576   cat >>confdefs.h <<\_ACEOF
47577 #define wxUSE_MOUSEWHEEL 1
47578 _ACEOF
47579
47580 fi
47581
47582 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
47583     cat >>confdefs.h <<\_ACEOF
47584 #define wxUSE_UIACTIONSIMULATOR 1
47585 _ACEOF
47586
47587     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
47588 fi
47589
47590 if test "$wxUSE_DC_TRANSFORM_MATRIX" = "yes" ; then
47591     cat >>confdefs.h <<\_ACEOF
47592 #define wxUSE_DC_TRANSFORM_MATRIX 1
47593 _ACEOF
47594
47595 fi
47596
47597
47598 USES_CONTROLS=0
47599 if test "$wxUSE_CONTROLS" = "yes"; then
47600   USES_CONTROLS=1
47601 fi
47602
47603 if test "$wxUSE_MARKUP" = "yes"; then
47604   cat >>confdefs.h <<\_ACEOF
47605 #define wxUSE_MARKUP 1
47606 _ACEOF
47607
47608 fi
47609
47610 if test "$wxUSE_ACCEL" = "yes"; then
47611   cat >>confdefs.h <<\_ACEOF
47612 #define wxUSE_ACCEL 1
47613 _ACEOF
47614
47615   USES_CONTROLS=1
47616 fi
47617
47618 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47619   cat >>confdefs.h <<\_ACEOF
47620 #define wxUSE_ANIMATIONCTRL 1
47621 _ACEOF
47622
47623   USES_CONTROLS=1
47624   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47625 fi
47626
47627 if test "$wxUSE_BANNERWINDOW" = "yes"; then
47628   cat >>confdefs.h <<\_ACEOF
47629 #define wxUSE_BANNERWINDOW 1
47630 _ACEOF
47631
47632 fi
47633
47634 if test "$wxUSE_BUTTON" = "yes"; then
47635   cat >>confdefs.h <<\_ACEOF
47636 #define wxUSE_BUTTON 1
47637 _ACEOF
47638
47639   USES_CONTROLS=1
47640 fi
47641
47642 if test "$wxUSE_BMPBUTTON" = "yes"; then
47643   cat >>confdefs.h <<\_ACEOF
47644 #define wxUSE_BMPBUTTON 1
47645 _ACEOF
47646
47647   USES_CONTROLS=1
47648 fi
47649
47650 if test "$wxUSE_CALCTRL" = "yes"; then
47651   cat >>confdefs.h <<\_ACEOF
47652 #define wxUSE_CALENDARCTRL 1
47653 _ACEOF
47654
47655   USES_CONTROLS=1
47656   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47657 fi
47658
47659 if test "$wxUSE_CARET" = "yes"; then
47660   cat >>confdefs.h <<\_ACEOF
47661 #define wxUSE_CARET 1
47662 _ACEOF
47663
47664   USES_CONTROLS=1
47665   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47666 fi
47667
47668 if test "$wxUSE_COLLPANE" = "yes"; then
47669     cat >>confdefs.h <<\_ACEOF
47670 #define wxUSE_COLLPANE 1
47671 _ACEOF
47672
47673     USES_CONTROLS=1
47674     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47675 fi
47676
47677 if test "$wxUSE_COMBOBOX" = "yes"; then
47678   cat >>confdefs.h <<\_ACEOF
47679 #define wxUSE_COMBOBOX 1
47680 _ACEOF
47681
47682   USES_CONTROLS=1
47683 fi
47684
47685 if test "$wxUSE_COMBOCTRL" = "yes"; then
47686   cat >>confdefs.h <<\_ACEOF
47687 #define wxUSE_COMBOCTRL 1
47688 _ACEOF
47689
47690   USES_CONTROLS=1
47691 fi
47692
47693 if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then
47694   cat >>confdefs.h <<\_ACEOF
47695 #define wxUSE_COMMANDLINKBUTTON 1
47696 _ACEOF
47697
47698   USES_CONTROLS=1
47699 fi
47700
47701 if test "$wxUSE_CHOICE" = "yes"; then
47702   cat >>confdefs.h <<\_ACEOF
47703 #define wxUSE_CHOICE 1
47704 _ACEOF
47705
47706   USES_CONTROLS=1
47707 fi
47708
47709 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47710     cat >>confdefs.h <<\_ACEOF
47711 #define wxUSE_CHOICEBOOK 1
47712 _ACEOF
47713
47714     USES_CONTROLS=1
47715 fi
47716
47717 if test "$wxUSE_CHECKBOX" = "yes"; then
47718   cat >>confdefs.h <<\_ACEOF
47719 #define wxUSE_CHECKBOX 1
47720 _ACEOF
47721
47722   USES_CONTROLS=1
47723 fi
47724
47725 if test "$wxUSE_CHECKLST" = "yes"; then
47726   cat >>confdefs.h <<\_ACEOF
47727 #define wxUSE_CHECKLISTBOX 1
47728 _ACEOF
47729
47730   USES_CONTROLS=1
47731 fi
47732
47733 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47734   cat >>confdefs.h <<\_ACEOF
47735 #define wxUSE_COLOURPICKERCTRL 1
47736 _ACEOF
47737
47738   USES_CONTROLS=1
47739 fi
47740
47741 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47742   cat >>confdefs.h <<\_ACEOF
47743 #define wxUSE_DATEPICKCTRL 1
47744 _ACEOF
47745
47746   USES_CONTROLS=1
47747 fi
47748
47749 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47750   cat >>confdefs.h <<\_ACEOF
47751 #define wxUSE_DIRPICKERCTRL 1
47752 _ACEOF
47753
47754   USES_CONTROLS=1
47755 fi
47756
47757 if test "$wxUSE_FILECTRL" = "yes"; then
47758   cat >>confdefs.h <<\_ACEOF
47759 #define wxUSE_FILECTRL 1
47760 _ACEOF
47761
47762   USES_CONTROLS=1
47763 fi
47764
47765 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47766   cat >>confdefs.h <<\_ACEOF
47767 #define wxUSE_FILEPICKERCTRL 1
47768 _ACEOF
47769
47770   USES_CONTROLS=1
47771 fi
47772
47773 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47774   cat >>confdefs.h <<\_ACEOF
47775 #define wxUSE_FONTPICKERCTRL 1
47776 _ACEOF
47777
47778   USES_CONTROLS=1
47779 fi
47780
47781 if test "$wxUSE_DISPLAY" = "yes"; then
47782     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47783         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47784 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47785         wxUSE_DISPLAY=no
47786     else
47787         cat >>confdefs.h <<\_ACEOF
47788 #define wxUSE_DISPLAY 1
47789 _ACEOF
47790
47791         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
47792     fi
47793 fi
47794
47795 if test "$wxUSE_DETECT_SM" = "yes"; then
47796     cat >>confdefs.h <<\_ACEOF
47797 #define wxUSE_DETECT_SM 1
47798 _ACEOF
47799
47800 fi
47801
47802 if test "$wxUSE_GAUGE" = "yes"; then
47803   cat >>confdefs.h <<\_ACEOF
47804 #define wxUSE_GAUGE 1
47805 _ACEOF
47806
47807   USES_CONTROLS=1
47808 fi
47809
47810 if test "$wxUSE_GRID" = "yes"; then
47811   cat >>confdefs.h <<\_ACEOF
47812 #define wxUSE_GRID 1
47813 _ACEOF
47814
47815   USES_CONTROLS=1
47816   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47817 fi
47818
47819 if test "$wxUSE_HEADERCTRL" = "yes"; then
47820   cat >>confdefs.h <<\_ACEOF
47821 #define wxUSE_HEADERCTRL 1
47822 _ACEOF
47823
47824   USES_CONTROLS=1
47825 fi
47826
47827 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47828   cat >>confdefs.h <<\_ACEOF
47829 #define wxUSE_HYPERLINKCTRL 1
47830 _ACEOF
47831
47832   USES_CONTROLS=1
47833 fi
47834
47835 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47836   cat >>confdefs.h <<\_ACEOF
47837 #define wxUSE_BITMAPCOMBOBOX 1
47838 _ACEOF
47839
47840   USES_CONTROLS=1
47841 fi
47842
47843 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47844   cat >>confdefs.h <<\_ACEOF
47845 #define wxUSE_DATAVIEWCTRL 1
47846 _ACEOF
47847
47848   USES_CONTROLS=1
47849   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47850 fi
47851
47852 if test "$wxUSE_IMAGLIST" = "yes"; then
47853     cat >>confdefs.h <<\_ACEOF
47854 #define wxUSE_IMAGLIST 1
47855 _ACEOF
47856
47857 fi
47858
47859 if test "$wxUSE_INFOBAR" = "yes"; then
47860     cat >>confdefs.h <<\_ACEOF
47861 #define wxUSE_INFOBAR 1
47862 _ACEOF
47863
47864 fi
47865
47866 if test "$wxUSE_LISTBOOK" = "yes"; then
47867     cat >>confdefs.h <<\_ACEOF
47868 #define wxUSE_LISTBOOK 1
47869 _ACEOF
47870
47871     USES_CONTROLS=1
47872 fi
47873
47874 if test "$wxUSE_LISTBOX" = "yes"; then
47875     cat >>confdefs.h <<\_ACEOF
47876 #define wxUSE_LISTBOX 1
47877 _ACEOF
47878
47879     USES_CONTROLS=1
47880 fi
47881
47882 if test "$wxUSE_LISTCTRL" = "yes"; then
47883     if test "$wxUSE_IMAGLIST" = "yes"; then
47884         cat >>confdefs.h <<\_ACEOF
47885 #define wxUSE_LISTCTRL 1
47886 _ACEOF
47887
47888         USES_CONTROLS=1
47889         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47890     else
47891         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47892 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47893     fi
47894 fi
47895
47896 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47897     cat >>confdefs.h <<\_ACEOF
47898 #define wxUSE_EDITABLELISTBOX 1
47899 _ACEOF
47900
47901     USES_CONTROLS=1
47902 fi
47903
47904 if test "$wxUSE_NOTEBOOK" = "yes"; then
47905     cat >>confdefs.h <<\_ACEOF
47906 #define wxUSE_NOTEBOOK 1
47907 _ACEOF
47908
47909     USES_CONTROLS=1
47910     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
47911 fi
47912
47913 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
47914     cat >>confdefs.h <<\_ACEOF
47915 #define wxUSE_NOTIFICATION_MESSAGE 1
47916 _ACEOF
47917
47918 fi
47919
47920 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
47921   cat >>confdefs.h <<\_ACEOF
47922 #define wxUSE_ODCOMBOBOX 1
47923 _ACEOF
47924
47925   USES_CONTROLS=1
47926   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
47927 fi
47928
47929 if test "$wxUSE_RADIOBOX" = "yes"; then
47930     cat >>confdefs.h <<\_ACEOF
47931 #define wxUSE_RADIOBOX 1
47932 _ACEOF
47933
47934     USES_CONTROLS=1
47935 fi
47936
47937 if test "$wxUSE_RADIOBTN" = "yes"; then
47938     cat >>confdefs.h <<\_ACEOF
47939 #define wxUSE_RADIOBTN 1
47940 _ACEOF
47941
47942     USES_CONTROLS=1
47943 fi
47944
47945 if test "$wxUSE_REARRANGECTRL" = "yes"; then
47946     cat >>confdefs.h <<\_ACEOF
47947 #define wxUSE_REARRANGECTRL 1
47948 _ACEOF
47949
47950 fi
47951
47952 if test "$wxUSE_RICHMSGDLG" = "yes"; then
47953     cat >>confdefs.h <<\_ACEOF
47954 #define wxUSE_RICHMSGDLG 1
47955 _ACEOF
47956
47957 fi
47958
47959 if test "$wxUSE_RICHTOOLTIP" = "yes"; then
47960     cat >>confdefs.h <<\_ACEOF
47961 #define wxUSE_RICHTOOLTIP 1
47962 _ACEOF
47963
47964 fi
47965
47966 if test "$wxUSE_SASH" = "yes"; then
47967     cat >>confdefs.h <<\_ACEOF
47968 #define wxUSE_SASH 1
47969 _ACEOF
47970
47971     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
47972 fi
47973
47974 if test "$wxUSE_SCROLLBAR" = "yes"; then
47975     cat >>confdefs.h <<\_ACEOF
47976 #define wxUSE_SCROLLBAR 1
47977 _ACEOF
47978
47979     USES_CONTROLS=1
47980     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
47981 fi
47982
47983 if test "$wxUSE_SEARCHCTRL" = "yes"; then
47984     cat >>confdefs.h <<\_ACEOF
47985 #define wxUSE_SEARCHCTRL 1
47986 _ACEOF
47987
47988     USES_CONTROLS=1
47989 fi
47990
47991 if test "$wxUSE_SLIDER" = "yes"; then
47992     cat >>confdefs.h <<\_ACEOF
47993 #define wxUSE_SLIDER 1
47994 _ACEOF
47995
47996     USES_CONTROLS=1
47997 fi
47998
47999 if test "$wxUSE_SPINBTN" = "yes"; then
48000     cat >>confdefs.h <<\_ACEOF
48001 #define wxUSE_SPINBTN 1
48002 _ACEOF
48003
48004     USES_CONTROLS=1
48005 fi
48006
48007 if test "$wxUSE_SPINCTRL" = "yes"; then
48008     cat >>confdefs.h <<\_ACEOF
48009 #define wxUSE_SPINCTRL 1
48010 _ACEOF
48011
48012     USES_CONTROLS=1
48013 fi
48014
48015 if test "$wxUSE_SPLITTER" = "yes"; then
48016     cat >>confdefs.h <<\_ACEOF
48017 #define wxUSE_SPLITTER 1
48018 _ACEOF
48019
48020     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
48021 fi
48022
48023 if test "$wxUSE_STATBMP" = "yes"; then
48024     cat >>confdefs.h <<\_ACEOF
48025 #define wxUSE_STATBMP 1
48026 _ACEOF
48027
48028     USES_CONTROLS=1
48029 fi
48030
48031 if test "$wxUSE_STATBOX" = "yes"; then
48032     cat >>confdefs.h <<\_ACEOF
48033 #define wxUSE_STATBOX 1
48034 _ACEOF
48035
48036     USES_CONTROLS=1
48037 fi
48038
48039 if test "$wxUSE_STATTEXT" = "yes"; then
48040     cat >>confdefs.h <<\_ACEOF
48041 #define wxUSE_STATTEXT 1
48042 _ACEOF
48043
48044     USES_CONTROLS=1
48045 fi
48046
48047 if test "$wxUSE_STATLINE" = "yes"; then
48048     cat >>confdefs.h <<\_ACEOF
48049 #define wxUSE_STATLINE 1
48050 _ACEOF
48051
48052     USES_CONTROLS=1
48053 fi
48054
48055 if test "$wxUSE_STATUSBAR" = "yes"; then
48056         cat >>confdefs.h <<\_ACEOF
48057 #define wxUSE_NATIVE_STATUSBAR 1
48058 _ACEOF
48059
48060     cat >>confdefs.h <<\_ACEOF
48061 #define wxUSE_STATUSBAR 1
48062 _ACEOF
48063
48064     USES_CONTROLS=1
48065
48066     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
48067 fi
48068
48069 if test "$wxUSE_TEXTCTRL" = "yes"; then
48070     cat >>confdefs.h <<\_ACEOF
48071 #define wxUSE_TEXTCTRL 1
48072 _ACEOF
48073
48074     USES_CONTROLS=1
48075     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
48076
48077             cat >>confdefs.h <<\_ACEOF
48078 #define wxUSE_RICHEDIT 1
48079 _ACEOF
48080
48081     cat >>confdefs.h <<\_ACEOF
48082 #define wxUSE_RICHEDIT2 1
48083 _ACEOF
48084
48085 fi
48086
48087 if test "$wxUSE_TIMEPICKCTRL" = "yes"; then
48088   cat >>confdefs.h <<\_ACEOF
48089 #define wxUSE_TIMEPICKCTRL 1
48090 _ACEOF
48091
48092   USES_CONTROLS=1
48093 fi
48094
48095 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48096     if test "$wxUSE_OLD_COCOA" = 1 ; then
48097         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48098 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48099         wxUSE_TOGGLEBTN=no
48100     fi
48101
48102     if test "$wxUSE_TOGGLEBTN" = "yes"; then
48103         cat >>confdefs.h <<\_ACEOF
48104 #define wxUSE_TOGGLEBTN 1
48105 _ACEOF
48106
48107         USES_CONTROLS=1
48108     fi
48109 fi
48110
48111 if test "$wxUSE_TOOLBAR" = "yes"; then
48112     cat >>confdefs.h <<\_ACEOF
48113 #define wxUSE_TOOLBAR 1
48114 _ACEOF
48115
48116     USES_CONTROLS=1
48117
48118     if test "$wxUSE_UNIVERSAL" = "yes"; then
48119         wxUSE_TOOLBAR_NATIVE="no"
48120     else
48121         wxUSE_TOOLBAR_NATIVE="yes"
48122         cat >>confdefs.h <<\_ACEOF
48123 #define wxUSE_TOOLBAR_NATIVE 1
48124 _ACEOF
48125
48126     fi
48127
48128     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48129 fi
48130
48131 if test "$wxUSE_TOOLTIPS" = "yes"; then
48132     if test "$wxUSE_MOTIF" = 1; then
48133         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48134 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48135     else
48136         if test "$wxUSE_UNIVERSAL" = "yes"; then
48137             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48138 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48139         else
48140             cat >>confdefs.h <<\_ACEOF
48141 #define wxUSE_TOOLTIPS 1
48142 _ACEOF
48143
48144         fi
48145     fi
48146 fi
48147
48148 if test "$wxUSE_TREEBOOK" = "yes"; then
48149     cat >>confdefs.h <<\_ACEOF
48150 #define wxUSE_TREEBOOK 1
48151 _ACEOF
48152
48153     USES_CONTROLS=1
48154 fi
48155
48156 if test "$wxUSE_TOOLBOOK" = "yes"; then
48157     cat >>confdefs.h <<\_ACEOF
48158 #define wxUSE_TOOLBOOK 1
48159 _ACEOF
48160
48161     USES_CONTROLS=1
48162 fi
48163
48164 if test "$wxUSE_TREECTRL" = "yes"; then
48165     if test "$wxUSE_IMAGLIST" = "yes"; then
48166         cat >>confdefs.h <<\_ACEOF
48167 #define wxUSE_TREECTRL 1
48168 _ACEOF
48169
48170         USES_CONTROLS=1
48171         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48172     else
48173         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48174 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48175     fi
48176 fi
48177
48178 if test "$wxUSE_TREELISTCTRL" = "yes"; then
48179     cat >>confdefs.h <<\_ACEOF
48180 #define wxUSE_TREELISTCTRL 1
48181 _ACEOF
48182
48183     USES_CONTROLS=1
48184 fi
48185
48186 if test "$wxUSE_POPUPWIN" = "yes"; then
48187     if test "$wxUSE_OLD_COCOA" = 1 ; then
48188         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48189 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48190     else
48191         if test "$wxUSE_PM" = 1; then
48192             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48193 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48194         else
48195             cat >>confdefs.h <<\_ACEOF
48196 #define wxUSE_POPUPWIN 1
48197 _ACEOF
48198
48199             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48200
48201             USES_CONTROLS=1
48202         fi
48203     fi
48204 fi
48205
48206 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48207     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48208         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48209 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48210     else
48211         cat >>confdefs.h <<\_ACEOF
48212 #define wxUSE_DIALUP_MANAGER 1
48213 _ACEOF
48214
48215         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48216     fi
48217 fi
48218
48219 if test "$wxUSE_TIPWINDOW" = "yes"; then
48220     if test "$wxUSE_PM" = 1; then
48221         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48222 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48223     else
48224         cat >>confdefs.h <<\_ACEOF
48225 #define wxUSE_TIPWINDOW 1
48226 _ACEOF
48227
48228     fi
48229 fi
48230
48231 if test "$USES_CONTROLS" = 1; then
48232     cat >>confdefs.h <<\_ACEOF
48233 #define wxUSE_CONTROLS 1
48234 _ACEOF
48235
48236 fi
48237
48238
48239 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48240     cat >>confdefs.h <<\_ACEOF
48241 #define wxUSE_ACCESSIBILITY 1
48242 _ACEOF
48243
48244     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48245 fi
48246
48247 if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then
48248     cat >>confdefs.h <<\_ACEOF
48249 #define wxUSE_ARTPROVIDER_STD 1
48250 _ACEOF
48251
48252 fi
48253
48254 if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then
48255             if test "$wxUSE_GTK" != 1; then
48256                 if test "$wxUSE_LIBPNG" != no -a \
48257                 "$wxUSE_IMAGE" = yes -a \
48258                 "$wxUSE_STREAMS" = yes; then
48259             wxUSE_ARTPROVIDER_TANGO="yes"
48260         fi
48261     fi
48262 fi
48263
48264 if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then
48265     cat >>confdefs.h <<\_ACEOF
48266 #define wxUSE_ARTPROVIDER_TANGO 1
48267 _ACEOF
48268
48269 fi
48270
48271 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48272     cat >>confdefs.h <<\_ACEOF
48273 #define wxUSE_DRAGIMAGE 1
48274 _ACEOF
48275
48276     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48277 fi
48278
48279 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48280     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48281         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48282 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48283     else
48284         cat >>confdefs.h <<\_ACEOF
48285 #define wxUSE_EXCEPTIONS 1
48286 _ACEOF
48287
48288         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48289     fi
48290 fi
48291
48292 USE_HTML=0
48293 if test "$wxUSE_HTML" = "yes"; then
48294     cat >>confdefs.h <<\_ACEOF
48295 #define wxUSE_HTML 1
48296 _ACEOF
48297
48298     USE_HTML=1
48299     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48300 fi
48301 if test "$wxUSE_WEBKIT" = "yes"; then
48302     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48303         old_CPPFLAGS="$CPPFLAGS"
48304         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48305         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48306 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48307 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48308   echo $ECHO_N "(cached) $ECHO_C" >&6
48309 else
48310   cat >conftest.$ac_ext <<_ACEOF
48311 /* confdefs.h.  */
48312 _ACEOF
48313 cat confdefs.h >>conftest.$ac_ext
48314 cat >>conftest.$ac_ext <<_ACEOF
48315 /* end confdefs.h.  */
48316
48317                            #include <Carbon/Carbon.h>
48318                            #include <WebKit/WebKit.h>
48319
48320
48321 #include <WebKit/HIWebView.h>
48322 _ACEOF
48323 rm -f conftest.$ac_objext
48324 if { (ac_try="$ac_compile"
48325 case "(($ac_try" in
48326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48327   *) ac_try_echo=$ac_try;;
48328 esac
48329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48330   (eval "$ac_compile") 2>conftest.er1
48331   ac_status=$?
48332   grep -v '^ *+' conftest.er1 >conftest.err
48333   rm -f conftest.er1
48334   cat conftest.err >&5
48335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48336   (exit $ac_status); } && {
48337          test -z "$ac_c_werror_flag" ||
48338          test ! -s conftest.err
48339        } && test -s conftest.$ac_objext; then
48340   ac_cv_header_WebKit_HIWebView_h=yes
48341 else
48342   echo "$as_me: failed program was:" >&5
48343 sed 's/^/| /' conftest.$ac_ext >&5
48344
48345         ac_cv_header_WebKit_HIWebView_h=no
48346 fi
48347
48348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48349 fi
48350 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48351 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48352 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48353
48354                            cat >>confdefs.h <<\_ACEOF
48355 #define wxUSE_WEBKIT 1
48356 _ACEOF
48357
48358                            WEBKIT_LINK="-framework WebKit"
48359
48360 else
48361
48362                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48363 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48364                            wxUSE_WEBKIT=no
48365
48366 fi
48367
48368
48369         CPPFLAGS="$old_CPPFLAGS"
48370     elif test "$wxUSE_OLD_COCOA" = 1; then
48371         cat >>confdefs.h <<\_ACEOF
48372 #define wxUSE_WEBKIT 1
48373 _ACEOF
48374
48375     else
48376         wxUSE_WEBKIT=no
48377     fi
48378     if test "$wxUSE_WEBKIT" = "yes"; then
48379         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48380     fi
48381 fi
48382
48383 USE_XRC=0
48384 if test "$wxUSE_XRC" = "yes"; then
48385     if test "$wxUSE_XML" != "yes"; then
48386         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48387 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48388         wxUSE_XRC=no
48389     else
48390         cat >>confdefs.h <<\_ACEOF
48391 #define wxUSE_XRC 1
48392 _ACEOF
48393
48394         USE_XRC=1
48395         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48396     fi
48397 fi
48398
48399 USE_AUI=0
48400 if test "$wxUSE_AUI" = "yes"; then
48401    cat >>confdefs.h <<\_ACEOF
48402 #define wxUSE_AUI 1
48403 _ACEOF
48404
48405    USE_AUI=1
48406    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48407 fi
48408
48409 USE_PROPGRID=0
48410 if test "$wxUSE_PROPGRID" = "yes"; then
48411    cat >>confdefs.h <<\_ACEOF
48412 #define wxUSE_PROPGRID 1
48413 _ACEOF
48414
48415    USE_PROPGRID=1
48416    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
48417 fi
48418
48419 USE_RIBBON=0
48420 if test "$wxUSE_RIBBON" = "yes"; then
48421    cat >>confdefs.h <<\_ACEOF
48422 #define wxUSE_RIBBON 1
48423 _ACEOF
48424
48425    USE_RIBBON=1
48426    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
48427 fi
48428
48429 USE_STC=0
48430 if test "$wxUSE_STC" = "yes"; then
48431    cat >>confdefs.h <<\_ACEOF
48432 #define wxUSE_STC 1
48433 _ACEOF
48434
48435    USE_STC=1
48436    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48437
48438       # Extract the first word of "python", so it can be a program name with args.
48439 set dummy python; ac_word=$2
48440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48442 if test "${ac_cv_path_PYTHON+set}" = set; then
48443   echo $ECHO_N "(cached) $ECHO_C" >&6
48444 else
48445   case $PYTHON in
48446   [\\/]* | ?:[\\/]*)
48447   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
48448   ;;
48449   *)
48450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48451 for as_dir in $PATH
48452 do
48453   IFS=$as_save_IFS
48454   test -z "$as_dir" && as_dir=.
48455   for ac_exec_ext in '' $ac_executable_extensions; do
48456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48457     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
48458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48459     break 2
48460   fi
48461 done
48462 done
48463 IFS=$as_save_IFS
48464
48465   ;;
48466 esac
48467 fi
48468 PYTHON=$ac_cv_path_PYTHON
48469 if test -n "$PYTHON"; then
48470   { echo "$as_me:$LINENO: result: $PYTHON" >&5
48471 echo "${ECHO_T}$PYTHON" >&6; }
48472 else
48473   { echo "$as_me:$LINENO: result: no" >&5
48474 echo "${ECHO_T}no" >&6; }
48475 fi
48476
48477
48478    if test "x$PYTHON" = "x"; then
48479      COND_PYTHON="#"
48480    fi
48481
48482 fi
48483
48484 if test "$wxUSE_MENUS" = "yes"; then
48485     cat >>confdefs.h <<\_ACEOF
48486 #define wxUSE_MENUS 1
48487 _ACEOF
48488
48489     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48490 fi
48491
48492 if test "$wxUSE_MIMETYPE" = "yes"; then
48493     cat >>confdefs.h <<\_ACEOF
48494 #define wxUSE_MIMETYPE 1
48495 _ACEOF
48496
48497 fi
48498
48499 if test "$wxUSE_MINIFRAME" = "yes"; then
48500     cat >>confdefs.h <<\_ACEOF
48501 #define wxUSE_MINIFRAME 1
48502 _ACEOF
48503
48504 fi
48505
48506 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48507     cat >>confdefs.h <<\_ACEOF
48508 #define wxUSE_SYSTEM_OPTIONS 1
48509 _ACEOF
48510
48511 fi
48512
48513 if test "$wxUSE_TASKBARICON" = "yes"; then
48514     cat >>confdefs.h <<\_ACEOF
48515 #define wxUSE_TASKBARICON 1
48516 _ACEOF
48517
48518     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48519 fi
48520
48521
48522 if test "$wxUSE_VALIDATORS" = "yes"; then
48523     cat >>confdefs.h <<\_ACEOF
48524 #define wxUSE_VALIDATORS 1
48525 _ACEOF
48526
48527     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48528 fi
48529
48530 if test "$wxUSE_PALETTE" = "yes" ; then
48531     if test "$wxUSE_DFB" = 1; then
48532         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48533 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48534         wxUSE_PALETTE=no
48535     else
48536         cat >>confdefs.h <<\_ACEOF
48537 #define wxUSE_PALETTE 1
48538 _ACEOF
48539
48540     fi
48541 fi
48542
48543 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48544     LIBS=" -lunicows $LIBS"
48545 fi
48546
48547 USE_RICHTEXT=0
48548 if test "$wxUSE_RICHTEXT" = "yes"; then
48549     cat >>confdefs.h <<\_ACEOF
48550 #define wxUSE_RICHTEXT 1
48551 _ACEOF
48552
48553     USE_RICHTEXT=1
48554     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48555 fi
48556
48557 if test "$wxUSE_WEBVIEW" = "yes"; then
48558     USE_WEBVIEW_WEBKIT=0
48559     if test "$wxUSE_WEBVIEW_WEBKIT" = "yes"; then
48560         if test "$wxUSE_GTK" = 1; then
48561             { echo "$as_me:$LINENO: checking for webkitgtk libraries" >&5
48562 echo $ECHO_N "checking for webkitgtk libraries... $ECHO_C" >&6; }
48563
48564   ac_find_libraries=
48565   for ac_dir in $SEARCH_LIB
48566   do
48567     for ac_extension in a so sl dylib dll.a; do
48568       if test -f "$ac_dir/libwebkitgtk-1.0.$ac_extension"; then
48569         ac_find_libraries=$ac_dir
48570         break 2
48571       fi
48572     done
48573   done
48574
48575             if test "$ac_find_libraries" != "" ; then
48576
48577     if test "$ac_find_libraries" = "default location"; then
48578     ac_path_to_link=""
48579   else
48580     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
48581     result=$?
48582     if test $result = 0; then
48583       ac_path_to_link=""
48584     else
48585       ac_path_to_link=" -L$ac_find_libraries"
48586     fi
48587   fi
48588
48589                 if test "$ac_path_to_link" != " -L/usr/lib" ; then
48590                     LDFLAGS="$LDFLAGS $ac_path_to_link"
48591                 fi
48592                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwebkitgtk-1.0"
48593                 { echo "$as_me:$LINENO: result: yes" >&5
48594 echo "${ECHO_T}yes" >&6; }
48595
48596                 { echo "$as_me:$LINENO: checking for webkitgtk headers" >&5
48597 echo $ECHO_N "checking for webkitgtk headers... $ECHO_C" >&6; }
48598
48599 ac_find_includes=
48600 for ac_dir in $SEARCH_INCLUDE /usr/include/webkit-1.0 /usr/include
48601   do
48602     if test -f "$ac_dir/webkit/webkit.h"; then
48603       ac_find_includes=$ac_dir
48604       break
48605     fi
48606   done
48607
48608                 if test "$ac_find_includes" != "" ; then
48609                    { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
48610 echo "${ECHO_T}found in $ac_find_includes" >&6; }
48611
48612     if test "x$ac_find_includes" = "x/usr/include"; then
48613     ac_path_to_include=""
48614   else
48615     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
48616     result=$?
48617     if test $result = 0; then
48618       ac_path_to_include=""
48619     else
48620       ac_path_to_include=" -I$ac_find_includes"
48621     fi
48622   fi
48623
48624                    CPPFLAGS="$ac_path_to_include $CPPFLAGS"
48625
48626                                       { echo "$as_me:$LINENO: checking for libsoup headers" >&5
48627 echo $ECHO_N "checking for libsoup headers... $ECHO_C" >&6; }
48628
48629 ac_find_includes=
48630 for ac_dir in $SEARCH_INCLUDE /usr/include/libsoup-2.4 /usr/include
48631   do
48632     if test -f "$ac_dir/libsoup/soup.h"; then
48633       ac_find_includes=$ac_dir
48634       break
48635     fi
48636   done
48637
48638                    if test "$ac_find_includes" != "" ; then
48639                        { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
48640 echo "${ECHO_T}found in $ac_find_includes" >&6; }
48641
48642     if test "x$ac_find_includes" = "x/usr/include"; then
48643     ac_path_to_include=""
48644   else
48645     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
48646     result=$?
48647     if test $result = 0; then
48648       ac_path_to_include=""
48649     else
48650       ac_path_to_include=" -I$ac_find_includes"
48651     fi
48652   fi
48653
48654                        CPPFLAGS="$ac_path_to_include $CPPFLAGS"
48655
48656                        USE_WEBVIEW_WEBKIT=1
48657                    else
48658                        { echo "$as_me:$LINENO: result: not found" >&5
48659 echo "${ECHO_T}not found" >&6; }
48660                        { echo "$as_me:$LINENO: WARNING: libsoup headers not found; disabling WebKit backend" >&5
48661 echo "$as_me: WARNING: libsoup headers not found; disabling WebKit backend" >&2;}
48662                    fi
48663                 else
48664                    { echo "$as_me:$LINENO: result: not found" >&5
48665 echo "${ECHO_T}not found" >&6; }
48666                    { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling WebKit backend" >&5
48667 echo "$as_me: WARNING: WebKit headers not found; disabling WebKit backend" >&2;}
48668                 fi
48669             else
48670                 { echo "$as_me:$LINENO: result: no" >&5
48671 echo "${ECHO_T}no" >&6; }
48672                 { echo "$as_me:$LINENO: WARNING: WebKit libraries not found; disabling WebKit backend" >&5
48673 echo "$as_me: WARNING: WebKit libraries not found; disabling WebKit backend" >&2;}
48674             fi
48675         elif test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48676                                     old_CPPFLAGS="$CPPFLAGS"
48677             CPPFLAGS="-x objective-c++ $CPPFLAGS"
48678             { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48679 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48680 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48681   echo $ECHO_N "(cached) $ECHO_C" >&6
48682 else
48683   cat >conftest.$ac_ext <<_ACEOF
48684 /* confdefs.h.  */
48685 _ACEOF
48686 cat confdefs.h >>conftest.$ac_ext
48687 cat >>conftest.$ac_ext <<_ACEOF
48688 /* end confdefs.h.  */
48689
48690                                 #include <Carbon/Carbon.h>
48691                                 #include <WebKit/WebKit.h>
48692
48693
48694 #include <WebKit/HIWebView.h>
48695 _ACEOF
48696 rm -f conftest.$ac_objext
48697 if { (ac_try="$ac_compile"
48698 case "(($ac_try" in
48699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48700   *) ac_try_echo=$ac_try;;
48701 esac
48702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48703   (eval "$ac_compile") 2>conftest.er1
48704   ac_status=$?
48705   grep -v '^ *+' conftest.er1 >conftest.err
48706   rm -f conftest.er1
48707   cat conftest.err >&5
48708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48709   (exit $ac_status); } && {
48710          test -z "$ac_c_werror_flag" ||
48711          test ! -s conftest.err
48712        } && test -s conftest.$ac_objext; then
48713   ac_cv_header_WebKit_HIWebView_h=yes
48714 else
48715   echo "$as_me: failed program was:" >&5
48716 sed 's/^/| /' conftest.$ac_ext >&5
48717
48718         ac_cv_header_WebKit_HIWebView_h=no
48719 fi
48720
48721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48722 fi
48723 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48724 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48725 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48726
48727                                 USE_WEBVIEW_WEBKIT=1
48728                                 WEBKIT_LINK="-framework WebKit"
48729
48730 else
48731
48732                                 { echo "$as_me:$LINENO: WARNING: WebKit headers not found" >&5
48733 echo "$as_me: WARNING: WebKit headers not found" >&2;}
48734
48735 fi
48736
48737
48738             CPPFLAGS="$old_CPPFLAGS"
48739         fi
48740     fi
48741
48742     wxUSE_WEBVIEW="no"
48743     if test "$wxUSE_GTK" = 1 -o "$wxUSE_MAC" = 1; then
48744         if test "$USE_WEBVIEW_WEBKIT" = 1; then
48745             wxUSE_WEBVIEW="yes"
48746             cat >>confdefs.h <<\_ACEOF
48747 #define wxUSE_WEBVIEW_WEBKIT 1
48748 _ACEOF
48749
48750         else
48751             { echo "$as_me:$LINENO: WARNING: WebKit not available, disabling wxWebView" >&5
48752 echo "$as_me: WARNING: WebKit not available, disabling wxWebView" >&2;}
48753         fi
48754     elif test "$wxUSE_MSW" = 1; then
48755         if test "wxUSE_WEBVIEW_IE" = "yes"; then
48756                                     wxUSE_WEBVIEW="yes"
48757             cat >>confdefs.h <<\_ACEOF
48758 #define wxUSE_WEBVIEW_IE 1
48759 _ACEOF
48760
48761         fi
48762     fi
48763 fi
48764
48765 if test "$wxUSE_WEBVIEW" = "yes"; then
48766     USE_WEBVIEW=1
48767     cat >>confdefs.h <<\_ACEOF
48768 #define wxUSE_WEBVIEW 1
48769 _ACEOF
48770
48771     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS webview"
48772 else
48773     USE_WEBVIEW=0
48774 fi
48775
48776
48777 if test "$wxUSE_IMAGE" = "yes" ; then
48778     cat >>confdefs.h <<\_ACEOF
48779 #define wxUSE_IMAGE 1
48780 _ACEOF
48781
48782
48783     if test "$wxUSE_GIF" = "yes" ; then
48784       cat >>confdefs.h <<\_ACEOF
48785 #define wxUSE_GIF 1
48786 _ACEOF
48787
48788     fi
48789
48790     if test "$wxUSE_PCX" = "yes" ; then
48791       cat >>confdefs.h <<\_ACEOF
48792 #define wxUSE_PCX 1
48793 _ACEOF
48794
48795     fi
48796
48797     if test "$wxUSE_TGA" = "yes" ; then
48798       cat >>confdefs.h <<\_ACEOF
48799 #define wxUSE_TGA 1
48800 _ACEOF
48801
48802     fi
48803
48804     if test "$wxUSE_IFF" = "yes" ; then
48805       cat >>confdefs.h <<\_ACEOF
48806 #define wxUSE_IFF 1
48807 _ACEOF
48808
48809     fi
48810
48811     if test "$wxUSE_PNM" = "yes" ; then
48812       cat >>confdefs.h <<\_ACEOF
48813 #define wxUSE_PNM 1
48814 _ACEOF
48815
48816     fi
48817
48818     if test "$wxUSE_XPM" = "yes" ; then
48819       cat >>confdefs.h <<\_ACEOF
48820 #define wxUSE_XPM 1
48821 _ACEOF
48822
48823     fi
48824
48825     if test "$wxUSE_ICO_CUR" = "yes" ; then
48826       cat >>confdefs.h <<\_ACEOF
48827 #define wxUSE_ICO_CUR 1
48828 _ACEOF
48829
48830     fi
48831 fi
48832
48833
48834 if test "$wxUSE_ABOUTDLG" = "yes"; then
48835     cat >>confdefs.h <<\_ACEOF
48836 #define wxUSE_ABOUTDLG 1
48837 _ACEOF
48838
48839 fi
48840
48841 if test "$wxUSE_CHOICEDLG" = "yes"; then
48842     cat >>confdefs.h <<\_ACEOF
48843 #define wxUSE_CHOICEDLG 1
48844 _ACEOF
48845
48846 fi
48847
48848 if test "$wxUSE_COLOURDLG" = "yes"; then
48849     cat >>confdefs.h <<\_ACEOF
48850 #define wxUSE_COLOURDLG 1
48851 _ACEOF
48852
48853 fi
48854
48855 if test "$wxUSE_FILEDLG" = "yes"; then
48856     cat >>confdefs.h <<\_ACEOF
48857 #define wxUSE_FILEDLG 1
48858 _ACEOF
48859
48860 fi
48861
48862 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48863     cat >>confdefs.h <<\_ACEOF
48864 #define wxUSE_FINDREPLDLG 1
48865 _ACEOF
48866
48867 fi
48868
48869 if test "$wxUSE_FONTDLG" = "yes"; then
48870     cat >>confdefs.h <<\_ACEOF
48871 #define wxUSE_FONTDLG 1
48872 _ACEOF
48873
48874 fi
48875
48876 if test "$wxUSE_DIRDLG" = "yes"; then
48877     if test "$wxUSE_TREECTRL" != "yes"; then
48878         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48879 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48880     else
48881         cat >>confdefs.h <<\_ACEOF
48882 #define wxUSE_DIRDLG 1
48883 _ACEOF
48884
48885     fi
48886 fi
48887
48888 if test "$wxUSE_MSGDLG" = "yes"; then
48889     cat >>confdefs.h <<\_ACEOF
48890 #define wxUSE_MSGDLG 1
48891 _ACEOF
48892
48893 fi
48894
48895 if test "$wxUSE_NUMBERDLG" = "yes"; then
48896     cat >>confdefs.h <<\_ACEOF
48897 #define wxUSE_NUMBERDLG 1
48898 _ACEOF
48899
48900 fi
48901
48902 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48903     cat >>confdefs.h <<\_ACEOF
48904 #define wxUSE_PROGRESSDLG 1
48905 _ACEOF
48906
48907 fi
48908
48909 if test "$wxUSE_SPLASH" = "yes"; then
48910     cat >>confdefs.h <<\_ACEOF
48911 #define wxUSE_SPLASH 1
48912 _ACEOF
48913
48914     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48915 fi
48916
48917 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48918     cat >>confdefs.h <<\_ACEOF
48919 #define wxUSE_STARTUP_TIPS 1
48920 _ACEOF
48921
48922 fi
48923
48924 if test "$wxUSE_TEXTDLG" = "yes"; then
48925     cat >>confdefs.h <<\_ACEOF
48926 #define wxUSE_TEXTDLG 1
48927 _ACEOF
48928
48929 fi
48930
48931 if test "$wxUSE_WIZARDDLG" = "yes"; then
48932     cat >>confdefs.h <<\_ACEOF
48933 #define wxUSE_WIZARDDLG 1
48934 _ACEOF
48935
48936     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48937 fi
48938
48939
48940 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
48941     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
48942         cat >>confdefs.h <<\_ACEOF
48943 #define wxUSE_OWNER_DRAWN 1
48944 _ACEOF
48945
48946     fi
48947 fi
48948
48949
48950 if test "$wxUSE_MSW" = 1 ; then
48951
48952     if test "$wxUSE_DC_CACHEING" = "yes"; then
48953         cat >>confdefs.h <<\_ACEOF
48954 #define wxUSE_DC_CACHEING 1
48955 _ACEOF
48956
48957     fi
48958
48959     if test "$wxUSE_DIB" = "yes"; then
48960         cat >>confdefs.h <<\_ACEOF
48961 #define wxUSE_WXDIB 1
48962 _ACEOF
48963
48964     fi
48965
48966     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
48967         cat >>confdefs.h <<\_ACEOF
48968 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
48969 _ACEOF
48970
48971     fi
48972
48973     if test "$wxUSE_UXTHEME" = "yes"; then
48974         cat >>confdefs.h <<\_ACEOF
48975 #define wxUSE_UXTHEME 1
48976 _ACEOF
48977
48978     fi
48979
48980 fi
48981
48982 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
48983     cat >>confdefs.h <<\_ACEOF
48984 #define wxUSE_AUTOID_MANAGEMENT 1
48985 _ACEOF
48986
48987 fi
48988
48989 if test "$USE_WIN32" = 1 ; then
48990     if test "$wxUSE_INICONF" = "yes"; then
48991         cat >>confdefs.h <<\_ACEOF
48992 #define wxUSE_INICONF 1
48993 _ACEOF
48994
48995     fi
48996
48997     if test "$wxUSE_REGKEY" = "yes"; then
48998         cat >>confdefs.h <<\_ACEOF
48999 #define wxUSE_REGKEY 1
49000 _ACEOF
49001
49002     fi
49003 fi
49004
49005
49006 if test "$wxUSE_MAC" = 1; then
49007     wxUSE_GRAPHICS_CONTEXT="yes"
49008 fi
49009
49010 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
49011     wx_has_graphics=0
49012     if test "$wxUSE_MSW" = 1; then
49013         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
49014 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
49015 if test "${wx_cv_lib_gdiplus+set}" = set; then
49016   echo $ECHO_N "(cached) $ECHO_C" >&6
49017 else
49018
49019                                                 ac_ext=cpp
49020 ac_cpp='$CXXCPP $CPPFLAGS'
49021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49024
49025                 cat >conftest.$ac_ext <<_ACEOF
49026 /* confdefs.h.  */
49027 _ACEOF
49028 cat confdefs.h >>conftest.$ac_ext
49029 cat >>conftest.$ac_ext <<_ACEOF
49030 /* end confdefs.h.  */
49031 #include <windows.h>
49032                      #include <gdiplus.h>
49033 int
49034 main ()
49035 {
49036
49037                         using namespace Gdiplus;
49038
49039   ;
49040   return 0;
49041 }
49042 _ACEOF
49043 rm -f conftest.$ac_objext
49044 if { (ac_try="$ac_compile"
49045 case "(($ac_try" in
49046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49047   *) ac_try_echo=$ac_try;;
49048 esac
49049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49050   (eval "$ac_compile") 2>conftest.er1
49051   ac_status=$?
49052   grep -v '^ *+' conftest.er1 >conftest.err
49053   rm -f conftest.er1
49054   cat conftest.err >&5
49055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49056   (exit $ac_status); } && {
49057          test -z "$ac_cxx_werror_flag" ||
49058          test ! -s conftest.err
49059        } && test -s conftest.$ac_objext; then
49060   wx_cv_lib_gdiplus=yes
49061 else
49062   echo "$as_me: failed program was:" >&5
49063 sed 's/^/| /' conftest.$ac_ext >&5
49064
49065         wx_cv_lib_gdiplus=no
49066
49067 fi
49068
49069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49070                 ac_ext=c
49071 ac_cpp='$CPP $CPPFLAGS'
49072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49075
49076
49077
49078 fi
49079 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
49080 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
49081         if test "$wx_cv_lib_gdiplus" = "yes"; then
49082             wx_has_graphics=1
49083         fi
49084     elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
49085
49086 pkg_failed=no
49087 { echo "$as_me:$LINENO: checking for CAIRO" >&5
49088 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
49089
49090 if test -n "$PKG_CONFIG"; then
49091     if test -n "$CAIRO_CFLAGS"; then
49092         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
49093     else
49094         if test -n "$PKG_CONFIG" && \
49095     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49096   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49097   ac_status=$?
49098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49099   (exit $ac_status); }; then
49100   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
49101 else
49102   pkg_failed=yes
49103 fi
49104     fi
49105 else
49106         pkg_failed=untried
49107 fi
49108 if test -n "$PKG_CONFIG"; then
49109     if test -n "$CAIRO_LIBS"; then
49110         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
49111     else
49112         if test -n "$PKG_CONFIG" && \
49113     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49114   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49115   ac_status=$?
49116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49117   (exit $ac_status); }; then
49118   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
49119 else
49120   pkg_failed=yes
49121 fi
49122     fi
49123 else
49124         pkg_failed=untried
49125 fi
49126
49127
49128
49129 if test $pkg_failed = yes; then
49130
49131 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49132         _pkg_short_errors_supported=yes
49133 else
49134         _pkg_short_errors_supported=no
49135 fi
49136         if test $_pkg_short_errors_supported = yes; then
49137                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
49138         else
49139                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
49140         fi
49141         # Put the nasty error message in config.log where it belongs
49142         echo "$CAIRO_PKG_ERRORS" >&5
49143
49144         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
49145 echo "$as_me: WARNING: Cairo library not found" >&2;}
49146
49147 elif test $pkg_failed = untried; then
49148         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
49149 echo "$as_me: WARNING: Cairo library not found" >&2;}
49150
49151 else
49152         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
49153         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
49154         { echo "$as_me:$LINENO: result: yes" >&5
49155 echo "${ECHO_T}yes" >&6; }
49156         wx_has_graphics=1
49157 fi
49158         if test "$wx_has_graphics" = 1; then
49159                                                 save_LIBS="$LIBS"
49160             LIBS="$LIBS $CAIRO_LIBS"
49161
49162 for ac_func in cairo_push_group
49163 do
49164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49168   echo $ECHO_N "(cached) $ECHO_C" >&6
49169 else
49170   cat >conftest.$ac_ext <<_ACEOF
49171 /* confdefs.h.  */
49172 _ACEOF
49173 cat confdefs.h >>conftest.$ac_ext
49174 cat >>conftest.$ac_ext <<_ACEOF
49175 /* end confdefs.h.  */
49176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49178 #define $ac_func innocuous_$ac_func
49179
49180 /* System header to define __stub macros and hopefully few prototypes,
49181     which can conflict with char $ac_func (); below.
49182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49183     <limits.h> exists even on freestanding compilers.  */
49184
49185 #ifdef __STDC__
49186 # include <limits.h>
49187 #else
49188 # include <assert.h>
49189 #endif
49190
49191 #undef $ac_func
49192
49193 /* Override any GCC internal prototype to avoid an error.
49194    Use char because int might match the return type of a GCC
49195    builtin and then its argument prototype would still apply.  */
49196 #ifdef __cplusplus
49197 extern "C"
49198 #endif
49199 char $ac_func ();
49200 /* The GNU C library defines this for functions which it implements
49201     to always fail with ENOSYS.  Some functions are actually named
49202     something starting with __ and the normal name is an alias.  */
49203 #if defined __stub_$ac_func || defined __stub___$ac_func
49204 choke me
49205 #endif
49206
49207 int
49208 main ()
49209 {
49210 return $ac_func ();
49211   ;
49212   return 0;
49213 }
49214 _ACEOF
49215 rm -f conftest.$ac_objext conftest$ac_exeext
49216 if { (ac_try="$ac_link"
49217 case "(($ac_try" in
49218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49219   *) ac_try_echo=$ac_try;;
49220 esac
49221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49222   (eval "$ac_link") 2>conftest.er1
49223   ac_status=$?
49224   grep -v '^ *+' conftest.er1 >conftest.err
49225   rm -f conftest.er1
49226   cat conftest.err >&5
49227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49228   (exit $ac_status); } && {
49229          test -z "$ac_c_werror_flag" ||
49230          test ! -s conftest.err
49231        } && test -s conftest$ac_exeext &&
49232        $as_test_x conftest$ac_exeext; then
49233   eval "$as_ac_var=yes"
49234 else
49235   echo "$as_me: failed program was:" >&5
49236 sed 's/^/| /' conftest.$ac_ext >&5
49237
49238         eval "$as_ac_var=no"
49239 fi
49240
49241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49242       conftest$ac_exeext conftest.$ac_ext
49243 fi
49244 ac_res=`eval echo '${'$as_ac_var'}'`
49245                { echo "$as_me:$LINENO: result: $ac_res" >&5
49246 echo "${ECHO_T}$ac_res" >&6; }
49247 if test `eval echo '${'$as_ac_var'}'` = yes; then
49248   cat >>confdefs.h <<_ACEOF
49249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49250 _ACEOF
49251
49252 fi
49253 done
49254
49255             LIBS="$save_LIBS"
49256             if test "$ac_cv_func_cairo_push_group" = "no"; then
49257                 wx_has_graphics=0
49258                 { echo "$as_me:$LINENO: WARNING: Cairo library is too old and misses cairo_push_group()" >&5
49259 echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;}
49260             else
49261                 cat >>confdefs.h <<\_ACEOF
49262 #define wxUSE_CAIRO 1
49263 _ACEOF
49264
49265
49266                                                 if test "$wxUSE_GTK" != 1; then
49267                     CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
49268                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS"
49269                 fi
49270             fi
49271         fi
49272     else
49273                 wx_has_graphics=1
49274     fi
49275
49276     if test "$wx_has_graphics" = 1; then
49277         cat >>confdefs.h <<\_ACEOF
49278 #define wxUSE_GRAPHICS_CONTEXT 1
49279 _ACEOF
49280
49281     else
49282         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
49283 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
49284     fi
49285 fi
49286
49287
49288 USE_MEDIA=0
49289
49290 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
49291     USE_MEDIA=1
49292
49293                 if test "$wxUSE_GTK" = 1; then
49294         wxUSE_GSTREAMER="no"
49295
49296                                                                 GST_VERSION_MAJOR=0
49297         GST_VERSION_MINOR=10
49298         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49299
49300         if test "$wxUSE_GSTREAMER8" = "no"; then
49301
49302 pkg_failed=no
49303 { echo "$as_me:$LINENO: checking for GST" >&5
49304 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49305
49306 if test -n "$PKG_CONFIG"; then
49307     if test -n "$GST_CFLAGS"; then
49308         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49309     else
49310         if test -n "$PKG_CONFIG" && \
49311     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49312   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49313   ac_status=$?
49314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49315   (exit $ac_status); }; then
49316   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49317 else
49318   pkg_failed=yes
49319 fi
49320     fi
49321 else
49322         pkg_failed=untried
49323 fi
49324 if test -n "$PKG_CONFIG"; then
49325     if test -n "$GST_LIBS"; then
49326         pkg_cv_GST_LIBS="$GST_LIBS"
49327     else
49328         if test -n "$PKG_CONFIG" && \
49329     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49330   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49331   ac_status=$?
49332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49333   (exit $ac_status); }; then
49334   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49335 else
49336   pkg_failed=yes
49337 fi
49338     fi
49339 else
49340         pkg_failed=untried
49341 fi
49342
49343
49344
49345 if test $pkg_failed = yes; then
49346
49347 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49348         _pkg_short_errors_supported=yes
49349 else
49350         _pkg_short_errors_supported=no
49351 fi
49352         if test $_pkg_short_errors_supported = yes; then
49353                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49354         else
49355                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49356         fi
49357         # Put the nasty error message in config.log where it belongs
49358         echo "$GST_PKG_ERRORS" >&5
49359
49360
49361                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49362 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49363                     GST_VERSION_MINOR=8
49364
49365
49366 elif test $pkg_failed = untried; then
49367
49368                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49369 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49370                     GST_VERSION_MINOR=8
49371
49372
49373 else
49374         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49375         GST_LIBS=$pkg_cv_GST_LIBS
49376         { echo "$as_me:$LINENO: result: yes" >&5
49377 echo "${ECHO_T}yes" >&6; }
49378
49379                     wxUSE_GSTREAMER="yes"
49380                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
49381
49382 fi
49383         else
49384                         GST_VERSION_MINOR=8
49385         fi
49386
49387         if test $GST_VERSION_MINOR = "8"; then
49388             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49389
49390 pkg_failed=no
49391 { echo "$as_me:$LINENO: checking for GST" >&5
49392 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49393
49394 if test -n "$PKG_CONFIG"; then
49395     if test -n "$GST_CFLAGS"; then
49396         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49397     else
49398         if test -n "$PKG_CONFIG" && \
49399     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49400   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49401   ac_status=$?
49402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49403   (exit $ac_status); }; then
49404   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49405 else
49406   pkg_failed=yes
49407 fi
49408     fi
49409 else
49410         pkg_failed=untried
49411 fi
49412 if test -n "$PKG_CONFIG"; then
49413     if test -n "$GST_LIBS"; then
49414         pkg_cv_GST_LIBS="$GST_LIBS"
49415     else
49416         if test -n "$PKG_CONFIG" && \
49417     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49418   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49419   ac_status=$?
49420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49421   (exit $ac_status); }; then
49422   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49423 else
49424   pkg_failed=yes
49425 fi
49426     fi
49427 else
49428         pkg_failed=untried
49429 fi
49430
49431
49432
49433 if test $pkg_failed = yes; then
49434
49435 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49436         _pkg_short_errors_supported=yes
49437 else
49438         _pkg_short_errors_supported=no
49439 fi
49440         if test $_pkg_short_errors_supported = yes; then
49441                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49442         else
49443                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49444         fi
49445         # Put the nasty error message in config.log where it belongs
49446         echo "$GST_PKG_ERRORS" >&5
49447
49448
49449                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49450 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49451
49452 elif test $pkg_failed = untried; then
49453
49454                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49455 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49456
49457 else
49458         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49459         GST_LIBS=$pkg_cv_GST_LIBS
49460         { echo "$as_me:$LINENO: result: yes" >&5
49461 echo "${ECHO_T}yes" >&6; }
49462         wxUSE_GSTREAMER="yes"
49463 fi
49464         fi
49465
49466
49467         if test "$wxUSE_GSTREAMER" = "yes"; then
49468             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49469             EXTRALIBS_MEDIA="$GST_LIBS"
49470
49471             cat >>confdefs.h <<\_ACEOF
49472 #define wxUSE_GSTREAMER 1
49473 _ACEOF
49474
49475         else
49476             USE_MEDIA=0
49477         fi
49478     fi
49479
49480     if test $USE_MEDIA = 1; then
49481         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
49482         cat >>confdefs.h <<\_ACEOF
49483 #define wxUSE_MEDIACTRL 1
49484 _ACEOF
49485
49486     else
49487         if test "$wxUSE_MEDIACTRL" = "yes"; then
49488             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
49489 echo "$as_me: error: GStreamer not available" >&2;}
49490    { (exit 1); exit 1; }; }
49491         else
49492                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
49493 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
49494         fi
49495     fi
49496 fi
49497
49498
49499 if test "$cross_compiling" != "no"; then
49500         OSINFO="\"$host\""
49501 else
49502         OSINFO=`uname -s -r -m`
49503     OSINFO="\"$OSINFO\""
49504 fi
49505
49506 cat >>confdefs.h <<_ACEOF
49507 #define WXWIN_OS_DESCRIPTION $OSINFO
49508 _ACEOF
49509
49510
49511
49512 if test "x$prefix" != "xNONE"; then
49513     wxPREFIX=$prefix
49514 else
49515     wxPREFIX=$ac_default_prefix
49516 fi
49517
49518 cat >>confdefs.h <<_ACEOF
49519 #define wxINSTALL_PREFIX "$wxPREFIX"
49520 _ACEOF
49521
49522
49523
49524
49525 STD_BASE_LIBS="base"
49526 STD_GUI_LIBS=""
49527 BUILT_WX_LIBS="base"
49528 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
49529
49530 if test "$wxUSE_SOCKETS" = "yes" ; then
49531     STD_BASE_LIBS="net $STD_BASE_LIBS"
49532     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49533 fi
49534 if test "$wxUSE_XML" = "yes" ; then
49535     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49536     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49537 fi
49538
49539 if test "$wxUSE_GUI" = "yes"; then
49540     STD_GUI_LIBS="adv core"
49541     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49542
49543     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49544         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49545         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49546     fi
49547     if test "$wxUSE_HTML" = "yes" ; then
49548         STD_GUI_LIBS="html $STD_GUI_LIBS"
49549         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49550     fi
49551     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49552         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49553     fi
49554     if test "$wxUSE_OPENGL" = "yes" ; then
49555         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49556     fi
49557     if test "$wxUSE_AUI" = "yes" ; then
49558         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49559     fi
49560     if test "$wxUSE_PROPGRID" = "yes" ; then
49561         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
49562     fi
49563     if test "$wxUSE_RIBBON" = "yes" ; then
49564         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
49565     fi
49566     if test "$wxUSE_RICHTEXT" = "yes" ; then
49567         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
49568     fi
49569     if test "$wxUSE_STC" = "yes" ; then
49570         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49571     fi
49572     if test "$wxUSE_WEBVIEW" = "yes" ; then
49573         STD_GUI_LIBS="webview $STD_GUI_LIBS"
49574         BUILT_WX_LIBS="webview $BUILT_WX_LIBS"
49575     fi
49576     if test "$wxUSE_XRC" = "yes" ; then
49577         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49578         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49579     fi
49580 fi
49581
49582
49583
49584
49585
49586
49587
49588 EXTRA_FRAMEWORKS=
49589 if test "$wxUSE_MAC" = 1 ; then
49590     if test "$USE_DARWIN" = 1; then
49591         if test "$wxUSE_OSX_IPHONE" = 1; then
49592             EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
49593         else
49594             EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
49595         fi
49596     fi
49597 fi
49598 if test "$wxUSE_OLD_COCOA" = 1 ; then
49599     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
49600     if test "$wxUSE_MEDIACTRL" = "yes"; then
49601         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
49602     fi
49603 fi
49604 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
49605     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49606 fi
49607
49608 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
49609 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
49610
49611 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49612
49613 if test "$wxUSE_GUI" = "yes"; then
49614
49615
49616         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49617                      erase event exec font image minimal render \
49618                      shaped svg taborder vscroll widgets wrapsizer"
49619
49620     if test "$wxUSE_MONOLITHIC" != "yes"; then
49621         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49622     fi
49623     if test "$TOOLKIT" = "MSW"; then
49624         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49625         if test "$wxUSE_UNIVERSAL" != "yes"; then
49626             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
49627         fi
49628     fi
49629     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49630         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49631     fi
49632 else
49633     SAMPLES_SUBDIRS="console"
49634     if test "$wxUSE_SOCKETS" = "yes" ; then
49635         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
49636     fi
49637     if test "$wxUSE_IPC" = "yes" ; then
49638         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
49639     fi
49640 fi
49641
49642
49643 if test "x$INTELCC" = "xyes" ; then
49644                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
49645 elif test "$GCC" = yes ; then
49646     CWARNINGS="-Wall -Wundef"
49647 fi
49648
49649 if test "x$INTELCXX" = "xyes" ; then
49650                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
49651 elif test "$GXX" = yes ; then
49652     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
49653     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
49654 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
49655 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
49656   echo $ECHO_N "(cached) $ECHO_C" >&6
49657 else
49658   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
49659
49660  ac_ext=cpp
49661 ac_cpp='$CXXCPP $CPPFLAGS'
49662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49665
49666  ac_save_CXXFLAGS="$CXXFLAGS"
49667 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
49668 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
49669    cat >conftest.$ac_ext <<_ACEOF
49670 /* confdefs.h.  */
49671 _ACEOF
49672 cat confdefs.h >>conftest.$ac_ext
49673 cat >>conftest.$ac_ext <<_ACEOF
49674 /* end confdefs.h.  */
49675
49676 int
49677 main ()
49678 {
49679 return 0;
49680   ;
49681   return 0;
49682 }
49683 _ACEOF
49684 rm -f conftest.$ac_objext
49685 if { (ac_try="$ac_compile"
49686 case "(($ac_try" in
49687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49688   *) ac_try_echo=$ac_try;;
49689 esac
49690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49691   (eval "$ac_compile") 2>conftest.er1
49692   ac_status=$?
49693   grep -v '^ *+' conftest.er1 >conftest.err
49694   rm -f conftest.er1
49695   cat conftest.err >&5
49696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49697   (exit $ac_status); } && {
49698          test -z "$ac_cxx_werror_flag" ||
49699          test ! -s conftest.err
49700        } && test -s conftest.$ac_objext; then
49701   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
49702 else
49703   echo "$as_me: failed program was:" >&5
49704 sed 's/^/| /' conftest.$ac_ext >&5
49705
49706
49707 fi
49708
49709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49710 done
49711  CXXFLAGS="$ac_save_CXXFLAGS"
49712  ac_ext=c
49713 ac_cpp='$CPP $CPPFLAGS'
49714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49717
49718
49719 fi
49720 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
49721 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
49722 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
49723      .ok|.ok,*)  ;;
49724    .|.no|.no,*)  ;;
49725    *)
49726    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
49727    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
49728   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
49729   ac_status=$?
49730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49731   (exit $ac_status); }
49732    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
49733   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
49734   ac_status=$?
49735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49736   (exit $ac_status); }
49737                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
49738    fi
49739  ;;
49740 esac
49741
49742
49743                     if test "$wxUSE_MAC" = 1 ; then
49744         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
49745     fi
49746 fi
49747
49748
49749 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49750 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49751
49752
49753 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49754  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49755  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49756  $CPPFLAGS `
49757
49758 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49759 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49760 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49761 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
49762 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
49763
49764 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49765
49766
49767 if test "x$MWCC" = "xyes"; then
49768
49769             CC="$CC -cwd source -I-"
49770     CXX="$CXX -cwd source -I-"
49771 fi
49772
49773
49774 LIBS=`echo $LIBS`
49775 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49776 EXTRALIBS_XML="$EXPAT_LINK"
49777 EXTRALIBS_HTML="$MSPACK_LINK"
49778 EXTRALIBS_MEDIA="$GST_LIBS"
49779 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49780 if test "$wxUSE_GUI" = "yes"; then
49781     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49782 fi
49783 if test "$wxUSE_OPENGL" = "yes"; then
49784     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49785 fi
49786
49787 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49788
49789 WXCONFIG_LIBS="$LIBS"
49790
49791 if test "$wxUSE_REGEX" = "builtin" ; then
49792     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49793 fi
49794 if test "$wxUSE_EXPAT" = "builtin" ; then
49795     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49796 fi
49797 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49798     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49799 fi
49800 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49801     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49802 fi
49803 if test "$wxUSE_LIBPNG" = "builtin" ; then
49804     wxconfig_3rdparty="png $wxconfig_3rdparty"
49805 fi
49806 if test "$wxUSE_ZLIB" = "builtin" ; then
49807     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49808 fi
49809
49810 for i in $wxconfig_3rdparty ; do
49811     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49812 done
49813
49814
49815 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49816     WXUNIV=1
49817
49818     case "$wxUNIV_THEMES" in
49819         ''|all)
49820             cat >>confdefs.h <<\_ACEOF
49821 #define wxUSE_ALL_THEMES 1
49822 _ACEOF
49823
49824             ;;
49825
49826         *)
49827             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
49828                 cat >>confdefs.h <<_ACEOF
49829 #define wxUSE_THEME_$t 1
49830 _ACEOF
49831
49832             done
49833     esac
49834 else
49835     WXUNIV=0
49836 fi
49837
49838
49839
49840
49841
49842
49843
49844
49845 if test $wxUSE_MONOLITHIC = "yes" ; then
49846     MONOLITHIC=1
49847 else
49848     MONOLITHIC=0
49849 fi
49850
49851 if test $wxUSE_PLUGINS = "yes" ; then
49852     USE_PLUGINS=1
49853 else
49854     USE_PLUGINS=0
49855 fi
49856
49857 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49858     USE_QA=1
49859 else
49860     USE_QA=0
49861 fi
49862
49863 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49864     OFFICIAL_BUILD=1
49865 else
49866     OFFICIAL_BUILD=0
49867 fi
49868
49869
49870
49871
49872
49873
49874
49875
49876
49877
49878
49879
49880
49881
49882
49883
49884
49885
49886
49887
49888
49889
49890
49891
49892
49893
49894
49895 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
49896
49897
49898
49899
49900
49901
49902
49903
49904
49905
49906 case "$TOOLKIT" in
49907     GTK)
49908         TOOLKIT_DESC="GTK+"
49909         if test "$WXGTK2" = 1; then
49910             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49911             if test "$wxUSE_GTKPRINT" = "yes" ; then
49912                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
49913             fi
49914             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49915                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49916             fi
49917             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49918                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49919             fi
49920             if test "$wxUSE_LIBHILDON" = "yes"; then
49921                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49922             fi
49923             if test "$wxUSE_LIBHILDON2" = "yes"; then
49924                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49925             fi
49926
49927             if test "$TOOLKIT_EXTRA" != ""; then
49928                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49929             fi
49930         fi
49931         ;;
49932
49933     ?*)
49934         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49935         ;;
49936
49937     *)
49938         TOOLKIT_DESC="base only"
49939         ;;
49940 esac
49941
49942 if test "$wxUSE_WINE" = "yes"; then
49943     BAKEFILE_FORCE_PLATFORM=win32
49944 fi
49945
49946 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49947 then
49948     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49949 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49950 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49951   echo $ECHO_N "(cached) $ECHO_C" >&6
49952 else
49953
49954             echo '#include <stdio.h>
49955                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49956
49957             echo '#include "conftest.h"
49958                   int main()
49959                   {
49960                      printf("%ls", test_var);
49961                      return 0;
49962                   }' > conftest.cpp
49963
49964             wx_cv_gcc_pch_bug="pch not supported"
49965
49966             if $CXX conftest.h >/dev/null 2>&1
49967             then
49968                 wx_cv_gcc_pch_bug=
49969
49970                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49971                 then
49972                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49973                         grep awidetest >/dev/null
49974                     then
49975                         wx_cv_gcc_pch_bug=no
49976                     else
49977                         wx_cv_gcc_pch_bug=yes
49978                     fi
49979                 fi
49980             fi
49981
49982             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49983
49984 fi
49985 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49986 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49987
49988     if test "$wx_cv_gcc_pch_bug" = yes; then
49989                         bk_use_pch=no
49990     fi
49991 fi
49992
49993
49994
49995
49996
49997
49998
49999     if test "x$BAKEFILE_HOST" = "x"; then
50000                if test "x${host}" = "x" ; then
50001                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
50002 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
50003    { (exit 1); exit 1; }; }
50004                fi
50005
50006         BAKEFILE_HOST="${host}"
50007     fi
50008
50009     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
50010
50011     if test -n "$ac_tool_prefix"; then
50012   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
50013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
50014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50016 if test "${ac_cv_prog_RANLIB+set}" = set; then
50017   echo $ECHO_N "(cached) $ECHO_C" >&6
50018 else
50019   if test -n "$RANLIB"; then
50020   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
50021 else
50022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50023 for as_dir in $PATH
50024 do
50025   IFS=$as_save_IFS
50026   test -z "$as_dir" && as_dir=.
50027   for ac_exec_ext in '' $ac_executable_extensions; do
50028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50029     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
50030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50031     break 2
50032   fi
50033 done
50034 done
50035 IFS=$as_save_IFS
50036
50037 fi
50038 fi
50039 RANLIB=$ac_cv_prog_RANLIB
50040 if test -n "$RANLIB"; then
50041   { echo "$as_me:$LINENO: result: $RANLIB" >&5
50042 echo "${ECHO_T}$RANLIB" >&6; }
50043 else
50044   { echo "$as_me:$LINENO: result: no" >&5
50045 echo "${ECHO_T}no" >&6; }
50046 fi
50047
50048
50049 fi
50050 if test -z "$ac_cv_prog_RANLIB"; then
50051   ac_ct_RANLIB=$RANLIB
50052   # Extract the first word of "ranlib", so it can be a program name with args.
50053 set dummy ranlib; ac_word=$2
50054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
50057   echo $ECHO_N "(cached) $ECHO_C" >&6
50058 else
50059   if test -n "$ac_ct_RANLIB"; then
50060   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
50061 else
50062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50063 for as_dir in $PATH
50064 do
50065   IFS=$as_save_IFS
50066   test -z "$as_dir" && as_dir=.
50067   for ac_exec_ext in '' $ac_executable_extensions; do
50068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50069     ac_cv_prog_ac_ct_RANLIB="ranlib"
50070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50071     break 2
50072   fi
50073 done
50074 done
50075 IFS=$as_save_IFS
50076
50077 fi
50078 fi
50079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
50080 if test -n "$ac_ct_RANLIB"; then
50081   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
50082 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
50083 else
50084   { echo "$as_me:$LINENO: result: no" >&5
50085 echo "${ECHO_T}no" >&6; }
50086 fi
50087
50088   if test "x$ac_ct_RANLIB" = x; then
50089     RANLIB=":"
50090   else
50091     case $cross_compiling:$ac_tool_warned in
50092 yes:)
50093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50094 whose name does not start with the host triplet.  If you think this
50095 configuration is useful to you, please write to autoconf@gnu.org." >&5
50096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50097 whose name does not start with the host triplet.  If you think this
50098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50099 ac_tool_warned=yes ;;
50100 esac
50101     RANLIB=$ac_ct_RANLIB
50102   fi
50103 else
50104   RANLIB="$ac_cv_prog_RANLIB"
50105 fi
50106
50107     # Find a good install program.  We prefer a C program (faster),
50108 # so one script is as good as another.  But avoid the broken or
50109 # incompatible versions:
50110 # SysV /etc/install, /usr/sbin/install
50111 # SunOS /usr/etc/install
50112 # IRIX /sbin/install
50113 # AIX /bin/install
50114 # AmigaOS /C/install, which installs bootblocks on floppy discs
50115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
50116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
50117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
50118 # OS/2's system install, which has a completely different semantic
50119 # ./install, which can be erroneously created by make from ./install.sh.
50120 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
50121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
50122 if test -z "$INSTALL"; then
50123 if test "${ac_cv_path_install+set}" = set; then
50124   echo $ECHO_N "(cached) $ECHO_C" >&6
50125 else
50126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50127 for as_dir in $PATH
50128 do
50129   IFS=$as_save_IFS
50130   test -z "$as_dir" && as_dir=.
50131   # Account for people who put trailing slashes in PATH elements.
50132 case $as_dir/ in
50133   ./ | .// | /cC/* | \
50134   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
50135   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
50136   /usr/ucb/* ) ;;
50137   *)
50138     # OSF1 and SCO ODT 3.0 have their own names for install.
50139     # Don't use installbsd from OSF since it installs stuff as root
50140     # by default.
50141     for ac_prog in ginstall scoinst install; do
50142       for ac_exec_ext in '' $ac_executable_extensions; do
50143         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
50144           if test $ac_prog = install &&
50145             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50146             # AIX install.  It has an incompatible calling convention.
50147             :
50148           elif test $ac_prog = install &&
50149             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50150             # program-specific install script used by HP pwplus--don't use.
50151             :
50152           else
50153             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
50154             break 3
50155           fi
50156         fi
50157       done
50158     done
50159     ;;
50160 esac
50161 done
50162 IFS=$as_save_IFS
50163
50164
50165 fi
50166   if test "${ac_cv_path_install+set}" = set; then
50167     INSTALL=$ac_cv_path_install
50168   else
50169     # As a last resort, use the slow shell script.  Don't cache a
50170     # value for INSTALL within a source directory, because that will
50171     # break other packages using the cache if that directory is
50172     # removed, or if the value is a relative name.
50173     INSTALL=$ac_install_sh
50174   fi
50175 fi
50176 { echo "$as_me:$LINENO: result: $INSTALL" >&5
50177 echo "${ECHO_T}$INSTALL" >&6; }
50178
50179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
50180 # It thinks the first close brace ends the variable substitution.
50181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
50182
50183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
50184
50185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
50186
50187     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
50188 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
50189 LN_S=$as_ln_s
50190 if test "$LN_S" = "ln -s"; then
50191   { echo "$as_me:$LINENO: result: yes" >&5
50192 echo "${ECHO_T}yes" >&6; }
50193 else
50194   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
50195 echo "${ECHO_T}no, using $LN_S" >&6; }
50196 fi
50197
50198
50199     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50200 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50201 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50202 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50203   echo $ECHO_N "(cached) $ECHO_C" >&6
50204 else
50205   cat >conftest.make <<\_ACEOF
50206 SHELL = /bin/sh
50207 all:
50208         @echo '@@@%%%=$(MAKE)=@@@%%%'
50209 _ACEOF
50210 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50211 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50212   *@@@%%%=?*=@@@%%%*)
50213     eval ac_cv_prog_make_${ac_make}_set=yes;;
50214   *)
50215     eval ac_cv_prog_make_${ac_make}_set=no;;
50216 esac
50217 rm -f conftest.make
50218 fi
50219 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50220   { echo "$as_me:$LINENO: result: yes" >&5
50221 echo "${ECHO_T}yes" >&6; }
50222   SET_MAKE=
50223 else
50224   { echo "$as_me:$LINENO: result: no" >&5
50225 echo "${ECHO_T}no" >&6; }
50226   SET_MAKE="MAKE=${MAKE-make}"
50227 fi
50228
50229
50230
50231     if test "x$SUNCXX" = "xyes"; then
50232                                 AR=$CXX
50233         AROPTIONS="-xar -o"
50234
50235     elif test "x$SGICC" = "xyes"; then
50236                 AR=$CXX
50237         AROPTIONS="-ar -o"
50238
50239     else
50240         if test -n "$ac_tool_prefix"; then
50241   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
50242 set dummy ${ac_tool_prefix}ar; ac_word=$2
50243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50245 if test "${ac_cv_prog_AR+set}" = set; then
50246   echo $ECHO_N "(cached) $ECHO_C" >&6
50247 else
50248   if test -n "$AR"; then
50249   ac_cv_prog_AR="$AR" # Let the user override the test.
50250 else
50251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50252 for as_dir in $PATH
50253 do
50254   IFS=$as_save_IFS
50255   test -z "$as_dir" && as_dir=.
50256   for ac_exec_ext in '' $ac_executable_extensions; do
50257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50258     ac_cv_prog_AR="${ac_tool_prefix}ar"
50259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50260     break 2
50261   fi
50262 done
50263 done
50264 IFS=$as_save_IFS
50265
50266 fi
50267 fi
50268 AR=$ac_cv_prog_AR
50269 if test -n "$AR"; then
50270   { echo "$as_me:$LINENO: result: $AR" >&5
50271 echo "${ECHO_T}$AR" >&6; }
50272 else
50273   { echo "$as_me:$LINENO: result: no" >&5
50274 echo "${ECHO_T}no" >&6; }
50275 fi
50276
50277
50278 fi
50279 if test -z "$ac_cv_prog_AR"; then
50280   ac_ct_AR=$AR
50281   # Extract the first word of "ar", so it can be a program name with args.
50282 set dummy ar; ac_word=$2
50283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50285 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
50286   echo $ECHO_N "(cached) $ECHO_C" >&6
50287 else
50288   if test -n "$ac_ct_AR"; then
50289   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
50290 else
50291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50292 for as_dir in $PATH
50293 do
50294   IFS=$as_save_IFS
50295   test -z "$as_dir" && as_dir=.
50296   for ac_exec_ext in '' $ac_executable_extensions; do
50297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50298     ac_cv_prog_ac_ct_AR="ar"
50299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50300     break 2
50301   fi
50302 done
50303 done
50304 IFS=$as_save_IFS
50305
50306 fi
50307 fi
50308 ac_ct_AR=$ac_cv_prog_ac_ct_AR
50309 if test -n "$ac_ct_AR"; then
50310   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
50311 echo "${ECHO_T}$ac_ct_AR" >&6; }
50312 else
50313   { echo "$as_me:$LINENO: result: no" >&5
50314 echo "${ECHO_T}no" >&6; }
50315 fi
50316
50317   if test "x$ac_ct_AR" = x; then
50318     AR="ar"
50319   else
50320     case $cross_compiling:$ac_tool_warned in
50321 yes:)
50322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50323 whose name does not start with the host triplet.  If you think this
50324 configuration is useful to you, please write to autoconf@gnu.org." >&5
50325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50326 whose name does not start with the host triplet.  If you think this
50327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50328 ac_tool_warned=yes ;;
50329 esac
50330     AR=$ac_ct_AR
50331   fi
50332 else
50333   AR="$ac_cv_prog_AR"
50334 fi
50335
50336         AROPTIONS=rcu
50337     fi
50338
50339
50340     if test -n "$ac_tool_prefix"; then
50341   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
50342 set dummy ${ac_tool_prefix}strip; ac_word=$2
50343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50345 if test "${ac_cv_prog_STRIP+set}" = set; then
50346   echo $ECHO_N "(cached) $ECHO_C" >&6
50347 else
50348   if test -n "$STRIP"; then
50349   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
50350 else
50351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50352 for as_dir in $PATH
50353 do
50354   IFS=$as_save_IFS
50355   test -z "$as_dir" && as_dir=.
50356   for ac_exec_ext in '' $ac_executable_extensions; do
50357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50358     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
50359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50360     break 2
50361   fi
50362 done
50363 done
50364 IFS=$as_save_IFS
50365
50366 fi
50367 fi
50368 STRIP=$ac_cv_prog_STRIP
50369 if test -n "$STRIP"; then
50370   { echo "$as_me:$LINENO: result: $STRIP" >&5
50371 echo "${ECHO_T}$STRIP" >&6; }
50372 else
50373   { echo "$as_me:$LINENO: result: no" >&5
50374 echo "${ECHO_T}no" >&6; }
50375 fi
50376
50377
50378 fi
50379 if test -z "$ac_cv_prog_STRIP"; then
50380   ac_ct_STRIP=$STRIP
50381   # Extract the first word of "strip", so it can be a program name with args.
50382 set dummy strip; ac_word=$2
50383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50385 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
50386   echo $ECHO_N "(cached) $ECHO_C" >&6
50387 else
50388   if test -n "$ac_ct_STRIP"; then
50389   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
50390 else
50391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50392 for as_dir in $PATH
50393 do
50394   IFS=$as_save_IFS
50395   test -z "$as_dir" && as_dir=.
50396   for ac_exec_ext in '' $ac_executable_extensions; do
50397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50398     ac_cv_prog_ac_ct_STRIP="strip"
50399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50400     break 2
50401   fi
50402 done
50403 done
50404 IFS=$as_save_IFS
50405
50406 fi
50407 fi
50408 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
50409 if test -n "$ac_ct_STRIP"; then
50410   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
50411 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
50412 else
50413   { echo "$as_me:$LINENO: result: no" >&5
50414 echo "${ECHO_T}no" >&6; }
50415 fi
50416
50417   if test "x$ac_ct_STRIP" = x; then
50418     STRIP=":"
50419   else
50420     case $cross_compiling:$ac_tool_warned in
50421 yes:)
50422 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50423 whose name does not start with the host triplet.  If you think this
50424 configuration is useful to you, please write to autoconf@gnu.org." >&5
50425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50426 whose name does not start with the host triplet.  If you think this
50427 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50428 ac_tool_warned=yes ;;
50429 esac
50430     STRIP=$ac_ct_STRIP
50431   fi
50432 else
50433   STRIP="$ac_cv_prog_STRIP"
50434 fi
50435
50436     if test -n "$ac_tool_prefix"; then
50437   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
50438 set dummy ${ac_tool_prefix}nm; ac_word=$2
50439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50441 if test "${ac_cv_prog_NM+set}" = set; then
50442   echo $ECHO_N "(cached) $ECHO_C" >&6
50443 else
50444   if test -n "$NM"; then
50445   ac_cv_prog_NM="$NM" # Let the user override the test.
50446 else
50447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50448 for as_dir in $PATH
50449 do
50450   IFS=$as_save_IFS
50451   test -z "$as_dir" && as_dir=.
50452   for ac_exec_ext in '' $ac_executable_extensions; do
50453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50454     ac_cv_prog_NM="${ac_tool_prefix}nm"
50455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50456     break 2
50457   fi
50458 done
50459 done
50460 IFS=$as_save_IFS
50461
50462 fi
50463 fi
50464 NM=$ac_cv_prog_NM
50465 if test -n "$NM"; then
50466   { echo "$as_me:$LINENO: result: $NM" >&5
50467 echo "${ECHO_T}$NM" >&6; }
50468 else
50469   { echo "$as_me:$LINENO: result: no" >&5
50470 echo "${ECHO_T}no" >&6; }
50471 fi
50472
50473
50474 fi
50475 if test -z "$ac_cv_prog_NM"; then
50476   ac_ct_NM=$NM
50477   # Extract the first word of "nm", so it can be a program name with args.
50478 set dummy nm; ac_word=$2
50479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50481 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
50482   echo $ECHO_N "(cached) $ECHO_C" >&6
50483 else
50484   if test -n "$ac_ct_NM"; then
50485   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
50486 else
50487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50488 for as_dir in $PATH
50489 do
50490   IFS=$as_save_IFS
50491   test -z "$as_dir" && as_dir=.
50492   for ac_exec_ext in '' $ac_executable_extensions; do
50493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50494     ac_cv_prog_ac_ct_NM="nm"
50495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50496     break 2
50497   fi
50498 done
50499 done
50500 IFS=$as_save_IFS
50501
50502 fi
50503 fi
50504 ac_ct_NM=$ac_cv_prog_ac_ct_NM
50505 if test -n "$ac_ct_NM"; then
50506   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
50507 echo "${ECHO_T}$ac_ct_NM" >&6; }
50508 else
50509   { echo "$as_me:$LINENO: result: no" >&5
50510 echo "${ECHO_T}no" >&6; }
50511 fi
50512
50513   if test "x$ac_ct_NM" = x; then
50514     NM=":"
50515   else
50516     case $cross_compiling:$ac_tool_warned in
50517 yes:)
50518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50519 whose name does not start with the host triplet.  If you think this
50520 configuration is useful to you, please write to autoconf@gnu.org." >&5
50521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50522 whose name does not start with the host triplet.  If you think this
50523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50524 ac_tool_warned=yes ;;
50525 esac
50526     NM=$ac_ct_NM
50527   fi
50528 else
50529   NM="$ac_cv_prog_NM"
50530 fi
50531
50532
50533         INSTALL_DIR="mkdir -p"
50534
50535
50536     LDFLAGS_GUI=
50537     case ${BAKEFILE_HOST} in
50538         *-*-cygwin* | *-*-mingw32* )
50539         LDFLAGS_GUI="-mwindows"
50540     esac
50541
50542
50543     fi
50544
50545         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50546 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
50547 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50548   echo $ECHO_N "(cached) $ECHO_C" >&6
50549 else
50550
50551         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50552                 egrep -s GNU > /dev/null); then
50553             bakefile_cv_prog_makeisgnu="yes"
50554         else
50555             bakefile_cv_prog_makeisgnu="no"
50556         fi
50557
50558 fi
50559 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50560 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50561
50562     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50563         IF_GNU_MAKE=""
50564     else
50565         IF_GNU_MAKE="#"
50566     fi
50567
50568
50569
50570     PLATFORM_UNIX=0
50571     PLATFORM_WIN32=0
50572     PLATFORM_MSDOS=0
50573     PLATFORM_MAC=0
50574     PLATFORM_MACOS=0
50575     PLATFORM_MACOSX=0
50576     PLATFORM_OS2=0
50577     PLATFORM_BEOS=0
50578
50579     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50580         case "${BAKEFILE_HOST}" in
50581             *-*-mingw32* )
50582                 PLATFORM_WIN32=1
50583             ;;
50584             *-pc-msdosdjgpp )
50585                 PLATFORM_MSDOS=1
50586             ;;
50587             *-pc-os2_emx | *-pc-os2-emx )
50588                 PLATFORM_OS2=1
50589             ;;
50590             *-*-darwin* )
50591                 PLATFORM_MAC=1
50592                 PLATFORM_MACOSX=1
50593             ;;
50594             *-*-beos* )
50595                 PLATFORM_BEOS=1
50596             ;;
50597             powerpc-apple-macos* )
50598                 PLATFORM_MAC=1
50599                 PLATFORM_MACOS=1
50600             ;;
50601             * )
50602                 PLATFORM_UNIX=1
50603             ;;
50604         esac
50605     else
50606         case "$BAKEFILE_FORCE_PLATFORM" in
50607             win32 )
50608                 PLATFORM_WIN32=1
50609             ;;
50610             msdos )
50611                 PLATFORM_MSDOS=1
50612             ;;
50613             os2 )
50614                 PLATFORM_OS2=1
50615             ;;
50616             darwin )
50617                 PLATFORM_MAC=1
50618                 PLATFORM_MACOSX=1
50619             ;;
50620             unix )
50621                 PLATFORM_UNIX=1
50622             ;;
50623             beos )
50624                 PLATFORM_BEOS=1
50625             ;;
50626             * )
50627                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
50628 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
50629    { (exit 1); exit 1; }; }
50630             ;;
50631         esac
50632     fi
50633
50634
50635
50636
50637
50638
50639
50640
50641
50642
50643
50644     # Check whether --enable-omf was given.
50645 if test "${enable_omf+set}" = set; then
50646   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50647 fi
50648
50649
50650     case "${BAKEFILE_HOST}" in
50651       *-*-darwin* )
50652                         if test "x$GCC" = "xyes"; then
50653             CFLAGS="$CFLAGS -fno-common"
50654             CXXFLAGS="$CXXFLAGS -fno-common"
50655         fi
50656         if test "x$XLCC" = "xyes"; then
50657             CFLAGS="$CFLAGS -qnocommon"
50658             CXXFLAGS="$CXXFLAGS -qnocommon"
50659         fi
50660         ;;
50661
50662       *-pc-os2_emx | *-pc-os2-emx )
50663         if test "x$bk_os2_use_omf" = "xyes" ; then
50664             AR=emxomfar
50665             RANLIB=:
50666             LDFLAGS="-Zomf $LDFLAGS"
50667             CFLAGS="-Zomf $CFLAGS"
50668             CXXFLAGS="-Zomf $CXXFLAGS"
50669             OS2_LIBEXT="lib"
50670         else
50671             OS2_LIBEXT="a"
50672         fi
50673         ;;
50674
50675       i*86-*-beos* )
50676         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50677         ;;
50678     esac
50679
50680
50681     SO_SUFFIX="so"
50682     SO_SUFFIX_MODULE="so"
50683     EXEEXT=""
50684     LIBPREFIX="lib"
50685     LIBEXT=".a"
50686     DLLPREFIX="lib"
50687     DLLPREFIX_MODULE=""
50688     DLLIMP_SUFFIX=""
50689     dlldir="$libdir"
50690
50691     case "${BAKEFILE_HOST}" in
50692                         ia64-hp-hpux* )
50693         ;;
50694         *-hp-hpux* )
50695             SO_SUFFIX="sl"
50696             SO_SUFFIX_MODULE="sl"
50697         ;;
50698         *-*-aix* )
50699                                                                         SO_SUFFIX="a"
50700             SO_SUFFIX_MODULE="a"
50701         ;;
50702         *-*-cygwin* )
50703             SO_SUFFIX="dll"
50704             SO_SUFFIX_MODULE="dll"
50705             DLLIMP_SUFFIX="dll.a"
50706             EXEEXT=".exe"
50707             DLLPREFIX="cyg"
50708             dlldir="$bindir"
50709         ;;
50710         *-*-mingw32* )
50711             SO_SUFFIX="dll"
50712             SO_SUFFIX_MODULE="dll"
50713             DLLIMP_SUFFIX="dll.a"
50714             EXEEXT=".exe"
50715             DLLPREFIX=""
50716             dlldir="$bindir"
50717         ;;
50718         *-pc-msdosdjgpp )
50719             EXEEXT=".exe"
50720             DLLPREFIX=""
50721             dlldir="$bindir"
50722         ;;
50723         *-pc-os2_emx | *-pc-os2-emx )
50724             SO_SUFFIX="dll"
50725             SO_SUFFIX_MODULE="dll"
50726             DLLIMP_SUFFIX=$OS2_LIBEXT
50727             EXEEXT=".exe"
50728             DLLPREFIX=""
50729             LIBPREFIX=""
50730             LIBEXT=".$OS2_LIBEXT"
50731             dlldir="$bindir"
50732         ;;
50733         *-*-darwin* )
50734             SO_SUFFIX="dylib"
50735             SO_SUFFIX_MODULE="bundle"
50736         ;;
50737     esac
50738
50739     if test "x$DLLIMP_SUFFIX" = "x" ; then
50740         DLLIMP_SUFFIX="$SO_SUFFIX"
50741     fi
50742
50743
50744
50745
50746
50747
50748
50749
50750
50751
50752
50753
50754         PIC_FLAG=""
50755     if test "x$GCC" = "xyes"; then
50756                 PIC_FLAG="-fPIC"
50757     fi
50758
50759         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50760     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50761     WINDOWS_IMPLIB=0
50762
50763     case "${BAKEFILE_HOST}" in
50764       *-hp-hpux* )
50765                 if test "x$GCC" != "xyes"; then
50766                         LDFLAGS="$LDFLAGS -L/usr/lib"
50767
50768             SHARED_LD_CC="${CC} -b -o"
50769             SHARED_LD_CXX="${CXX} -b -o"
50770             PIC_FLAG="+Z"
50771         fi
50772       ;;
50773
50774       *-*-linux* )
50775                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
50776             PIC_FLAG="-KPIC"
50777         elif test "x$SUNCXX" = "xyes"; then
50778             SHARED_LD_CC="${CC} -G -o"
50779             SHARED_LD_CXX="${CXX} -G -o"
50780             PIC_FLAG="-KPIC"
50781         fi
50782       ;;
50783
50784       *-*-solaris2* )
50785         if test "x$SUNCXX" = xyes ; then
50786             SHARED_LD_CC="${CC} -G -o"
50787             SHARED_LD_CXX="${CXX} -G -o"
50788             PIC_FLAG="-KPIC"
50789         fi
50790       ;;
50791
50792       *-*-darwin* )
50793
50794 D='$'
50795 cat <<EOF >shared-ld-sh
50796 #!/bin/sh
50797 #-----------------------------------------------------------------------------
50798 #-- Name:        distrib/mac/shared-ld-sh
50799 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50800 #-- Author:      Gilles Depeyrot
50801 #-- Copyright:   (c) 2002 Gilles Depeyrot
50802 #-- Licence:     any use permitted
50803 #-----------------------------------------------------------------------------
50804
50805 verbose=0
50806 args=""
50807 objects=""
50808 linking_flag="-dynamiclib"
50809 ldargs="-r -keep_private_externs -nostdlib"
50810
50811 if test "x${D}CXX" = "x"; then
50812     CXX="c++"
50813 fi
50814
50815 while test ${D}# -gt 0; do
50816     case ${D}1 in
50817
50818        -v)
50819         verbose=1
50820         ;;
50821
50822        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50823         # collect these options and values
50824         args="${D}{args} ${D}1 ${D}2"
50825         shift
50826         ;;
50827
50828        -arch|-isysroot)
50829         # collect these options and values
50830         ldargs="${D}{ldargs} ${D}1 ${D}2"
50831         shift
50832         ;;
50833
50834        -s|-Wl,*)
50835         # collect these load args
50836         ldargs="${D}{ldargs} ${D}1"
50837         ;;
50838
50839        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50840         # collect these options
50841         args="${D}{args} ${D}1"
50842         ;;
50843
50844        -dynamiclib|-bundle)
50845         linking_flag="${D}1"
50846         ;;
50847
50848        -*)
50849         echo "shared-ld: unhandled option '${D}1'"
50850         exit 1
50851         ;;
50852
50853         *.o | *.a | *.dylib)
50854         # collect object files
50855         objects="${D}{objects} ${D}1"
50856         ;;
50857
50858         *)
50859         echo "shared-ld: unhandled argument '${D}1'"
50860         exit 1
50861         ;;
50862
50863     esac
50864     shift
50865 done
50866
50867 status=0
50868
50869 #
50870 # Link one module containing all the others
50871 #
50872 if test ${D}{verbose} = 1; then
50873     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50874 fi
50875 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50876 status=${D}?
50877
50878 #
50879 # Link the shared library from the single module created, but only if the
50880 # previous command didn't fail:
50881 #
50882 if test ${D}{status} = 0; then
50883     if test ${D}{verbose} = 1; then
50884         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50885     fi
50886     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50887     status=${D}?
50888 fi
50889
50890 #
50891 # Remove intermediate module
50892 #
50893 rm -f master.${D}${D}.o
50894
50895 exit ${D}status
50896 EOF
50897
50898         chmod +x shared-ld-sh
50899
50900         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50901         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
50902
50903
50904                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50905 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50906 if test "${bakefile_cv_gcc31+set}" = set; then
50907   echo $ECHO_N "(cached) $ECHO_C" >&6
50908 else
50909
50910            cat >conftest.$ac_ext <<_ACEOF
50911 /* confdefs.h.  */
50912 _ACEOF
50913 cat confdefs.h >>conftest.$ac_ext
50914 cat >>conftest.$ac_ext <<_ACEOF
50915 /* end confdefs.h.  */
50916
50917 int
50918 main ()
50919 {
50920
50921                    #if (__GNUC__ < 3) || \
50922                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50923                        This is old gcc
50924                    #endif
50925
50926   ;
50927   return 0;
50928 }
50929 _ACEOF
50930 rm -f conftest.$ac_objext
50931 if { (ac_try="$ac_compile"
50932 case "(($ac_try" in
50933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50934   *) ac_try_echo=$ac_try;;
50935 esac
50936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50937   (eval "$ac_compile") 2>conftest.er1
50938   ac_status=$?
50939   grep -v '^ *+' conftest.er1 >conftest.err
50940   rm -f conftest.er1
50941   cat conftest.err >&5
50942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50943   (exit $ac_status); } && {
50944          test -z "$ac_c_werror_flag" ||
50945          test ! -s conftest.err
50946        } && test -s conftest.$ac_objext; then
50947
50948                    bakefile_cv_gcc31=yes
50949
50950 else
50951   echo "$as_me: failed program was:" >&5
50952 sed 's/^/| /' conftest.$ac_ext >&5
50953
50954
50955                    bakefile_cv_gcc31=no
50956
50957
50958 fi
50959
50960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50961
50962 fi
50963 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50964 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50965         if test "$bakefile_cv_gcc31" = "no"; then
50966                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50967             SHARED_LD_CXX="$SHARED_LD_CC"
50968         else
50969                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50970             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50971         fi
50972
50973         if test "x$GCC" == "xyes"; then
50974             PIC_FLAG="-dynamic -fPIC"
50975         fi
50976         if test "x$XLCC" = "xyes"; then
50977             PIC_FLAG="-dynamic -DPIC"
50978         fi
50979       ;;
50980
50981       *-*-aix* )
50982         if test "x$GCC" = "xyes"; then
50983                                                             PIC_FLAG=""
50984
50985                                                                                     case "${BAKEFILE_HOST}" in
50986                 *-*-aix5* )
50987                     LD_EXPFULL="-Wl,-bexpfull"
50988                     ;;
50989             esac
50990
50991             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50992             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50993         else
50994                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50995 set dummy makeC++SharedLib; ac_word=$2
50996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50998 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50999   echo $ECHO_N "(cached) $ECHO_C" >&6
51000 else
51001   if test -n "$AIX_CXX_LD"; then
51002   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
51003 else
51004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51005 for as_dir in $PATH
51006 do
51007   IFS=$as_save_IFS
51008   test -z "$as_dir" && as_dir=.
51009   for ac_exec_ext in '' $ac_executable_extensions; do
51010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51011     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
51012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51013     break 2
51014   fi
51015 done
51016 done
51017 IFS=$as_save_IFS
51018
51019   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
51020 fi
51021 fi
51022 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
51023 if test -n "$AIX_CXX_LD"; then
51024   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
51025 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
51026 else
51027   { echo "$as_me:$LINENO: result: no" >&5
51028 echo "${ECHO_T}no" >&6; }
51029 fi
51030
51031
51032             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
51033             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
51034         fi
51035       ;;
51036
51037       *-*-beos* )
51038                         SHARED_LD_CC="${LD} -nostart -o"
51039         SHARED_LD_CXX="${LD} -nostart -o"
51040       ;;
51041
51042       *-*-irix* )
51043                 if test "x$GCC" != "xyes"; then
51044             PIC_FLAG="-KPIC"
51045         fi
51046       ;;
51047
51048       *-*-cygwin* | *-*-mingw32* )
51049         PIC_FLAG=""
51050         SHARED_LD_CC="\$(CC) -shared -o"
51051         SHARED_LD_CXX="\$(CXX) -shared -o"
51052         WINDOWS_IMPLIB=1
51053       ;;
51054
51055       *-pc-os2_emx | *-pc-os2-emx )
51056         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51057         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51058         PIC_FLAG=""
51059
51060 D='$'
51061 cat <<EOF >dllar.sh
51062 #!/bin/sh
51063 #
51064 # dllar - a tool to build both a .dll and an .a file
51065 # from a set of object (.o) files for EMX/OS2.
51066 #
51067 #  Written by Andrew Zabolotny, bit@freya.etu.ru
51068 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
51069 #
51070 #  This script will accept a set of files on the command line.
51071 #  All the public symbols from the .o files will be exported into
51072 #  a .DEF file, then linker will be run (through gcc) against them to
51073 #  build a shared library consisting of all given .o files. All libraries
51074 #  (.a) will be first decompressed into component .o files then act as
51075 #  described above. You can optionally give a description (-d "description")
51076 #  which will be put into .DLL. To see the list of accepted options (as well
51077 #  as command-line format) simply run this program without options. The .DLL
51078 #  is built to be imported by name (there is no guarantee that new versions
51079 #  of the library you build will have same ordinals for same symbols).
51080 #
51081 #  dllar is free software; you can redistribute it and/or modify
51082 #  it under the terms of the GNU General Public License as published by
51083 #  the Free Software Foundation; either version 2, or (at your option)
51084 #  any later version.
51085 #
51086 #  dllar is distributed in the hope that it will be useful,
51087 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
51088 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
51089 #  GNU General Public License for more details.
51090 #
51091 #  You should have received a copy of the GNU General Public License
51092 #  along with dllar; see the file COPYING.  If not, write to the Free
51093 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
51094 #  02111-1307, USA.
51095
51096 # To successfuly run this program you will need:
51097 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
51098 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
51099 #  - gcc
51100 #    (used to build the .dll)
51101 #  - emxexp
51102 #    (used to create .def file from .o files)
51103 #  - emximp
51104 #    (used to create .a file from .def file)
51105 #  - GNU text utilites (cat, sort, uniq)
51106 #    used to process emxexp output
51107 #  - GNU file utilities (mv, rm)
51108 #  - GNU sed
51109 #  - lxlite (optional, see flag below)
51110 #    (used for general .dll cleanup)
51111 #
51112
51113 flag_USE_LXLITE=1;
51114
51115 #
51116 # helper functions
51117 # basnam, variant of basename, which does _not_ remove the path, _iff_
51118 #                              second argument (suffix to remove) is given
51119 basnam(){
51120     case ${D}# in
51121     1)
51122         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
51123         ;;
51124     2)
51125         echo ${D}1 | sed 's/'${D}2'${D}//'
51126         ;;
51127     *)
51128         echo "error in basnam ${D}*"
51129         exit 8
51130         ;;
51131     esac
51132 }
51133
51134 # Cleanup temporary files and output
51135 CleanUp() {
51136     cd ${D}curDir
51137     for i in ${D}inputFiles ; do
51138         case ${D}i in
51139         *!)
51140             rm -rf \`basnam ${D}i !\`
51141             ;;
51142         *)
51143             ;;
51144         esac
51145     done
51146
51147     # Kill result in case of failure as there is just to many stupid make/nmake
51148     # things out there which doesn't do this.
51149     if [ ${D}# -eq 0 ]; then
51150         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
51151     fi
51152 }
51153
51154 # Print usage and exit script with rc=1.
51155 PrintHelp() {
51156  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
51157  echo '       [-name-mangler-script script.sh]'
51158  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
51159  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
51160  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
51161  echo '       [*.o] [*.a]'
51162  echo '*> "output_file" should have no extension.'
51163  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
51164  echo '   The import library name is derived from this and is set to "name".a,'
51165  echo '   unless overridden by -import'
51166  echo '*> "importlib_name" should have no extension.'
51167  echo '   If it has the .o, or .a extension, it is automatically removed.'
51168  echo '   This name is used as the import library name and may be longer and'
51169  echo '   more descriptive than the DLL name which has to follow the old '
51170  echo '   8.3 convention of FAT.'
51171  echo '*> "script.sh may be given to override the output_file name by a'
51172  echo '   different name. It is mainly useful if the regular make process'
51173  echo '   of some package does not take into account OS/2 restriction of'
51174  echo '   DLL name lengths. It takes the importlib name as input and is'
51175  echo '   supposed to procude a shorter name as output. The script should'
51176  echo '   expect to get importlib_name without extension and should produce'
51177  echo '   a (max.) 8 letter name without extension.'
51178  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
51179  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
51180  echo '   These flags will be put at the start of GCC command line.'
51181  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
51182  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
51183  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
51184  echo '   If the last character of a symbol is "*", all symbols beginning'
51185  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
51186  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
51187  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
51188  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
51189  echo '   C runtime DLLs.'
51190  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
51191  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
51192  echo '   unchanged to GCC at the end of command line.'
51193  echo '*> If you create a DLL from a library and you do not specify -o,'
51194  echo '   the basename for DLL and import library will be set to library name,'
51195  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
51196  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
51197  echo '   library will be renamed into gcc_s.a.'
51198  echo '--------'
51199  echo 'Example:'
51200  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
51201  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
51202  CleanUp
51203  exit 1
51204 }
51205
51206 # Execute a command.
51207 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
51208 # @Uses    Whatever CleanUp() uses.
51209 doCommand() {
51210     echo "${D}*"
51211     eval ${D}*
51212     rcCmd=${D}?
51213
51214     if [ ${D}rcCmd -ne 0 ]; then
51215         echo "command failed, exit code="${D}rcCmd
51216         CleanUp
51217         exit ${D}rcCmd
51218     fi
51219 }
51220
51221 # main routine
51222 # setup globals
51223 cmdLine=${D}*
51224 outFile=""
51225 outimpFile=""
51226 inputFiles=""
51227 renameScript=""
51228 description=""
51229 CC=gcc.exe
51230 CFLAGS="-s -Zcrtdll"
51231 EXTRA_CFLAGS=""
51232 EXPORT_BY_ORDINALS=0
51233 exclude_symbols=""
51234 library_flags=""
51235 curDir=\`pwd\`
51236 curDirS=curDir
51237 case ${D}curDirS in
51238 */)
51239   ;;
51240 *)
51241   curDirS=${D}{curDirS}"/"
51242   ;;
51243 esac
51244 # Parse commandline
51245 libsToLink=0
51246 omfLinking=0
51247 while [ ${D}1 ]; do
51248     case ${D}1 in
51249     -ord*)
51250         EXPORT_BY_ORDINALS=1;
51251         ;;
51252     -o*)
51253         shift
51254         outFile=${D}1
51255         ;;
51256     -i*)
51257         shift
51258         outimpFile=${D}1
51259         ;;
51260     -name-mangler-script)
51261         shift
51262         renameScript=${D}1
51263         ;;
51264     -d*)
51265         shift
51266         description=${D}1
51267         ;;
51268     -f*)
51269         shift
51270         CFLAGS=${D}1
51271         ;;
51272     -c*)
51273         shift
51274         CC=${D}1
51275         ;;
51276     -h*)
51277         PrintHelp
51278         ;;
51279     -ex*)
51280         shift
51281         exclude_symbols=${D}{exclude_symbols}${D}1" "
51282         ;;
51283     -libf*)
51284         shift
51285         library_flags=${D}{library_flags}${D}1" "
51286         ;;
51287     -nocrt*)
51288         CFLAGS="-s"
51289         ;;
51290     -nolxl*)
51291         flag_USE_LXLITE=0
51292         ;;
51293     -* | /*)
51294         case ${D}1 in
51295         -L* | -l*)
51296             libsToLink=1
51297             ;;
51298         -Zomf)
51299             omfLinking=1
51300             ;;
51301         *)
51302             ;;
51303         esac
51304         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51305         ;;
51306     *.dll)
51307         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
51308         if [ ${D}omfLinking -eq 1 ]; then
51309             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
51310         else
51311             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
51312         fi
51313         ;;
51314     *)
51315         found=0;
51316         if [ ${D}libsToLink -ne 0 ]; then
51317             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51318         else
51319             for file in ${D}1 ; do
51320                 if [ -f ${D}file ]; then
51321                     inputFiles="${D}{inputFiles} ${D}file"
51322                     found=1
51323                 fi
51324             done
51325             if [ ${D}found -eq 0 ]; then
51326                 echo "ERROR: No file(s) found: "${D}1
51327                 exit 8
51328             fi
51329         fi
51330       ;;
51331     esac
51332     shift
51333 done # iterate cmdline words
51334
51335 #
51336 if [ -z "${D}inputFiles" ]; then
51337     echo "dllar: no input files"
51338     PrintHelp
51339 fi
51340
51341 # Now extract all .o files from .a files
51342 newInputFiles=""
51343 for file in ${D}inputFiles ; do
51344     case ${D}file in
51345     *.a | *.lib)
51346         case ${D}file in
51347         *.a)
51348             suffix=".a"
51349             AR="ar"
51350             ;;
51351         *.lib)
51352             suffix=".lib"
51353             AR="emxomfar"
51354             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
51355             ;;
51356         *)
51357             ;;
51358         esac
51359         dirname=\`basnam ${D}file ${D}suffix\`"_%"
51360         mkdir ${D}dirname
51361         if [ ${D}? -ne 0 ]; then
51362             echo "Failed to create subdirectory ./${D}dirname"
51363             CleanUp
51364             exit 8;
51365         fi
51366         # Append '!' to indicate archive
51367         newInputFiles="${D}newInputFiles ${D}{dirname}!"
51368         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
51369         cd ${D}curDir
51370         found=0;
51371         for subfile in ${D}dirname/*.o* ; do
51372             if [ -f ${D}subfile ]; then
51373                 found=1
51374                 if [ -s ${D}subfile ]; then
51375                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
51376                     newInputFiles="${D}newInputFiles ${D}subfile"
51377                 fi
51378             fi
51379         done
51380         if [ ${D}found -eq 0 ]; then
51381             echo "WARNING: there are no files in archive \\'${D}file\\'"
51382         fi
51383         ;;
51384     *)
51385         newInputFiles="${D}{newInputFiles} ${D}file"
51386         ;;
51387     esac
51388 done
51389 inputFiles="${D}newInputFiles"
51390
51391 # Output filename(s).
51392 do_backup=0;
51393 if [ -z ${D}outFile ]; then
51394     do_backup=1;
51395     set outFile ${D}inputFiles; outFile=${D}2
51396 fi
51397
51398 # If it is an archive, remove the '!' and the '_%' suffixes
51399 case ${D}outFile in
51400 *_%!)
51401     outFile=\`basnam ${D}outFile _%!\`
51402     ;;
51403 *)
51404     ;;
51405 esac
51406 case ${D}outFile in
51407 *.dll)
51408     outFile=\`basnam ${D}outFile .dll\`
51409     ;;
51410 *.DLL)
51411     outFile=\`basnam ${D}outFile .DLL\`
51412     ;;
51413 *.o)
51414     outFile=\`basnam ${D}outFile .o\`
51415     ;;
51416 *.obj)
51417     outFile=\`basnam ${D}outFile .obj\`
51418     ;;
51419 *.a)
51420     outFile=\`basnam ${D}outFile .a\`
51421     ;;
51422 *.lib)
51423     outFile=\`basnam ${D}outFile .lib\`
51424     ;;
51425 *)
51426     ;;
51427 esac
51428 case ${D}outimpFile in
51429 *.a)
51430     outimpFile=\`basnam ${D}outimpFile .a\`
51431     ;;
51432 *.lib)
51433     outimpFile=\`basnam ${D}outimpFile .lib\`
51434     ;;
51435 *)
51436     ;;
51437 esac
51438 if [ -z ${D}outimpFile ]; then
51439     outimpFile=${D}outFile
51440 fi
51441 defFile="${D}{outFile}.def"
51442 arcFile="${D}{outimpFile}.a"
51443 arcFile2="${D}{outimpFile}.lib"
51444
51445 #create ${D}dllFile as something matching 8.3 restrictions,
51446 if [ -z ${D}renameScript ] ; then
51447     dllFile="${D}outFile"
51448 else
51449     dllFile=\`${D}renameScript ${D}outimpFile\`
51450 fi
51451
51452 if [ ${D}do_backup -ne 0 ] ; then
51453     if [ -f ${D}arcFile ] ; then
51454         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
51455     fi
51456     if [ -f ${D}arcFile2 ] ; then
51457         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
51458     fi
51459 fi
51460
51461 # Extract public symbols from all the object files.
51462 tmpdefFile=${D}{defFile}_%
51463 rm -f ${D}tmpdefFile
51464 for file in ${D}inputFiles ; do
51465     case ${D}file in
51466     *!)
51467         ;;
51468     *)
51469         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
51470         ;;
51471     esac
51472 done
51473
51474 # Create the def file.
51475 rm -f ${D}defFile
51476 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
51477 dllFile="${D}{dllFile}.dll"
51478 if [ ! -z ${D}description ]; then
51479     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
51480 fi
51481 echo "EXPORTS" >> ${D}defFile
51482
51483 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
51484 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
51485
51486 # Checks if the export is ok or not.
51487 for word in ${D}exclude_symbols; do
51488     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
51489     mv ${D}{tmpdefFile}% ${D}tmpdefFile
51490 done
51491
51492
51493 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51494     sed "=" < ${D}tmpdefFile | \\
51495     sed '
51496       N
51497       : loop
51498       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
51499       t loop
51500     ' > ${D}{tmpdefFile}%
51501     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
51502 else
51503     rm -f ${D}{tmpdefFile}%
51504 fi
51505 cat ${D}tmpdefFile >> ${D}defFile
51506 rm -f ${D}tmpdefFile
51507
51508 # Do linking, create implib, and apply lxlite.
51509 gccCmdl="";
51510 for file in ${D}inputFiles ; do
51511     case ${D}file in
51512     *!)
51513         ;;
51514     *)
51515         gccCmdl="${D}gccCmdl ${D}file"
51516         ;;
51517     esac
51518 done
51519 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
51520 touch "${D}{outFile}.dll"
51521
51522 doCommand "emximp -o ${D}arcFile ${D}defFile"
51523 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
51524     add_flags="";
51525     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51526         add_flags="-ynd"
51527     fi
51528     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
51529 fi
51530 doCommand "emxomf -s -l ${D}arcFile"
51531
51532 # Successful exit.
51533 CleanUp 1
51534 exit 0
51535 EOF
51536
51537         chmod +x dllar.sh
51538       ;;
51539
51540       powerpc-apple-macos* | \
51541       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
51542       *-*-mirbsd* | \
51543       *-*-sunos4* | \
51544       *-*-osf* | \
51545       *-*-dgux5* | \
51546       *-*-sysv5* | \
51547       *-pc-msdosdjgpp )
51548               ;;
51549
51550       *)
51551         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51552 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51553    { (exit 1); exit 1; }; }
51554     esac
51555
51556     if test "x$PIC_FLAG" != "x" ; then
51557         PIC_FLAG="$PIC_FLAG -DPIC"
51558     fi
51559
51560     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51561         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51562     fi
51563     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51564         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51565     fi
51566
51567
51568
51569
51570
51571
51572
51573
51574
51575     USE_SOVERSION=0
51576     USE_SOVERLINUX=0
51577     USE_SOVERSOLARIS=0
51578     USE_SOVERCYGWIN=0
51579     USE_SOTWOSYMLINKS=0
51580     USE_MACVERSION=0
51581     SONAME_FLAG=
51582
51583     case "${BAKEFILE_HOST}" in
51584       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
51585       *-*-k*bsd*-gnu | *-*-mirbsd* )
51586         if test "x$SUNCXX" = "xyes"; then
51587             SONAME_FLAG="-h "
51588         else
51589             SONAME_FLAG="-Wl,-soname,"
51590         fi
51591         USE_SOVERSION=1
51592         USE_SOVERLINUX=1
51593         USE_SOTWOSYMLINKS=1
51594       ;;
51595
51596       *-*-solaris2* )
51597         SONAME_FLAG="-h "
51598         USE_SOVERSION=1
51599         USE_SOVERSOLARIS=1
51600       ;;
51601
51602       *-*-darwin* )
51603         USE_MACVERSION=1
51604         USE_SOVERSION=1
51605         USE_SOTWOSYMLINKS=1
51606       ;;
51607
51608       *-*-cygwin* )
51609         USE_SOVERSION=1
51610         USE_SOVERCYGWIN=1
51611       ;;
51612     esac
51613
51614
51615
51616
51617
51618
51619
51620
51621
51622
51623     # Check whether --enable-dependency-tracking was given.
51624 if test "${enable_dependency_tracking+set}" = set; then
51625   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51626 fi
51627
51628
51629     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51630 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51631
51632     BK_DEPS=""
51633     if test "x$bk_use_trackdeps" = "xno" ; then
51634         DEPS_TRACKING=0
51635         { echo "$as_me:$LINENO: result: disabled" >&5
51636 echo "${ECHO_T}disabled" >&6; }
51637     else
51638         DEPS_TRACKING=1
51639
51640         if test "x$GCC" = "xyes"; then
51641             DEPSMODE=gcc
51642             case "${BAKEFILE_HOST}" in
51643                 *-*-darwin* )
51644                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51645                 ;;
51646                 * )
51647                     DEPSFLAG="-MMD"
51648                 ;;
51649             esac
51650             { echo "$as_me:$LINENO: result: gcc" >&5
51651 echo "${ECHO_T}gcc" >&6; }
51652         elif test "x$MWCC" = "xyes"; then
51653             DEPSMODE=mwcc
51654             DEPSFLAG="-MM"
51655             { echo "$as_me:$LINENO: result: mwcc" >&5
51656 echo "${ECHO_T}mwcc" >&6; }
51657         elif test "x$SUNCC" = "xyes"; then
51658             DEPSMODE=unixcc
51659             DEPSFLAG="-xM1"
51660             { echo "$as_me:$LINENO: result: Sun cc" >&5
51661 echo "${ECHO_T}Sun cc" >&6; }
51662         elif test "x$SGICC" = "xyes"; then
51663             DEPSMODE=unixcc
51664             DEPSFLAG="-M"
51665             { echo "$as_me:$LINENO: result: SGI cc" >&5
51666 echo "${ECHO_T}SGI cc" >&6; }
51667         elif test "x$HPCC" = "xyes"; then
51668             DEPSMODE=unixcc
51669             DEPSFLAG="+make"
51670             { echo "$as_me:$LINENO: result: HP cc" >&5
51671 echo "${ECHO_T}HP cc" >&6; }
51672         elif test "x$COMPAQCC" = "xyes"; then
51673             DEPSMODE=gcc
51674             DEPSFLAG="-MD"
51675             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51676 echo "${ECHO_T}Compaq cc" >&6; }
51677         else
51678             DEPS_TRACKING=0
51679             { echo "$as_me:$LINENO: result: none" >&5
51680 echo "${ECHO_T}none" >&6; }
51681         fi
51682
51683         if test $DEPS_TRACKING = 1 ; then
51684
51685 D='$'
51686 cat <<EOF >bk-deps
51687 #!/bin/sh
51688
51689 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51690 # script. It is used to track C/C++ files dependencies in portable way.
51691 #
51692 # Permission is given to use this file in any way.
51693
51694 DEPSMODE=${DEPSMODE}
51695 DEPSFLAG="${DEPSFLAG}"
51696 DEPSDIRBASE=.deps
51697
51698 if test ${D}DEPSMODE = gcc ; then
51699     ${D}* ${D}{DEPSFLAG}
51700     status=${D}?
51701
51702     # determine location of created files:
51703     while test ${D}# -gt 0; do
51704         case "${D}1" in
51705             -o )
51706                 shift
51707                 objfile=${D}1
51708             ;;
51709             -* )
51710             ;;
51711             * )
51712                 srcfile=${D}1
51713             ;;
51714         esac
51715         shift
51716     done
51717     objfilebase=\`basename ${D}objfile\`
51718     builddir=\`dirname ${D}objfile\`
51719     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51720     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51721     depsdir=${D}builddir/${D}DEPSDIRBASE
51722     mkdir -p ${D}depsdir
51723
51724     # if the compiler failed, we're done:
51725     if test ${D}{status} != 0 ; then
51726         rm -f ${D}depfile
51727         exit ${D}{status}
51728     fi
51729
51730     # move created file to the location we want it in:
51731     if test -f ${D}depfile ; then
51732         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51733         rm -f ${D}depfile
51734     else
51735         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51736         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
51737         if test ! -f ${D}depfile ; then
51738             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51739             depfile="${D}objfile.d"
51740         fi
51741         if test -f ${D}depfile ; then
51742             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51743             rm -f ${D}depfile
51744         fi
51745     fi
51746     exit 0
51747
51748 elif test ${D}DEPSMODE = mwcc ; then
51749     ${D}* || exit ${D}?
51750     # Run mwcc again with -MM and redirect into the dep file we want
51751     # NOTE: We can't use shift here because we need ${D}* to be valid
51752     prevarg=
51753     for arg in ${D}* ; do
51754         if test "${D}prevarg" = "-o"; then
51755             objfile=${D}arg
51756         else
51757             case "${D}arg" in
51758                 -* )
51759                 ;;
51760                 * )
51761                     srcfile=${D}arg
51762                 ;;
51763             esac
51764         fi
51765         prevarg="${D}arg"
51766     done
51767
51768     objfilebase=\`basename ${D}objfile\`
51769     builddir=\`dirname ${D}objfile\`
51770     depsdir=${D}builddir/${D}DEPSDIRBASE
51771     mkdir -p ${D}depsdir
51772
51773     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
51774     exit 0
51775
51776 elif test ${D}DEPSMODE = unixcc; then
51777     ${D}* || exit ${D}?
51778     # Run compiler again with deps flag and redirect into the dep file.
51779     # It doesn't work if the '-o FILE' option is used, but without it the
51780     # dependency file will contain the wrong name for the object. So it is
51781     # removed from the command line, and the dep file is fixed with sed.
51782     cmd=""
51783     while test ${D}# -gt 0; do
51784         case "${D}1" in
51785             -o )
51786                 shift
51787                 objfile=${D}1
51788             ;;
51789             * )
51790                 eval arg${D}#=\\${D}1
51791                 cmd="${D}cmd \\${D}arg${D}#"
51792             ;;
51793         esac
51794         shift
51795     done
51796
51797     objfilebase=\`basename ${D}objfile\`
51798     builddir=\`dirname ${D}objfile\`
51799     depsdir=${D}builddir/${D}DEPSDIRBASE
51800     mkdir -p ${D}depsdir
51801
51802     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
51803     exit 0
51804
51805 else
51806     ${D}*
51807     exit ${D}?
51808 fi
51809 EOF
51810
51811             chmod +x bk-deps
51812                                     BK_DEPS="`pwd`/bk-deps"
51813         fi
51814     fi
51815
51816
51817
51818
51819
51820     case ${BAKEFILE_HOST} in
51821         *-*-cygwin* | *-*-mingw32* )
51822                         if test -n "$ac_tool_prefix"; then
51823   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51824 set dummy ${ac_tool_prefix}windres; ac_word=$2
51825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51827 if test "${ac_cv_prog_WINDRES+set}" = set; then
51828   echo $ECHO_N "(cached) $ECHO_C" >&6
51829 else
51830   if test -n "$WINDRES"; then
51831   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51832 else
51833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51834 for as_dir in $PATH
51835 do
51836   IFS=$as_save_IFS
51837   test -z "$as_dir" && as_dir=.
51838   for ac_exec_ext in '' $ac_executable_extensions; do
51839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51840     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51842     break 2
51843   fi
51844 done
51845 done
51846 IFS=$as_save_IFS
51847
51848 fi
51849 fi
51850 WINDRES=$ac_cv_prog_WINDRES
51851 if test -n "$WINDRES"; then
51852   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51853 echo "${ECHO_T}$WINDRES" >&6; }
51854 else
51855   { echo "$as_me:$LINENO: result: no" >&5
51856 echo "${ECHO_T}no" >&6; }
51857 fi
51858
51859
51860 fi
51861 if test -z "$ac_cv_prog_WINDRES"; then
51862   ac_ct_WINDRES=$WINDRES
51863   # Extract the first word of "windres", so it can be a program name with args.
51864 set dummy windres; ac_word=$2
51865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51867 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51868   echo $ECHO_N "(cached) $ECHO_C" >&6
51869 else
51870   if test -n "$ac_ct_WINDRES"; then
51871   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51872 else
51873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51874 for as_dir in $PATH
51875 do
51876   IFS=$as_save_IFS
51877   test -z "$as_dir" && as_dir=.
51878   for ac_exec_ext in '' $ac_executable_extensions; do
51879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51880     ac_cv_prog_ac_ct_WINDRES="windres"
51881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51882     break 2
51883   fi
51884 done
51885 done
51886 IFS=$as_save_IFS
51887
51888 fi
51889 fi
51890 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51891 if test -n "$ac_ct_WINDRES"; then
51892   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51893 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51894 else
51895   { echo "$as_me:$LINENO: result: no" >&5
51896 echo "${ECHO_T}no" >&6; }
51897 fi
51898
51899   if test "x$ac_ct_WINDRES" = x; then
51900     WINDRES=""
51901   else
51902     case $cross_compiling:$ac_tool_warned in
51903 yes:)
51904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51905 whose name does not start with the host triplet.  If you think this
51906 configuration is useful to you, please write to autoconf@gnu.org." >&5
51907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51908 whose name does not start with the host triplet.  If you think this
51909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51910 ac_tool_warned=yes ;;
51911 esac
51912     WINDRES=$ac_ct_WINDRES
51913   fi
51914 else
51915   WINDRES="$ac_cv_prog_WINDRES"
51916 fi
51917
51918          ;;
51919
51920       *-*-darwin* | powerpc-apple-macos* )
51921             # Extract the first word of "Rez", so it can be a program name with args.
51922 set dummy Rez; ac_word=$2
51923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51925 if test "${ac_cv_prog_REZ+set}" = set; then
51926   echo $ECHO_N "(cached) $ECHO_C" >&6
51927 else
51928   if test -n "$REZ"; then
51929   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51930 else
51931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51932 for as_dir in $PATH
51933 do
51934   IFS=$as_save_IFS
51935   test -z "$as_dir" && as_dir=.
51936   for ac_exec_ext in '' $ac_executable_extensions; do
51937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51938     ac_cv_prog_REZ="Rez"
51939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51940     break 2
51941   fi
51942 done
51943 done
51944 IFS=$as_save_IFS
51945
51946   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51947 fi
51948 fi
51949 REZ=$ac_cv_prog_REZ
51950 if test -n "$REZ"; then
51951   { echo "$as_me:$LINENO: result: $REZ" >&5
51952 echo "${ECHO_T}$REZ" >&6; }
51953 else
51954   { echo "$as_me:$LINENO: result: no" >&5
51955 echo "${ECHO_T}no" >&6; }
51956 fi
51957
51958
51959             # Extract the first word of "SetFile", so it can be a program name with args.
51960 set dummy SetFile; ac_word=$2
51961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51963 if test "${ac_cv_prog_SETFILE+set}" = set; then
51964   echo $ECHO_N "(cached) $ECHO_C" >&6
51965 else
51966   if test -n "$SETFILE"; then
51967   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51968 else
51969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51970 for as_dir in $PATH
51971 do
51972   IFS=$as_save_IFS
51973   test -z "$as_dir" && as_dir=.
51974   for ac_exec_ext in '' $ac_executable_extensions; do
51975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51976     ac_cv_prog_SETFILE="SetFile"
51977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51978     break 2
51979   fi
51980 done
51981 done
51982 IFS=$as_save_IFS
51983
51984   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51985 fi
51986 fi
51987 SETFILE=$ac_cv_prog_SETFILE
51988 if test -n "$SETFILE"; then
51989   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51990 echo "${ECHO_T}$SETFILE" >&6; }
51991 else
51992   { echo "$as_me:$LINENO: result: no" >&5
51993 echo "${ECHO_T}no" >&6; }
51994 fi
51995
51996
51997         ;;
51998     esac
51999
52000
52001
52002
52003
52004
52005
52006
52007
52008     BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
52009
52010
52011 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
52012
52013
52014
52015     # Check whether --enable-precomp-headers was given.
52016 if test "${enable_precomp_headers+set}" = set; then
52017   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
52018 fi
52019
52020
52021     GCC_PCH=0
52022     ICC_PCH=0
52023     USE_PCH=0
52024     BK_MAKE_PCH=""
52025
52026     case ${BAKEFILE_HOST} in
52027         *-*-cygwin* )
52028                                                 bk_use_pch="no"
52029             ;;
52030     esac
52031
52032     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
52033         if test "x$GCC" = "xyes"; then
52034                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
52035 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
52036             cat >conftest.$ac_ext <<_ACEOF
52037 /* confdefs.h.  */
52038 _ACEOF
52039 cat confdefs.h >>conftest.$ac_ext
52040 cat >>conftest.$ac_ext <<_ACEOF
52041 /* end confdefs.h.  */
52042
52043 int
52044 main ()
52045 {
52046
52047                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
52048                         There is no PCH support
52049                     #endif
52050                     #if (__GNUC__ < 3)
52051                         There is no PCH support
52052                     #endif
52053                     #if (__GNUC__ == 3) && \
52054                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
52055                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
52056                        ( defined(__INTEL_COMPILER) )
52057                         There is no PCH support
52058                     #endif
52059
52060   ;
52061   return 0;
52062 }
52063 _ACEOF
52064 rm -f conftest.$ac_objext
52065 if { (ac_try="$ac_compile"
52066 case "(($ac_try" in
52067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52068   *) ac_try_echo=$ac_try;;
52069 esac
52070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52071   (eval "$ac_compile") 2>conftest.er1
52072   ac_status=$?
52073   grep -v '^ *+' conftest.er1 >conftest.err
52074   rm -f conftest.er1
52075   cat conftest.err >&5
52076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52077   (exit $ac_status); } && {
52078          test -z "$ac_c_werror_flag" ||
52079          test ! -s conftest.err
52080        } && test -s conftest.$ac_objext; then
52081
52082                     { echo "$as_me:$LINENO: result: yes" >&5
52083 echo "${ECHO_T}yes" >&6; }
52084                     GCC_PCH=1
52085
52086 else
52087   echo "$as_me: failed program was:" >&5
52088 sed 's/^/| /' conftest.$ac_ext >&5
52089
52090
52091                     if test "$INTELCXX8" = "yes"; then
52092                         { echo "$as_me:$LINENO: result: yes" >&5
52093 echo "${ECHO_T}yes" >&6; }
52094                         ICC_PCH=1
52095                         if test "$INTELCXX10" = "yes"; then
52096                             ICC_PCH_CREATE_SWITCH="-pch-create"
52097                             ICC_PCH_USE_SWITCH="-pch-use"
52098                         else
52099                             ICC_PCH_CREATE_SWITCH="-create-pch"
52100                             ICC_PCH_USE_SWITCH="-use-pch"
52101                         fi
52102                     else
52103                         { echo "$as_me:$LINENO: result: no" >&5
52104 echo "${ECHO_T}no" >&6; }
52105                     fi
52106
52107 fi
52108
52109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52110             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
52111                 USE_PCH=1
52112
52113 D='$'
52114 cat <<EOF >bk-make-pch
52115 #!/bin/sh
52116
52117 # This script is part of Bakefile (http://www.bakefile.org) autoconf
52118 # script. It is used to generated precompiled headers.
52119 #
52120 # Permission is given to use this file in any way.
52121
52122 outfile="${D}{1}"
52123 header="${D}{2}"
52124 shift
52125 shift
52126
52127 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
52128
52129 compiler=""
52130 headerfile=""
52131
52132 while test ${D}{#} -gt 0; do
52133     add_to_cmdline=1
52134     case "${D}{1}" in
52135         -I* )
52136             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
52137             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
52138                 headerfile="${D}{incdir}/${D}{header}"
52139             fi
52140         ;;
52141         -use-pch|-use_pch|-pch-use )
52142             shift
52143             add_to_cmdline=0
52144         ;;
52145     esac
52146     if test ${D}add_to_cmdline = 1 ; then
52147         compiler="${D}{compiler} ${D}{1}"
52148     fi
52149     shift
52150 done
52151
52152 if test "x${D}{headerfile}" = "x" ; then
52153     echo "error: can't find header ${D}{header} in include paths" >&2
52154 else
52155     if test -f ${D}{outfile} ; then
52156         rm -f ${D}{outfile}
52157     else
52158         mkdir -p \`dirname ${D}{outfile}\`
52159     fi
52160     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
52161     mkdir -p ${D}{builddir}/.deps
52162     if test "x${GCC_PCH}" = "x1" ; then
52163         # can do this because gcc is >= 3.4:
52164         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
52165     elif test "x${ICC_PCH}" = "x1" ; then
52166         filename=pch_gen-${D}${D}
52167         file=${D}{filename}.c
52168         dfile=${D}{filename}.d
52169         cat > ${D}file <<EOT
52170 #include "${D}header"
52171 EOT
52172         # using -MF icc complains about differing command lines in creation/use
52173         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
52174           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
52175           rm -f ${D}file ${D}dfile ${D}{filename}.o
52176     fi
52177     exit ${D}{?}
52178 fi
52179 EOF
52180
52181                 chmod +x bk-make-pch
52182                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
52183             fi
52184         fi
52185     fi
52186
52187
52188
52189
52190
52191
52192
52193     COND_BUILD_DEBUG="#"
52194     if test "x$BUILD" = "xdebug" ; then
52195         COND_BUILD_DEBUG=""
52196     fi
52197
52198     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
52199     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
52200         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
52201     fi
52202
52203     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
52204     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
52205         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
52206     fi
52207
52208     COND_BUILD_DEBUG_UNICODE_0="#"
52209     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
52210         COND_BUILD_DEBUG_UNICODE_0=""
52211     fi
52212
52213     COND_BUILD_DEBUG_UNICODE_1="#"
52214     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52215         COND_BUILD_DEBUG_UNICODE_1=""
52216     fi
52217
52218     COND_BUILD_RELEASE="#"
52219     if test "x$BUILD" = "xrelease" ; then
52220         COND_BUILD_RELEASE=""
52221     fi
52222
52223     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
52224     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52225         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
52226     fi
52227
52228     COND_BUILD_RELEASE_UNICODE_0="#"
52229     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52230         COND_BUILD_RELEASE_UNICODE_0=""
52231     fi
52232
52233     COND_BUILD_RELEASE_UNICODE_1="#"
52234     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52235         COND_BUILD_RELEASE_UNICODE_1=""
52236     fi
52237
52238     COND_BUILD_debug="#"
52239     if test "x$BUILD" = "xdebug" ; then
52240         COND_BUILD_debug=""
52241     fi
52242
52243     COND_BUILD_debug_DEBUG_FLAG_default="#"
52244     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
52245         COND_BUILD_debug_DEBUG_FLAG_default=""
52246     fi
52247
52248     COND_BUILD_debug_DEBUG_INFO_default="#"
52249     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
52250         COND_BUILD_debug_DEBUG_INFO_default=""
52251     fi
52252
52253     COND_BUILD_debug_UNICODE_0="#"
52254     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
52255         COND_BUILD_debug_UNICODE_0=""
52256     fi
52257
52258     COND_BUILD_debug_UNICODE_1="#"
52259     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52260         COND_BUILD_debug_UNICODE_1=""
52261     fi
52262
52263     COND_BUILD_release="#"
52264     if test "x$BUILD" = "xrelease" ; then
52265         COND_BUILD_release=""
52266     fi
52267
52268     COND_BUILD_release_DEBUG_INFO_default="#"
52269     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52270         COND_BUILD_release_DEBUG_INFO_default=""
52271     fi
52272
52273     COND_BUILD_release_UNICODE_0="#"
52274     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52275         COND_BUILD_release_UNICODE_0=""
52276     fi
52277
52278     COND_BUILD_release_UNICODE_1="#"
52279     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52280         COND_BUILD_release_UNICODE_1=""
52281     fi
52282
52283     COND_DEBUG_FLAG_0="#"
52284     if test "x$DEBUG_FLAG" = "x0" ; then
52285         COND_DEBUG_FLAG_0=""
52286     fi
52287
52288     COND_DEBUG_FLAG_1="#"
52289     if test "x$DEBUG_FLAG" = "x1" ; then
52290         COND_DEBUG_FLAG_1=""
52291     fi
52292
52293     COND_DEBUG_INFO_0="#"
52294     if test "x$DEBUG_INFO" = "x0" ; then
52295         COND_DEBUG_INFO_0=""
52296     fi
52297
52298     COND_DEBUG_INFO_1="#"
52299     if test "x$DEBUG_INFO" = "x1" ; then
52300         COND_DEBUG_INFO_1=""
52301     fi
52302
52303     COND_DEPS_TRACKING_0="#"
52304     if test "x$DEPS_TRACKING" = "x0" ; then
52305         COND_DEPS_TRACKING_0=""
52306     fi
52307
52308     COND_DEPS_TRACKING_1="#"
52309     if test "x$DEPS_TRACKING" = "x1" ; then
52310         COND_DEPS_TRACKING_1=""
52311     fi
52312
52313     COND_GCC_PCH_1="#"
52314     if test "x$GCC_PCH" = "x1" ; then
52315         COND_GCC_PCH_1=""
52316     fi
52317
52318     COND_ICC_PCH_1="#"
52319     if test "x$ICC_PCH" = "x1" ; then
52320         COND_ICC_PCH_1=""
52321     fi
52322
52323     COND_MONOLITHIC_0="#"
52324     if test "x$MONOLITHIC" = "x0" ; then
52325         COND_MONOLITHIC_0=""
52326     fi
52327
52328     COND_MONOLITHIC_0_SHARED_0="#"
52329     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
52330         COND_MONOLITHIC_0_SHARED_0=""
52331     fi
52332
52333     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
52334     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
52335         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
52336     fi
52337
52338     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
52339     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
52340         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
52341     fi
52342
52343     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
52344     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52345         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
52346     fi
52347
52348     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
52349     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52350         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
52351     fi
52352
52353     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
52354     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52355         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
52356     fi
52357
52358     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1="#"
52359     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
52360         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1=""
52361     fi
52362
52363     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
52364     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
52365         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
52366     fi
52367
52368     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
52369     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
52370         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
52371     fi
52372
52373     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
52374     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52375         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
52376     fi
52377
52378     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
52379     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52380         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
52381     fi
52382
52383     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
52384     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52385         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
52386     fi
52387
52388     COND_MONOLITHIC_0_SHARED_1="#"
52389     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
52390         COND_MONOLITHIC_0_SHARED_1=""
52391     fi
52392
52393     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
52394     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
52395         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
52396     fi
52397
52398     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
52399     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
52400         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
52401     fi
52402
52403     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
52404     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52405         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
52406     fi
52407
52408     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
52409     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52410         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
52411     fi
52412
52413     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
52414     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52415         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
52416     fi
52417
52418     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1="#"
52419     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
52420         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1=""
52421     fi
52422
52423     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
52424     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
52425         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
52426     fi
52427
52428     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
52429     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
52430         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
52431     fi
52432
52433     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
52434     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
52435         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
52436     fi
52437
52438     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
52439     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
52440         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
52441     fi
52442
52443     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
52444     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52445         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
52446     fi
52447
52448     COND_MONOLITHIC_0_USE_AUI_1="#"
52449     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
52450         COND_MONOLITHIC_0_USE_AUI_1=""
52451     fi
52452
52453     COND_MONOLITHIC_0_USE_GUI_1="#"
52454     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
52455         COND_MONOLITHIC_0_USE_GUI_1=""
52456     fi
52457
52458     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
52459     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52460         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
52461     fi
52462
52463     COND_MONOLITHIC_0_USE_HTML_1="#"
52464     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
52465         COND_MONOLITHIC_0_USE_HTML_1=""
52466     fi
52467
52468     COND_MONOLITHIC_0_USE_MEDIA_1="#"
52469     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
52470         COND_MONOLITHIC_0_USE_MEDIA_1=""
52471     fi
52472
52473     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
52474     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
52475         COND_MONOLITHIC_0_USE_PROPGRID_1=""
52476     fi
52477
52478     COND_MONOLITHIC_0_USE_QA_1="#"
52479     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
52480         COND_MONOLITHIC_0_USE_QA_1=""
52481     fi
52482
52483     COND_MONOLITHIC_0_USE_RIBBON_1="#"
52484     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
52485         COND_MONOLITHIC_0_USE_RIBBON_1=""
52486     fi
52487
52488     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
52489     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52490         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
52491     fi
52492
52493     COND_MONOLITHIC_0_USE_STC_1="#"
52494     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
52495         COND_MONOLITHIC_0_USE_STC_1=""
52496     fi
52497
52498     COND_MONOLITHIC_0_USE_WEBVIEW_1="#"
52499     if test "x$MONOLITHIC" = "x0" -a "x$USE_WEBVIEW" = "x1" ; then
52500         COND_MONOLITHIC_0_USE_WEBVIEW_1=""
52501     fi
52502
52503     COND_MONOLITHIC_0_USE_XRC_1="#"
52504     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
52505         COND_MONOLITHIC_0_USE_XRC_1=""
52506     fi
52507
52508     COND_MONOLITHIC_1="#"
52509     if test "x$MONOLITHIC" = "x1" ; then
52510         COND_MONOLITHIC_1=""
52511     fi
52512
52513     COND_MONOLITHIC_1_SHARED_0="#"
52514     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
52515         COND_MONOLITHIC_1_SHARED_0=""
52516     fi
52517
52518     COND_MONOLITHIC_1_SHARED_1="#"
52519     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
52520         COND_MONOLITHIC_1_SHARED_1=""
52521     fi
52522
52523     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
52524     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
52525         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
52526     fi
52527
52528     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
52529     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
52530         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
52531     fi
52532
52533     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
52534     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52535         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
52536     fi
52537
52538     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
52539     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52540         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
52541     fi
52542
52543     COND_PLATFORM_MACOSX_1="#"
52544     if test "x$PLATFORM_MACOSX" = "x1" ; then
52545         COND_PLATFORM_MACOSX_1=""
52546     fi
52547
52548     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
52549     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
52550         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
52551     fi
52552
52553     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
52554     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52555         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
52556     fi
52557
52558     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52559     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52560         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52561     fi
52562
52563     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
52564     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52565         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
52566     fi
52567
52568     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52569     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52570         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52571     fi
52572
52573     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
52574     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52575         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
52576     fi
52577
52578     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52579     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52580         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52581     fi
52582
52583     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52584     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52585         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52586     fi
52587
52588     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
52589     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
52590         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
52591     fi
52592
52593     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
52594     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52595         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
52596     fi
52597
52598     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
52599     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52600         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
52601     fi
52602
52603     COND_PLATFORM_MACOS_1="#"
52604     if test "x$PLATFORM_MACOS" = "x1" ; then
52605         COND_PLATFORM_MACOS_1=""
52606     fi
52607
52608     COND_PLATFORM_MAC_0="#"
52609     if test "x$PLATFORM_MAC" = "x0" ; then
52610         COND_PLATFORM_MAC_0=""
52611     fi
52612
52613     COND_PLATFORM_MAC_1="#"
52614     if test "x$PLATFORM_MAC" = "x1" ; then
52615         COND_PLATFORM_MAC_1=""
52616     fi
52617
52618     COND_PLATFORM_MSDOS_0="#"
52619     if test "x$PLATFORM_MSDOS" = "x0" ; then
52620         COND_PLATFORM_MSDOS_0=""
52621     fi
52622
52623     COND_PLATFORM_MSDOS_1="#"
52624     if test "x$PLATFORM_MSDOS" = "x1" ; then
52625         COND_PLATFORM_MSDOS_1=""
52626     fi
52627
52628     COND_PLATFORM_OS2_1="#"
52629     if test "x$PLATFORM_OS2" = "x1" ; then
52630         COND_PLATFORM_OS2_1=""
52631     fi
52632
52633     COND_PLATFORM_UNIX_0="#"
52634     if test "x$PLATFORM_UNIX" = "x0" ; then
52635         COND_PLATFORM_UNIX_0=""
52636     fi
52637
52638     COND_PLATFORM_UNIX_1="#"
52639     if test "x$PLATFORM_UNIX" = "x1" ; then
52640         COND_PLATFORM_UNIX_1=""
52641     fi
52642
52643     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52644     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52645         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52646     fi
52647
52648     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52649     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52650         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52651     fi
52652
52653     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52654     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52655         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52656     fi
52657
52658     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52659     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52660         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52661     fi
52662
52663     COND_PLATFORM_WIN32_0="#"
52664     if test "x$PLATFORM_WIN32" = "x0" ; then
52665         COND_PLATFORM_WIN32_0=""
52666     fi
52667
52668     COND_PLATFORM_WIN32_1="#"
52669     if test "x$PLATFORM_WIN32" = "x1" ; then
52670         COND_PLATFORM_WIN32_1=""
52671     fi
52672
52673     COND_PLATFORM_WIN32_1_SHARED_0="#"
52674     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52675         COND_PLATFORM_WIN32_1_SHARED_0=""
52676     fi
52677
52678     COND_SHARED_0="#"
52679     if test "x$SHARED" = "x0" ; then
52680         COND_SHARED_0=""
52681     fi
52682
52683     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52684     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52685         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52686     fi
52687
52688     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52689     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52690         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52691     fi
52692
52693     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52694     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52695         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52696     fi
52697
52698     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52699     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52700         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52701     fi
52702
52703     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52704     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52705         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52706     fi
52707
52708     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52709     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52710         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52711     fi
52712
52713     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52714     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52715         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52716     fi
52717
52718     COND_SHARED_0_USE_STC_1="#"
52719     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52720         COND_SHARED_0_USE_STC_1=""
52721     fi
52722
52723     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
52724     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52725         COND_SHARED_0_wxUSE_EXPAT_builtin=""
52726     fi
52727
52728     COND_SHARED_0_wxUSE_REGEX_builtin="#"
52729     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52730         COND_SHARED_0_wxUSE_REGEX_builtin=""
52731     fi
52732
52733     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
52734     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52735         COND_SHARED_0_wxUSE_ZLIB_builtin=""
52736     fi
52737
52738     COND_SHARED_1="#"
52739     if test "x$SHARED" = "x1" ; then
52740         COND_SHARED_1=""
52741     fi
52742
52743     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52744     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52745         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52746     fi
52747
52748     COND_TOOLKIT_="#"
52749     if test "x$TOOLKIT" = "x" ; then
52750         COND_TOOLKIT_=""
52751     fi
52752
52753     COND_TOOLKIT_COCOA="#"
52754     if test "x$TOOLKIT" = "xCOCOA" ; then
52755         COND_TOOLKIT_COCOA=""
52756     fi
52757
52758     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52759     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52760         COND_TOOLKIT_COCOA_USE_GUI_1=""
52761     fi
52762
52763     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52764     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52765         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52766     fi
52767
52768     COND_TOOLKIT_DFB="#"
52769     if test "x$TOOLKIT" = "xDFB" ; then
52770         COND_TOOLKIT_DFB=""
52771     fi
52772
52773     COND_TOOLKIT_DFB_USE_GUI_1="#"
52774     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52775         COND_TOOLKIT_DFB_USE_GUI_1=""
52776     fi
52777
52778     COND_TOOLKIT_GTK="#"
52779     if test "x$TOOLKIT" = "xGTK" ; then
52780         COND_TOOLKIT_GTK=""
52781     fi
52782
52783     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52784     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52785         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52786     fi
52787
52788     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52789     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52790         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52791     fi
52792
52793     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52794     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52795         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52796     fi
52797
52798     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52799     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52800         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52801     fi
52802
52803     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52804     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52805         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52806     fi
52807
52808     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52809     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52810         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52811     fi
52812
52813     COND_TOOLKIT_GTK_USE_GUI_1="#"
52814     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52815         COND_TOOLKIT_GTK_USE_GUI_1=""
52816     fi
52817
52818     COND_TOOLKIT_MAC="#"
52819     if test "x$TOOLKIT" = "xMAC" ; then
52820         COND_TOOLKIT_MAC=""
52821     fi
52822
52823     COND_TOOLKIT_MGL="#"
52824     if test "x$TOOLKIT" = "xMGL" ; then
52825         COND_TOOLKIT_MGL=""
52826     fi
52827
52828     COND_TOOLKIT_MGL_USE_GUI_1="#"
52829     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52830         COND_TOOLKIT_MGL_USE_GUI_1=""
52831     fi
52832
52833     COND_TOOLKIT_MOTIF="#"
52834     if test "x$TOOLKIT" = "xMOTIF" ; then
52835         COND_TOOLKIT_MOTIF=""
52836     fi
52837
52838     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52839     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52840         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52841     fi
52842
52843     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52844     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52845         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52846     fi
52847
52848     COND_TOOLKIT_MSW="#"
52849     if test "x$TOOLKIT" = "xMSW" ; then
52850         COND_TOOLKIT_MSW=""
52851     fi
52852
52853     COND_TOOLKIT_MSW_USE_GUI_1="#"
52854     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52855         COND_TOOLKIT_MSW_USE_GUI_1=""
52856     fi
52857
52858     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52859     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52860         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52861     fi
52862
52863     COND_TOOLKIT_MSW_WXUNIV_0="#"
52864     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52865         COND_TOOLKIT_MSW_WXUNIV_0=""
52866     fi
52867
52868     COND_TOOLKIT_OSX_CARBON="#"
52869     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
52870         COND_TOOLKIT_OSX_CARBON=""
52871     fi
52872
52873     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52874     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52875         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52876     fi
52877
52878     COND_TOOLKIT_OSX_COCOA="#"
52879     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
52880         COND_TOOLKIT_OSX_COCOA=""
52881     fi
52882
52883     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52884     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52885         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52886     fi
52887
52888     COND_TOOLKIT_OSX_IPHONE="#"
52889     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
52890         COND_TOOLKIT_OSX_IPHONE=""
52891     fi
52892
52893     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52894     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52895         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52896     fi
52897
52898     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52899     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52900         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52901     fi
52902
52903     COND_TOOLKIT_PM="#"
52904     if test "x$TOOLKIT" = "xPM" ; then
52905         COND_TOOLKIT_PM=""
52906     fi
52907
52908     COND_TOOLKIT_PM_USE_GUI_1="#"
52909     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52910         COND_TOOLKIT_PM_USE_GUI_1=""
52911     fi
52912
52913     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52914     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52915         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52916     fi
52917
52918     COND_TOOLKIT_WINCE="#"
52919     if test "x$TOOLKIT" = "xWINCE" ; then
52920         COND_TOOLKIT_WINCE=""
52921     fi
52922
52923     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52924     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52925         COND_TOOLKIT_WINCE_USE_GUI_1=""
52926     fi
52927
52928     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52929     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52930         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52931     fi
52932
52933     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52934     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52935         COND_TOOLKIT_WINCE_WXUNIV_0=""
52936     fi
52937
52938     COND_TOOLKIT_X11="#"
52939     if test "x$TOOLKIT" = "xX11" ; then
52940         COND_TOOLKIT_X11=""
52941     fi
52942
52943     COND_TOOLKIT_X11_USE_GUI_1="#"
52944     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52945         COND_TOOLKIT_X11_USE_GUI_1=""
52946     fi
52947
52948     COND_UNICODE_1="#"
52949     if test "x$UNICODE" = "x1" ; then
52950         COND_UNICODE_1=""
52951     fi
52952
52953     COND_USE_CAIRO_1="#"
52954     if test "x$USE_CAIRO" = "x1" ; then
52955         COND_USE_CAIRO_1=""
52956     fi
52957
52958     COND_USE_EXCEPTIONS_0="#"
52959     if test "x$USE_EXCEPTIONS" = "x0" ; then
52960         COND_USE_EXCEPTIONS_0=""
52961     fi
52962
52963     COND_USE_EXCEPTIONS_1="#"
52964     if test "x$USE_EXCEPTIONS" = "x1" ; then
52965         COND_USE_EXCEPTIONS_1=""
52966     fi
52967
52968     COND_USE_GUI_0="#"
52969     if test "x$USE_GUI" = "x0" ; then
52970         COND_USE_GUI_0=""
52971     fi
52972
52973     COND_USE_GUI_1="#"
52974     if test "x$USE_GUI" = "x1" ; then
52975         COND_USE_GUI_1=""
52976     fi
52977
52978     COND_USE_GUI_1_USE_OPENGL_1="#"
52979     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52980         COND_USE_GUI_1_USE_OPENGL_1=""
52981     fi
52982
52983     COND_USE_GUI_1_WXUNIV_0="#"
52984     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52985         COND_USE_GUI_1_WXUNIV_0=""
52986     fi
52987
52988     COND_USE_GUI_1_WXUNIV_1="#"
52989     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52990         COND_USE_GUI_1_WXUNIV_1=""
52991     fi
52992
52993     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52994     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52995         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52996     fi
52997
52998     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52999     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53000         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
53001     fi
53002
53003     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
53004     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53005         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
53006     fi
53007
53008     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
53009     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
53010         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
53011     fi
53012
53013     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
53014     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53015         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
53016     fi
53017
53018     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
53019     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53020         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
53021     fi
53022
53023     COND_USE_OPENGL_1="#"
53024     if test "x$USE_OPENGL" = "x1" ; then
53025         COND_USE_OPENGL_1=""
53026     fi
53027
53028     COND_USE_PCH_1="#"
53029     if test "x$USE_PCH" = "x1" ; then
53030         COND_USE_PCH_1=""
53031     fi
53032
53033     COND_USE_PLUGINS_0="#"
53034     if test "x$USE_PLUGINS" = "x0" ; then
53035         COND_USE_PLUGINS_0=""
53036     fi
53037
53038     COND_USE_RTTI_0="#"
53039     if test "x$USE_RTTI" = "x0" ; then
53040         COND_USE_RTTI_0=""
53041     fi
53042
53043     COND_USE_RTTI_1="#"
53044     if test "x$USE_RTTI" = "x1" ; then
53045         COND_USE_RTTI_1=""
53046     fi
53047
53048     COND_USE_SOTWOSYMLINKS_1="#"
53049     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
53050         COND_USE_SOTWOSYMLINKS_1=""
53051     fi
53052
53053     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
53054     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
53055         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
53056     fi
53057
53058     COND_USE_SOVERLINUX_1="#"
53059     if test "x$USE_SOVERLINUX" = "x1" ; then
53060         COND_USE_SOVERLINUX_1=""
53061     fi
53062
53063     COND_USE_SOVERSION_0="#"
53064     if test "x$USE_SOVERSION" = "x0" ; then
53065         COND_USE_SOVERSION_0=""
53066     fi
53067
53068     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
53069     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
53070         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
53071     fi
53072
53073     COND_USE_SOVERSOLARIS_1="#"
53074     if test "x$USE_SOVERSOLARIS" = "x1" ; then
53075         COND_USE_SOVERSOLARIS_1=""
53076     fi
53077
53078     COND_USE_STC_1="#"
53079     if test "x$USE_STC" = "x1" ; then
53080         COND_USE_STC_1=""
53081     fi
53082
53083     COND_USE_THREADS_0="#"
53084     if test "x$USE_THREADS" = "x0" ; then
53085         COND_USE_THREADS_0=""
53086     fi
53087
53088     COND_USE_THREADS_1="#"
53089     if test "x$USE_THREADS" = "x1" ; then
53090         COND_USE_THREADS_1=""
53091     fi
53092
53093     COND_USE_XRC_1="#"
53094     if test "x$USE_XRC" = "x1" ; then
53095         COND_USE_XRC_1=""
53096     fi
53097
53098     COND_WINDOWS_IMPLIB_1="#"
53099     if test "x$WINDOWS_IMPLIB" = "x1" ; then
53100         COND_WINDOWS_IMPLIB_1=""
53101     fi
53102
53103     COND_WITH_PLUGIN_SDL_1="#"
53104     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
53105         COND_WITH_PLUGIN_SDL_1=""
53106     fi
53107
53108     COND_WXUNIV_0="#"
53109     if test "x$WXUNIV" = "x0" ; then
53110         COND_WXUNIV_0=""
53111     fi
53112
53113     COND_WXUNIV_1="#"
53114     if test "x$WXUNIV" = "x1" ; then
53115         COND_WXUNIV_1=""
53116     fi
53117
53118     COND_WXUSE_EXPAT_BUILTIN="#"
53119     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
53120         COND_WXUSE_EXPAT_BUILTIN=""
53121     fi
53122
53123     COND_WXUSE_LIBJPEG_BUILTIN="#"
53124     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
53125         COND_WXUSE_LIBJPEG_BUILTIN=""
53126     fi
53127
53128     COND_WXUSE_LIBPNG_BUILTIN="#"
53129     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53130         COND_WXUSE_LIBPNG_BUILTIN=""
53131     fi
53132
53133     COND_WXUSE_LIBTIFF_BUILTIN="#"
53134     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53135         COND_WXUSE_LIBTIFF_BUILTIN=""
53136     fi
53137
53138     COND_WXUSE_REGEX_BUILTIN="#"
53139     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
53140         COND_WXUSE_REGEX_BUILTIN=""
53141     fi
53142
53143     COND_WXUSE_ZLIB_BUILTIN="#"
53144     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
53145         COND_WXUSE_ZLIB_BUILTIN=""
53146     fi
53147
53148     COND_wxUSE_EXPAT_builtin="#"
53149     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
53150         COND_wxUSE_EXPAT_builtin=""
53151     fi
53152
53153     COND_wxUSE_LIBJPEG_builtin="#"
53154     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
53155         COND_wxUSE_LIBJPEG_builtin=""
53156     fi
53157
53158     COND_wxUSE_LIBPNG_builtin="#"
53159     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53160         COND_wxUSE_LIBPNG_builtin=""
53161     fi
53162
53163     COND_wxUSE_LIBTIFF_builtin="#"
53164     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53165         COND_wxUSE_LIBTIFF_builtin=""
53166     fi
53167
53168     COND_wxUSE_REGEX_builtin="#"
53169     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
53170         COND_wxUSE_REGEX_builtin=""
53171     fi
53172
53173     COND_wxUSE_ZLIB_builtin="#"
53174     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
53175         COND_wxUSE_ZLIB_builtin=""
53176     fi
53177
53178
53179
53180     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
53181         { { 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
53182 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;}
53183    { (exit 1); exit 1; }; }
53184     fi
53185
53186     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
53187         { { 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
53188 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;}
53189    { (exit 1); exit 1; }; }
53190     fi
53191
53192
53193 case ${INSTALL} in
53194   /* ) # Absolute
53195      ;;
53196   ?:* ) # Drive letter, considered as absolute.
53197      ;;
53198   *)
53199      INSTALL=`pwd`/${INSTALL} ;;
53200 esac
53201
53202 if test "$wxUSE_GUI" = "yes"; then
53203
53204 if test "$wxUSE_MSW" = 1 ; then
53205     if test "x$WINDRES" = "x"; then
53206         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
53207 echo "$as_me: error: Required windres program not found" >&2;}
53208    { (exit 1); exit 1; }; }
53209     fi
53210
53211     RESCOMP="$WINDRES"
53212 fi
53213
53214 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
53215             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
53216     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
53217
53218         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
53219
53220     # Extract the first word of "DeRez", so it can be a program name with args.
53221 set dummy DeRez; ac_word=$2
53222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53224 if test "${ac_cv_prog_DEREZ+set}" = set; then
53225   echo $ECHO_N "(cached) $ECHO_C" >&6
53226 else
53227   if test -n "$DEREZ"; then
53228   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
53229 else
53230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53231 for as_dir in $PATH
53232 do
53233   IFS=$as_save_IFS
53234   test -z "$as_dir" && as_dir=.
53235   for ac_exec_ext in '' $ac_executable_extensions; do
53236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53237     ac_cv_prog_DEREZ="DeRez"
53238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53239     break 2
53240   fi
53241 done
53242 done
53243 IFS=$as_save_IFS
53244
53245   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
53246 fi
53247 fi
53248 DEREZ=$ac_cv_prog_DEREZ
53249 if test -n "$DEREZ"; then
53250   { echo "$as_me:$LINENO: result: $DEREZ" >&5
53251 echo "${ECHO_T}$DEREZ" >&6; }
53252 else
53253   { echo "$as_me:$LINENO: result: no" >&5
53254 echo "${ECHO_T}no" >&6; }
53255 fi
53256
53257
53258
53259     MACSETFILE="\$(SETFILE)"
53260
53261             if test "$wxUSE_OSX_CARBON" = 1; then
53262         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
53263         RESCOMP="$REZ"
53264         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
53265     else
53266         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
53267         RESCOMP="cat /dev/null \| $REZ"
53268         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
53269     fi
53270
53271 else
53272         MACSETFILE="@true"
53273
53274     if test "$wxUSE_PM" = 1; then
53275         RESCOMP="emxbind"
53276         WXCONFIG_RESFLAGS="-ep"
53277
53278                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
53279     else
53280         POSTLINK_COMMAND="@true"
53281     fi
53282 fi
53283
53284 fi
53285
53286
53287 if test $GCC_PCH = 1
53288 then
53289     if test "$wx_cv_gcc_pch_bug" = yes; then
53290         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
53291 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
53292         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
53293 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
53294         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
53295 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
53296     fi
53297
53298     # Our WX_PRECOMP flag does not make sense for any language except C++ because
53299     # the headers that benefit from precompilation are mostly C++ headers.
53300     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
53301     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
53302     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
53303 fi
53304
53305
53306 if test "$wxUSE_MAC" = 1 ; then
53307     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
53308         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
53309         mv temp bk-deps
53310         chmod +x bk-deps
53311     fi
53312 fi
53313
53314 if test "$wxUSE_SHARED" = "yes"; then
53315                 case "${host}" in
53316       *-pc-os2_emx | *-pc-os2-emx )
53317         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53318         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53319         cp -p ${srcdir}/src/os2/dllnames.sh .
53320         cp -p ${srcdir}/src/os2/dllar.sh .
53321       ;;
53322     esac
53323 fi
53324 if test "$wxUSE_OMF" = "yes"; then
53325     case "${host}" in
53326       *-pc-os2_emx | *-pc-os2-emx )
53327         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
53328         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53329         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53330       ;;
53331     esac
53332 fi
53333
53334 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
53335
53336
53337 case "${host}" in
53338     *-*-solaris2* )
53339                         if test "$GCC" = yes; then
53340             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
53341             LIBS=`echo $LIBS | sed 's/-mt//'`
53342             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
53343         fi
53344         ;;
53345
53346     *-*-linux* )
53347                         if test "x$SUNCXX" = xyes; then
53348             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
53349             LIBS=`echo $LIBS | sed 's/-pthread//'`
53350             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
53351         fi
53352         ;;
53353 esac
53354
53355 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
53356 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
53357 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
53358 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
53359
53360 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
53361
53362
53363
53364
53365
53366
53367
53368
53369
53370
53371
53372
53373
53374
53375
53376
53377
53378
53379
53380
53381
53382
53383
53384
53385
53386
53387
53388
53389
53390
53391
53392
53393
53394
53395
53396
53397
53398
53399
53400
53401
53402
53403
53404
53405
53406
53407
53408
53409
53410
53411
53412
53413
53414
53415
53416
53417
53418
53419
53420
53421 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
53422 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
53423 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
53424 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
53425   echo $ECHO_N "(cached) $ECHO_C" >&6
53426 else
53427   cat >conftest.make <<\_ACEOF
53428 SHELL = /bin/sh
53429 all:
53430         @echo '@@@%%%=$(MAKE)=@@@%%%'
53431 _ACEOF
53432 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
53433 case `${MAKE-make} -f conftest.make 2>/dev/null` in
53434   *@@@%%%=?*=@@@%%%*)
53435     eval ac_cv_prog_make_${ac_make}_set=yes;;
53436   *)
53437     eval ac_cv_prog_make_${ac_make}_set=no;;
53438 esac
53439 rm -f conftest.make
53440 fi
53441 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
53442   { echo "$as_me:$LINENO: result: yes" >&5
53443 echo "${ECHO_T}yes" >&6; }
53444   SET_MAKE=
53445 else
53446   { echo "$as_me:$LINENO: result: no" >&5
53447 echo "${ECHO_T}no" >&6; }
53448   SET_MAKE="MAKE=${MAKE-make}"
53449 fi
53450
53451
53452
53453 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
53454
53455
53456 if test "$USE_WIN32" = 1; then
53457     ac_config_commands="$ac_config_commands rcdefs.h"
53458
53459 fi
53460
53461 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
53462
53463
53464 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
53465
53466
53467 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
53468
53469
53470 if test "$wx_cv_version_script" = "yes"; then
53471     ac_config_files="$ac_config_files version-script"
53472
53473 fi
53474 ac_config_files="$ac_config_files Makefile"
53475
53476
53477 ac_config_commands="$ac_config_commands wx-config"
53478
53479
53480
53481 if test "$wxWITH_SUBDIRS" != "no"; then
53482 if test "$wxUSE_GUI" = "yes"; then
53483     SUBDIRS="samples demos utils"
53484 else
53485             SUBDIRS="samples utils"
53486 fi
53487
53488
53489
53490 # Check whether --with-cppunit-prefix was given.
53491 if test "${with_cppunit_prefix+set}" = set; then
53492   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
53493 else
53494   cppunit_config_prefix=""
53495 fi
53496
53497
53498 # Check whether --with-cppunit-exec-prefix was given.
53499 if test "${with_cppunit_exec_prefix+set}" = set; then
53500   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
53501 else
53502   cppunit_config_exec_prefix=""
53503 fi
53504
53505
53506   if test x$cppunit_config_exec_prefix != x ; then
53507      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
53508      if test x${CPPUNIT_CONFIG+set} != xset ; then
53509         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
53510      fi
53511   fi
53512   if test x$cppunit_config_prefix != x ; then
53513      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
53514      if test x${CPPUNIT_CONFIG+set} != xset ; then
53515         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
53516      fi
53517   fi
53518
53519   # Extract the first word of "cppunit-config", so it can be a program name with args.
53520 set dummy cppunit-config; ac_word=$2
53521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53523 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
53524   echo $ECHO_N "(cached) $ECHO_C" >&6
53525 else
53526   case $CPPUNIT_CONFIG in
53527   [\\/]* | ?:[\\/]*)
53528   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
53529   ;;
53530   *)
53531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53532 for as_dir in $PATH
53533 do
53534   IFS=$as_save_IFS
53535   test -z "$as_dir" && as_dir=.
53536   for ac_exec_ext in '' $ac_executable_extensions; do
53537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53538     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53540     break 2
53541   fi
53542 done
53543 done
53544 IFS=$as_save_IFS
53545
53546   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
53547   ;;
53548 esac
53549 fi
53550 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
53551 if test -n "$CPPUNIT_CONFIG"; then
53552   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
53553 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
53554 else
53555   { echo "$as_me:$LINENO: result: no" >&5
53556 echo "${ECHO_T}no" >&6; }
53557 fi
53558
53559
53560   cppunit_version_min=1.8.0
53561
53562   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
53563 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
53564   no_cppunit=""
53565   if test "$CPPUNIT_CONFIG" = "no" ; then
53566     { echo "$as_me:$LINENO: result: no" >&5
53567 echo "${ECHO_T}no" >&6; }
53568     no_cppunit=yes
53569   else
53570     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
53571     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
53572     cppunit_version=`$CPPUNIT_CONFIG --version`
53573
53574     cppunit_major_version=`echo $cppunit_version | \
53575            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53576     cppunit_minor_version=`echo $cppunit_version | \
53577            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53578     cppunit_micro_version=`echo $cppunit_version | \
53579            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53580
53581     cppunit_major_min=`echo $cppunit_version_min | \
53582            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53583     cppunit_minor_min=`echo $cppunit_version_min | \
53584            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53585     cppunit_micro_min=`echo $cppunit_version_min | \
53586            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53587
53588     cppunit_version_proper=`expr \
53589         $cppunit_major_version \> $cppunit_major_min \| \
53590         $cppunit_major_version \= $cppunit_major_min \& \
53591         $cppunit_minor_version \> $cppunit_minor_min \| \
53592         $cppunit_major_version \= $cppunit_major_min \& \
53593         $cppunit_minor_version \= $cppunit_minor_min \& \
53594         $cppunit_micro_version \>= $cppunit_micro_min `
53595
53596     if test "$cppunit_version_proper" = "1" ; then
53597       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
53598 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
53599     else
53600       { echo "$as_me:$LINENO: result: no" >&5
53601 echo "${ECHO_T}no" >&6; }
53602       no_cppunit=yes
53603     fi
53604   fi
53605
53606   if test "x$no_cppunit" = x ; then
53607      SUBDIRS="$SUBDIRS tests"
53608   else
53609      CPPUNIT_CFLAGS=""
53610      CPPUNIT_LIBS=""
53611      :
53612   fi
53613
53614
53615
53616
53617
53618 for subdir in $SUBDIRS; do
53619     if test -d ${srcdir}/${subdir} ; then
53620         if test "$wxUSE_GUI" = "yes"; then
53621             if test ${subdir} = "samples"; then
53622                                                 makefiles="samples/Makefile.in $makefiles"
53623                 for sample in $SAMPLES_SUBDIRS; do
53624                     if test -d $srcdir/samples/$sample; then
53625                         makefiles="samples/$sample/Makefile.in $makefiles"
53626                     fi
53627                 done
53628             else
53629                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
53630                 eval "disabled=\$$disabled_var"
53631                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
53632                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
53633             fi
53634         else
53635                                     if test ${subdir} = "samples"; then
53636                                                 makefiles="samples/Makefile.in $makefiles"
53637                 for sample in `echo $SAMPLES_SUBDIRS`; do
53638                     if test -d $srcdir/samples/$sample; then
53639                         makefiles="samples/$sample/Makefile.in $makefiles"
53640                     fi
53641                 done
53642             elif test ${subdir} = "utils"; then
53643                 makefiles=""
53644                 for util in ifacecheck ; do
53645                     if test -d $srcdir/utils/$util ; then
53646                         makefiles="utils/$util/src/Makefile.in \
53647                                    $makefiles"
53648                     fi
53649                 done
53650             else
53651                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53652             fi
53653         fi
53654
53655         for mkin in $makefiles ; do
53656             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
53657             ac_config_files="$ac_config_files $mk"
53658
53659         done
53660     fi
53661 done
53662 fi
53663 cat >confcache <<\_ACEOF
53664 # This file is a shell script that caches the results of configure
53665 # tests run on this system so they can be shared between configure
53666 # scripts and configure runs, see configure's option --config-cache.
53667 # It is not useful on other systems.  If it contains results you don't
53668 # want to keep, you may remove or edit it.
53669 #
53670 # config.status only pays attention to the cache file if you give it
53671 # the --recheck option to rerun configure.
53672 #
53673 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53674 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53675 # following values.
53676
53677 _ACEOF
53678
53679 # The following way of writing the cache mishandles newlines in values,
53680 # but we know of no workaround that is simple, portable, and efficient.
53681 # So, we kill variables containing newlines.
53682 # Ultrix sh set writes to stderr and can't be redirected directly,
53683 # and sets the high bit in the cache file unless we assign to the vars.
53684 (
53685   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53686     eval ac_val=\$$ac_var
53687     case $ac_val in #(
53688     *${as_nl}*)
53689       case $ac_var in #(
53690       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53691 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53692       esac
53693       case $ac_var in #(
53694       _ | IFS | as_nl) ;; #(
53695       *) $as_unset $ac_var ;;
53696       esac ;;
53697     esac
53698   done
53699
53700   (set) 2>&1 |
53701     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53702     *${as_nl}ac_space=\ *)
53703       # `set' does not quote correctly, so add quotes (double-quote
53704       # substitution turns \\\\ into \\, and sed turns \\ into \).
53705       sed -n \
53706         "s/'/'\\\\''/g;
53707           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53708       ;; #(
53709     *)
53710       # `set' quotes correctly as required by POSIX, so do not add quotes.
53711       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53712       ;;
53713     esac |
53714     sort
53715 ) |
53716   sed '
53717      /^ac_cv_env_/b end
53718      t clear
53719      :clear
53720      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53721      t end
53722      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53723      :end' >>confcache
53724 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53725   if test -w "$cache_file"; then
53726     test "x$cache_file" != "x/dev/null" &&
53727       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53728 echo "$as_me: updating cache $cache_file" >&6;}
53729     cat confcache >$cache_file
53730   else
53731     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53732 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53733   fi
53734 fi
53735 rm -f confcache
53736
53737 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53738 # Let make expand exec_prefix.
53739 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53740
53741 DEFS=-DHAVE_CONFIG_H
53742
53743 ac_libobjs=
53744 ac_ltlibobjs=
53745 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53746   # 1. Remove the extension, and $U if already installed.
53747   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53748   ac_i=`echo "$ac_i" | sed "$ac_script"`
53749   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53750   #    will be set to the directory where LIBOBJS objects are built.
53751   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53752   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53753 done
53754 LIBOBJS=$ac_libobjs
53755
53756 LTLIBOBJS=$ac_ltlibobjs
53757
53758
53759
53760 : ${CONFIG_STATUS=./config.status}
53761 ac_clean_files_save=$ac_clean_files
53762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53763 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53764 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53765 cat >$CONFIG_STATUS <<_ACEOF
53766 #! $SHELL
53767 # Generated by $as_me.
53768 # Run this file to recreate the current configuration.
53769 # Compiler output produced by configure, useful for debugging
53770 # configure, is in config.log if it exists.
53771
53772 debug=false
53773 ac_cs_recheck=false
53774 ac_cs_silent=false
53775 SHELL=\${CONFIG_SHELL-$SHELL}
53776 _ACEOF
53777
53778 cat >>$CONFIG_STATUS <<\_ACEOF
53779 ## --------------------- ##
53780 ## M4sh Initialization.  ##
53781 ## --------------------- ##
53782
53783 # Be more Bourne compatible
53784 DUALCASE=1; export DUALCASE # for MKS sh
53785 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53786   emulate sh
53787   NULLCMD=:
53788   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53789   # is contrary to our usage.  Disable this feature.
53790   alias -g '${1+"$@"}'='"$@"'
53791   setopt NO_GLOB_SUBST
53792 else
53793   case `(set -o) 2>/dev/null` in
53794   *posix*) set -o posix ;;
53795 esac
53796
53797 fi
53798
53799
53800
53801
53802 # PATH needs CR
53803 # Avoid depending upon Character Ranges.
53804 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53805 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53806 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53807 as_cr_digits='0123456789'
53808 as_cr_alnum=$as_cr_Letters$as_cr_digits
53809
53810 # The user is always right.
53811 if test "${PATH_SEPARATOR+set}" != set; then
53812   echo "#! /bin/sh" >conf$$.sh
53813   echo  "exit 0"   >>conf$$.sh
53814   chmod +x conf$$.sh
53815   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53816     PATH_SEPARATOR=';'
53817   else
53818     PATH_SEPARATOR=:
53819   fi
53820   rm -f conf$$.sh
53821 fi
53822
53823 # Support unset when possible.
53824 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53825   as_unset=unset
53826 else
53827   as_unset=false
53828 fi
53829
53830
53831 # IFS
53832 # We need space, tab and new line, in precisely that order.  Quoting is
53833 # there to prevent editors from complaining about space-tab.
53834 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53835 # splitting by setting IFS to empty value.)
53836 as_nl='
53837 '
53838 IFS=" ""        $as_nl"
53839
53840 # Find who we are.  Look in the path if we contain no directory separator.
53841 case $0 in
53842   *[\\/]* ) as_myself=$0 ;;
53843   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53844 for as_dir in $PATH
53845 do
53846   IFS=$as_save_IFS
53847   test -z "$as_dir" && as_dir=.
53848   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53849 done
53850 IFS=$as_save_IFS
53851
53852      ;;
53853 esac
53854 # We did not find ourselves, most probably we were run as `sh COMMAND'
53855 # in which case we are not to be found in the path.
53856 if test "x$as_myself" = x; then
53857   as_myself=$0
53858 fi
53859 if test ! -f "$as_myself"; then
53860   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53861   { (exit 1); exit 1; }
53862 fi
53863
53864 # Work around bugs in pre-3.0 UWIN ksh.
53865 for as_var in ENV MAIL MAILPATH
53866 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53867 done
53868 PS1='$ '
53869 PS2='> '
53870 PS4='+ '
53871
53872 # NLS nuisances.
53873 for as_var in \
53874   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53875   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53876   LC_TELEPHONE LC_TIME
53877 do
53878   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53879     eval $as_var=C; export $as_var
53880   else
53881     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53882   fi
53883 done
53884
53885 # Required to use basename.
53886 if expr a : '\(a\)' >/dev/null 2>&1 &&
53887    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53888   as_expr=expr
53889 else
53890   as_expr=false
53891 fi
53892
53893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53894   as_basename=basename
53895 else
53896   as_basename=false
53897 fi
53898
53899
53900 # Name of the executable.
53901 as_me=`$as_basename -- "$0" ||
53902 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53903          X"$0" : 'X\(//\)$' \| \
53904          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53905 echo X/"$0" |
53906     sed '/^.*\/\([^/][^/]*\)\/*$/{
53907             s//\1/
53908             q
53909           }
53910           /^X\/\(\/\/\)$/{
53911             s//\1/
53912             q
53913           }
53914           /^X\/\(\/\).*/{
53915             s//\1/
53916             q
53917           }
53918           s/.*/./; q'`
53919
53920 # CDPATH.
53921 $as_unset CDPATH
53922
53923
53924
53925   as_lineno_1=$LINENO
53926   as_lineno_2=$LINENO
53927   test "x$as_lineno_1" != "x$as_lineno_2" &&
53928   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53929
53930   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53931   # uniformly replaced by the line number.  The first 'sed' inserts a
53932   # line-number line after each line using $LINENO; the second 'sed'
53933   # does the real work.  The second script uses 'N' to pair each
53934   # line-number line with the line containing $LINENO, and appends
53935   # trailing '-' during substitution so that $LINENO is not a special
53936   # case at line end.
53937   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53938   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53939   # E. McMahon (1931-1989) for sed's syntax.  :-)
53940   sed -n '
53941     p
53942     /[$]LINENO/=
53943   ' <$as_myself |
53944     sed '
53945       s/[$]LINENO.*/&-/
53946       t lineno
53947       b
53948       :lineno
53949       N
53950       :loop
53951       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53952       t loop
53953       s/-\n.*//
53954     ' >$as_me.lineno &&
53955   chmod +x "$as_me.lineno" ||
53956     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53957    { (exit 1); exit 1; }; }
53958
53959   # Don't try to exec as it changes $[0], causing all sort of problems
53960   # (the dirname of $[0] is not the place where we might find the
53961   # original and so on.  Autoconf is especially sensitive to this).
53962   . "./$as_me.lineno"
53963   # Exit status is that of the last command.
53964   exit
53965 }
53966
53967
53968 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53969   as_dirname=dirname
53970 else
53971   as_dirname=false
53972 fi
53973
53974 ECHO_C= ECHO_N= ECHO_T=
53975 case `echo -n x` in
53976 -n*)
53977   case `echo 'x\c'` in
53978   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53979   *)   ECHO_C='\c';;
53980   esac;;
53981 *)
53982   ECHO_N='-n';;
53983 esac
53984
53985 if expr a : '\(a\)' >/dev/null 2>&1 &&
53986    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53987   as_expr=expr
53988 else
53989   as_expr=false
53990 fi
53991
53992 rm -f conf$$ conf$$.exe conf$$.file
53993 if test -d conf$$.dir; then
53994   rm -f conf$$.dir/conf$$.file
53995 else
53996   rm -f conf$$.dir
53997   mkdir conf$$.dir
53998 fi
53999 echo >conf$$.file
54000 if ln -s conf$$.file conf$$ 2>/dev/null; then
54001   as_ln_s='ln -s'
54002   # ... but there are two gotchas:
54003   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
54004   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
54005   # In both cases, we have to default to `cp -p'.
54006   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
54007     as_ln_s='cp -p'
54008 elif ln conf$$.file conf$$ 2>/dev/null; then
54009   as_ln_s=ln
54010 else
54011   as_ln_s='cp -p'
54012 fi
54013 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
54014 rmdir conf$$.dir 2>/dev/null
54015
54016 if mkdir -p . 2>/dev/null; then
54017   as_mkdir_p=:
54018 else
54019   test -d ./-p && rmdir ./-p
54020   as_mkdir_p=false
54021 fi
54022
54023 if test -x / >/dev/null 2>&1; then
54024   as_test_x='test -x'
54025 else
54026   if ls -dL / >/dev/null 2>&1; then
54027     as_ls_L_option=L
54028   else
54029     as_ls_L_option=
54030   fi
54031   as_test_x='
54032     eval sh -c '\''
54033       if test -d "$1"; then
54034         test -d "$1/.";
54035       else
54036         case $1 in
54037         -*)set "./$1";;
54038         esac;
54039         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
54040         ???[sx]*):;;*)false;;esac;fi
54041     '\'' sh
54042   '
54043 fi
54044 as_executable_p=$as_test_x
54045
54046 # Sed expression to map a string onto a valid CPP name.
54047 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
54048
54049 # Sed expression to map a string onto a valid variable name.
54050 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
54051
54052
54053 exec 6>&1
54054
54055 # Save the log message, to keep $[0] and so on meaningful, and to
54056 # report actual input values of CONFIG_FILES etc. instead of their
54057 # values after options handling.
54058 ac_log="
54059 This file was extended by wxWidgets $as_me 2.9.3, which was
54060 generated by GNU Autoconf 2.61.  Invocation command line was
54061
54062   CONFIG_FILES    = $CONFIG_FILES
54063   CONFIG_HEADERS  = $CONFIG_HEADERS
54064   CONFIG_LINKS    = $CONFIG_LINKS
54065   CONFIG_COMMANDS = $CONFIG_COMMANDS
54066   $ $0 $@
54067
54068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
54069 "
54070
54071 _ACEOF
54072
54073 cat >>$CONFIG_STATUS <<_ACEOF
54074 # Files that config.status was made for.
54075 config_files="$ac_config_files"
54076 config_headers="$ac_config_headers"
54077 config_commands="$ac_config_commands"
54078
54079 _ACEOF
54080
54081 cat >>$CONFIG_STATUS <<\_ACEOF
54082 ac_cs_usage="\
54083 \`$as_me' instantiates files from templates according to the
54084 current configuration.
54085
54086 Usage: $0 [OPTIONS] [FILE]...
54087
54088   -h, --help       print this help, then exit
54089   -V, --version    print version number and configuration settings, then exit
54090   -q, --quiet      do not print progress messages
54091   -d, --debug      don't remove temporary files
54092       --recheck    update $as_me by reconfiguring in the same conditions
54093   --file=FILE[:TEMPLATE]
54094                    instantiate the configuration file FILE
54095   --header=FILE[:TEMPLATE]
54096                    instantiate the configuration header FILE
54097
54098 Configuration files:
54099 $config_files
54100
54101 Configuration headers:
54102 $config_headers
54103
54104 Configuration commands:
54105 $config_commands
54106
54107 Report bugs to <bug-autoconf@gnu.org>."
54108
54109 _ACEOF
54110 cat >>$CONFIG_STATUS <<_ACEOF
54111 ac_cs_version="\\
54112 wxWidgets config.status 2.9.3
54113 configured by $0, generated by GNU Autoconf 2.61,
54114   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
54115
54116 Copyright (C) 2006 Free Software Foundation, Inc.
54117 This config.status script is free software; the Free Software Foundation
54118 gives unlimited permission to copy, distribute and modify it."
54119
54120 ac_pwd='$ac_pwd'
54121 srcdir='$srcdir'
54122 INSTALL='$INSTALL'
54123 _ACEOF
54124
54125 cat >>$CONFIG_STATUS <<\_ACEOF
54126 # If no file are specified by the user, then we need to provide default
54127 # value.  By we need to know if files were specified by the user.
54128 ac_need_defaults=:
54129 while test $# != 0
54130 do
54131   case $1 in
54132   --*=*)
54133     ac_option=`expr "X$1" : 'X\([^=]*\)='`
54134     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
54135     ac_shift=:
54136     ;;
54137   *)
54138     ac_option=$1
54139     ac_optarg=$2
54140     ac_shift=shift
54141     ;;
54142   esac
54143
54144   case $ac_option in
54145   # Handling of the options.
54146   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
54147     ac_cs_recheck=: ;;
54148   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
54149     echo "$ac_cs_version"; exit ;;
54150   --debug | --debu | --deb | --de | --d | -d )
54151     debug=: ;;
54152   --file | --fil | --fi | --f )
54153     $ac_shift
54154     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
54155     ac_need_defaults=false;;
54156   --header | --heade | --head | --hea )
54157     $ac_shift
54158     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
54159     ac_need_defaults=false;;
54160   --he | --h)
54161     # Conflict between --help and --header
54162     { echo "$as_me: error: ambiguous option: $1
54163 Try \`$0 --help' for more information." >&2
54164    { (exit 1); exit 1; }; };;
54165   --help | --hel | -h )
54166     echo "$ac_cs_usage"; exit ;;
54167   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
54168   | -silent | --silent | --silen | --sile | --sil | --si | --s)
54169     ac_cs_silent=: ;;
54170
54171   # This is an error.
54172   -*) { echo "$as_me: error: unrecognized option: $1
54173 Try \`$0 --help' for more information." >&2
54174    { (exit 1); exit 1; }; } ;;
54175
54176   *) ac_config_targets="$ac_config_targets $1"
54177      ac_need_defaults=false ;;
54178
54179   esac
54180   shift
54181 done
54182
54183 ac_configure_extra_args=
54184
54185 if $ac_cs_silent; then
54186   exec 6>/dev/null
54187   ac_configure_extra_args="$ac_configure_extra_args --silent"
54188 fi
54189
54190 _ACEOF
54191 cat >>$CONFIG_STATUS <<_ACEOF
54192 if \$ac_cs_recheck; then
54193   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
54194   CONFIG_SHELL=$SHELL
54195   export CONFIG_SHELL
54196   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
54197 fi
54198
54199 _ACEOF
54200 cat >>$CONFIG_STATUS <<\_ACEOF
54201 exec 5>>config.log
54202 {
54203   echo
54204   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
54205 ## Running $as_me. ##
54206 _ASBOX
54207   echo "$ac_log"
54208 } >&5
54209
54210 _ACEOF
54211 cat >>$CONFIG_STATUS <<_ACEOF
54212 #
54213 # INIT-COMMANDS
54214 #
54215
54216             CPP="$CPP"
54217             infile="$srcdir/include/wx/msw/genrcdefs.h"
54218             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
54219
54220
54221  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54222  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54223  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54224                      LN_S="${LN_S}"
54225
54226
54227 _ACEOF
54228
54229 cat >>$CONFIG_STATUS <<\_ACEOF
54230
54231 # Handling of arguments.
54232 for ac_config_target in $ac_config_targets
54233 do
54234   case $ac_config_target in
54235     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
54236     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
54237     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
54238     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
54239     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
54240     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
54241     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
54242     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
54243     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
54244
54245   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
54246 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
54247    { (exit 1); exit 1; }; };;
54248   esac
54249 done
54250
54251
54252 # If the user did not use the arguments to specify the items to instantiate,
54253 # then the envvar interface is used.  Set only those that are not.
54254 # We use the long form for the default assignment because of an extremely
54255 # bizarre bug on SunOS 4.1.3.
54256 if $ac_need_defaults; then
54257   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54258   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54259   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
54260 fi
54261
54262 # Have a temporary directory for convenience.  Make it in the build tree
54263 # simply because there is no reason against having it here, and in addition,
54264 # creating and moving files from /tmp can sometimes cause problems.
54265 # Hook for its removal unless debugging.
54266 # Note that there is a small window in which the directory will not be cleaned:
54267 # after its creation but before its name has been assigned to `$tmp'.
54268 $debug ||
54269 {
54270   tmp=
54271   trap 'exit_status=$?
54272   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
54273 ' 0
54274   trap '{ (exit 1); exit 1; }' 1 2 13 15
54275 }
54276 # Create a (secure) tmp directory for tmp files.
54277
54278 {
54279   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
54280   test -n "$tmp" && test -d "$tmp"
54281 }  ||
54282 {
54283   tmp=./conf$$-$RANDOM
54284   (umask 077 && mkdir "$tmp")
54285 } ||
54286 {
54287    echo "$me: cannot create a temporary directory in ." >&2
54288    { (exit 1); exit 1; }
54289 }
54290
54291 #
54292 # Set up the sed scripts for CONFIG_FILES section.
54293 #
54294
54295 # No need to generate the scripts if there are no CONFIG_FILES.
54296 # This happens for instance when ./config.status config.h
54297 if test -n "$CONFIG_FILES"; then
54298
54299 _ACEOF
54300
54301
54302
54303 ac_delim='%!_!# '
54304 for ac_last_try in false false false false false :; do
54305   cat >conf$$subs.sed <<_ACEOF
54306 SHELL!$SHELL$ac_delim
54307 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
54308 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
54309 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
54310 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
54311 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
54312 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
54313 exec_prefix!$exec_prefix$ac_delim
54314 prefix!$prefix$ac_delim
54315 program_transform_name!$program_transform_name$ac_delim
54316 bindir!$bindir$ac_delim
54317 sbindir!$sbindir$ac_delim
54318 libexecdir!$libexecdir$ac_delim
54319 datarootdir!$datarootdir$ac_delim
54320 datadir!$datadir$ac_delim
54321 sysconfdir!$sysconfdir$ac_delim
54322 sharedstatedir!$sharedstatedir$ac_delim
54323 localstatedir!$localstatedir$ac_delim
54324 includedir!$includedir$ac_delim
54325 oldincludedir!$oldincludedir$ac_delim
54326 docdir!$docdir$ac_delim
54327 infodir!$infodir$ac_delim
54328 htmldir!$htmldir$ac_delim
54329 dvidir!$dvidir$ac_delim
54330 pdfdir!$pdfdir$ac_delim
54331 psdir!$psdir$ac_delim
54332 libdir!$libdir$ac_delim
54333 localedir!$localedir$ac_delim
54334 mandir!$mandir$ac_delim
54335 DEFS!$DEFS$ac_delim
54336 ECHO_C!$ECHO_C$ac_delim
54337 ECHO_N!$ECHO_N$ac_delim
54338 ECHO_T!$ECHO_T$ac_delim
54339 LIBS!$LIBS$ac_delim
54340 build_alias!$build_alias$ac_delim
54341 host_alias!$host_alias$ac_delim
54342 target_alias!$target_alias$ac_delim
54343 build!$build$ac_delim
54344 build_cpu!$build_cpu$ac_delim
54345 build_vendor!$build_vendor$ac_delim
54346 build_os!$build_os$ac_delim
54347 host!$host$ac_delim
54348 host_cpu!$host_cpu$ac_delim
54349 host_vendor!$host_vendor$ac_delim
54350 host_os!$host_os$ac_delim
54351 wx_top_builddir!$wx_top_builddir$ac_delim
54352 CC!$CC$ac_delim
54353 CFLAGS!$CFLAGS$ac_delim
54354 LDFLAGS!$LDFLAGS$ac_delim
54355 CPPFLAGS!$CPPFLAGS$ac_delim
54356 ac_ct_CC!$ac_ct_CC$ac_delim
54357 EXEEXT!$EXEEXT$ac_delim
54358 OBJEXT!$OBJEXT$ac_delim
54359 CPP!$CPP$ac_delim
54360 GREP!$GREP$ac_delim
54361 EGREP!$EGREP$ac_delim
54362 CXX!$CXX$ac_delim
54363 CXXFLAGS!$CXXFLAGS$ac_delim
54364 ac_ct_CXX!$ac_ct_CXX$ac_delim
54365 AR!$AR$ac_delim
54366 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
54367 CXXCPP!$CXXCPP$ac_delim
54368 subdirs!$subdirs$ac_delim
54369 PKG_CONFIG!$PKG_CONFIG$ac_delim
54370 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
54371 GTK_LIBS!$GTK_LIBS$ac_delim
54372 GTK_CONFIG!$GTK_CONFIG$ac_delim
54373 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
54374 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
54375 XMKMF!$XMKMF$ac_delim
54376 X_CFLAGS!$X_CFLAGS$ac_delim
54377 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
54378 X_LIBS!$X_LIBS$ac_delim
54379 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
54380 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
54381 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
54382 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
54383 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
54384 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
54385 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
54386 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
54387 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
54388 LIBICONV!$LIBICONV$ac_delim
54389 GXX_VERSION!$GXX_VERSION$ac_delim
54390 SDL_CONFIG!$SDL_CONFIG$ac_delim
54391 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
54392 SDL_LIBS!$SDL_LIBS$ac_delim
54393 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
54394 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
54395 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
54396 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
54397 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
54398 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
54399 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
54400 HILDON_LIBS!$HILDON_LIBS$ac_delim
54401 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
54402 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
54403 _ACEOF
54404
54405   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54406     break
54407   elif $ac_last_try; then
54408     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54409 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54410    { (exit 1); exit 1; }; }
54411   else
54412     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54413   fi
54414 done
54415
54416 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54417 if test -n "$ac_eof"; then
54418   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54419   ac_eof=`expr $ac_eof + 1`
54420 fi
54421
54422 cat >>$CONFIG_STATUS <<_ACEOF
54423 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
54424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54425 _ACEOF
54426 sed '
54427 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54428 s/^/s,@/; s/!/@,|#_!!_#|/
54429 :n
54430 t n
54431 s/'"$ac_delim"'$/,g/; t
54432 s/$/\\/; p
54433 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54434 ' >>$CONFIG_STATUS <conf$$subs.sed
54435 rm -f conf$$subs.sed
54436 cat >>$CONFIG_STATUS <<_ACEOF
54437 CEOF$ac_eof
54438 _ACEOF
54439
54440
54441 ac_delim='%!_!# '
54442 for ac_last_try in false false false false false :; do
54443   cat >conf$$subs.sed <<_ACEOF
54444 PYTHON!$PYTHON$ac_delim
54445 COND_PYTHON!$COND_PYTHON$ac_delim
54446 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
54447 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
54448 GST_CFLAGS!$GST_CFLAGS$ac_delim
54449 GST_LIBS!$GST_LIBS$ac_delim
54450 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
54451 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
54452 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
54453 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
54454 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
54455 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
54456 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
54457 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
54458 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
54459 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
54460 VENDOR!$VENDOR$ac_delim
54461 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
54462 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
54463 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
54464 WXUNIV!$WXUNIV$ac_delim
54465 MONOLITHIC!$MONOLITHIC$ac_delim
54466 USE_PLUGINS!$USE_PLUGINS$ac_delim
54467 CXXWARNINGS!$CXXWARNINGS$ac_delim
54468 EXTRALIBS!$EXTRALIBS$ac_delim
54469 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
54470 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
54471 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
54472 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
54473 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
54474 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
54475 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
54476 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
54477 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
54478 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
54479 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
54480 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
54481 UNICODE!$UNICODE$ac_delim
54482 DEBUG_INFO!$DEBUG_INFO$ac_delim
54483 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
54484 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
54485 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
54486 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
54487 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
54488 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
54489 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
54490 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
54491 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
54492 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
54493 RANLIB!$RANLIB$ac_delim
54494 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
54495 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
54496 INSTALL_DATA!$INSTALL_DATA$ac_delim
54497 LN_S!$LN_S$ac_delim
54498 SET_MAKE!$SET_MAKE$ac_delim
54499 MAKE_SET!$MAKE_SET$ac_delim
54500 AROPTIONS!$AROPTIONS$ac_delim
54501 STRIP!$STRIP$ac_delim
54502 NM!$NM$ac_delim
54503 INSTALL_DIR!$INSTALL_DIR$ac_delim
54504 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
54505 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
54506 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
54507 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
54508 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
54509 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
54510 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
54511 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
54512 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
54513 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
54514 SO_SUFFIX!$SO_SUFFIX$ac_delim
54515 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
54516 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
54517 LIBPREFIX!$LIBPREFIX$ac_delim
54518 LIBEXT!$LIBEXT$ac_delim
54519 DLLPREFIX!$DLLPREFIX$ac_delim
54520 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
54521 dlldir!$dlldir$ac_delim
54522 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
54523 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
54524 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
54525 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
54526 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
54527 PIC_FLAG!$PIC_FLAG$ac_delim
54528 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
54529 USE_SOVERSION!$USE_SOVERSION$ac_delim
54530 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
54531 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
54532 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
54533 USE_MACVERSION!$USE_MACVERSION$ac_delim
54534 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
54535 SONAME_FLAG!$SONAME_FLAG$ac_delim
54536 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
54537 BK_DEPS!$BK_DEPS$ac_delim
54538 WINDRES!$WINDRES$ac_delim
54539 REZ!$REZ$ac_delim
54540 SETFILE!$SETFILE$ac_delim
54541 _ACEOF
54542
54543   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54544     break
54545   elif $ac_last_try; then
54546     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54547 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54548    { (exit 1); exit 1; }; }
54549   else
54550     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54551   fi
54552 done
54553
54554 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54555 if test -n "$ac_eof"; then
54556   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54557   ac_eof=`expr $ac_eof + 1`
54558 fi
54559
54560 cat >>$CONFIG_STATUS <<_ACEOF
54561 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
54562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54563 _ACEOF
54564 sed '
54565 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54566 s/^/s,@/; s/!/@,|#_!!_#|/
54567 :n
54568 t n
54569 s/'"$ac_delim"'$/,g/; t
54570 s/$/\\/; p
54571 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54572 ' >>$CONFIG_STATUS <conf$$subs.sed
54573 rm -f conf$$subs.sed
54574 cat >>$CONFIG_STATUS <<_ACEOF
54575 CEOF$ac_eof
54576 _ACEOF
54577
54578
54579 ac_delim='%!_!# '
54580 for ac_last_try in false false false false false :; do
54581   cat >conf$$subs.sed <<_ACEOF
54582 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
54583 GCC_PCH!$GCC_PCH$ac_delim
54584 ICC_PCH!$ICC_PCH$ac_delim
54585 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
54586 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
54587 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
54588 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
54589 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
54590 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
54591 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
54592 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
54593 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
54594 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
54595 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
54596 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
54597 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
54598 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
54599 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
54600 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
54601 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
54602 COND_BUILD_release!$COND_BUILD_release$ac_delim
54603 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
54604 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
54605 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
54606 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
54607 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
54608 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
54609 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
54610 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
54611 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
54612 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
54613 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
54614 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
54615 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
54616 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
54617 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
54618 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
54619 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54620 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
54621 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1$ac_delim
54622 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
54623 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
54624 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
54625 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
54626 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
54627 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
54628 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
54629 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
54630 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
54631 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
54632 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
54633 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1$ac_delim
54634 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
54635 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
54636 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
54637 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54638 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54639 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54640 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54641 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54642 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54643 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54644 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
54645 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54646 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
54647 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54648 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54649 COND_MONOLITHIC_0_USE_WEBVIEW_1!$COND_MONOLITHIC_0_USE_WEBVIEW_1$ac_delim
54650 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54651 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54652 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54653 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54654 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54655 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54656 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54657 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54658 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54659 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
54660 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
54661 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54662 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
54663 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54664 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
54665 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54666 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
54667 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54668 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
54669 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54670 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54671 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
54672 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54673 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54674 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54675 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54676 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54677 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54678 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54679 _ACEOF
54680
54681   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54682     break
54683   elif $ac_last_try; then
54684     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54685 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54686    { (exit 1); exit 1; }; }
54687   else
54688     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54689   fi
54690 done
54691
54692 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54693 if test -n "$ac_eof"; then
54694   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54695   ac_eof=`expr $ac_eof + 1`
54696 fi
54697
54698 cat >>$CONFIG_STATUS <<_ACEOF
54699 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54700 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54701 _ACEOF
54702 sed '
54703 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54704 s/^/s,@/; s/!/@,|#_!!_#|/
54705 :n
54706 t n
54707 s/'"$ac_delim"'$/,g/; t
54708 s/$/\\/; p
54709 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54710 ' >>$CONFIG_STATUS <conf$$subs.sed
54711 rm -f conf$$subs.sed
54712 cat >>$CONFIG_STATUS <<_ACEOF
54713 CEOF$ac_eof
54714 _ACEOF
54715
54716
54717 ac_delim='%!_!# '
54718 for ac_last_try in false false false false false :; do
54719   cat >conf$$subs.sed <<_ACEOF
54720 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54721 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54722 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54723 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54724 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54725 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
54726 COND_SHARED_0!$COND_SHARED_0$ac_delim
54727 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54728 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54729 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54730 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54731 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54732 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54733 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54734 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54735 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
54736 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
54737 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
54738 COND_SHARED_1!$COND_SHARED_1$ac_delim
54739 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54740 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54741 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54742 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54743 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54744 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54745 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54746 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54747 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54748 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54749 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54750 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54751 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54752 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54753 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54754 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54755 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54756 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54757 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54758 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54759 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54760 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54761 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54762 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54763 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54764 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
54765 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54766 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
54767 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54768 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
54769 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54770 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
54771 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54772 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54773 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54774 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54775 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54776 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54777 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54778 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54779 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54780 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54781 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
54782 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54783 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54784 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54785 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54786 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54787 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54788 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54789 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54790 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54791 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54792 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54793 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54794 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54795 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54796 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54797 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54798 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54799 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54800 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
54801 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54802 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54803 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54804 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
54805 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54806 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54807 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54808 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54809 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54810 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54811 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54812 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54813 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54814 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54815 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54816 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54817 _ACEOF
54818
54819   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54820     break
54821   elif $ac_last_try; then
54822     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54823 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54824    { (exit 1); exit 1; }; }
54825   else
54826     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54827   fi
54828 done
54829
54830 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54831 if test -n "$ac_eof"; then
54832   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54833   ac_eof=`expr $ac_eof + 1`
54834 fi
54835
54836 cat >>$CONFIG_STATUS <<_ACEOF
54837 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54839 _ACEOF
54840 sed '
54841 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54842 s/^/s,@/; s/!/@,|#_!!_#|/
54843 :n
54844 t n
54845 s/'"$ac_delim"'$/,g/; t
54846 s/$/\\/; p
54847 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54848 ' >>$CONFIG_STATUS <conf$$subs.sed
54849 rm -f conf$$subs.sed
54850 cat >>$CONFIG_STATUS <<_ACEOF
54851 CEOF$ac_eof
54852 _ACEOF
54853
54854
54855 ac_delim='%!_!# '
54856 for ac_last_try in false false false false false :; do
54857   cat >conf$$subs.sed <<_ACEOF
54858 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54859 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54860 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54861 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
54862 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
54863 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
54864 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
54865 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
54866 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
54867 DEREZ!$DEREZ$ac_delim
54868 SHARED!$SHARED$ac_delim
54869 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54870 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54871 USE_GUI!$USE_GUI$ac_delim
54872 AFMINSTALL!$AFMINSTALL$ac_delim
54873 WIN32INSTALL!$WIN32INSTALL$ac_delim
54874 TOOLKIT!$TOOLKIT$ac_delim
54875 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54876 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54877 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54878 cross_compiling!$cross_compiling$ac_delim
54879 WIDGET_SET!$WIDGET_SET$ac_delim
54880 WX_RELEASE!$WX_RELEASE$ac_delim
54881 WX_VERSION!$WX_VERSION$ac_delim
54882 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54883 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54884 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54885 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54886 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54887 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54888 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54889 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
54890 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54891 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54892 GUIDIST!$GUIDIST$ac_delim
54893 DISTDIR!$DISTDIR$ac_delim
54894 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54895 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54896 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54897 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54898 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54899 RESCOMP!$RESCOMP$ac_delim
54900 RESFLAGS!$RESFLAGS$ac_delim
54901 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54902 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54903 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54904 LIBWXMACRES!$LIBWXMACRES$ac_delim
54905 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54906 MACSETFILE!$MACSETFILE$ac_delim
54907 GCC!$GCC$ac_delim
54908 DLLTOOL!$DLLTOOL$ac_delim
54909 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54910 LIBOBJS!$LIBOBJS$ac_delim
54911 LTLIBOBJS!$LTLIBOBJS$ac_delim
54912 _ACEOF
54913
54914   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
54915     break
54916   elif $ac_last_try; then
54917     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54918 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54919    { (exit 1); exit 1; }; }
54920   else
54921     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54922   fi
54923 done
54924
54925 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54926 if test -n "$ac_eof"; then
54927   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54928   ac_eof=`expr $ac_eof + 1`
54929 fi
54930
54931 cat >>$CONFIG_STATUS <<_ACEOF
54932 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54933 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54934 _ACEOF
54935 sed '
54936 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54937 s/^/s,@/; s/!/@,|#_!!_#|/
54938 :n
54939 t n
54940 s/'"$ac_delim"'$/,g/; t
54941 s/$/\\/; p
54942 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54943 ' >>$CONFIG_STATUS <conf$$subs.sed
54944 rm -f conf$$subs.sed
54945 cat >>$CONFIG_STATUS <<_ACEOF
54946 :end
54947 s/|#_!!_#|//g
54948 CEOF$ac_eof
54949 _ACEOF
54950
54951
54952 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54953 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54954 # trailing colons and then remove the whole line if VPATH becomes empty
54955 # (actually we leave an empty line to preserve line numbers).
54956 if test "x$srcdir" = x.; then
54957   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54958 s/:*\$(srcdir):*/:/
54959 s/:*\${srcdir}:*/:/
54960 s/:*@srcdir@:*/:/
54961 s/^\([^=]*=[     ]*\):*/\1/
54962 s/:*$//
54963 s/^[^=]*=[       ]*$//
54964 }'
54965 fi
54966
54967 cat >>$CONFIG_STATUS <<\_ACEOF
54968 fi # test -n "$CONFIG_FILES"
54969
54970
54971 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54972 do
54973   case $ac_tag in
54974   :[FHLC]) ac_mode=$ac_tag; continue;;
54975   esac
54976   case $ac_mode$ac_tag in
54977   :[FHL]*:*);;
54978   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54979 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54980    { (exit 1); exit 1; }; };;
54981   :[FH]-) ac_tag=-:-;;
54982   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54983   esac
54984   ac_save_IFS=$IFS
54985   IFS=:
54986   set x $ac_tag
54987   IFS=$ac_save_IFS
54988   shift
54989   ac_file=$1
54990   shift
54991
54992   case $ac_mode in
54993   :L) ac_source=$1;;
54994   :[FH])
54995     ac_file_inputs=
54996     for ac_f
54997     do
54998       case $ac_f in
54999       -) ac_f="$tmp/stdin";;
55000       *) # Look for the file first in the build tree, then in the source tree
55001          # (if the path is not absolute).  The absolute path cannot be DOS-style,
55002          # because $ac_f cannot contain `:'.
55003          test -f "$ac_f" ||
55004            case $ac_f in
55005            [\\/$]*) false;;
55006            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
55007            esac ||
55008            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
55009 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
55010    { (exit 1); exit 1; }; };;
55011       esac
55012       ac_file_inputs="$ac_file_inputs $ac_f"
55013     done
55014
55015     # Let's still pretend it is `configure' which instantiates (i.e., don't
55016     # use $as_me), people would be surprised to read:
55017     #    /* config.h.  Generated by config.status.  */
55018     configure_input="Generated from "`IFS=:
55019           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
55020     if test x"$ac_file" != x-; then
55021       configure_input="$ac_file.  $configure_input"
55022       { echo "$as_me:$LINENO: creating $ac_file" >&5
55023 echo "$as_me: creating $ac_file" >&6;}
55024     fi
55025
55026     case $ac_tag in
55027     *:-:* | *:-) cat >"$tmp/stdin";;
55028     esac
55029     ;;
55030   esac
55031
55032   ac_dir=`$as_dirname -- "$ac_file" ||
55033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55034          X"$ac_file" : 'X\(//\)[^/]' \| \
55035          X"$ac_file" : 'X\(//\)$' \| \
55036          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
55037 echo X"$ac_file" |
55038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55039             s//\1/
55040             q
55041           }
55042           /^X\(\/\/\)[^/].*/{
55043             s//\1/
55044             q
55045           }
55046           /^X\(\/\/\)$/{
55047             s//\1/
55048             q
55049           }
55050           /^X\(\/\).*/{
55051             s//\1/
55052             q
55053           }
55054           s/.*/./; q'`
55055   { as_dir="$ac_dir"
55056   case $as_dir in #(
55057   -*) as_dir=./$as_dir;;
55058   esac
55059   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55060     as_dirs=
55061     while :; do
55062       case $as_dir in #(
55063       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55064       *) as_qdir=$as_dir;;
55065       esac
55066       as_dirs="'$as_qdir' $as_dirs"
55067       as_dir=`$as_dirname -- "$as_dir" ||
55068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55069          X"$as_dir" : 'X\(//\)[^/]' \| \
55070          X"$as_dir" : 'X\(//\)$' \| \
55071          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55072 echo X"$as_dir" |
55073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55074             s//\1/
55075             q
55076           }
55077           /^X\(\/\/\)[^/].*/{
55078             s//\1/
55079             q
55080           }
55081           /^X\(\/\/\)$/{
55082             s//\1/
55083             q
55084           }
55085           /^X\(\/\).*/{
55086             s//\1/
55087             q
55088           }
55089           s/.*/./; q'`
55090       test -d "$as_dir" && break
55091     done
55092     test -z "$as_dirs" || eval "mkdir $as_dirs"
55093   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55094 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55095    { (exit 1); exit 1; }; }; }
55096   ac_builddir=.
55097
55098 case "$ac_dir" in
55099 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55100 *)
55101   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55102   # A ".." for each directory in $ac_dir_suffix.
55103   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55104   case $ac_top_builddir_sub in
55105   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55106   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55107   esac ;;
55108 esac
55109 ac_abs_top_builddir=$ac_pwd
55110 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55111 # for backward compatibility:
55112 ac_top_builddir=$ac_top_build_prefix
55113
55114 case $srcdir in
55115   .)  # We are building in place.
55116     ac_srcdir=.
55117     ac_top_srcdir=$ac_top_builddir_sub
55118     ac_abs_top_srcdir=$ac_pwd ;;
55119   [\\/]* | ?:[\\/]* )  # Absolute name.
55120     ac_srcdir=$srcdir$ac_dir_suffix;
55121     ac_top_srcdir=$srcdir
55122     ac_abs_top_srcdir=$srcdir ;;
55123   *) # Relative name.
55124     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55125     ac_top_srcdir=$ac_top_build_prefix$srcdir
55126     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55127 esac
55128 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55129
55130
55131   case $ac_mode in
55132   :F)
55133   #
55134   # CONFIG_FILE
55135   #
55136
55137   case $INSTALL in
55138   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
55139   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
55140   esac
55141 _ACEOF
55142
55143 cat >>$CONFIG_STATUS <<\_ACEOF
55144 # If the template does not know about datarootdir, expand it.
55145 # FIXME: This hack should be removed a few years after 2.60.
55146 ac_datarootdir_hack=; ac_datarootdir_seen=
55147
55148 case `sed -n '/datarootdir/ {
55149   p
55150   q
55151 }
55152 /@datadir@/p
55153 /@docdir@/p
55154 /@infodir@/p
55155 /@localedir@/p
55156 /@mandir@/p
55157 ' $ac_file_inputs` in
55158 *datarootdir*) ac_datarootdir_seen=yes;;
55159 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
55160   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
55161 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
55162 _ACEOF
55163 cat >>$CONFIG_STATUS <<_ACEOF
55164   ac_datarootdir_hack='
55165   s&@datadir@&$datadir&g
55166   s&@docdir@&$docdir&g
55167   s&@infodir@&$infodir&g
55168   s&@localedir@&$localedir&g
55169   s&@mandir@&$mandir&g
55170     s&\\\${datarootdir}&$datarootdir&g' ;;
55171 esac
55172 _ACEOF
55173
55174 # Neutralize VPATH when `$srcdir' = `.'.
55175 # Shell code in configure.ac might set extrasub.
55176 # FIXME: do we really want to maintain this feature?
55177 cat >>$CONFIG_STATUS <<_ACEOF
55178   sed "$ac_vpsub
55179 $extrasub
55180 _ACEOF
55181 cat >>$CONFIG_STATUS <<\_ACEOF
55182 :t
55183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55184 s&@configure_input@&$configure_input&;t t
55185 s&@top_builddir@&$ac_top_builddir_sub&;t t
55186 s&@srcdir@&$ac_srcdir&;t t
55187 s&@abs_srcdir@&$ac_abs_srcdir&;t t
55188 s&@top_srcdir@&$ac_top_srcdir&;t t
55189 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
55190 s&@builddir@&$ac_builddir&;t t
55191 s&@abs_builddir@&$ac_abs_builddir&;t t
55192 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
55193 s&@INSTALL@&$ac_INSTALL&;t t
55194 $ac_datarootdir_hack
55195 " $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
55196
55197 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
55198   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
55199   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
55200   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55201 which seems to be undefined.  Please make sure it is defined." >&5
55202 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55203 which seems to be undefined.  Please make sure it is defined." >&2;}
55204
55205   rm -f "$tmp/stdin"
55206   case $ac_file in
55207   -) cat "$tmp/out"; rm -f "$tmp/out";;
55208   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
55209   esac
55210  ;;
55211   :H)
55212   #
55213   # CONFIG_HEADER
55214   #
55215 _ACEOF
55216
55217 # Transform confdefs.h into a sed script `conftest.defines', that
55218 # substitutes the proper values into config.h.in to produce config.h.
55219 rm -f conftest.defines conftest.tail
55220 # First, append a space to every undef/define line, to ease matching.
55221 echo 's/$/ /' >conftest.defines
55222 # Then, protect against being on the right side of a sed subst, or in
55223 # an unquoted here document, in config.status.  If some macros were
55224 # called several times there might be several #defines for the same
55225 # symbol, which is useless.  But do not sort them, since the last
55226 # AC_DEFINE must be honored.
55227 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
55228 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
55229 # NAME is the cpp macro being defined, VALUE is the value it is being given.
55230 # PARAMS is the parameter list in the macro definition--in most cases, it's
55231 # just an empty string.
55232 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
55233 ac_dB='\\)[      (].*,\\1define\\2'
55234 ac_dC=' '
55235 ac_dD=' ,'
55236
55237 uniq confdefs.h |
55238   sed -n '
55239         t rset
55240         :rset
55241         s/^[     ]*#[    ]*define[       ][      ]*//
55242         t ok
55243         d
55244         :ok
55245         s/[\\&,]/\\&/g
55246         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
55247         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
55248   ' >>conftest.defines
55249
55250 # Remove the space that was appended to ease matching.
55251 # Then replace #undef with comments.  This is necessary, for
55252 # example, in the case of _POSIX_SOURCE, which is predefined and required
55253 # on some systems where configure will not decide to define it.
55254 # (The regexp can be short, since the line contains either #define or #undef.)
55255 echo 's/ $//
55256 s,^[     #]*u.*,/* & */,' >>conftest.defines
55257
55258 # Break up conftest.defines:
55259 ac_max_sed_lines=50
55260
55261 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
55262 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
55263 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
55264 # et cetera.
55265 ac_in='$ac_file_inputs'
55266 ac_out='"$tmp/out1"'
55267 ac_nxt='"$tmp/out2"'
55268
55269 while :
55270 do
55271   # Write a here document:
55272     cat >>$CONFIG_STATUS <<_ACEOF
55273     # First, check the format of the line:
55274     cat >"\$tmp/defines.sed" <<\\CEOF
55275 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
55276 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
55277 b
55278 :def
55279 _ACEOF
55280   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
55281   echo 'CEOF
55282     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
55283   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
55284   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
55285   grep . conftest.tail >/dev/null || break
55286   rm -f conftest.defines
55287   mv conftest.tail conftest.defines
55288 done
55289 rm -f conftest.defines conftest.tail
55290
55291 echo "ac_result=$ac_in" >>$CONFIG_STATUS
55292 cat >>$CONFIG_STATUS <<\_ACEOF
55293   if test x"$ac_file" != x-; then
55294     echo "/* $configure_input  */" >"$tmp/config.h"
55295     cat "$ac_result" >>"$tmp/config.h"
55296     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
55297       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
55298 echo "$as_me: $ac_file is unchanged" >&6;}
55299     else
55300       rm -f $ac_file
55301       mv "$tmp/config.h" $ac_file
55302     fi
55303   else
55304     echo "/* $configure_input  */"
55305     cat "$ac_result"
55306   fi
55307   rm -f "$tmp/out12"
55308  ;;
55309
55310   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
55311 echo "$as_me: executing $ac_file commands" >&6;}
55312  ;;
55313   esac
55314
55315
55316   case $ac_file$ac_mode in
55317     "rcdefs.h":C)
55318             mkdir -p $outdir &&
55319             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
55320          ;;
55321     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
55322     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
55323     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
55324     "wx-config":C)  rm -f wx-config
55325                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
55326                     ;;
55327
55328   esac
55329 done # for ac_tag
55330
55331
55332 { (exit 0); exit 0; }
55333 _ACEOF
55334 chmod +x $CONFIG_STATUS
55335 ac_clean_files=$ac_clean_files_save
55336
55337
55338 # configure is writing to config.log, and then calls config.status.
55339 # config.status does its own redirection, appending to config.log.
55340 # Unfortunately, on DOS this fails, as config.log is still kept open
55341 # by configure, so config.status won't be able to write to it; its
55342 # output is simply discarded.  So we exec the FD to /dev/null,
55343 # effectively closing config.log, so it can be properly (re)opened and
55344 # appended to by config.status.  When coming back to configure, we
55345 # need to make the FD available again.
55346 if test "$no_create" != yes; then
55347   ac_cs_success=:
55348   ac_config_status_args=
55349   test "$silent" = yes &&
55350     ac_config_status_args="$ac_config_status_args --quiet"
55351   exec 5>/dev/null
55352   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
55353   exec 5>>config.log
55354   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
55355   # would make configure fail if this is the last instruction.
55356   $ac_cs_success || { (exit 1); exit 1; }
55357 fi
55358
55359 #
55360 # CONFIG_SUBDIRS section.
55361 #
55362 if test "$no_recursion" != yes; then
55363
55364   # Remove --cache-file and --srcdir arguments so they do not pile up.
55365   ac_sub_configure_args=
55366   ac_prev=
55367   eval "set x $ac_configure_args"
55368   shift
55369   for ac_arg
55370   do
55371     if test -n "$ac_prev"; then
55372       ac_prev=
55373       continue
55374     fi
55375     case $ac_arg in
55376     -cache-file | --cache-file | --cache-fil | --cache-fi \
55377     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
55378       ac_prev=cache_file ;;
55379     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
55380     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
55381     | --c=*)
55382       ;;
55383     --config-cache | -C)
55384       ;;
55385     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
55386       ac_prev=srcdir ;;
55387     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
55388       ;;
55389     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
55390       ac_prev=prefix ;;
55391     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
55392       ;;
55393     *)
55394       case $ac_arg in
55395       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55396       esac
55397       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
55398     esac
55399   done
55400
55401   # Always prepend --prefix to ensure using the same prefix
55402   # in subdir configurations.
55403   ac_arg="--prefix=$prefix"
55404   case $ac_arg in
55405   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55406   esac
55407   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
55408
55409   # Pass --silent
55410   if test "$silent" = yes; then
55411     ac_sub_configure_args="--silent $ac_sub_configure_args"
55412   fi
55413
55414   ac_popdir=`pwd`
55415   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
55416
55417     # Do not complain, so a configure script can configure whichever
55418     # parts of a large source tree are present.
55419     test -d "$srcdir/$ac_dir" || continue
55420
55421     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
55422     echo "$as_me:$LINENO: $ac_msg" >&5
55423     echo "$ac_msg" >&6
55424     { as_dir="$ac_dir"
55425   case $as_dir in #(
55426   -*) as_dir=./$as_dir;;
55427   esac
55428   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55429     as_dirs=
55430     while :; do
55431       case $as_dir in #(
55432       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55433       *) as_qdir=$as_dir;;
55434       esac
55435       as_dirs="'$as_qdir' $as_dirs"
55436       as_dir=`$as_dirname -- "$as_dir" ||
55437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55438          X"$as_dir" : 'X\(//\)[^/]' \| \
55439          X"$as_dir" : 'X\(//\)$' \| \
55440          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55441 echo X"$as_dir" |
55442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55443             s//\1/
55444             q
55445           }
55446           /^X\(\/\/\)[^/].*/{
55447             s//\1/
55448             q
55449           }
55450           /^X\(\/\/\)$/{
55451             s//\1/
55452             q
55453           }
55454           /^X\(\/\).*/{
55455             s//\1/
55456             q
55457           }
55458           s/.*/./; q'`
55459       test -d "$as_dir" && break
55460     done
55461     test -z "$as_dirs" || eval "mkdir $as_dirs"
55462   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55463 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55464    { (exit 1); exit 1; }; }; }
55465     ac_builddir=.
55466
55467 case "$ac_dir" in
55468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55469 *)
55470   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55471   # A ".." for each directory in $ac_dir_suffix.
55472   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55473   case $ac_top_builddir_sub in
55474   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55475   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55476   esac ;;
55477 esac
55478 ac_abs_top_builddir=$ac_pwd
55479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55480 # for backward compatibility:
55481 ac_top_builddir=$ac_top_build_prefix
55482
55483 case $srcdir in
55484   .)  # We are building in place.
55485     ac_srcdir=.
55486     ac_top_srcdir=$ac_top_builddir_sub
55487     ac_abs_top_srcdir=$ac_pwd ;;
55488   [\\/]* | ?:[\\/]* )  # Absolute name.
55489     ac_srcdir=$srcdir$ac_dir_suffix;
55490     ac_top_srcdir=$srcdir
55491     ac_abs_top_srcdir=$srcdir ;;
55492   *) # Relative name.
55493     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55494     ac_top_srcdir=$ac_top_build_prefix$srcdir
55495     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55496 esac
55497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55498
55499
55500     cd "$ac_dir"
55501
55502     # Check for guested configure; otherwise get Cygnus style configure.
55503     if test -f "$ac_srcdir/configure.gnu"; then
55504       ac_sub_configure=$ac_srcdir/configure.gnu
55505     elif test -f "$ac_srcdir/configure"; then
55506       ac_sub_configure=$ac_srcdir/configure
55507     elif test -f "$ac_srcdir/configure.in"; then
55508       # This should be Cygnus configure.
55509       ac_sub_configure=$ac_aux_dir/configure
55510     else
55511       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
55512 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
55513       ac_sub_configure=
55514     fi
55515
55516     # The recursion is here.
55517     if test -n "$ac_sub_configure"; then
55518       # Make the cache file name correct relative to the subdirectory.
55519       case $cache_file in
55520       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
55521       *) # Relative name.
55522         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
55523       esac
55524
55525       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
55526 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
55527       # The eval makes quoting arguments work.
55528       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
55529            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
55530         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
55531 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
55532    { (exit 1); exit 1; }; }
55533     fi
55534
55535     cd "$ac_popdir"
55536   done
55537 fi
55538
55539
55540 echo
55541 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
55542 echo ""
55543 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
55544 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
55545 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
55546 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
55547 if test "$wxUSE_UNICODE" = "yes"; then
55548     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
55549         echo " (using UTF-8)"
55550     else
55551         echo " (using wchar_t)"
55552     fi
55553 else
55554     echo
55555 fi
55556
55557 echo "  What level of wxWidgets compatibility should be enabled?"
55558 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
55559 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
55560
55561 echo "  Which libraries should wxWidgets use?"
55562 echo "                                       STL                ${wxUSE_STL}"
55563 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
55564 echo "                                       png                ${wxUSE_LIBPNG-none}"
55565 echo "                                       regex              ${wxUSE_REGEX}"
55566 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
55567 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
55568 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
55569 fi
55570 echo "                                       zlib               ${wxUSE_ZLIB}"
55571 echo "                                       expat              ${wxUSE_EXPAT}"
55572 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
55573 echo "                                       sdl                ${wxUSE_LIBSDL}"
55574
55575 echo ""
55576